After finishing previous post on “How to build your own Angstrom distribution”, now we should have everything ready. We just need to put files to micro SD card and it should boot.

1. Download this file and format microSD using it. The microSD card must be at least 4 GB. This process will PERMANENTLY delete the contents! Please backup your micro SD card first.
1.a: In terminal, type "sudo fdisk -l" to know which sdX is microSD card mounted.
1.b: Unmount the microSD by typing "umount /dev/sdX". If there are multiple partitions, you may need to umount sdX1, sdX2... manually and lastly umount sdX.
1.b: Type "sudo sh mkcard.txt /dev/sdX", where sdX is your microSD card. Check this post if you want to know more about script.

 

2. Copy MLO and u-boot.img that you built to the first partition (/media/boot/) of the microSD. Your build files are located at your folder/setup-scripts/build/tmp-Angstrom_vxxxxxx/deploy/images/beagleboard/.
2.a: Copy MLO-beagleboard-2011.12 to boot and rename it to MLO.
2.a: Copy u-boot-beagleboard-2011.12-r8.img to boot and rename it to u-boot.img.

 

3. Copy the following lines between ------ (do not include ------) and save it as uEnv.txt. Put it to first partition (/media/boot) of the microSD.
---------------------------------------------------
mpurate=1000

dvimode="hd720 omapfb.vram=0:8M,1:4M,2:4M"
vram=16M
optargs="consoleblank=0"
console="tty0 console=ttyO2,115200n8"
mmcroot=/dev/mmcblk0p2 rw

---------------------------------------------------

 

4. Unpack the rootfs and kernel image to second partition (/media/Angstrom/) of the microSD. The rootfs and kernel image (Angstrom-console-image-eglibc-ipk-v2012.05-beagleboard.rootfs.tar.bz2) is located in the same folder as u-boot and MLO. You may need to mount Angstrom partition first.
3.a: sudo tar -xjv -C /media/Angstrom -f Angstrom-console-image-eglibc-ipk-v2012.05-beagleboard.rootfs.tar.bz2, /media/Angstrom/ is your second partition of microSD.

 

5. It's done! Unplug the microSD from your PC and insert it to Beagleboard. You can now boot using your own build.

 

To be continued in part 2…

 

Reference links:
http://www.ibm.com/developerworks/linux/library/l-beagleboard-xm/index.html
http://downloads.angstrom-distribution.org/demo/beagleboard/

silentlain 發表在 痞客邦 PIXNET 留言(0) 人氣()