Date: Thu, 9 Oct 2014 18:31:20 +0100 From: Andrew Turner <andrew@fubar.geek.nz> To: Jaemin Yoo <zaemin.yoo@gmail.com> Cc: freebsd-arm@freebsd.org Subject: Re: Q: looking up 'kernel' on loader.efi of arm64 Message-ID: <20141009183120.73ff549d@bender.lan> In-Reply-To: <5436BD08.20403@gmail.com> References: <5436BD08.20403@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 10 Oct 2014 01:51:20 +0900 Jaemin Yoo <zaemin.yoo@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141009183120.73ff549d>