]> git.proxmox.com Git - mirror_edk2.git/blame - BeagleBoardPkg/readme.txt
Omap35xxPkg/Library/RealTimeClockLib: Add RTC Support
[mirror_edk2.git] / BeagleBoardPkg / readme.txt
CommitLineData
803f94ee 1On Ubuntu 10.04, in your $(WORKROOT) directory (eg: ~/dev/)\r
2ef2b01e 2\r
803f94ee 3Build UEFI for the BeagleBoard :\r
4================================\r
5# Requirements\r
6sudo apt-get install uuid-dev\r
2ef2b01e 7\r
803f94ee 8# Get the arm-none-eabi Toolchain:\r
9cd $(WORKROOT)\r
10wget http://www.codesourcery.com/sgpp/lite/arm/portal/package7813/public/arm-none-eabi/arm-2010.09-51-arm-none-eabi-i686-pc-linux-gnu.tar.bz2\r
11tar xjf arm-2010.09-51-arm-none-eabi-i686-pc-linux-gnu.tar.bz2\r
12Add the arm-none-eabi toolchain to your path\r
13\r
14# Build UEFI\r
15svn co https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2 edk2 --username guest\r
16cd $(WORKROOT)/edk2\r
17svn co https://edk2-fatdriver2.svn.sourceforge.net/svnroot/edk2-fatdriver2/trunk/FatPkg FatPkg --username guest\r
18patch -p1 < ArmPlatformPkg/Documentation/patches/BaseTools-Pending-Patches.patch\r
19cd BeagleBoardPkg/\r
20./build.sh\r
21\r
22# To Build a Release verion of UEFI\r
23./build.sh RELEASE\r
24\r
25\r
26Test UEFI on qEmu :\r
27===================\r
28\r
29Installing Linaro qEmu:\r
30-----------------------\r
31cd $(WORKROOT)\r
32git clone git://git.linaro.org/qemu/qemu-linaro.git\r
33cd $(WORKROOT)/qemu-linaro\r
34./configure --target-list=arm-softmmu,arm-linux-user,armeb-linux-user\r
35make\r
36\r
37Installing Linaro image Creator:\r
38--------------------------------\r
39wget http://launchpad.net/linaro-image-tools/trunk/0.4.8/+download/linaro-image-tools-0.4.8.tar.gz\r
40tar xzf linaro-image-tools-0.4.8.tar.gz\r
41cd $(WORKROOT)/linaro-image-tools-0.4.8/\r
42sudo apt-get install parted dosfstools uboot-mkimage python-argparse python-dbus python-debian python-parted qemu-arm-static btrfs-tools command-not-found\r
43\r
44Creating u-boot + Linux Linaro image:\r
45-------------------------------------\r
46mkdir $(WORKROOT)/beagle_image && cd $(WORKROOT)/beagle_image\r
47wget http://releases.linaro.org/platform/linaro-m/hwpacks/final/hwpack_linaro-omap3_20101109-1_armel_supported.tar.gz\r
48wget http://releases.linaro.org/platform/linaro-m/headless/release-candidate/linaro-m-headless-tar-20101101-0.tar.gz\r
49sudo $(WORKROOT)/linaro-image-tools-0.4.8/linaro-media-create --image_file beagle_sd.img --dev beagle --binary linaro-m-headless-tar-20101101-0.tar.gz --hwpack hwpack_linaro-omap3_20101109-1_armel_supported.tar.gz\r
50sudo chmod a+rw beagle_sd.img\r
51\r
52Test u-boot + Linux Linaro image on qEmu:\r
53-----------------------------------------\r
54$(WORKROOT)/qemu-linaro/arm-softmmu/qemu-system-arm -M beagle -sd $(WORKROOT)/beagle_image/beagle_sd.img -serial stdio -clock unix\r
55# in u-boot:\r
56boot\r
57\r
58Start UEFI from NOR Flash :\r
59---------------------------\r
60# Adding zImage to beagle_sd.img\r
61mkdir /tmp/beagle_img1\r
62sudo mount -o loop,offset=$[63*512] $(WORKROOT)/beagle_image/beagle_sd.img /tmp/beagle_img1\r
63cp zImage /tmp/beagle_img1\r
64sudo umount /tmp/beagle_img1\r
65\r
66./qemu-system-arm -M beagle -mtdblock /work/tianocore/Build/BeagleBoard/DEBUG_ARMGCC/FV/BeagleBoard_EFI_flashboot.fd -serial stdio -sd /work/linaro-image-tools-0.4.8/beagle_sd.img\r
67\r
68Start UEFI from SD card :\r
69-------------------------\r
70# To replace u-boot by uefi in the SD card\r
711) Build the BeagleBoard UEFI firmware without the OMAP353x header\r
72cd $(WORKROOT)/edk2/BeagleBoardPkg/\r
73./build.sh -D EDK2_SECOND_STAGE_BOOTOLADER=1\r
74\r
752) Replace u-boot by UEFI\r
76sudo mount -o loop,offset=$[63*512] $(WORKROOT)/beagle_image/beagle_sd.img /tmp/beagle_img1\r
77sudo cp ../Build/BeagleBoard/DEBUG_ARMGCC/FV/BEAGLEBOARD_EFI.fd /tmp/beagle_img1/u-boot.bin\r
78sudo umount /tmp/beagle_img1\r