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.

OMAP Wireless Connectivity AM37x Preparing SD Card

From Texas Instruments Wiki
Jump to: navigation, search

Preparing an SD Card[edit]

To prepare an SD card suitable to boot from, you need to have the following files:

  • MLO - an add-on for u-boot to load from the SD card
  • u-boot.bin - u-boot Linux loader binary file
  • uImage - image of Linux kernel, to be loaded by u-boot
  • root file system that will be mounted by the board

Steps to be followed to create a boot-able SD card:

1. Enter the SD card and find the name provided by the Linux system to the new device. For example, in Ubuntu distribution, the command 'sudo fdisk -l' will list under which device name each disk is known to the system. Assume that the inserted card got the name /dev/sdc.
2. Perform Partitioning

  • Format the card: dd if=/dev/zero of=/dev/sdc bs=1024 count=1024
  • Run sudo fdisk /dev/sdc
   add a new partion (option n)
   make a primary partition (option p)
   select the partition number as 1
   select the first cylinder as 1 (the default gets taken on pressing enter) and last cylinder as 100

   add a new partion (option n)
   make a primary partition (option p)
   select the partition number as 2
   select the first cylinder as 101 (the default gets taken on pressing enter) and select the last cylinder as default value by pressing enter.
   Start writing and exit (option w)

3. Generate the file systems

  • Generate first partition as FAT with label 'boot': sudo mkfs.vfat -F 32 -n boot /dev/sdc1
  • Generate second partition as ext3 with label 'rootfs': sudo mkfs.ext3 -L rootfs /dev/sdc2

4. Copy the files

  • First partion will contain boot files: MLO, u-boot and uImage. The order in which the files are copied is significant:
mount /dev/sdc1 /mnt
cp MLO /mnt/MLO
cp u-boot.bin /mnt/u-boot.bin
cp uImage /mnt/uImage
umount /dev/sdc1
  • Second partion will contain the root file system to be mounted by Linux on the board:
mount /dev/sdc2 /mnt
tar zxvf some-rootfs.tar.gz -C /mnt
chmod 755 /mnt
umount /dev/sdc2

The SD card is now ready.

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 OMAP Wireless Connectivity AM37x Preparing SD Card 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 OMAP Wireless Connectivity AM37x Preparing SD Card here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article OMAP Wireless Connectivity AM37x Preparing SD Card here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article OMAP Wireless Connectivity AM37x Preparing SD Card here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article OMAP Wireless Connectivity AM37x Preparing SD Card here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article OMAP Wireless Connectivity AM37x Preparing SD Card here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article OMAP Wireless Connectivity AM37x Preparing SD Card here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article OMAP Wireless Connectivity AM37x Preparing SD Card here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article OMAP Wireless Connectivity AM37x Preparing SD Card 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