rk3588 compile development environment preparation:
sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool \ expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support \ qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib unzip \ device-tree-compiler ncurses-dev \
1. Common compilation errors
Platform RK3588 is build OK, with new .config(make rk3588-ab_defconfig -j16)
/home//leezs/rk3588s/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
Mon May 30 11:11:26 HKT 2022
/home//leezs/rk3588s
Build uboot ok!
Start build kernel
/bin/sh: 1: ./scripts/: not found
/bin/sh: 1: ./scripts/: not found
[0;32m#### build completed successfully (42 seconds) ####[00m
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/
HOSTCC scripts/kconfig/
HOSTCC scripts/kconfig/
LEX scripts/kconfig/
/bin/sh: 1: flex: not found
make[3]: *** [scripts/kconfig/] Error 127
make[2]: *** [rockchip_defconfig] Error 2
make[1]: *** [__build_one_by_one] Error 2
make: *** [__sub-make] Error 2
[0;31m#### failed to build some targets (5 seconds) ####[00m
Build kernel failed!
Solution:
sudo apt-get install flex
2. Common compilation errors
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/
HOSTCC scripts/kconfig/
HOSTCC scripts/kconfig/
LEX scripts/kconfig/
YACC scripts/kconfig/.[ch]
/bin/sh: 1: bison: not found
make[3]: *** [scripts/kconfig/] Error 127
make[2]: *** [rockchip_defconfig] Error 2
make[1]: *** [__build_one_by_one] Error 2
make: *** [__sub-make] Error 2
#### failed to build some targets (3 seconds) ####
Build kernel failed!
Solution:
sudo apt-get install bison -y
3. Common compilation errors
FAILED: out/soong/.intermediates/external/guice/guice_munge_srcjar/gen/guice_munge.srcjar
rm -rf out/soong/.intermediates/external/guice/guice_munge_srcjar/gen && out/soong/host/linux-x86/bin/sbox --sandbox-path out/soongemp --manifest out/soong/.intermediates/external/guice/guice_munge_srcjar/
The failing command was run inside an sbox sandbox in temporary directory
out/soong/.temp/sbox/6c6df8b68c4e18f58c1366ddca3a64bf009d9659
The failing command line was:
zip -q --temp-path ${TMPDIR:-/tmp} external/guice/lib/build/ -O out/soong/.temp/sbox/6c6df8b68c4e18f58c1366ddca3a64bf009d9/out/guice_munge.srcjar -d *.class
bash: zip: command not found
Solution:
sudo apt-get install zip
4. Common compilation errors
/bin/bash: make_ext4fs: command not found
Solution:
sudo apt-get install android-tools-fsutils
This is the article about the preparation of the rk3588 development environment in Android. For more related android rk3588 development content, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!