UEFI booting linux, initramfs not loaded?
|
2018-12-05, 23:31
Post: #1
|
|||
|
|||
UEFI booting linux, initramfs not loaded?
I've been trying to boot the newer Dell computers with UEFI, given they no longer support the BIOS boot method from hard drive, and you need to boot UEFI to install Ubuntu as UEFI.
I've set up the Ubuntu 16.04 LTS installer, I boot the computer on UEFI and boot iPXE. I select the menu entry for installing Ubuntu 16.04, and the screen shows the kernel downloading and the initrd downloading: From there, the kernel boots, and almost immediately shows the error that it cannot open root device "nfs": The ipxe code to do this, Code: set nfs_path /home/netboot/images ... and when I boot this on BIOS boot method, I hit the break at the top of the init script. When I boot this on UEFI, I get that the root device NFS does not exist. It feels like NIC drivers, so I compiled the e1000e driver into the Ubuntu kernel and tried booting... only to get the same error again. At that point, it still felt like it wasn't loading the initramfs, so I did what any experimental person would do: I compiled the initramfs into the kernel, yielding a 200MB bzimage. I edited the menu, Code: kernel ${nfs_file}/${ubuntu_path}/install/hwe-netboot/ubuntu-installer/amd64/linux-allinone It seems like the initramfs as loaded by ipxe isn't being used specifically in UEFI boot mode. Perhaps it's being loaded to an incorrect area. Does anyone have input here? |
|||
2018-12-06, 21:36
Post: #2
|
|||
|
|||
RE: UEFI booting linux, initramfs not loaded?
When booting in efi mode you have to tell the kernel what the name of your initrd is.
So on the imgargs line, add initrd=initrd-ori This is documented in several places, but is specific to what the Linux kernel needs to know which file in efifs that it should load, if any Use GitHub Discussions VRAM bin |
|||
2018-12-07, 18:41
Post: #3
|
|||
|
|||
RE: UEFI booting linux, initramfs not loaded?
That got it! Specifying the initrd= parameter works for UEFI and doesn't harm the BIOS boot method at all either. Thanks very much :-)
I can't find it actually documented anywhere, though. Some support tickets for unrelated projects. Would it be possible to add a Note in http://ipxe.org/cmd/kernel ? My account doesn't have edit access. |
|||
2019-01-03, 22:42
Post: #4
|
|||
|
|||
RE: UEFI booting linux, initramfs not loaded?
Just noticed that we have documented this in our own FAQ, see http://forum.ipxe.org/showthread.php?tid...1#pid19101
Use GitHub Discussions VRAM bin |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)