]>
Commit | Line | Data |
---|---|---|
803f94ee | 1 | On Ubuntu 10.04, in your $(WORKROOT) directory (eg: ~/dev/)\r |
2ef2b01e | 2 | \r |
803f94ee | 3 | Build UEFI for the BeagleBoard :\r |
4 | ================================\r | |
5 | # Requirements\r | |
6 | sudo apt-get install uuid-dev\r | |
2ef2b01e | 7 | \r |
803f94ee | 8 | # Get the arm-none-eabi Toolchain:\r |
9 | cd $(WORKROOT)\r | |
10 | wget 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 | |
11 | tar xjf arm-2010.09-51-arm-none-eabi-i686-pc-linux-gnu.tar.bz2\r | |
12 | Add the arm-none-eabi toolchain to your path\r | |
13 | \r | |
14 | # Build UEFI\r | |
15 | svn co https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2 edk2 --username guest\r | |
16 | cd $(WORKROOT)/edk2\r | |
17 | svn co https://edk2-fatdriver2.svn.sourceforge.net/svnroot/edk2-fatdriver2/trunk/FatPkg FatPkg --username guest\r | |
18 | patch -p1 < ArmPlatformPkg/Documentation/patches/BaseTools-Pending-Patches.patch\r | |
19 | cd 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 | |
26 | Test UEFI on qEmu :\r | |
27 | ===================\r | |
28 | \r | |
29 | Installing Linaro qEmu:\r | |
30 | -----------------------\r | |
31 | cd $(WORKROOT)\r | |
32 | git clone git://git.linaro.org/qemu/qemu-linaro.git\r | |
33 | cd $(WORKROOT)/qemu-linaro\r | |
34 | ./configure --target-list=arm-softmmu,arm-linux-user,armeb-linux-user\r | |
35 | make\r | |
36 | \r | |
37 | Installing Linaro image Creator:\r | |
38 | --------------------------------\r | |
39 | wget http://launchpad.net/linaro-image-tools/trunk/0.4.8/+download/linaro-image-tools-0.4.8.tar.gz\r | |
40 | tar xzf linaro-image-tools-0.4.8.tar.gz\r | |
41 | cd $(WORKROOT)/linaro-image-tools-0.4.8/\r | |
42 | sudo 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 | |
44 | Creating u-boot + Linux Linaro image:\r | |
45 | -------------------------------------\r | |
46 | mkdir $(WORKROOT)/beagle_image && cd $(WORKROOT)/beagle_image\r | |
47 | wget http://releases.linaro.org/platform/linaro-m/hwpacks/final/hwpack_linaro-omap3_20101109-1_armel_supported.tar.gz\r | |
48 | wget http://releases.linaro.org/platform/linaro-m/headless/release-candidate/linaro-m-headless-tar-20101101-0.tar.gz\r | |
49 | sudo $(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 | |
50 | sudo chmod a+rw beagle_sd.img\r | |
51 | \r | |
52 | Test 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 | |
56 | boot\r | |
57 | \r | |
58 | Start UEFI from NOR Flash :\r | |
59 | ---------------------------\r | |
60 | # Adding zImage to beagle_sd.img\r | |
61 | mkdir /tmp/beagle_img1\r | |
62 | sudo mount -o loop,offset=$[63*512] $(WORKROOT)/beagle_image/beagle_sd.img /tmp/beagle_img1\r | |
63 | cp zImage /tmp/beagle_img1\r | |
64 | sudo 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 | |
68 | Start UEFI from SD card :\r | |
69 | -------------------------\r | |
70 | # To replace u-boot by uefi in the SD card\r | |
71 | 1) Build the BeagleBoard UEFI firmware without the OMAP353x header\r | |
72 | cd $(WORKROOT)/edk2/BeagleBoardPkg/\r | |
73 | ./build.sh -D EDK2_SECOND_STAGE_BOOTOLADER=1\r | |
74 | \r | |
75 | 2) Replace u-boot by UEFI\r | |
76 | sudo mount -o loop,offset=$[63*512] $(WORKROOT)/beagle_image/beagle_sd.img /tmp/beagle_img1\r | |
77 | sudo cp ../Build/BeagleBoard/DEBUG_ARMGCC/FV/BEAGLEBOARD_EFI.fd /tmp/beagle_img1/u-boot.bin\r | |
78 | sudo umount /tmp/beagle_img1\r |