OMAP-L138 Preparing SD Card for Boot

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

This document describes the boot process of the OMAP-L138 ARM+DSP SOC. The content also applies to AM1808 and C6748 devices unless otherwise specified.

Contents

Introduction

Starting with silicon revision 2.1, OMAP-L138 now supports SD/MMC boot directly from a card. This eliminates the need for a separate UBL that boots from on-board flash memory.

Formatting Requirements

The bootloader requires that the AIS boot image be placed within the first 2MB and sector-aligned. The image is read raw so the image must be in an unformatted partition of the card.

TI Tools

Procedures

Booting a Stand-Alone Image

When no other partitions or file systems are needed on the SD/MMC card, you can directly write an AIS-signed executable to the start of the SD/MMC card. This can be performed using CCS or Linux:

CCS

To flash a single AIS image, open SDMMCWriter_ARM.pjt (or DSP) located in the "OMAP-L138\CCS\SDMMCWriter\" directory of the serial flashing tools. For CCS4/5 it will need to be imported in order to rebuild the flashing tool.

Follow the following steps

The file should now be successfully flashed to the SD/MMC card. Change the boot switches to SDMMC0 boot mode and power cycle to verify.

Linux

The file should now be successfully flashed to the SD/MMC card. Change the boot switches to SDMMC0 boot mode and power cycle to verify.

Booting Linux

In order to boot Linux entirely off the SD/MMC card, there must be 3 separate partitions:

  1. Unformatted partition to flash AIS-signed U-Boot image
  2. FAT32 file system to store the Linux kernel for U-Boot to read
  3. EXT3 file system to store the file system Linux will mount

Perform the following steps to set up the card:

Uboot.jpg

sudo --device /dev/sdx --sdk <base directory of SDK install>

sudo -dd in=u-boot.ais of=/dev/sdx seek=10

The SD card should now be successfully prepared. Change the boot switches to SDMMC0 boot mode and power cycle to verify.

E2e.jpg For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article OMAP-L138 Preparing SD Card for Boot here.
Hyperlink blue.png Links
ARM Microcontroller MCU ARM Processor Digital Media Processor Digital Signal Processing Microcontroller MCU Multi Core Processor
Ultra Low Power DSP 8 bit Microcontroller MCU 16 bit Microcontroller MCU 32 bit Microcontroller MCU

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox