NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Create Partitioning using script
- Connect your SD card to a linux machine.
- On your Linux machine open a terminal console.
- Run the following command:
sudo fdisk -l
- Check the mount for your SD card. Look for /dev/sd*** device which matches the memory card size. e.g /dev/sdc/ (Disk /dev/sdc: 997 MB, 997720064 bytes)
user@ubt1004:~/Projects$ sudo fdisk -l Disk /dev/sda: 53.7 GB, 53697576960 bytes 255 heads, 63 sectors/track, 6528 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0007157d Device Boot Start End Blocks Id System /dev/sda1 * 1 19 145408 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 19 6529 52290561 5 Extended /dev/sda5 19 6286 50337792 83 Linux /dev/sda6 6286 6529 1951744 82 Linux swap / Solaris Disk /dev/sdb: 107.4 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000bc718 Device Boot Start End Blocks Id System /dev/sdb1 1 13054 104856223+ 83 Linux Disk /dev/sdc: 997 MB, 997720064 bytes 31 heads, 62 sectors/track, 1013 cylinders Units = cylinders of 1922 * 512 = 984064 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0005e030 Device Boot Start End Blocks Id System
- Download the script and extract it to your Linux machine.
- Grant execution access to the script using the following command:
chmod u+x mkcard-v0.3.sh
- To create the partitioning run the following command:
sudo ./mkcard-v0.3.sh /dev/sdc
- The result after running the script is as follows:
user@ubt1004:~/Projects$ sudo fdisk -l Disk /dev/sda: 53.7 GB, 53697576960 bytes 255 heads, 63 sectors/track, 6528 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0007157d Device Boot Start End Blocks Id System /dev/sda1 * 1 19 145408 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 19 6529 52290561 5 Extended /dev/sda5 19 6286 50337792 83 Linux /dev/sda6 6286 6529 1951744 82 Linux swap / Solaris Disk /dev/sdb: 107.4 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000bc718 Device Boot Start End Blocks Id System /dev/sdb1 1 13054 104856223+ 83 Linux Disk /dev/sdc: 997 MB, 997720064 bytes 255 heads, 63 sectors/track, 121 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdc1 * 1 9 72261 c W95 FAT32 (LBA) /dev/sdc2 10 121 899640 83 Linux
- Your SD card is ready with 2 partitions : boot, rootfs.