1. 获取源码
wget https://mirrors.edge.kernel.org/pub/software/utils/i2c-tools/i2c-tools-4.1.tar.xz
2. 解压源码
tar xvf i2c-tools-4.1.tar.gz
cd i2c-tools-4.1
3. 指定交叉编译器
export CC=aarch64-linux-gnu-gcc
export STRIP=aarch64-linux-gnu-strip
export AR=aarch64-linux-gnu-ar
4. 编译
make -j4