OMAP5 SD Card Boot Information

From OMAPpedia

Revision as of 20:04, 4 April 2012 by A0212502 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)

Building U-BOOT

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

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 .
cp ${YOUR_PATH}/u-boot/u-boot.img .
cp ${YOUR_PATH}/u-boot/boot.scr .

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
Personal tools