Building AOSP / Android failed

Hi Team, AOSP building has been failed after after 64% completion, I was using manifest “rockpi-box-9.0 -m rockpi-release.xml” & docker to build the source, I stuck with below error any help :wink:

Following steps as per -> https://wiki.radxa.com/Rockpi4/rockpi-android9

Please make -j1 to found the real problem log.

1 Like

Successfully done the AOSP build with make -j1… and generate gpt image as below …
e
]0;root@7d32fd2ad942: /home/rockpi4-android-p/rockdevaroot@7d32fd2ad942:/home/rockpi4-android-p/rockdev# ln -s Image-rk3399_box Image
ln: failed to create symbolic link ‘Image/Image-rk3399_box’: File exists
e]0;root@7d32fd2ad942: /home/rockpi4-android-p/rockdevaroot@7d32fd2ad942:/home/rockpi4-android-p/rockdev# ./android-gpt.sh
IMAGE_LENGTH:8920099
idbloader 64 16383 8.000000 MB
Warning: The resulting partition is not properly aligned for best performance.
uboot 16384 24575 4.000000 MB
trust 24576 32767 4.000000 MB
misc 32768 40959 4.000000 MB
dtb 40960 49151 4.000000 MB
dtbo 49152 57343 4.000000 MB
vbmeta 57344 59391 1.000000 MB
boot 59392 124927 32.000000 MB
recovery 124928 255999 64.000000 MB
backup 256000 485375 112.000000 MB
security 485376 493567 4.000000 MB
cache 493568 1542143 512.000000 MB
system 1542144 6785023 2560.000000 MB
metadata 6785024 6817791 16.000000 MB
vendor 6817792 7866367 512.000000 MB
oem 7866368 8914943 512.000000 MB
frp 8914944 8915967 0.500000 MB
userdata 8915968 8915967 0.000000 MB
Warning: The resulting partition is not properly aligned for best performance.
e]0;root@7d32fd2ad942: /home/rockpi4-android-p/rockdevaroot@7d32fd2ad942:/home/rockpi4-android-p/rockdev# ls
Image Image-rk3399 Image-rk3399_box afptool android-gpt.sh mkupdate.sh package-file readme.txt rkImageMaker unpack.sh
e]0;root@7d32fd2ad942: /home/rockpi4-android-p/rockdevaroot@7d32fd2ad942:/home/rockpi4-android-p/rockdev# cd Imaage
e]0;root@7d32fd2ad942: /home/rockpi4-android-p/rockdev/Imagearoot@7d32fd2ad942:/home/rockpi4-android-p/rockdev/Image# ls
Image-rk3399_box boot.img gpt.img kernel.img oem.img parameter.txt pcba_whole_misc.img resource.img trust.img vbmeta.img vendor.simg.img
MiniLoaderAll.bin dtbo.img idbloader.img misc.img oem.simg.img pcba_small_misc.img recovery.img system.simg.img uboot.img vendor.img
e]0;root@7d32fd2ad942: /home/rockpi4-android-p/rockdev/Imagearoot@7d32fd2ad942:/home/rockpi4-android-p/rockdev/Image# ls -la
total 3434300
drwxr-xr-x 2 root root 4096 Sep 27 16:49 .
drwxr-xr-x 4 root root 4096 Sep 27 16:58 …
lrwxrwxrwx 1 root root 16 Sep 27 16:49 Image-rk3399_box -> Image-rk3399_box
-rw-r–r-- 1 root root 297294 Sep 27 03:03 MiniLoaderAll.bin
-rw-r–r-- 1 root root 20041728 Sep 27 15:31 boot.img
-rw-r–r-- 1 root root 600 Sep 26 19:17 dtbo.img
-rw-r–r-- 1 root root 4567090688 Sep 27 17:00 gpt.img
-rw-r–r-- 1 root root 163836 Sep 27 03:03 idbloader.img
-rw-r–r-- 1 root root 19744788 Sep 27 03:08 kernel.img
-rwxr-xr-x 1 root root 49152 Sep 26 19:21 misc.img
-rw-r–r-- 1 root root 536870912 Sep 27 15:44 oem.img
-rw-r–r-- 1 root root 225404 Sep 27 15:31 oem.simg.img
-rwxr-xr-x 1 root root 743 Sep 26 19:17 parameter.txt
-rw-r–r-- 1 root root 49152 Sep 26 19:21 pcba_small_misc.img
-rw-r–r-- 1 root root 49152 Sep 26 19:21 pcba_whole_misc.img
-rw-r–r-- 1 root root 35985408 Sep 27 15:31 recovery.img
-rw-r–r-- 1 root root 292864 Sep 27 03:10 resource.img
-rw-r–r-- 1 root root 1846857960 Sep 27 15:31 system.simg.img
-rw-r–r-- 1 root root 4194304 Sep 27 03:03 trust.img
-rw-r–r-- 1 root root 4194304 Sep 27 03:03 uboot.img
-rwxr-xr-x 1 root root 4096 Sep 26 19:17 vbmeta.img
-rw-r–r-- 1 root root 536870912 Sep 27 15:44 vendor.img
-rw-r–r-- 1 root root 222982268 Sep 27 15:31 vendor.simg.img
e]0;root@7d32fd2ad942: /home/rockpi4-android-p/rockdev/Imagearoot@7d32fd2ad942:/home/rockpi4-android-p/rockdev/Image#

used etcher to flash gpt.image into sd card…
the board is keeping rebooting. we are able to see the logo “Rockchip kernel” then it reboots again . Find Boot log

cd rockdev
rm Image-rk3399_box -rf
rm Image
cd ..
./mkimage.sh
cd rockdev
ln -s Image-rk3399_box Image
./android-gpt.sh
1 Like

Finally Done … it is working ! :wink: