While the original version doesn’t boot into Linux, the one maintained by Olivier Martin (the ARM UEFI team) does work. Here is the instruction (http://www.mail-archive.com/boot-architecture@lists.linaro.org/msg00022.html) for future reference.

 

Cheers,

 

Alan C

 

From: boot-architecture-bounces@lists.linaro.org [mailto:boot-architecture-bounces@lists.linaro.org] On Behalf Of Alan Chuang
Sent: Friday, August 12, 2011 2:27 PM
To: Girish K S
Cc: boot-architecture@lists.linaro.org
Subject: RE: Booting Linux from UEFI on Beagleboard Qemu

 

Hi Girish:

 

        Thanks for the tip. When I looks at devicepaths, it does seem to match (see below).  Or are you referring to something else?

 

BRs,

Alan C

=======================================================================================

BeagleEdk2 >devicepaths

EhcCreateUsb2Hc: capability length 0

EhcDriverBindingStart: failed to create USB2_HC

[0x87A00790] MemoryMapped(0xB,0x80008000,0x80087FFF)

[0x87A00490] MemoryMapped(0xB,0x87C4A000,0x87E0751F)

[0x87975B10] VenHw(6696936D-3637-467C-87CB-14EA8248948C)/Uart(115200,8,N,1)

[0x8796B910] VenHw(4D00EF14-C4E0-426B-81B7-30A00A14AAD6)

[0x8792E290] VenHw(B615F1F5-5088-43CD-809C-A16E52487D00)

[0x8792D390] PciRoot(0x0)/Pci(0x0,0x0)

[0x87918890] VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)

[0x8790A890] VenHw(B615F1F5-5088-43CD-809C-A16E52487D00)/HD(1,MBR,0x00000000,0x3F,0x19FC0)

[0x8790A590] VenHw(B615F1F5-5088-43CD-809C-A16E52487D00)/HD(2,MBR,0x00000000,0x1A000,0x3E6000)

BeagleEdk2 >device

Firmware Volume Devices:

  fv0: 0x80008000 - 0x80087FFF : 0x00080000

  fv1: 0x87C4A000 - 0x87E0751F : 0x001BD520

File System Devices:

  fs0: SemihostFs:

  fs1: boot:

Block IO Devices:

  blk0: Size = 0x10000000

  blk1: Removable Size = 0x80000000

  blk2: fs1: Removable Partition Size = 0x33F8000

  blk3: Removable Partition Size = 0x7CC00000

====================================================================================

 

From: Girish K S [mailto:girish.shivananjappa@linaro.org]
Sent: Friday, August 12, 2011 2:01 PM
To: Alan Chuang
Cc: boot-architecture@lists.linaro.org
Subject: Re: Booting Linux from UEFI on Beagleboard Qemu

 

Hello Alan,

          When you boot with Uefi.
1. first get into EBL and run devicepaths command.VenHw(B615F1F5-5088-43CD-809C-A16E52487D00)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/zImage. matches with the displayed in the list.
2. If it doesnt match, please change it to the corresponding name displayed. It has to boot after this change.

regards
Girish K S

2011/8/12 Alan Chuang <Alan.Chuang@arm.com>

Hi all:

        I just started to play around with ARM UEFI stuff and has issue booting into Linux when trying to test the EDK2 software on Qemu. This seems like the right place to ask. I followed the instruction in (http://edk2.svn.sourceforge.net/viewvc/edk2/trunk/edk2/BeagleBoardPkg/readme.txt?revision=11997) including downloading the specific version of binaries / tools. When trying to run UEFI (both in NOR flash method as well as SD card method), UEFI started successfully. However, I kept on getting “Did not find Linux kernel” error when trying to boot Linux. From EBL, I can see the zImage file is present (cd fs1:; dir). The zImage file is basically vmlinuz-2.6.35-1008-linaro-omap from the hwpack. I even tried to extract zImage from uImage, but the result is still the same.

 

        I am wondering if anyone has run into the same issue and can give me a hint on what else to try.

 

Thanks,

 

Alan Chuang

 

---------------- Console Log -------------------

The default boot selection will start in   1 seconds

CMD0 response: 0

MmcStatus: 18000

CMD5 fails. Not an SDIO card.

CMD8 success. CMD8 response: 1CE

Card is SD2.0

CMD55 success. CMD55 response: 120

SD card detected. ACMD41 OCR: C0FFFF00

High capacity card.

CMD2 response: EF006219 1DEADBE 454D5521 AA585951

CMD3 response: RCA 4567

CMD9 response: A400000 FFF7F80 5B590000 400E0032

Card type: 4, BlockSize: 200, NumBlocks: 400000

MaxDataTransferRate: 0x32, Frequency: 25000 KHz, ClockFrequencySelect: 4

SD Memory Card set to 4-bit mode

SD Card Media Change on Handle 0x8792E290

SD Card ReinstallProtocolInterface ()

ERROR: Did not find Linux kernel.

[1] Linux from SD

        - VenHw(B615F1F5-5088-43CD-809C-A16E52487D00)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/zImage

        - LoaderType: 1

        - Arguments:

[2] EBL

[3] Boot Manager

Start: 3

[1] Add Boot Device Entry

[2] Update Boot Device Entry

[3] Remove Boot Device Entry

[4] Return to main menu

Choice: 2

[1] Linux from SD

        - VenHw(B615F1F5-5088-43CD-809C-A16E52487D00)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/zImage

        - Arguments:

Update entry: 1

File path of the EFI Application or the kernel: zImage

Has FDT support? [y/n] n

Arguments to pass to the binary:

Description for this new Entry: Linux from SD

[1] Add Boot Device Entry

[2] Update Boot Device Entry

[3] Remove Boot Device Entry

[4] Return to main menu

Choice: 4

[1] Linux from SD

        - VenHw(B615F1F5-5088-43CD-809C-A16E52487D00)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/zImage

        - LoaderType: 1

        - Arguments:

[2] EBL

[3] Boot Manager

Start: 2

EhcCreateUsb2Hc: capability length 0

EhcDriverBindingStart: failed to create USB2_HC

add-symbol-file /home/alanc/UEFI/src2/edk2/Build/BeagleBoard/DEBUG_ARMGCC/ARM/EmbeddedPkg/Ebl/Ebl/DEBUG/Ebl.dll 0x85BCD240

Embedded Boot Loader (EBL) prototype. Built at 09:56:17 on Aug 12 2011

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN 'AS IS' BASIS,

WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Please send feedback to edk2-devel@lists.sourceforge.net

BeagleEdk2 >device

Firmware Volume Devices:

  fv0: 0x80008000 - 0x80087FFF : 0x00080000

  fv1: 0x87C4A000 - 0x87E0751F : 0x001BD520

File System Devices:

  fs0: SemihostFs:

  fs1: boot:

Block IO Devices:

  blk0: Size = 0x10000000

  blk1: Removable Size = 0x80000000

  blk2: fs1: Removable Partition Size = 0x33F8000

  blk3: Removable Partition Size = 0x7CC00000

BeagleEdk2 >devicepaths

EhcCreateUsb2Hc: capability length 0

EhcDriverBindingStart: failed to create USB2_HC

[0x87A00790] MemoryMapped(0xB,0x80008000,0x80087FFF)

[0x87A00490] MemoryMapped(0xB,0x87C4A000,0x87E0751F)

[0x87975B10] VenHw(6696936D-3637-467C-87CB-14EA8248948C)/Uart(115200,8,N,1)

[0x8796B910] VenHw(4D00EF14-C4E0-426B-81B7-30A00A14AAD6)

[0x8792E290] VenHw(B615F1F5-5088-43CD-809C-A16E52487D00)

[0x8792D390] PciRoot(0x0)/Pci(0x0,0x0)

[0x87918890] VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)

[0x8790A890] VenHw(B615F1F5-5088-43CD-809C-A16E52487D00)/HD(1,MBR,0x00000000,0x3F,0x19FC0)

[0x8790A590] VenHw(B615F1F5-5088-43CD-809C-A16E52487D00)/HD(2,MBR,0x00000000,0x1A000,0x3E6000)

BeagleEdk2 >exit

remove-symbol-file /home/alanc/UEFI/src2/edk2/Build/BeagleBoard/DEBUG_ARMGCC/ARM/EmbeddedPkg/Ebl/Ebl/DEBUG/Ebl.dll 0x85BCD240

[1] Linux from SD

        - VenHw(B615F1F5-5088-43CD-809C-A16E52487D00)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/zImage

        - LoaderType: 1

        - Arguments:

[2] EBL

[3] Boot Manager

Start:


-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


_______________________________________________
boot-architecture mailing list
boot-architecture@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/boot-architecture

 


-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.