I downloaded the source code,when I try to compile, I got this error:
@ubuntu:~/rk356x_linux5.10$ ./build.sh kernel
processing option: kernel
============Start building kernel============
TARGET_ARCH =arm64 TARGET_KERNEL_CONFIG =rockchip_linux_defconfig TARGET_KERNEL_DTS =rk3566-evb2-lp4x-v10-linux TARGET_KERNEL_CONFIG_FRAGMENT =
==========================================
# # No change to .config # CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h LZ4C arch/arm64/boot/Image.lz4
Incorrect parameters Usage : lz4 [arg] [input] [output] 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[2]: *** [arch/arm64/boot/Image.lz4] Error 1 make[2]: *** Deleting file 'arch/arm64/boot/Image.lz4' arch/arm64/Makefile:170: recipe for target 'Image.lz4' failed make[1]: *** [Image.lz4] Error 2 make[1]: *** Waiting for unfinished jobs.... arch/arm64/Makefile:214: recipe for target 'rk3566-evb2-lp4x-v10-linux.img' failed make: *** [rk3566-evb2-lp4x-v10-linux.img] Error 2 ERROR: Running build_kernel failed! ERROR: exit code 2 from line 663: make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS
Cause: The version of lz4 delivered with the compilation system is too early.
Solution: update to V1.8.3 or later.
lz4 -v //check the compiler lz4 version
sudo cp out/host/linux-x86/bin/lz4 /usr/bin/lz //copy lz4 from the Android source directory to override the compiler's