libnetfilter_conntrack

1
2
source /opt/crossplatform/arm49/env.sh
./configure --host=arm-linux-gnueabihf --prefix=/opt/crossplatform/arm49
1
2
source /opt/crossplatform/arm49/env.sh
./configure --host=arm-linux-gnueabihf --prefix=/opt/crossplatform/arm49

iptables

依赖:libnfnetlink、libnetfilter_conntrack

1
2
source /opt/crossplatform/arm49/env.sh
./configure --host=arm-linux-gnueabihf --prefix=/opt/crossplatform/arm49

fft3.3.8

1
2
source /opt/crossplatform/arm49/env.sh
./configure --prefix=/opt/crossplatform/arm49 --host=arm-linux --enable-shared --enable-float --enable-threads

这个库的配置–host必须使用arm-linux,因为config.sub版本过来的原因

openssl 1.1.1

1
2
3
4
5
source /opt/crossplatform/arm49/env.sh
./config no-asm –prefix=/opt/crossplatform/arm49
然后修改Makefile文件,将其中的-m64都删除掉
make
sudo make install

libpcap 1.9.1

1
2
source /opt/crossplatform/arm49/env.sh
./configure --prefix=/opt/crossplatform/arm49 --host=arm-linux-gnueabihf --with-pcap=linux

net-tools 1.6.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
source /opt/crossplatform/arm49/env.sh
make config // 将x.25 等相关配置关闭,否则编译会报错,最终配置如下。(某些配置关闭或开启不影响编译成功)

Does your system support GNU gettext? (I18N) [n]

*

* Protocol Families.

*

UNIX protocol family (HAVE_AFUNIX) [y]

INET (TCP/IP) protocol family (HAVE_AFINET) [y]

INET6 (IPv6) protocol family (HAVE_AFINET6) [n]

Novell IPX/SPX protocol family (HAVE_AFIPX) [y]

Appletalk DDP protocol family (HAVE_AFATALK) [y]

AX25 (packet radio) protocol family (HAVE_AFAX25) [y]

NET/ROM (packet radio) protocol family (HAVE_AFNETROM) [y]

Rose (packet radio) protocol family (HAVE_AFROSE) [n]

X.25 (CCITT) protocol family (HAVE_AFX25) [n]

Econet protocol family (HAVE_AFECONET) [n]

DECnet protocol family (HAVE_AFDECnet) [n]

Ash protocol family (HAVE_AFASH) [n]

*

* Device Hardware types.

*

Ethernet (generic) support (HAVE_HWETHER) [y]

ARCnet support (HAVE_HWARC) [y]

SLIP (serial line) support (HAVE_HWSLIP) [y]

PPP (serial line) support (HAVE_HWPPP) [y]

IPIP Tunnel support (HAVE_HWTUNNEL) [y]

STRIP (Metricom radio) support (HAVE_HWSTRIP) [y]

Token ring (generic) support (HAVE_HWTR) [y]

AX25 (packet radio) support (HAVE_HWAX25) [y]

Rose (packet radio) support (HAVE_HWROSE) [n]

NET/ROM (packet radio) support (HAVE_HWNETROM) [y]

X.25 (generic) support (HAVE_HWX25) [n]

DLCI/FRAD (frame relay) support (HAVE_HWFR) [y]

SIT (IPv6-in-IPv4) support (HAVE_HWSIT) [n]

FDDI (generic) support (HAVE_HWFDDI) [n]

HIPPI (generic) support (HAVE_HWHIPPI) [n]

Ash hardware support (HAVE_HWASH) [n]

(Cisco)-HDLC/LAPB support (HAVE_HWHDLCLAPB) [n]

IrDA support (HAVE_HWIRDA) [y]

Econet hardware support (HAVE_HWEC) [n]

*

* Other Features.

*

IP Masquerading support (HAVE_FW_MASQUERADE) [n]

Build iptunnel and ipmaddr (HAVE_IP_TOOLS) [n]

Build mii-tool (HAVE_MII) [n]

需要对源码进行一些处理,处理的内容有:

  • if_tr.hif_strip.h复制到net-tools-1.60/ 下
  • 修改源码lib/strip.c, 将 #include <linux/if_strip.h> 改为 #include “if_strip.h”
  • 修改源码 hostname.c ,在 switch的default:后加上break;
  • 修改源码 lib/tr.c#include <linux/if_tr.h>改为#include "if_tr.h"
  • 修改源码 lib/inet_sr.c 将 switch的default:后加上break;

修改完成走最后执行make就能生成:netstat,ipconfig,route等命令。

lrzsz

1
2
3
4
source /opt/crossplatform/arm49/env.sh
./configure --prefix=/opt/crossplatform/arm49
make
make install

zlib 1.2.9

1
2
3
4
source /opt/crossplatform/arm49/env.sh
./configure --prefix=/opt/crossplatform/arm49
make
make install

dropbear

依赖zlib

1
2
3
4
source /opt/crossplatform/arm49/env.sh
./configure --prefix=/opt/crossplatform/arm49 --host=arm-linux
make
make install

crontab

下载cronie源码:https://github.com/cronie-crond/cronie/

1
2
3
4
source /opt/crossplatform/arm49/env.sh
./autugen.sh
./configure --prefix=/ --host=arm-linux
make

不要make install

在安装目录下创建var/spool目录,因为指定了安装位置为/,因此需要创建/var/spool目录。