[Android 6.0.1] shell script issue when format sdcard partition

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Android 6.0.1] shell script issue when format sdcard partition

Jump to solution
1,134 Views
charleshuang
Senior Contributor II

Hi

We want to porting Android 6.0.1 and follow the Android_User's_Guide.

In Android_User's_Guidepage 17 (5.1.1), The script below can be used to partition a SD card as shown in the partition table above:

$ cd ~/myandroid/

$ sudo chmod +x ./device/fsl/common/tools/fsl-sdcard-partition.sh

$ sudo ./device/fsl/common/tools/fsl-sdcard-partition.sh -f <soc_name> /dev/sdX

# <soc_name> can be imx6q, imx6dl, imx6sl, imx6sx and imx7d.

When we run the "sudo ./device/fsl/common/tools/fsl-sdcard-partition.sh -f <soc_name> /dev/sdX", but system will be hang.

Now we just only used the MFG tools to format partition for SD card.

Because the logic 5(SYSTEM) need to the 800MB size.

Please provide the correct shell script.

Thanks

0 Kudos
1 Solution
532 Views
charleshuang
Senior Contributor II

Hi Victor

I already fixed the issue.

We just only to modify shell script about partition size.

Clayder

View solution in original post

0 Kudos
2 Replies
532 Views
b36401
NXP Employee
NXP Employee

It's hard to tell what exactly may go wrong with the script.

Please try to run fsl-sdcard-partition.sh script with debug option:

$ sudo bash -x device/fsl/common/tools/fsl-sdcard-partition.sh -f <soc_name> /dev/sdX

This way you can locate at what point the script hangs.

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
533 Views
charleshuang
Senior Contributor II

Hi Victor

I already fixed the issue.

We just only to modify shell script about partition size.

Clayder

0 Kudos