AM35x EVM Boot from SD/MMC card

'''  Content is no longer maintained and is being kept for reference only! '''

 ^   Up to main AM35x EVM Getting Started Guide Table of Contents

Follow the below steps for MMC boot on AM35x EVM

U-Boot Prompt Using MMC/SD CARD
 The MMC card will have to be formated to make it bootable, there are two options:


 * For a Windows host the HP USB Disk Storage Format Tool from http://www.sysanalyser.com/sp27213.exe can format the card to make it bootable with AM35x.


 * For a Linux host please follow the steps in SD/MMC format for OMAP3 boot to make the card bootable, for a more advanced dual partition card (where there is a boot partition and a Linux filesystem partition) please follow the steps here. Note: It is advised to follow the process for creating a bootable SD/MMC card under Linux for AM35x.

Navigate to AM35x-OMAP35x-PSP-SDK-03.xx.xx.xx\images\boot-strap\am3517 where the file x-load.bin.ift exists, make a copy of this file and name it MLO.

Now that the card is formatted copy the MLO file you just created and the u-boot file from AM35x-OMAP35x-PSP-SDK-03.xx.xx.xx\images\u-boot\am3517 on to the new FAT partition of the SD card. Note: Ensure that MLO binary is one of the first files copied as the ROM code scans only the initial FAT entries.

Ensure Switch S7 is set with S7-1 and S7-4 in the ON position as described in Main Board S7 DIP Switch: Boot Modes.

Power on the EVM and press enter to get a U-boot prompt. 

Boot Using MMC/SD card
 To boot from the sdcard copy the kernel image(uImage) from the OMAP35x-PSP-SDK-##.##.##.##

To boot the Linux kernel from MMC/SD card, set the mmcboot environment variable as follows (only an illustration - substitute with actual image path and load address for your system)

AM3517_EVM # setenv mmcboot 'mmc init; fatload mmc 0 0x80000000 uImage; bootm 0x80000000' AM3517_EVM # saveenv 

Booting from MMC using Ramdisk stored on MMC card
 In case of boot from MMC/SD card and using ramdisk image as the filesystem, first copy the Ramdisk image to the MMC/SD card from the OMAP35x-PSP-SDK-##.##.##.## and then set the mmcboot environment variable as follows (only an illustration -substitute with actual image path and load address for your system) AM3517_EVM # setenv mmcboot 'mmc init; fatload mmc 0 0x80000000 uImage; fatload mmc 0 0x81600000 ramdisk.gz; bootm 0x80000000' AM3517_EVM # setenv bootargs mem=256M console=ttyS2,115200n8 root=/dev/ram0 initrd=0x81600000,40M ramdisk_size=40960 omapfb.rotate=1 omapfb.rotate_type=1 omap_vout.vid1_static_vrfb_alloc=y AM3517_EVM # saveenv Once setup, the mmcboot variable can be exercised as follows: AM3517_EVM # run mmcboot NOTE: All setenv commands should be entered on a single line. They are shown on multiple lines here for ease of reading. Once the Linux kernel boots, login as "root". No password is required. 

Booting from MMC using Board’s NAND Flash File System
Make sure you have followed Flashing the Pre-built/rebuilt NAND Flash File System before proceeding with the boot procedure.

Set the following environment variables:

AM3517_EVM # setenv mmcboot 'mmc init; fatload mmc 0 0x80000000 uImage; bootm 0x80000000' AM3517_EVM # setenv bootargs mem=256M console=ttyS2,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2 omapfb.rotate=1 omapfb.rotate_type=1 omap_vout.vid1_static_vrfb_alloc=y AM3517_EVM # run mmcboot

NOTE: All setenv commands should be entered on a single line. They are shown on multiple lines here for ease of reading.

Booting from MMC Using NFS File System
Set the following environment variables: AM3517_EVM # setenv mmcboot 'mmc init; fatload mmc 0 0x80000000 uImage; bootm 0x80000000' AM3517_EVM # setenv bootargs console=ttyS2,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot= : ,nolock, mem=256M omapfb.rotate=1 omapfb.rotate_type=1 omap_vout.vid1_static_vrfb_alloc=y AM3517_EVM # run mmcboot

NOTE: All setenv commands should be entered on a single line. They are shown on multiple lines here for ease of reading.

The shall be set to the ip address of the NFS host machine. The must match the filesystem that you set up on your workstation. For example, /home/ /workdir/filesys