iMX8mq not bootingUp with latest Android 13.0.0_2.0.0 (L6.1.22_2.0.0 BSP)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX8mq not bootingUp with latest Android 13.0.0_2.0.0 (L6.1.22_2.0.0 BSP)

1,356 Views
sow
Contributor I

Hi NXP Team,

Recently downloaded Android 13.0.0_2.0.0 source code and tried to bootup imx8mq with the images built from 13.0.0_2.00 source code. During kernel bootup, getting error and reboots continuously after an error. Looking forward for an input to resolve bootup issue.

1. Bootup with SD Card

1.1  Flashed using  imx-sdcard-partition.sh

cmd - sudo ./imx-sdcard-partition.sh -f imx8mq -c 28 /dev/sda

During bootup, getting below error (Failed to read fstab from dt) and reboots occurs after an error.

-------------------------------------------------------------------------------------------

[ 1.493699][ T1] No soundcards found.
[ 1.497935][ T1] Warning: unable to open an initial console.
[ 1.504879][ T1] Freeing unused kernel memory: 2496K
[ 1.536194][ T1] Run /init as init process
[ 1.541539][ T1] init: init first stage started!
[ 1.545408][ T1] init: alias lines in modules.alias must have 3 entries, not 4
[ 1.551572][ T1] init: alias lines in modules.alias must have 3 entries, not 4
[ 1.560744][ T1] init: Loading module /lib/modules/mxc-clk.ko with args ''
[ 1.566136][ T1] mxc_clk: disagrees about version of symbol module_layout
[ 1.572847][ T1] init: Failed to insmod '/lib/modules/mxc-clk.ko' with args '': Exec format error
[ 1.581978][ T1] init: LoadWithAliases was unable to load mxc_clk
[ 1.588928][ T1] init: Copied ramdisk prop to /second_stage_resources/system/etc/ramdisk/build.prop
[ 1.597721][ T1] init: /first_stage_ramdisk/system/bin/snapuserd already exists and it can be executed
[ 1.607562][ T1] init: Switching root to '/first_stage_ramdisk'
[ 1.614181][ T1] init: [libfs_mgr]ReadFstabFromDt(): failed to read fstab from dt
[ 11.722901][ T1] init: Wait for partitions returned after 10010ms
[ 11.726523][ T1] init: bool android::init::BlockDevInitializer::InitDevices(std::set<std::string>): partition(s) not found after polling timeout: boot_a, dtbo_a, init_boot_a, metadata, super, vbmeta_a
[ 11.744800][ T1] init: Failed to mount required partitions early ...
[ 11.752287][ T1] init: InitFatalReboot: signal 6
[ 11.757681][ T1] init: #00 pc 0000000000304580 /init
[ 11.761461][ T1] init: Reboot ending, jumping to kernelcontinously
[ 11.766929][ T1] kvm: exiting hardware virtualization[284680.586615] 

---------------------------------------------------------------------------------

 

1.2  Flashed using uuu_imx_android_flash.sh (SDcard on Board)

Tried to flash images to SDcard(32GB card connected to board) using uuu_imx_android_flash.sh script (sudo ./uuu_imx_android_flash.sh -f imx8mq -a -e -c 28 -t sd) and during bootup observed below error:

------------------------------------Error Logs--------------------------------

[ 2.564655][ T19] Alternate GPT is invalid, using primary GPT.
[ 2.651022][ T1] imx-dcss 32e00000.display-controller: assigned reserved memory node secure_mm@f8000000
[ 2.655087][ T19] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16
[ 2.659836][ T1] imx-dcss 32e00000.display-controller: dcss: failed to get response of echo. Use normal mode.
[ 2.670215][ T19] mmcblk0boot0: mmc0:0001 DG4016 4.00 MiB
[ 2.693814][ T1] cdns-mhdp-imx 32c00000.hdmi: lane-mapping 0xe4
[ 2.700570][ T19] mmcblk0boot1: mmc0:0001 DG4016 4.00 MiB
[ 2.704772][ T1] [drm] Both HDCP 1.4 and 2.2 are enabled
[ 2.705783][ T1] imx-dcss 32e00000.display-controller: bound 32c00000.hdmi (ops cdns_mhdp_imx_ops [cdns_mhdp_imx])
[ 2.710537][ T19] mmcblk0rpmb: mmc0:0001 DG4016 4.00 MiB, chardev (507:0)
[ 2.714074][ T1] [drm] Initialized imx-dcss 1.0.0 20190917 for 32e00000.display-controller on minor 0
[ 2.823092][ T1] __power_supply_register: Expected proper parent device for 'battery'
[ 2.831724][ T1] __power_supply_register: Expected proper parent device for 'usb'
[ 2.840593][ T1] Registered IR keymap rc-empty
[ 2.845408][ T1] rc rc0: gpio_ir_recv as /devices/platform/ir-receiver/rc/rc0
[ 2.853043][ T1] rc rc0: lirc_dev: driver gpio_ir_recv registered at minor = 0, raw IR receiver, no transmitter
[ 2.863536][ T1] input: gpio_ir_recv as /devices/platform/ir-receiver/rc/rc0/input1
[ 2.873913][ T1] imx8_isi_hw: module is from the staging directory, the quality is unknown, you have been warned.
[ 2.885271][ T1] imx8_isi_capture: module is from the staging directory, the quality is unknown, you have been warned.
[ 2.897658][ T1] imx8_isi_mem2mem: module is from the staging directory, the quality is unknown, you have been warned.
[ 2.909817][ T1] imx8_mipi_csi2_sam: module is from the staging directory, the quality is unknown, you have been warned.
[ 2.922177][ T1] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
[ 2.937229][ T84] imx-sdma 302c0000.dma-controller: firmware found.
[ 2.943946][ T84] imx-sdma 302c0000.dma-controller: loaded firmware 4.6
[ 2.953305][ T49] imx-sdma 30bd0000.dma-controller: firmware found.
[ 8.901571][ C3] random: crng init done
[ 8.914126][ T1] init: [libfs_mgr]Created logical partition system_a on device /dev/block/dm-0
[ 8.923136][ T1] init: [libfs_mgr]Skipping zero-length logical partition: system_b
[ 8.934146][ T1] init: [libfs_mgr]Created logical partition system_dlkm_a on device /dev/block/dm-1
[ 8.943537][ T1] init: [libfs_mgr]Skipping zero-length logical partition: system_dlkm_b
[ 8.954099][ T1] init: [libfs_mgr]Created logical partition system_ext_a on device /dev/block/dm-2
[ 8.963369][ T1] init: [libfs_mgr]Skipping zero-length logical partition: system_ext_b
[ 8.973589][ T1] init: [libfs_mgr]Created logical partition vendor_a on device /dev/block/dm-3
[ 8.982519][ T1] init: [libfs_mgr]Skipping zero-length logical partition: vendor_b
[ 8.992119][ T1] init: [libfs_mgr]Created logical partition vendor_dlkm_a on device /dev/block/dm-4
[ 9.001491][ T1] init: [libfs_mgr]Skipping zero-length logical partition: vendor_dlkm_b
[ 9.026154][ T1] kvm: exiting hardware virtualization
[ 9.095668][ T1] reboot: Restarting system with command 'bootloader'

------------------------------------END of Error Logs--------------------------------

 

2. BootUp with EMMC

Tried to flash images to EMMC using uuu_imx_android_flash.sh script (sudo ./uuu_imx_android_flash.sh -f imx8mq -a -e -t emmc) and during bootup observed below error:

------------------------------------Error Logs--------------------------------

In boota get fastboot lock status error. Set lock status
avb_slot_verify.c:794: ERROR: boot_a: Error verifying vbmeta image: OK_NOT_SIGNED
avb_footer.c:22: ERROR: Footer magic is incorrect.
avb_vbmeta_image.c:46: ERROR: Magic is incorrect.
avb_slot_verify.c:807: ERROR: init_boot_a: Error verifying vbmeta image: invalid vbmeta header
fsl_bootctrl.c:1341: ERROR: Error verifying slot _a with result ERROR_INVALID_METADATA - setting unbootable.
avb_slot_verify.c:481: ERROR: boot_b: Hash of data does not match digest in descriptor.
fsl_bootctrl.c:1341: ERROR: Error verifying slot _b with result ERROR_VERIFICATION - setting unbootable.
No bootable slots found.
Writing A/B metadata to disk.
verify FAIL, state: LOCK
^@ý^

------------------------------------END of Error Logs--------------------------------

 

NOTE: Please note that with Android 13.0.0_2.0.0 prebuilt idemo mages, able to bootup completely without any issue. And also observed that kernel version (L6.1.25) is different in prebuilt demo images.

0 Kudos
Reply
5 Replies

1,322 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Did the source code build correctly? because the fail you reported is due to bad image or not a complete image, I can not reproduce the issue on my side I teste the build and it works, please check it. if the problem persiste I will escalate the issue to our developers team.

Regards

0 Kudos
Reply

1,297 Views
sow
Contributor I

@Bio_TICFSL 

Thank you for your reply.  As mentioned if issue is not reproducible at your end, please let us know did you tried with images built from source code manually.  

Please note that demo images are working for me as well. 

Following steps we followed again and issue still persists.

1. Downloaded Android 13.0.0_2.0.0 (L6.1.22_2.0.0 BSP)   source code and tried to build it by executing following command and encountered an error as below. PFA for full build log (build-log_error.txt) 

./imx-make.sh -j4 2>&1 | tee build-log.txt

--------------------------------------------------Error----------------------------------------------------

[ 83% 131509/158009] Copy: out/target/common/obj/JAVA_LIBRARIES/volley_intermediates/classes-header.jar
[ 83% 131510/158009] //art/build/boot:art-bootclasspath-fragment dexpreopt art jars arm64 [common apex31]
FAILED: out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-apache-xml.art out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-apache-xml.oat out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-apache-xml.vdex out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-bouncycastle.art out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-bouncycastle.oat out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-bouncycastle.vdex out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-core-libart.art out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-core-libart.oat out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-core-libart.vdex out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-okhttp.art out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-okhttp.oat out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-okhttp.vdex out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot.art out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot.invocation out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot.oat out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot.vdex out/soong/evk_8mq/dex_artjars_unstripped/android/apex/art_boot_images/javalib/arm64/boot-apache-xml.oat out/soong/evk_8mq/dex_artjars_unstripped/android/apex/art_boot_images/javalib/arm64/boot-bouncycastle.oat out/soong/evk_8mq/dex_artjars_unstripped/android/apex/art_boot_images/javalib/arm64/boot-core-libart.oat out/soong/evk_8mq/dex_artjars_unstripped/android/apex/art_boot_images/javalib/arm64/boot-okhttp.oat out/soong/evk_8mq/dex_artjars_unstripped/android/apex/art_boot_images/javalib/arm64/boot.oat
mkdir -p out/soong/evk_8mq/dex_artjars_unstripped/android/apex/art_boot_images/javalib/arm64 && rm -f out/soong/evk_8mq/dex_artjars_unstripped/android/apex/art_boot_images/javalib/arm64/*.art out/soong/evk_8mq/dex_artjars_unstripped/android/apex/art_boot_images/javalib/arm64/*.oat out/soong/evk_8mq/dex_artjars_unstripped/android/apex/art_boot_images/javalib/arm64/*.invocation && rm -f out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/*.art out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/*.oat out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/*.invocation && ANDROID_LOG_TAGS="*:e" out/host/linux-x86/bin/dex2oatd --avoid-storing-invocation --write-invocation-to=out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot.invocation --runtime-arg -Xms64m --runtime-arg -Xmx64m --profile-file=out/soong/evk_8mq/dex_artjars/boot.prof --dirty-image-objects=frameworks/base/config/dirty-image-objects --base=0x70000000 --preloaded-classes=art/build/boot/preloaded-classes --dex-file=out/soong/evk_8mq/dex_artjars_input/core-oj.jar --dex-file=out/soong/evk_8mq/dex_artjars_input/core-libart.jar --dex-file=out/soong/evk_8mq/dex_artjars_input/okhttp.jar --dex-file=out/soong/evk_8mq/dex_artjars_input/bouncycastle.jar --dex-file=out/soong/evk_8mq/dex_artjars_input/apache-xml.jar --dex-location=/apex/com.android.art/javalib/core-oj.jar --dex-location=/apex/com.android.art/javalib/core-libart.jar --dex-location=/apex/com.android.art/javalib/okhttp.jar --dex-location=/apex/com.android.art/javalib/bouncycastle.jar --dex-location=/apex/com.android.art/javalib/apache-xml.jar --generate-debug-info --generate-build-id --image-format=lz4hc --oat-symbols=out/soong/evk_8mq/dex_artjars_unstripped/android/apex/art_boot_images/javalib/arm64/boot.oat --strip --oat-file=out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot.oat --oat-location=out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/boot.oat --image=out/soong/evk_8mq/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot.art --instruction-set=arm64 --android-root=out/empty --no-inline-from=core-oj.jar --force-determinism --abort-on-hard-verifier-error --instruction-set-variant=cortex-a53 --instruction-set-features=default --generate-mini-debug-info --generate-mini-debug-info || ( echo 'ERROR: Dex2oat failed to compile a boot image.It is likely that the boot classpath is inconsistent.Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors.' ; false ) # hash of input list: 5efe6ebf09241318496e4660d01208d384eee1319df461efff9b89756eb6a5fd
dex2oatd F 08-25 20:47:34 1067230 1067230 mem_map_arena_pool.cc:65] Check failed: map.IsValid() Failed anonymous mmap((nil), 131072, 0x3, 0x22, -1, 0): Cannot allocate memory. See process maps in the log.
Runtime aborting...
All threads:

--------------------------------------------------------------------------------------------------------------

2. Executed following commands and build was successful

./imx-make.sh bootloader kernel -j4 2>&1 | tee build-log.txt

make -j4 2>&1 | tee -a build-log.txt

3.  Issue still persists by continuously rebooting as mentioned earlier .

0 Kudos
Reply

1,291 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The issue is due to your package error, besides you have problem with your memory this porblem are due to your host pc, i can not do anything, sorry.

 

Regards

0 Kudos
Reply

1,283 Views
sow
Contributor I

@Bio_TICFSL ,

Thank you for an updates.

But build was succesfull with the following commands and images were generated.

./imx-make.sh bootloader kernel -j4 2>&1 | tee build-log.txt

make -j4 2>&1 | tee -a build-log.txt

 

FYI:  Will try again once host pc memory is upgraded and keep posted.

 

Thank you 

0 Kudos
Reply

1,251 Views
sow
Contributor I

@Bio_TICFSL ,

Thank you for the support.

I upgraded host machine memory(2TB extra) and tried to compile Android 13.0.0_2.0.0 (L6.1.22_2.0.0 BSP) by executing "./imx-make.sh -j4 2>&1 | tee build-log.txt" and issue(build error) still exist.

 

Please note the following points:

1. Build is successfull with the following commands, but device continuosly reboots while trying to bring up(mentioned at the begenning) 

./imx-make.sh bootloader kernel -j4 2>&1 | tee build-log.txt

make -j4 2>&1 | tee -a build-log.txt

2.  Comment from @Bio_TICFSL  - "The issue is due to your package error, besides you have problem with your memory this porblem are due to your host pc, i can not do anything, sorry."

--- If it is host pc issue, then wondering how we were able to compile "Android 13.0.0_1.0.0 (L5.15.71_2.2.0 BSP)" source code and bring up imx8mq eval board successfully. 

Please let us know the package error in detail if possible.

Will be looking forward for further inputs.

Thank You!

 

0 Kudos
Reply