AnsweredAssumed Answered

how to flash MCIMX6QP-SDB with fsl-sdcard-partition.sh

Question asked by sam_chen@ijoy-robot.com on Apr 11, 2019
Latest reply on Apr 11, 2019 by Radhika Somaiya

环境配置:

开发板型号:MCIMX6QP-SDB(官方购买)

官方附带的SD CARD固件型号:Linux L3.14.53_1.1.0 (标注在SD Card上的)

 

问题描述:

1、"Boot Switch(SW6)" to 01000010 (from 1-8 bit),插入官方SD CARD,启动正常,uart debug port log也可以正常输出,说明板子硬件无问题

 

2、在官网下载以下内容:

.
├── android_O8.0.0_1.0.0_docs.tar.gz
├── android_O8.0.0_1.0.0_image_6dqpsabresd.tar.gz
├── android_O8.0.0_1.0.0_tools.tar.gz
在ubuntn16.04 下解压android_O8.0.0_1.0.0_image_6dqpsabresd.tar.gz,插入一张新的SDCARD (8G)并执行以下命令:
sam@samchen:~/Documents/imx/IMX6 SABRE SDB/android_O8.0.0_1.0.0_image_6dqpsabresd$ sudo ./fsl-sdcard-partition.sh -f imx6qp /dev/mmcblk0
make gpt partition for android: partition-table.img
17+0 records in
17+0 records out
17408 bytes (17 kB, 17 KiB) copied, 0.188109 s, 92.5 kB/s

/dev/mmcblk0:
re-reading partition table
GPT fdisk (gdisk) version 1.0.1

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/mmcblk0.
The operation has completed successfully.
formating android images
erase_partition: fbmisc : /dev/mmcblk011 1M
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00164118 s, 639 MB/s
erase_partition: misc : /dev/mmcblk05 4M
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.00199069 s, 2.1 GB/s
flash_partition: boot-imx6qp.img ---> /dev/mmcblk01
23562+1 records in
23562+1 records out
12064040 bytes (12 MB, 12 MiB) copied, 0.035798 s, 337 MB/s
flash_partition: recovery-imx6qp.img ---> /dev/mmcblk02
30390+1 records in
30390+1 records out
15559980 bytes (16 MB, 15 MiB) copied, 0.041862 s, 372 MB/s
flash_partition: system_raw.img ---> /dev/mmcblk03
3145728+0 records in
3145728+0 records out
1610612736 bytes (1.6 GB, 1.5 GiB) copied, 3.58778 s, 449 MB/s
flash_partition: vendor_raw.img ---> /dev/mmcblk09
229376+0 records in
229376+0 records out
117440512 bytes (117 MB, 112 MiB) copied, 0.275438 s, 426 MB/s
erase_partition: uboot : /dev/mmcblk0
flash_partition: u-boot-imx6qp.imx ---> /dev/mmcblk0
the bootloader partition size: 8191
8191+0 records in
8191+0 records out
8387584 bytes (8.4 MB, 8.0 MiB) copied, 3.43519 s, 2.4 MB/s
604+1 records in
604+1 records out
619255 bytes (619 kB, 605 KiB) copied, 0.216463 s, 2.9 MB/s
 
3、从PC上拔出SD CARD,插入MCIMX6QP-SDB SD3,"Boot Switch(SW6)" to 01000010 (from 1-8 bit),上电开机,无任何log输出。
请问如何解决?
BTW:因为MFG tool使用也存在问题,所以来使用fsl-sdcard-partition.sh验证,结果也不行,期待你的回复!

Outcomes