This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 编译器/AM5728:Processor SDK 中的 create-sdcard.sh 脚本。

Guru**** 2538950 points
Other Parts Discussed in Thread: BEAGLEBOARD-X15

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/965270/compiler-am5728-create-sdcard-sh-script-in-the-processor-sdk

器件型号:AM5728
主题中讨论的其他器件:BeagleBoard-X15

工具/软件:TI C/C++编译器

您好!

我在 BeagleBoard-X15上使用处理器 SDK 版本6。 我正在使用 create-sdcard.sh 脚本创建 sdcard。 在脚本中,分区是用 parted 创建的。 单元的圆柱选项将传递到脚本中分配的。 据我所知、基于圆柱体的分区已被弃用、此脚本无法按预期在其他发行版和其他发行版中工作。 我已更改两个分区选项的分区部分、如下所示:

原始:

parted -s $drive mklabel msdos
parted -s $drive unit cyl mkpart primary FAT32 -- 0 9
parted -s $drive set 1 boot on
parted -s $drive unit cyl mkpart primary ext2 -- 9 -2 

更改了:

parted -s $drive mklabel msdos
parted -s $drive unit s mkpart primary FAT32 --2048 145407
parted -s $drive set 1 boot on
parted -s $drive unit s mkpart primary ext2--145408-2 

我已经在其他版本的 parted 和其他发行版上进行了测试、因为现在、它的工作方式就像一种魅力。

如果您可以更改代码库、以便其他人也可以使用、我对此表示感谢。

此致、

穆斯塔法

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    我忘了说,脚本中的3分区选项也应该进行类似的更改。

    此致、

    穆斯塔法

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Mustafa、

    首先、非常感谢您与我们分享此更新、它将为您提供极大的帮助。
    我们将获取此反馈、在下一个版本中、我们将整合您的更新
    脚本。

    如果您没有进一步的更新、我会将此问题标记为已解决。

    再次感谢您在论坛上分享这一信息。 我将通知团队进行更新
    下一个版本。

    此致、
    基尔西