OMAP5 SD Card Boot Information

From OMAPpedia

(Difference between revisions)
Jump to: navigation, search
m
m (U-Boot Steps)
Line 12: Line 12:
git clone git://git.omapzoom.org/repo/u-boot.git u-boot
git clone git://git.omapzoom.org/repo/u-boot.git u-boot
cd u-boot
cd u-boot
-
git checkout d8024a73d779672f6a7bef5aa498d85dcbf0c1ab  (for release 5AI.1.9)
+
git checkout d8024a73d779672f6a7bef5aa498d85dcbf0c1ab  (for release 5AI.1.9 & 5AI.1.10)
</pre>
</pre>
-
 
==Building U-BOOT==
==Building U-BOOT==

Revision as of 18:23, 8 May 2012

Contents

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

cd ${YOUR_PATH}
git clone git://git.omapzoom.org/repo/u-boot.git u-boot
cd u-boot
git checkout d8024a73d779672f6a7bef5aa498d85dcbf0c1ab  (for release 5AI.1.9 & 5AI.1.10)

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

cd $YOUR_PATH
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

cd $YOUR_PATH
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 http://cgit.openembedded.org/cgit.cgi/openembedded/plain/contrib/angstrom/omap3-mkcard.sh

Add execution permission:

$ chmod +x omap3-mkcard.sh

And you are ready to use it by just typing:

$sudo ./omap3-mkcard.sh <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

manually.

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 Release Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox