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 AM335x Preparing SD Card

From Texas Instruments Wiki
Jump to: navigation, search

How to Make 2 Partition SD Card[edit]


Introduction[edit]


The Linux SD card provided with a Sitara AMx EVM may be re-created from the Sitara Linux SDK. This guide describes the process for creating an SD card which be loaded with all the system collateral needed to boot and run a Linux system on the EVM.

The card will have a small (~70M) bootable DOS partition for system binaries (x-loader, u-boot, uImage), and an ext3 partition (~1G) for a Linux root file system. <bg> <bg>

Partition Name Type OS Contents
boot FAT32 Windows/Linux Out of Box Demo; windows_user.htm
rootfs EXT3 Linux Root File System


Hardware Assumptions[edit]

  • Linux host machine with available USB ports for an SD card reader (virtual machines work well).
  • USB SD card reader
  • SD card (at least 4G recommended)


Software Assumptions[edit]

  • Linux system binaries (x-loader, u-boot, uImage).
  • Linux embedded system root filesystem


Preparing an SD Card[edit]

The EVM box contains an SD card that is ready-to-use, provided with the up-to-date software for running WLAN and BT demos. However, whenever software upgrade is required, the SD card must be upgraded according to the instructions provided in this section.
To prepare an SD card suitable to boot from, you need to have the following files:

  • MLO - addition for u-boot to load from SD card
  • u-boot.img - u-boot Linux loader binary
  • uImage - image of Linux kernel to be loaded by u-boot
  • root file system that will be mounted by board

Steps to be followed to generate a bootable SD card:

1. Enter the SD and check what is the name Linux system provided to the "new device". For example: in Ubuntu distribution running 'sudo fdisk -l' will detail the device-names provided to each disk by the system. Assume that the inserted card got the name /dev/sdc.
2. Partitioning The following procedure would format and partition the SD card with the following partitions:

  • make first partition as FAT with label 'boot'
  • make second partition as ext3 with label 'rootfs'

The "mkcard-v0.3.sh" shell script can be obtaind from <this> link

sudo umount /dev/sdc1
sudo umount /dev/sdc2
sudo sh ~/mkcard-v0.3.sh /dev/sdc

3. Coping files

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

Now the SD card is 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 AM335x 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 AM335x 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 AM335x 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 AM335x 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 AM335x 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 AM335x 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 AM335x 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 AM335x 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 AM335x 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