Now I am able to use fsl-sdcard-partition.sh script properly..
But after running the script i am getting below error -
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
sudo ./fsl-sdcard-partition.sh -f imx8mm /dev/mmcblk0
imx8mm bootloader offset is: 33
make gpt partition for android: partition-table.img
17+0 records in
17+0 records out
17408 bytes (17 kB, 17 KiB) copied, 0.0193066 s, 902 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
format_partition: userdata:/dev/mmcblk012 ext4
mke2fs 1.42.13 (17-May-2015)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Using gdisk and parted i corrected my sdcard and reformatted it but still i am getting same error.
When i independent run the gdisk command i get this msg =>
sudo gdisk /dev/mmcblk0
[sudo] password for bruviti:
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help):
But when i run fsl-sdcard-partition.sh i get same error as posted above...
I reformatted and corrected GPT of my sdcard multiple time but same error i am getting again and again.
NOTE : - I am using 16gb sandisk ultra micro sd card and connecting my sdcard with my laptop using sdcard adapter.
Any Suggestion or Idea how can i solve this issue? or why this issue is coming ?
Thanks & Regards,
Maneesh