1.下载源码 本文以iptables1.8.7为例,源码可在netfilter官网下载 2.解压源码 # tar xvf iptables-1.8.7.tar.xz # cd iptables-1.8.7 # mkdir _install 3.交叉编译 #. /opt/fsl-imx-x11/4.1.15-2.0.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi #./configure --host=arm-poky-linux-gnueabi --prefix=$PWD/_install --enable-static --disable-shared --with-ksource=/home/forlinx/work/6ull-s/linux-4.1.15/ --disable-nftables #make #make install 4.打包到开发板 #cd _install/sbin #sudo chmod 777 –R ./* #tar czvf iptables.tar.bz2 ./* 复制到板子上解压 tar xvf
iptables.tar.bz2 –C /usr/sbin
|
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 16:54
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.