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.

RTOS/PROCESSOR-SDK-C6748: C6748 - /create-sdcard-omapl13x.sh is not working

Part Number: PROCESSOR-SDK-C6748

Tool/software: TI-RTOS

Hi.

  I'm studying about how to make the SDD card boot by reading this:

             http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/Foundational_Components.html?highlight=bootable%20sbl#id54

  In the section: 4.6.3.7.4.2. MMCSD Boot Mode, it's talking about this script: create-sdcard-omapl13x.sh

  I'm issuing this command: ./create-sdcard-omapl13x.sh /dev/sdb

  And it's dumping this kind of error, please guide us how to solve it.

BR Rio

./create-sdcard-omapl13x.sh /dev/sdb
./create-sdcard-omapl13x.sh: 4: ./create-sdcard-omapl13x.sh: [[: not found
Un mounting all the partitions...
umount: /dev/sdb1: mountpoint not found
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.954682 s, 1.1 MB/s
DISK SIZE - 15962472448 bytes
sfdisk: invalid option -- 'S'

Usage:
sfdisk [options] <dev> [[-N] <part>]
sfdisk [options] <command>

Display or manipulate a disk partition table.

Commands:
-A, --activate <dev> [<part> ...] list or set bootable MBR partitions
-d, --dump <dev> dump partition table (usable for later input)
-J, --json <dev> dump partition table in JSON format
-g, --show-geometry [<dev> ...] list geometry of all or specified devices
-l, --list [<dev> ...] list partitions of each device
-F, --list-free [<dev> ...] list unpartitioned free areas of each device
-r, --reorder <dev> fix partitions order (by start offset)
-s, --show-size [<dev> ...] list sizes of all or specified devices
-T, --list-types print the recognized types (see -X)
-V, --verify [<dev> ...] test whether partitions seem correct
--delete <dev> [<part> ...] delete all or specified partitions

--part-label <dev> <part> [<str>] print or change partition label
--part-type <dev> <part> [<type>] print or change partition type
--part-uuid <dev> <part> [<uuid>] print or change partition uuid
--part-attrs <dev> <part> [<str>] print or change partition attributes

<dev> device (usually disk) path
<part> partition number
<type> partition type, GUID for GPT, hex for MBR

Options:
-a, --append append partitions to existing partition table
-b, --backup backup partition table sectors (see -O)
--bytes print SIZE in bytes rather than in human readable format
--move-data[=<typescript>] move partition data after relocation (requires -N)
-f, --force disable all consistency checking
--color[=<when>] colorize output (auto, always or never)
colors are enabled by default
-N, --partno <num> specify partition number
-n, --no-act do everything except write to device
--no-reread do not check whether the device is in use
--no-tell-kernel do not tell kernel about changes
-O, --backup-file <path> override default backup file name
-o, --output <list> output columns
-q, --quiet suppress extra info messages
-w, --wipe <mode> wipe signatures (auto, always or never)
-W, --wipe-partitions <mode> wipe signatures from new partitions (auto, always or never)
-X, --label <name> specify label type (dos, gpt, ...)
-Y, --label-nested <name> specify nested label type (dos, bsd)

-G, --show-pt-geometry deprecated, alias to --show-geometry
-L, --Linux deprecated, only for backward compatibility
-u, --unit S deprecated, only sector unit is supported

-h, --help display this help and exit
-v, --version output version information and exit

Available columns (for -o):
gpt: Device Start End Sectors Size Type Type-UUID Attrs Name UUID
dos: Device Start End Sectors Cylinders Size Type Id Attrs Boot End-C/H/S Start-C/H/S
bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg Fsize
sgi: Device Start End Sectors Cylinders Size Type Id Attrs
sun: Device Start End Sectors Cylinders Size Type Id Flags

For more details see sfdisk(8).
mkfs.fat 4.0 (2016-05-06)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mkfs.vfat: unable to open /dev/sdb1: No such file or directory
umount: /dev/sdb1: mountpoint not found
Done !
rio@ubuntu:~/Desktop$ sudo ./create-sdcard-omapl13x.sh /dev/sdb
./create-sdcard-omapl13x.sh: 4: ./create-sdcard-omapl13x.sh: [[: not found
Un mounting all the partitions...
umount: /dev/sdb1: mountpoint not found
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.926707 s, 1.1 MB/s
DISK SIZE - 15962472448 bytes
./create-sdcard-omapl13x.sh: 33: ./create-sdcard-omapl13x.sh: 2,,,*: not found
./create-sdcard-omapl13x.sh: 34: ./create-sdcard-omapl13x.sh: EOF: not found
mkfs.fat 4.0 (2016-05-06)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mkfs.vfat: unable to open /dev/sdb1: No such file or directory
umount: /dev/sdb1: mountpoint not found
Done !
rio@ubuntu:~/Desktop$