Error in bringing up Android as Guest OS on IMX8QM Board using 10.0.0_2.4.0 Android

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Error in bringing up Android as Guest OS on IMX8QM Board using 10.0.0_2.4.0 Android

1,900件の閲覧回数
praveenvemula
Contributor I

Hello,

MMC partition table gets corrupted when we flash u-boot-imx8qm-xen-dom0.imx on SD Card bootloader 0 partition.

Environment:

1. Android Auto 10.0.0_2.4.0 pre-built package used as android image.

2. IMX 5.4.24 - IMX-IMAGE_FULL image built using yocto (xen enabled)

steps followed:

Scenario 1:

1. Flash SD card with IMX-IMAGE_FULL wic file.

2. flashed u-boot-imx8qm-xen-dom0.imx to SD card using command,

"sudo dd if=u-boot-imx8qm-xen-dom0.imx of=/dev/sdx seek=32 bs=1k && sync"

3.Copied spl-imx8qm-xen.bin and xen into FAT partition of SD card

4. Flashed eMMC with android image. (Switch Mode: Serial)

sudo ./uuu_imx_android_flash.sh -f imx8qm -d xen.

 

Observation:

Run CMD11 1.8V switch
switch to partitions #0, OK
mmc1 is current device
Run CMD11 1.8V switch
** No partition table - mmc 1 **
** No partition table - mmc 1 **
Booting from net ...
ethernet@5b040000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@5b040000

 

We notice, u-boot-imx8qm-xen-dom0.imx erasing the mmc 1 partition table. 

Pls suggest if there correction in order to follow or build versions or packages to use.

Thanks in advance for your support.

 

 

0 件の賞賛
返信
6 返答(返信)

1,840件の閲覧回数
praveenvemula
Contributor I

Hello,

 

We noticed, while board coming up, first 512 bytes are getting corrupted..

Is there fix to to it ?

Thanks in advance.

 

0 件の賞賛
返信

1,827件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @praveenvemula,

I hope you are doing well.

Please make sure if the sd card partition is causing this issue, one can try the below command to download the image into the sd card.
$ sudo ${MY_ANDROID}/device/nxp/common/tools/imx-sdcardpartition.sh -f <soc_name> /dev/sdX

From the logs, it is seen that one should check the device tree blob files.
FDT_ERR_BADMAGIC: Given "device tree" appears not to be a device tree at all - it is missing the flattened device tree magic number.

It is seen that u-boot is trying to find the image but is not able to find the image.

I have a query to ask.
Can you please share via what medium board bringing up, emmc or sdcard? when these 512 bytes are missing.

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信

1,823件の閲覧回数
praveenvemula
Contributor I

Hi @Dhruvit ,

 

Thanks for response. Could please help us to find this file imx-sdcardpartition.sh. could not find this under android source code / build package.

 

Regards,

Praveen

0 件の賞賛
返信

1,809件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @praveenvemula,

I hope you are doing well.

Earlier the command for sd card partition was for the android source code, I apologize for that
Please accept my apology.

The image that should be used for partition-table-28GB.img for 32 GB SD Card.

Please refer to section 5.1.2
https://www.nxp.com/docs/en/user-guide/Android_Auto_User's_Guide.pdf

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信

1,879件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @praveenvemula,

I hope you are doing well.

Please make sure, to check with the below-given command whether the partition is made properly or not on the sd card.
sudo fdisk /dev/sdx

one should follow the correct order to work with multiple OS as mentioned below.

To boot dual Linux Kernel Distributions, partition the SD card (>=16 GB) with 3 partitions:
• The first FAT partition holds "xen", "Image", and "fsl-imx8qm-mek-dom0.dtb".
• The second and third partitions hold Linux Kernel distributions for Dom0 and DomU.
• Burn imx-boot-imx8qmmek-sd.bin-flash to the SD card offset 32 KB.

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信

1,875件の閲覧回数
praveenvemula
Contributor I

Hi Dhruvit,

 

Thanks for quick response.

We are trying to bring Android as Guest OS.

We followed the steps as per Android quick start guide section 3.3

using uuu_imx_android_flash.sh script we tried to flash image to SD card. After placing card on IMX board, we are seeing below error,

 

=> setenv domu-android-auto yes
=> run xenmmcboot
** No partition table - mmc 1 **
** No partition table - mmc 1 **
** No partition table - mmc 1 **
** No partition table - mmc 1 **
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
Bad Linux ARM64 Image magic!

when we checked mmc part, it showed,

=> mmc part
## Unknown partition table type 0

 

Pls suggest if we are missing something.

 

Regards,

Praveen

 

0 件の賞賛
返信