Hello NXP Community,
I am trying to create the image of Android Q10.0.0_1.0.0 for IMX8M development kit.
I am new to this kind of stuff, but eager to learn.
Flashing the prebuilt image of Q10.0.0_1.0.0 works.
But I cannot get to build the image from source code.
I followed the steps mentioned in the Android User Guide.
It fails with the error:
...
[100% 157/157] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
Killed
11:20:38 soong bootstrap failed with: exit status 1
ninja: build stopped: subcommand failed.
Some of warnings I also received:
1) "make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule."
2) "WARNING '/home/mihai-gisca/Projects/1370/sources/Q10.0.0_1.0.0/android_build/vendor/nxp-opensource/uboot-imx/lpddr4_pmu_train_1d_imem.bin' not found, resulting binary is not-functional"
I found this file not in .../uboot-imx folder, but in .../imx-mkimage/iMX8M.
3) "Warning (unit_address_vs_reg): Node /images/uboot@1 has a unit name, but no reg property
Warning (unit_address_vs_reg): Node /images/fdt@1 has a unit name, but no reg property
Warning (unit_address_vs_reg): Node /images/atf@1 has a unit name, but no reg property
Warning (unit_address_vs_reg): Node /configurations/config@1 has a unit name, but no reg property"
4) "Android GCC has been deprecated in favor of Clang, and will be removed from
Android in 2020-01 as per the deprecation plan in:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md"
The Android User Guide specifies that the GCC is deprecated and Clang has to be used. But I do not know how to
do it.
and other warnings.
OS: Ubuntu 18.04.4 LTS x64 as guest OS
Appreciate your efforts.
Best regards,
Mihai Gîsca
Solved! Go to Solution.
Hello there!
Thank you for feedback.
Well, my problem was actually solved by adding more RAM.
I am aware that for building images from source code, a minimum of 16 GB of RAM/swap is required (as per documentation).
With my environment, I could only assign 5 GB of RAM to the VM. After some HW changes, I was able to assign 9 GB of RAM
to the VM and the image has been built without errors.
I have another question though. Is it the right way of executing the flashing using the command:
sudo ./uuu uuu_imx_android_flash.sh -f imx8mm -a -e -d mipi-panel
The thing is I receive the following error:
sudo: ./uuu: command not found
Best regards,
Mihai Gîsca
Hello Mihai,
This is an error from your host, try to remove the gcc 9 and installs again with CLANG support
Regards
Hello again.
The problem with the command was that it did not have the execution permission.
I now face the following error when executing the command and turning on the
board in sdp mode:
1:1 1/ 2 [Can find validate IVT header ] SDP: boot -f "./uuu_imx_a
Any ideas?
Best regards,
Mihai
Hello there!
Thank you for feedback.
Well, my problem was actually solved by adding more RAM.
I am aware that for building images from source code, a minimum of 16 GB of RAM/swap is required (as per documentation).
With my environment, I could only assign 5 GB of RAM to the VM. After some HW changes, I was able to assign 9 GB of RAM
to the VM and the image has been built without errors.
I have another question though. Is it the right way of executing the flashing using the command:
sudo ./uuu uuu_imx_android_flash.sh -f imx8mm -a -e -d mipi-panel
The thing is I receive the following error:
sudo: ./uuu: command not found
Best regards,
Mihai Gîsca