OMAP5 SD Card Boot Information

From OMAPpedia

Revision as of 23:00, 14 August 2012 by A0212502 (Talk | contribs)
Jump to: navigation, search


SD Card Boot Instructions and Information for OMAP5

SD Card boot is not official supported for the OMAP5 release but here are the steps required to use an SD card with OMAP5. This will require pulling and building uboot which steps are given, for each specific release the commit ID is supplied. This step will prepare a directory, called myfs, containing all necessary Android files that you must include within your SD card.

U-Boot Steps

U-Boot Sources

git clone git:// u-boot
cd u-boot
git checkout d8024a73d779672f6a7bef5aa498d85dcbf0c1ab  #(for release 5AI.1.9, 5AI.1.10, 5AI.1.11, 5AI.1.12*, 5AI.1.13, 5AI.1.13p1)

Building U-BOOT

Releases 5AI.1.10 and before used the compiler (Code Sourcery) and the commands and build steps are listed below.

export PATH=$PATH:<toolchain_parent_dir>/arm-2010q1/bin
export CROSS_COMPILE=${HOME}/cross_compile/arm-2010q1/bin/arm-none-linux-gnueabi-
cd ${YOUR_PATH}/u-boot
git clean -fdx
make CROSS_COMPILE=" arm-none-linux-gnueabi-" clean
make CROSS_COMPILE=" arm-none-linux-gnueabi-" omap5_evm5430_android_config
make CROSS_COMPILE=" arm-none-linux-gnueabi-" all

With the 5AI.1.11 and afterward the compiler changed to use only the tool chain delivered within the Android system. This assumes you have the variable $MYDROID set.

export PATH=$PATH:${MYDROID}/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
export CROSS_COMPILE=${MYDROID}/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
cd ${YOUR_PATH}/u-boot
git clean -fdx
make CROSS_COMPILE=" arm-eabi-" clean
make CROSS_COMPILE=" arm-eabi-" omap5_evm5430_android_config
make CROSS_COMPILE=" arm-eabi-"

Generating boot.scr to boot from SD

NOTE: This is done automatically, and is based on the information in "boot.scr.omap.txt". This information is provided for information purposes only.

cd ${YOUR_PATH}/u-boot
echo "i2c mw 0x48 0xd9 0x15" > boot.cmd
echo "i2c mw 0x48 0xd4 0x05" >> boot.cmd
echo "mmc part" >> boot.cmd
echo "fatload mmc 0:1 0x80300000 uImage" >> boot.cmd
echo "bootm 0x80300000" >> boot.cmd
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'OMAP5 Integration' -d boot.cmd boot.scr

Create the filesystem

mkdir myfs
cd myfs
cp -Rfp $MYDROID/out/target/product/$BOARD_TYPE/root/* .
cp -Rfp $MYDROID/out/target/product/$BOARD_TYPE/system/ .
cp -Rfp $MYDROID/out/target/product/$BOARD_TYPE/data/ .

Create the boot partition

mkdir boot
cd boot
cp ${YOUR_PATH}/kernel/android-3.1/arch/arm/boot/uImage .
cp ${YOUR_PATH}/u-boot/MLO omap5evm_GP_ES1.0_MLO
cp ${YOUR_PATH}/u-boot/u-boot.img .
cp ${YOUR_PATH}/u-boot/boot.scr .

For HD device (high security device) include:

cp ${YOUR_PATH}/omap-mshield-lite/MLO omap5evm_HS_ES1.0_MLO

Formatting SD Card

You will need to format your SD for the Linux file system. Connect your micro SD memory card reader with memory card inserted to a USB port on your Linux Ubuntu PC.

There is a shell script that

performs all of the formatting required. Download it with:

$ wget

Add execution permission:

$ chmod +x

And you are ready to use it by just typing:

$sudo ./ <your_device (e.g. /dev/sdb)>

Once it has finished, remove and reinsert the micro SD card. If you are logged in graphically, "/media/boot" and "/media/Angstrom" will be automatically mounted.

Otherwise you will need to mount them


Installing the required files to micro SD

Assuming your micro SD card is mounted on "/media/boot" and "/media/Angstrom", use the following commands to populate the card:

sudo  cp -a ${YOUR_PATH}/boot/* /media/boot/
sudo  cp -a ${YOUR_PATH}/myfs/* /media/Angstrom/
sudo sync
sudo eject /media/boot

Return to 5AI.1.9, 5AI.1.10, 5AI.1.11, 5AI.1.12, 5AI.1.13 5AI.1.13p1 Release Notes

Personal tools