[Android 6.0.1] shell script issue when format sdcard partition

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[Android 6.0.1] shell script issue when format sdcard partition

ソリューションへジャンプ
1,172件の閲覧回数
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 解決策
570件の閲覧回数
charleshuang
Senior Contributor II

Hi Victor

I already fixed the issue.

We just only to modify shell script about partition size.

Clayder

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
570件の閲覧回数
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 件の賞賛
571件の閲覧回数
charleshuang
Senior Contributor II

Hi Victor

I already fixed the issue.

We just only to modify shell script about partition size.

Clayder

0 件の賞賛