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

From Texas Instruments Wiki
Jump to: navigation, search
  • 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.



HomepageIcon.jpgHOME

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Create Partitioning using script here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Create Partitioning using script here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Create Partitioning using script here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Create Partitioning using script here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Create Partitioning using script here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Create Partitioning using script here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Create Partitioning using script here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Create Partitioning using script here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Create Partitioning using script here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity