1.下载工具
wget http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz
wget http://www.tcpdump.org/release/tcpdump-4.9.1.tar.gz
2.编译
在下载目录下新建一个install_tools安装工具路径
进入libpcap-1.8.1路径下编译
./configure CC=/opt/prebuilts/gcc/linux-x86/aarch64/gcc-buildroot-9.3.0-2020.03-x86_64_aarch64-rockchip-linux-gnu/bin/aarch64-rockchip-linux-gnu-gcc --host=aarch64-linux --prefix=/share/rk3568/tcpdump-tools/install_tools
make
make install
进入tcpdump-4.9.1路径下编译
./configure CC=/opt/rk3568/prebuilts/gcc/linux-x86/aarch64/gcc-buildroot-9.3.0-2020.03-x86_64_aarch64-rockchip-linux-gnu/bin/aarch64-rockchip-linux-gnu-gcc --host=aarch64-linux --prefix=/share/rk3568/tcpdump-tools/install_toolsmakemake install