在编译Kernel时,遇到报错内容:
/bin/sh: lz4c: command not found
arch/arm64/boot/Makefile:31: recipe for target 'arch/arm64/boot/Image.lz4' failed
make[1]: *** [arch/arm64/boot/Image.lz4] Error 1
arch/arm64/Makefile:139: recipe for target 'Image.lz4' failed
make: *** [Image.lz4] Error 2
如图:
解决办法:
sudo apt-get install liblz4-tool
安装这个库。重新运行make tl3568-evm.img -j16指令,可以正常编译并通过了。
可以将该指令完善进上篇文章所提到的install_tools.sh脚本中↓
TL3568编译Kernel内核 make rockchip_linux_defconfig报错-CSDN博客