i.MX8MQ booting error?

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

i.MX8MQ booting error?

3,178件の閲覧回数
byunggukchoi
Contributor II

I'm using an IMX8MQ EVB and trying to flash new binary including bootloader, kernel and fs to the target.

After flashing Linux images compiled with yocto source code according to the "4.4.1.2 Using eMMC" of "i.MX Linux User's Guide", the following errors are occurred on booting the IMX8MQ EVB board.

What should I do to fix it?

U-Boot 2017.03 (Jan 24 2018 - 01:18:13 +0800)

CPU:   Freescale i.MX8MQ rev2.0 at 1000 MHz
Reset cause: POR
Model: Freescale i.MX8MQ EVK
DRAM:  3 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
flash target is MMC:0
Net:
Warning: ethernet@30be0000 using MAC address from ROM
eth0: ethernet@30be0000
can't find partition: misc, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='tos' start=0 len=2047
idx 2, ptn 0 name='bootloader0' start=66 len=2046
idx 3, ptn 1 name='mmcsda1' start=16384 len=131072
idx 4, ptn 2 name='mmcsda2' start=147456 len=163840
cannot get the partion info for misc
Cannot find partition 4080
do_raw_read failed, ret 1
read_bootctl, bcb_rw_block read failed
read command failed
Fastboot: Normal
Hit any key to stop autoboot:  0
can't find partition: fbmisc, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='tos' start=0 len=2047
idx 2, ptn 0 name='bootloader0' start=66 len=2046
idx 3, ptn 1 name='mmcsda1' start=16384 len=131072
idx 4, ptn 2 name='mmcsda2' start=147456 len=163840
cannot get the partion info for fbmisc
fastboot_get_lock_stat: error in get mmc part
can't find partition: misc, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='tos' start=0 len=2047
idx 2, ptn 0 name='bootloader0' start=66 len=2046
idx 3, ptn 1 name='mmcsda1' start=16384 len=131072
idx 4, ptn 2 name='mmcsda2' start=147456 len=163840
fsl_read_from_partition_multi: no misc partition
avb_ab_flow.c:99: ERROR: Error reading A/B metadata.
avb_ab_flow.c:178: ERROR: I/O error while loading A/B metadata.
can't find partition: misc, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='tos' start=0 len=2047
idx 2, ptn 0 name='bootloader0' start=66 len=2046
idx 3, ptn 1 name='mmcsda1' start=16384 len=131072
idx 4, ptn 2 name='mmcsda2' start=147456 len=163840
fsl_write_to_partition: no misc partition
avb_ab_flow.c:128: ERROR: Error writing A/B metadata.
 verify FAIL, state: UNLOCK
can't find partition: misc, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='tos' start=0 len=2047
idx 2, ptn 0 name='bootloader0' start=66 len=2046
idx 3, ptn 1 name='mmcsda1' start=16384 len=131072
idx 4, ptn 2 name='mmcsda2' start=147456 len=163840
fsl_read_from_partition_multi: no misc partition
avb_ab_flow.c:99: ERROR: Error reading A/B metadata.
boota: no bootable slot

ラベル(3)
2 返答(返信)

2,016件の閲覧回数
kvk0422
Contributor II

Hi, 

We are also facing same problem. 

U-Boot SPL 2017.03 (Apr 11 2018 - 10:04:36)
PMIC: PFUZE100 ID=0x10
start to config phy: p0=3200mts, p1=667mts with 1D2D training
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
config to do 3200 1d training.
Training PASS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
config to do 3200 2d training.
Training PASS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
pstate=1: set dfi clk done done
Training PASS
Load 201711 PIE
Normal Boot
Trying to boot from MMC1


U-Boot 2017.03 (Apr 11 2018 - 10:04:36 +0800)

CPU: Freescale i.MX8MQ rev2.0 1500 MHz (running at 1000 MHz)
CPU: Commercial temperature grade (0C to 95C) at 41C
Reset cause: POR
Model: Freescale i.MX8MQ EVK
DRAM: 3 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
In: serial
Out: serial
Err: serial

BuildInfo:
- ATF 6a83ae0
- U-Boot 2017.03

flash target is MMC:0
Net:
Warning: ethernet@30be0000 using MAC address from ROM
eth0: ethernet@30be0000
can't find partition: misc, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='tos' start=0 len=2047
idx 2, ptn 0 name='bootloader0' start=66 len=4094
idx 3, ptn 1 name='mmcsda1' start=20480 len=1024000
idx 4, ptn 2 name='mmcsda2' start=1228800 len=29548544
cannot get the partion info for misc
Cannot find partition 4080
do_raw_read failed, ret 1
read_bootctl, bcb_rw_block read failed
read command failed
Fastboot: Normal
Hit any key to stop autoboot: 0
can't find partition: fbmisc, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='tos' start=0 len=2047
idx 2, ptn 0 name='bootloader0' start=66 len=4094
idx 3, ptn 1 name='mmcsda1' start=20480 len=1024000
idx 4, ptn 2 name='mmcsda2' start=1228800 len=29548544
cannot get the partion info for fbmisc
fastboot_get_lock_stat: error in get mmc part
can't find partition: misc, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='tos' start=0 len=2047
idx 2, ptn 0 name='bootloader0' start=66 len=4094
idx 3, ptn 1 name='mmcsda1' start=20480 len=1024000
idx 4, ptn 2 name='mmcsda2' start=1228800 len=29548544
fsl_read_from_partition_multi: no misc partition
avb_ab_flow.c:99: ERROR: Error reading A/B metadata.
avb_ab_flow.c:178: ERROR: I/O error while loading A/B metadata.
can't find partition: misc, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='tos' start=0 len=2047
idx 2, ptn 0 name='bootloader0' start=66 len=4094
idx 3, ptn 1 name='mmcsda1' start=20480 len=1024000
idx 4, ptn 2 name='mmcsda2' start=1228800 len=29548544
fsl_write_to_partition: no misc partition
avb_ab_flow.c:128: ERROR: Error writing A/B metadata.
verify FAIL, state: UNLOCK
can't find partition: misc, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='tos' start=0 len=2047
idx 2, ptn 0 name='bootloader0' start=66 len=4094
idx 3, ptn 1 name='mmcsda1' start=20480 len=1024000
idx 4, ptn 2 name='mmcsda2' start=1228800 len=29548544
fsl_read_from_partition_multi: no misc partition
avb_ab_flow.c:99: ERROR: Error reading A/B metadata.
boota: no bootable slot

How to rectify this problem? 

0 件の賞賛
返信

2,016件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi ByungGuk

as i.MX8M EVK emmc is flashed by default with android image, seems for linux usage it should

be repartitioned, one can look at attached mfg tool scripts :

    <!-- create partition -->
    <CMD state="Updater" type="push" body="send" file="mksdcard.sh.tar">Sending partition shell</CMD>
    <CMD state="Updater" type="push" body="$ tar xf $FILE "> Partitioning...</CMD>
    <CMD state="Updater" type="push" body="$ sh mksdcard.sh /dev/mmcblk%mmc%"> Partitioning...</CMD>

    <!-- burn uboot -->
    <CMD state="Updater" type="push" body="$ dd if=/dev/zero of=/dev/mmcblk%mmc% bs=1k seek=4096 conv=fsync count=8">clear u-boot arg</CMD>
    <!-- access boot partition -->
    <CMD state="Updater" type="push" body="$ echo 0 > /sys/block/mmcblk%mmc%boot0/force_ro">access boot partition 1</CMD>
        <CMD state="Updater" type="push" body="send" file="files/imx-boot-imx8mqevk-sd.bin-flash_evk" ifdev="MX8MQ">Sending u-boot.bin</CMD>
    <CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk%mmc%boot0 bs=1k seek=33">write U-Boot to sd card</CMD>

..

"Manufacturing Toolkit for Linux L4.9.88_2.0.0 i.MX8MQ BSP"

https://www.nxp.com/webapp/Download?colCode=IMX6_L4.9.88_2.0.0_8MQ_MFG_TOOL&appType=license&location... 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信