Compile ntp on none-x86 platform

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

Cross Compile Android ADB tool

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

Cross Compile dosfstools

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

Cross Compile net-tools

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

CrossCompile openssh

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

How to Cross Compile openssl

下载 [crayon-6886346051d81914116817/] 编译 openssl-0.9.7a [crayon-6886346051d85266340434/] openssl-1.0.0 and later 查看支持的平台 [crayon-6886346051d86382316149/] 配置参数&编译 [crayon-6886346051d87656283054/] 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…