编译kernel问题
ubuntu18.04编译环境按wiki配置好sdk无修改,下载后解压、git reset --hard均正常
按wiki编译,整体编译和分步编译,编译到kernel部分时均出现以下错误
(网上有说liblz4-tool没安装,实际上已经安装)
请问是什么问题?
~/firefly_rk3588/kernel-5.10$ msk ARCH=arm64 BOOT_IMG=../rockdev/Image-rk3588_firefly_itx_3588j/boot.img rk3588-firefly-itx-3588j.img -j32
SYNC include/config/auto.conf.cmd
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/kheaders_data.tar.xz
LZ4C arch/arm64/boot/Image.lz4
Incorrect parameters
Usage :
lz4
input : a filename
with no FILE, or when FILE is - or stdin, read standard input
Arguments :
-1 : Fast compression (default)
-9 : High compression
-d : decompression (default for .lz4 extension)
-z : force compression
-f : overwrite output without prompting
-h/-H: display help/long help and exit
arch/arm64/boot/Makefile:31: recipe for target 'arch/arm64/boot/Image.lz4' failed
make: *** Error 1
make: *** Deleting file 'arch/arm64/boot/Image.lz4'
arch/arm64/Makefile:170: recipe for target 'Image.lz4' failed
make: *** Error 2
arch/arm64/Makefile:214: recipe for target 'rk3588-firefly-itx-3588j.img' failed
make: *** Error 2
附wiki编译方法
Core-3588J 产品编译方法整体编译
[*]HDMI 固件编译
./FFTools/make.sh -d rk3588-firefly-itx-3588j -j8 -l rk3588_firefly_itx_3588j-userdebug./FFTools/mkupdate/mkupdate.sh -l rk3588_firefly_itx_3588j-userdebug
[*]10.1 寸 MIPI DSI0 固件编译:
./FFTools/make.sh -d rk3588-firefly-itx-3588j-mipi101-M101014-BE45-A1 -j8 -l rk3588_firefly_itx_3588j-userdebug./FFTools/mkupdate/mkupdate.sh -l rk3588_firefly_itx_3588j-userdebug
分步编译编译前执行如下命令配置环境变量:export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
[*]编译 kernel:
cd ~/path/to/sdk/kernel-5.10export PATH=../prebuilts/clang/host/linux-x86/clang-r416183b/bin:$PATHalias msk='make CROSS_COMPILE=aarch64-linux-gnu- LLVM=1 LLVM_IAS=1'msk ARCH=arm64firefly_defconfig android-11.config pcie_wifi.configmsk ARCH=arm64 BOOT_IMG=../rockdev/Image-rk3588_firefly_itx_3588j/boot.img rk3588-firefly-itx-3588j.img -j8
此问题由于是ubuntu18.04 版本lz4版本太低导致,修改方式如下
1.拷贝附件lz4文件到对应目录
sudo cp lz4 /usr/bin/lz4
lz4.zip
2.编译Android下面的lz4
mmm external/lz4/
sudo cp out/host/linux-x86/bin/lz4 /usr/bin/lz4
本帖最后由 ranfish 于 2022-3-15 09:06 编辑
谢谢,已经解决
PS:
. build/envsetup.sh
mmm external/lz4/
还是会报错,懒得去解决
按这个思路,我是直接
git clone https://github.com/lz4/lz4.git
make
sudo make install
make install lz4,mmm external/lz4/还是报一样的错,这个有遇到的过吗
make install lz4也没有解决该问题 这个有遇到过 我也遇到了同样的问题 谢谢
页:
[1]