• Home
  • History
  • Annotate
  • only in /device/linaro/bootloader/OpenPlatformPkg/Platforms/TexasInstruments/BeagleBoard/
NameDateSize

..29-Aug-20174 KiB

b.bat29-Aug-20172.2 KiB

ba.bat29-Aug-20172.2 KiB

Bds/29-Aug-20174 KiB

BeagleBoardPkg.dec29-Aug-20171.4 KiB

BeagleBoardPkg.dsc29-Aug-201721.2 KiB

BeagleBoardPkg.fdf29-Aug-201710.8 KiB

build.sh29-Aug-20174.1 KiB

ConfigurationHeader.dat29-Aug-20171 KiB

Contributions.txt29-Aug-201710.6 KiB

Debugger_scripts/29-Aug-20174 KiB

Include/29-Aug-20174 KiB

Library/29-Aug-20174 KiB

License.txt29-Aug-20171.4 KiB

readme.txt29-Aug-20173.4 KiB

Sec/29-Aug-20174 KiB

Tools/29-Aug-20174 KiB

readme.txt

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