Compile ntp on none-x86 platform

Download newest version from NTP website: http://www.ntp.org/downloads.html [crayon-68033eb52f4fc249253579/] You must indicate '--with-hardenfile=default' argument when your compile don't support libssp or else you will get errors seem as: [crayon-68033eb52f500526950512/] refs: https://gitlab.com/atilla/buildroot/commit/5766b6fb34a897092092f7d76d6b4f2bc8c48571

Cross Compile Android ADB tool

现在很多ARM设备支持ADB,比如4G模块。 经过测试,android-4.4_r1.2分支可以编译成功。 [crayon-68033eb52f6e8649032868/] 建立一个Makefile,并添加如下内容: [crayon-68033eb52f6f0839075410/] 其中zlib和openssl采用源码编译,动态链接 然后编译 [crayon-68033eb52f6f2387163022/] 参考 http://android.serverbox.ch/?p=1217

Cross Compile dosfstools

由于busybox中提供的mkfs.vfat无法格式化超过2G的分区,提示: [crayon-68033eb52f7a6332251030/] 所以需要单独编译mkfs.fat以支持2G以上的分区 [crayon-68033eb52f7a8121916832/] 首先产生configure文件,执行autoconf后报错: [crayon-68033eb52f7a9851029439/] 经查需要先执行aclocal [crayon-68033eb52f7aa990674076/] 产生configure后进行自动配置产生Makefile: [crayon-68033eb52f7ab665268776/] 查了一下需要先执行autoconf --install产生install-sh脚本 [crayon-68033eb52f7ac198552614/]    

Cross Compile net-tools

net-tools提供很多网络方面的工具,如arp、ifconfig、netstat、route、mii-tool等等 [crayon-68033eb52f84a469445481/] Reference net-tools - Project Home
CrossCompile openssh

CrossCompile openssh

ChangeLog Download sources [crayon-68033eb52f927491564356/] Build openssl 如果编译器中自带了openssl库则不需要自己重新编译openssl。如果编译器不带openssl,或者自带的openssl有漏洞,则需要自己下载并编译openssl。 http://kaoru.tech/archives/50 http://kaoru.tech/archives/1385 Build zlib (i.MX6Ul) [crayon-68033eb52f929858599259/] Build openssh [crayon-68033eb52f92a414840460/] SAM9X5 (CROSS_COMPILE:arm-linux) [crayon-68033eb52f92b261491729/] i.MX6UL (CROSS_COMPILE:arm-poky-linux-gnueabi) [crayon-68033eb52f92c122913669/] Deploy [crayon-68033eb52f92d569751451/] Reference https://bbs.archlinux.org/viewtopic.php?id=165382

How to Cross Compile openssl

下载 [crayon-68033eb52facd033982184/] 编译 openssl-0.9.7a [crayon-68033eb52facf775051535/] openssl-1.0.0 and later 查看支持的平台 [crayon-68033eb52fad0055022444/] 配置参数&编译 [crayon-68033eb52fad1961469685/] Status of different versions: OpenSSL 1.0.1 through 1.0.1f (inclusive) are vulnerable OpenSSL 1.0.1g is NOT vulnerable OpenSSL 1.0.0…

CrossCompile snmpd

$ ./configure --build=i386-linux --host=arm-linux --enable-mini-agent --disable-ipv6 --with-endianness=little --disable-manuals --disable-ucd-snmp-compatibility --enable-as-needed --disable-embedded-perl --without-perl-modules --disable-snmptrapd-subagent --disable-applications --disable-scripts $ make LDFLAGS="-static"

Cross-compile iptables

今天编译了iptables着实令我郁闷了一下。 我们的kernel用的是linux-2.6.36-rc2。由于历史原因,客户应用层使用的编译器和我们编译kernel的编译器不一样。 结果就很悲摧: iptables v1.4.12.1: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded. 查了一下bing,从什么大之前开始google就一直在抽风。 找到了一个更加令人悲摧的地方:http://www.iptables.info/en/iptables-problems.html This is a bit more serious since…

Cross-compile vsftpd

下载vsftp源码 然后修改Makefile,将CC修改为$(CROSS_COMPILE)gcc 编译即可。 默认vsftpd需要PAM支持。如果使用busybox做rootfs的话支持PAM比较麻烦,可以将sysdeputil.c文件中关于“pam_”开头的函数调用全部删除。然后重新编译。 编译最后会出现如下错误: arm-linux-gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o…