Could you please help me to fix issues I faced while building Android_rk12.1 for Radxa ROCK 5B. I am building an Android in order to get support of WiFi RTL8852BE with 10ec:b852 and custom screen resolutions.
The issues are:
error: Cannot link file build/bazel/bazel.BUILD to … rock-android12/BUILD
Build sandboxing disabled due to nsjail error.
make[1]: *** Documentation/Kbuild: Is a directory. Stop.
#1 During a repository cloning I got “error: Cannot link file build/bazel/bazel.BUILD to … rock-android12/BUILD”:
rock-android12 % repo init -u https://github.com/radxa/manifests.git -b Android12_RK3588_Radxa_rk12 -m rockchip-s-release.xml
rock-android12 % repo sync -d --no-tags -j4
Fetching: 100% (1083/1083), done in 4m23.376s
error: Cannot link file build/bazel/bazel.BUILD to /Users/Andrei_Bryleuski/Documents/Personal/RockPI5B/rock-android12/BUILD
error: Cannot link file build/bazel/bazel.BUILD to /Users/Andrei_Bryleuski/Documents/Personal/RockPI5B/rock-android12/BUILD
Checking out: 100% (1083/1083), done in 17.691s
repo sync has finished successfully.
#2 “lunch RadxaRock5B-userdebug” & “./build.sh -UACKup” print: Build sandboxing disabled due to nsjail error.
#3 “./build.sh -UACKup” failed with:
Build uboot ok!
Start build kernel
make[1]: *** Documentation/Kbuild: Is a directory. Stop.
Makefile:1924: recipe for target ‘_clean_Documentation’ failed
make: *** [_clean_Documentation] Error 2
#### failed to build some targets (18 seconds) ####
Build kernel failed!
Yes already added to my firmware.
But only the A8 from Allnet has working wifi, bluetooth.
The Lenova m2 wifi card still has no wifi, users reported even after that change.
It seems it can only work on Linux 6.x kernel with the rw89 wifi driver and not Android that uses a 5.10 kernel. I asked Realtek, Rockchip & Radxa a several weeks ago and no one came back to me so it is probably not possible to get it working.
I have RTL8852BE working in Android, but it required to manually load kernel module and do stop/start.
Currently stacked with the following error, could you please help me to find a solution for the issue below:
AR drivers/net/wireless/built-in.a
AR drivers/net/built-in.a
AR drivers/built-in.a
arch/arm64/Makefile:214: recipe for target ‘rk3588-rock-5b.img’ failed
make: *** [rk3588-rock-5b.img] Error 2
arch/arm64/Makefile:214 is: $(Q)$(MAKE) rockchip/$*.dtb Image.lz4 modules
Looks like cpio was missed.
Currently faced with another issue:
LZ4C arch/arm64/boot/Image.lz4
Incorrect parameters
Usage :
/usr/bin/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
arch/arm64/Makefile:214: recipe for target 'rk3588-rock-5b.img' failed
make: *** [rk3588-rock-5b.img] Error 2
I use Ubuntu 18.04 - it has outdated lz4 and therefore instead of doing apt-get install liblz4-tool - it is required to download sources and compile manually:
wget https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.zip
unzip v1.9.4.zip
cd 1.9.4 && make && make install
Looks like due to:
dex2oatd I 04-24 16:44:59 26806 26806 method_verifier.cc:5171] Soft verification failures in void java.text.Bidi.(java.lang.String, int)
and
dex2oatd I 04-24 16:44:59 26806 26806 method_verifier.cc:5171] Soft verification failures in int java.text.CollationElementIterator.primaryOrder(int)
dex2oatd I 04-24 16:44:59 26806 26806 method_verifier.cc:5171] int java.text.CollationElementIterator.primaryOrder(int): [0x0] (possibly) illegal class access: 'Precise Reference: java.text.CollationElementIterator' -> 'Unresolved Reference: android.icu.text.CollationElementIterator'
Make sure you are building with Java 8.
I use Ubuntu 22.04 and installed the build packages.
Older Ubuntu might give problems or when using a VM on a MAC.