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.

Compiler/AM5728: create-sdcard.sh script in the Processor SDK.

Part Number: AM5728
Other Parts Discussed in Thread: BEAGLEBOARD-X15

Tool/software: TI C/C++ Compiler

Hi,

I am using Processor SDK version 6 on Beagleboard-X15. I am using create-sdcard.sh script to create sdcard. In the script the partitions are created with parted. Cylinder option for the units are passed to the parted in the script. As far as I know cylinder based partitioning is deprecated, this script cannot work in other distributions and the other versions of parted as expected. I have changed the partitioning section for two partition option as below:

Original:

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

Changed:

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

I have tested on other versions of parted and on the other distros, for now, it works like a charm.

I appreciate if you can make change on the codebase, so others can also use.

Kind regards,

Mustafa

  • Hi,

    I have forgotten to mention, similar change also should be done for the 3 partition option in the script.

    Kind regards,

    Mustafa

  • Hi Mustafa,

    First of all a big thank you for sharing the update with us that will be of great help.
    We will take this feedback and in the next release we will incorporate your updates to
    the script.

    I will mark this resolved if there are no further updates from your side.

    Once again really appreciate you sharing this on the forum. I am notifying the team for the update
    on the next release.

    Best Regards,
    Keerthy