[Android 6.0.1] shell script issue when format sdcard partition

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

[Android 6.0.1] shell script issue when format sdcard partition

跳至解决方案
1,404 次查看
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 项奖励
回复
1 解答
802 次查看
charleshuang
Senior Contributor II

Hi Victor

I already fixed the issue.

We just only to modify shell script about partition size.

Clayder

在原帖中查看解决方案

0 项奖励
回复
2 回复数
802 次查看
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 项奖励
回复
803 次查看
charleshuang
Senior Contributor II

Hi Victor

I already fixed the issue.

We just only to modify shell script about partition size.

Clayder

0 项奖励
回复