[U-Boot] [PATCH v0 13/20] efi_loader: use proper device-paths for partitions
Mark Kettenis
mark.kettenis at xs4all.nl
Sun Aug 6 17:28:16 UTC 2017
> From: Rob Clark <robdclark at gmail.com>
> Date: Sun, 6 Aug 2017 11:34:15 -0400
>
> On Sun, Aug 6, 2017 at 10:45 AM, Rob Clark <robdclark at gmail.com> wrote:
> >
> > I've started trying to hack up test_efi_loader.py to add a test that
> > loads OpenBSD's bootloader.. kinda muddling through it at this point,
> > since not a py expert or too familiar w/ u-boot's test framework. But
> > I'll see if I can get to the point where I can run the same thing on
> > various arm7 and aarch64 devices in qemu.
> >
>
> Making a bit of progress on this (running it on a vexpress_ca15_tc2
> board in qemu).. any hint where I can find BOOTARM.EFI src code?
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/arch/armv7/stand/efiboot/efiboot.c?rev=1.17&content-type=text/x-cvsweb-markup
Your failure below looks a bit different from what I'm getting on the
Banana Pi now. There I get stuck because the 2nd BS->HandleProtocol()
call in efi_main() fails. Somehow the device path of the registered
disk devices isn't matched correctly to the boot device path...
BTW, the OpenBSD code runs fine without the alignment hack. Our code
is pretty minimal and doesn't actualy look into the device path
components. It just matches the components based on type and by soing
memcmp.
> => tftpboot 80400000 obsdboot.efi
> smc911x: MAC 52:54:00:12:34:56
> smc911x: detected LAN9118 controller
> smc911x: phy initialized
> smc911x: MAC 52:54:00:12:34:56
> Using smc911x-0 device
> TFTP from server 10.0.2.2; our IP address is 10.0.2.15
> Filename 'obsdboot.efi'.
> Load address: 0x80400000
> Loading: *%08#####
> 12.4 MiB/s
> done
> Bytes transferred = 64908 (fd8c hex)
> smc911x: MAC 52:54:00:12:34:56
> => crc32 80400000 $filesize
> CRC32 for 80400000 ... 8040fd8b ==> a9ac4fcf
> => bootefi 80400000
> ## Starting EFI application at 80400000 ...
> WARNING: Invalid device tree, expect boot to fail
> BS->LocateHandle() returns 0
> undefined instruction
> pc : [<9eec65c4>] lr : [<9eeca390>]
> sp : 9fed7a18 ip : 0000003f fp : 9fed7a2c
> r10: 00000000 r9 : 9eed4658 r8 : 00000000
> r7 : 9eed1ce4 r6 : 9eed3538 r5 : 9fed7a6c r4 : 9eed4658
> r3 : 00000000 r2 : 9eed2f8e r1 : 9eed1ee0 r0 : 00000000
> Flags: nZCv IRQs off FIQs off Mode SVC_32
> Resetting CPU ...
>
> resetting ...
>
>
> U-Boot 2017.09-rc1-00025-g534695d189 (Aug 06 2017 - 06:58:16 -0400)
>
> DRAM: 1 GiB
> WARNING: Caches not enabled
> Flash: 128 MiB
> MMC: MMC: 0
> *** Warning - bad CRC, using default environment
>
> In: serial
> Out: serial
> Err: serial
> Net: smc911x-0
> Hit any key to stop autoboot: 2
>
More information about the U-Boot
mailing list