sudo ./create-sdcard.sh ################################################################################ This script will create a bootable SD card from custom or pre-built binaries. The script must be run with root permissions and from the bin directory of the SDK Example: $ sudo ./create-sdcard.sh Formatting can be skipped if the SD card is already formatted and partitioned properly. ################################################################################ Availible Drives to write images to: # major minor size name 1: 8 16 1954816 sdb Enter Device Number: 1 sdb was selected Checking the device is unmounted sdb1 sdb2 sdb3 SD Card is not correctly partitioned ################################################################################ Select 2 partitions if only need boot and rootfs (most users) Select 3 partitions if need SDK & CCS on SD card. This is usually used by device manufacturers with access to partition tarballs. ****WARNING**** continuing will erase all data on sdb ################################################################################ Number of partitions needed [2/3] : 2 Now partitioning sdb with 2 partitions... ################################################################################ Now making 2 partitions ################################################################################ 1024+0 records in 1024+0 records out 1048576 bytes (1.0 MB) copied, 1.0792 s, 972 kB/s Disk /dev/sdb doesn't contain a valid partition table ./create-sdcard.sh: line 515: 2001731584: command not found DISK SIZE - bytes (standard_in) 1: syntax error Usage: sfdisk [options] [...] Options: -s, --show-size list size of a partition -c, --id change or print partition Id --change-id change Id --print-id print Id -l, --list list partitions of each device -d, --dump idem, but in a format suitable for later input -i, --increment number cylinders etc. from 1 instead of from 0 -u, --unit units to be used; can be one of S (sectors), C (cylinders), B (blocks), or M (MB) -1, --one-only reserved option that does nothing currently -T, --list-types list the known partition types -D, --DOS for DOS-compatibility: waste a little space -E, --DOS-extended DOS extended partition compatibility -R, --re-read make the kernel reread the partition table -N change only the partition with this -n do not actually write to disk -O save the sectors that will be overwritten to -I restore sectors from -V, --verify check that the listed partitions are reasonable -v, --version display version information and exit -h, --help display this help text and exit Dangerous options: -f, --force disable all consistency checking --no-reread do not check whether the partition is in use -q, --quiet suppress warning messages -L, --Linux do not complain about things irrelevant for Linux -g, --show-geometry print the kernel's idea of the geometry -G, --show-pt-geometry print geometry guessed from the partition table -A, --activate[=] activate bootable flag -U, --unhide[=] set partition unhidden -x, --show-extended also list extended partitions in the output, or expect descriptors for them in the input --leave-last do not allocate the last cylinder --IBM same as --leave-last --in-order partitions are in order --not-in-order partitions are not in order --inside-outer all logicals inside outermost extended --not-inside-outer not all logicals inside outermost extended --nested every partition is disjoint from all others --chained like nested, but extended partitions may lie outside --onesector partitions are mutually disjoint Override the detected geometry using: -C, --cylinders set the number of cylinders to use -H, --heads set the number of heads to use -S, --sectors set the number of sectors to use ################################################################################ Partitioning Boot ################################################################################ mkfs.vfat 3.0.13 (30 Jun 2012) /dev/sdb1: No such file or directory ################################################################################ Partitioning rootfs ################################################################################ mke2fs 1.42.5 (29-Jul-2012) Could not stat /dev/sdb2 --- No such file or directory The device apparently does not exist; did you specify it correctly? ################################################################################ Partitioning is now done Continue to install filesystem or select 'n' to safe exit **Warning** Continuing will erase files any files in the partitions ################################################################################ Would you like to continue? [y/n] : y Mount the partitions mount: special device /dev/sdb1 does not exist mount: special device /dev/sdb2 does not exist Emptying partitions Syncing.... ################################################################################ Choose file path to install from 1 ) Install pre-built images from SDK 2 ) Enter in custom boot and rootfs file paths ################################################################################ Choose now [1/2] : 1 Will now install from SDK pre-built images now installing: ti-sdk-am335x-evm-05.07.00.00 ################################################################################ Copying files now... will take minutes ################################################################################ Copying boot partition MLO copied u-boot.bin copied u-boot.img copied uImage copied Copying rootfs System partition Written 100% Syncing... Un-mount the partitions umount2: Invalid argument umount: boot: not mounted umount2: Invalid argument umount: rootfs: not mounted Remove created temp directories Operation Finished