i.mx8qm sd card boot error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.mx8qm sd card boot error

7,743 次查看
huatiqin
Contributor I

I use fsl-sdcard-partition.sh to make sdcard .my card is 8GB.

below is my common:

./fsl-sdcard-partition.sh -c 7 -f imx8qm /dev/sdc

The card is done without any error.

But when i boot the mek board, the kernel is down,because the verify FAIL, state: LOCK.

below is log :

Fastboot: Normal
Hit any key to stop autoboot:  0
In boota get fastboot lock status error. Set lock status
avb_ab_flow.c:30: ERROR: Magic is incorrect.
avb_ab_flow.c:106: ERROR: Error validating A/B metadata from disk. Resetting and writing new A/B metadata to disk.
avb_slot_verify.c:214: ERROR: boot_a: Hash of data does not match digest in descriptor.
avb_ab_flow.c:603: ERROR: Error verifying slot _a with result ERROR_VERIFICATION - setting unbootable.
avb_slot_verify.c:214: ERROR: boot_b: Hash of data does not match digest in descriptor.
avb_ab_flow.c:603: ERROR: Error verifying slot _b with result ERROR_VERIFICATION - setting unbootable.
avb_ab_flow.c:613: ERROR: No bootable slots found.
 verify FAIL, state: LOCK
dev_get_parent_platdata: null device
"Synchronous Abort" handler, esr 0x8600000e

i think this problem is about my making sdcard progress.

because it sometime occur the error and sometime is well

below is pass to boot kernel log:

In boota get fastboot lock status error. Set lock status
avb_ab_flow.c:30: ERROR: Magic is incorrect.
avb_ab_flow.c:106: ERROR: Error validating A/B metadata from disk. Resetting and writing new A/B metadata to disk.
avb_slot_verify.c:214: ERROR: boot_a: Hash of data does not match digest in descriptor.
avb_ab_flow.c:603: ERROR: Error verifying slot _a with result ERROR_VERIFICATION - setting unbootable.
verify OK, boot 'boot_b'

pls someone can help me to fix thie proble !

THX A LOT!

0 项奖励
回复
5 回复数

6,031 次查看
hongxingyu1982
Contributor III

Hello huatian

Do you fix this issue now ?

BR

0 项奖励
回复

6,031 次查看
hongxingyu1982
Contributor III

hi,你好

请问你这个问题后来解决了吗?

0 项奖励
回复

6,031 次查看
igorpadykov
NXP Employee
NXP Employee

Hi huati

sd partitioning is performed fine with mfg tool, one can try with it

Alpha / Beta BSPs for Microprocessors|NXP 

pastedImage_2.jpg

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

0 项奖励
回复

6,031 次查看
huatiqin
Contributor I

hi,igor

      i have used gdisk /dev/sdc common to see sdcard partition.

      the core type is "FFFF" ,this is unkown type ,does is right ?

      below is log:

      root@qiuhui:/home/qiuhui/lin/android_imx8/0929_2# gdisk /dev/sdc
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sdc: 15523840 sectors, 7.4 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): F293023D-93CD-4C9E-A568-AF0745103068
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 15523806
Partitions will be aligned on 2048-sector boundaries
Total free space is 872381 sectors (426.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1           16384          114687   48.0 MiB    FFFF  boot_a
   2          114688          212991   48.0 MiB    FFFF  boot_b
   3          212992         3358719   1.5 GiB     FFFF  system_a
   4         3358720         6504447   1.5 GiB     FFFF  system_b
   5         6504448         6512639   4.0 MiB     FFFF  misc
   6         6512640         6516735   2.0 MiB     FFFF  metadata
   7         6516736         6518783   1024.0 KiB  FFFF  presistdata
   8         6520832         6750207   112.0 MiB   FFFF  vendor_a
   9         6750208         6979583   112.0 MiB   FFFF  vendor_b
  10         6979584        14663679   3.7 GiB     FFFF  userdata
  11        14663680        14665727   1024.0 KiB  0700  fbmisc
  12        14667776        14669823   1024.0 KiB  FFFF  vbmeta_a
  13        14671872        14673919   1024.0 KiB  FFFF  vbmeta_b

thx a lot!

0 项奖励
回复

6,031 次查看
huatiqin
Contributor I

hi,igor

         thx , the tool i have been used !But the problem still sometimes occur the error !

         Did you have any other method to fix it ? The problem is too urgent!

         I think the make-sdcrad progress have something wrong ! Below is the log to use fsl-sdcard-partition.sh to make sdcard :

         

root@qiuhui:/home/qiuhui/lin/android_imx8/0929# ./fsl-sdcard-partition.sh -f imx8qm -b -F imx8qm -c 7 /dev/sdc
imx8qm bootloader offset is: 33
make gpt partition for android: partition-table-7GB.img
if=partition-table-7GB.img of=/dev/sdc bs=1k count=17 conv=fsyn
记录了17+0 的读入
记录了17+0 的写出
17408字节(17 kB)已复制,0.571704 秒,30.4 kB/秒

/dev/sdc:
re-reading partition table
GPT fdisk (gdisk) version 0.8.8

Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************

Command (? for help):
Recovery/transformation command (? for help): Warning! This will probably do weird things if you've converted an MBR to
GPT form and haven't yet saved the GPT! Proceed? (Y/N):
Recovery/transformation command (? for help): Warning! Secondary header is placed too early on the disk! Do you want to
correct this problem? (Y/N): Have moved second header and partition table to correct location.

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/sdc.
The operation has completed successfully.
formating android images
format_partition: userdata:/dev/sdc10 ext4
mke2fs 1.42.9 (4-Feb-2014)
/dev/sdc10 已经挂载;will not make a 文件系统 here!
erase_partition: presistdata : /dev/sdc7 1M
dd if=/dev/zero of=/dev/sdc7 bs=1048576 conv=fsync count=1
记录了1+0 的读入
记录了1+0 的写出
1048576字节(1.0 MB)已复制,0.17011 秒,6.2 MB/秒
erase_partition: fbmisc : /dev/sdc11 1M
dd if=/dev/zero of=/dev/sdc11 bs=1048576 conv=fsync count=1
记录了1+0 的读入
记录了1+0 的写出
1048576字节(1.0 MB)已复制,0.17278 秒,6.1 MB/秒
erase_partition: misc : /dev/sdc5 4M
dd if=/dev/zero of=/dev/sdc5 bs=1048576 conv=fsync count=4
记录了4+0 的读入
记录了4+0 的写出
4194304字节(4.2 MB)已复制,0.698656 秒,6.0 MB/秒
[BEN]partition_list:boot_b recovery_b recovery_b vendor_b vbmeta_b
flash_partition: boot-imx8qm.img ---> /dev/sdc2
dd if=boot-imx8qm.img of=/dev/sdc2 bs=10M conv=fsync
记录了4+1 的读入
记录了4+1 的写出
50331648字节(50 MB)已复制,9.73984 秒,5.2 MB/秒
flash_partition: system_raw.img ---> /dev/sdc4
dd if=system_raw.img of=/dev/sdc4 bs=10M conv=fsync
记录了153+1 的读入
记录了153+1 的写出
1610612736字节(1.6 GB)已复制,262.502 秒,6.1 MB/秒
flash_partition: vendor_raw.img ---> /dev/sdc9
dd if=vendor_raw.img of=/dev/sdc9 bs=10M conv=fsync
记录了11+1 的读入
记录了11+1 的写出
117440512字节(117 MB)已复制,20.2174 秒,5.8 MB/秒
flash_partition: vbmeta-imx8qm.img ---> /dev/sdc13
dd if=vbmeta-imx8qm.img of=/dev/sdc13 bs=10M conv=fsync
记录了0+1 的读入
记录了0+1 的写出
4096字节(4.1 kB)已复制,0.0252025 秒,163 kB/秒
erase_partition: uboot : /dev/sdc
flash_partition: u-boot-imx8qm.imx ---> /dev/sdc
the bootloader partition size: 8159
dd if=/dev/zero of=/dev/sdc bs=1k seek=33 conv=fsync count=8159
记录了8159+0 的读入
记录了8159+0 的写出
8354816字节(8.4 MB)已复制,2.71896 秒,3.1 MB/秒
dd if=u-boot-imx8qm.imx of=/dev/sdc bs=1k seek=33 conv=fsync
记录了1084+1 的读入
记录了1084+1 的写出
1110524字节(1.1 MB)已复制,0.401033 秒,2.8 MB/秒

0 项奖励
回复