$ 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. ################################################################################ Available Drives to write images to: # major minor size name 1: 8 0 1000204632 sda 2: 8 48 15588352 sdd Enter Device Number or n to exit: 2 sdd was selected /dev/sdd is an sdx device Current size of sdd1 2295 bytes Current size of sdd2 15585547 bytes ################################################################################ Select 2 partitions if only need boot and rootfs (most users). Select 3 partitions if need SDK & other content on SD card. This is usually used by device manufacturers with access to partition tarballs. ****WARNING**** continuing will erase all data on sdd ################################################################################ Number of partitions needed [2/3] : 2 Now partitioning sdd with 2 partitions... ################################################################################ Now making 2 partitions ################################################################################ 1024+0 records in 1024+0 records out 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.429287 s, 2.4 MB/s DISK SIZE - 15962472448 bytes Warning: The resulting partition is not properly aligned for best performance: 1s % 2048s != 0s Warning: The resulting partition is not properly aligned for best performance: 4591s % 2048s != 0s ################################################################################ Partitioning Boot ################################################################################ mkfs.fat 4.1 (2017-01-24) mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows WARNING: Not enough clusters for a 32 bit FAT! ################################################################################ Partitioning rootfs ################################################################################ mke2fs 1.45.5 (07-Jan-2020) /dev/sdd2 contains a ext3 file system labelled 'rootfs' last mounted on Wed Jan 27 20:52:03 2021 Proceed anyway? (y,N) y Creating filesystem with 3896386 4k blocks and 974848 inodes Filesystem UUID: f03870b4-458a-4700-a547-38ab69f19bc3 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done ################################################################################ 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] : Please enter y or n Would you like to continue? [y/n] : y Mount the partitions 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-processor-sdk-linux-k2g-evm-06.03.00.106 ################################################################################ Multiple rootfs Tarballs found ################################################################################ 1:tisdk-server-rootfs-image-k2g-evm.tar.xz 2:tisdk-docker-rootfs-image-k2g-evm.tar.xz Enter Number of rootfs Tarball: 1 ################################################################################ Copying files now... will take minutes ################################################################################ Copying boot partition MLO copied u-boot.img copied Copying rootfs System partition Syncing... Un-mount the partitions Remove created temp directories Operation Finished