Q: looking up 'kernel' on loader.efi of arm64

Andrew Turner andrew at fubar.geek.nz
Thu Oct 9 17:31:36 UTC 2014


On Fri, 10 Oct 2014 01:51:20 +0900
Jaemin Yoo <zaemin.yoo at gmail.com> wrote:

> 
> Thanks for the help from Andrew. I could execute loader.efi for arm64
> from efi loader of my board(x-gene). Now the problem is loader can't
> find 'kernel'.
> 
> loader.efi is located at part1 disk. The disk is usb removable one and
> formatted as fat32 since x-gene efi loader requires it.
> 
> I have some questions...
> 
> 1) What's the scheme for looking up 'kernel' from loader.efi?
> 2) Is there any restriction for looking up 'kernel'?

loader.efi should try to read the fat filesystem. The problem is I've
only enabled the simpefs as it is all I've had to test. You can enable
FAT by uncommenting the dosfs_fsops entry in sys/boot/arm64/efi/conf.c
and rebuilding.

For the full kernel to work you will also need to provide a dtb.
Currently it tries to load /foundation.dtb. I'm planning on fixing
this, however until recently the copy of UEFI I have been using didn't
support passing the dtb to the loader.

You should be able to skip loading the dtb to begin with to check if
you can start executing the kernel.

Andrew


More information about the freebsd-arm mailing list