The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loading a combined kernel, initramfs, and boot options as direct loadable efi stub
2018-08-28, 09:27
Post: #1
Loading a combined kernel, initramfs, and boot options as direct loadable efi stub
Hi,

I want to load a combined kernel, initramfs, and boot options as direct loadable efi stub. There fore I prepare the kernel.efi as follows:


objcopy \
--add-section .osrel=/etc/os-release --change-section-vma .osrel=0x20000 \
--add-section .cmdline="cmdline.txt" --change-section-vma .cmdline=0x30000 \
--add-section .linux="vmlinuz-linux" --change-section-vma .linux=0x40000 \
--add-section .initrd="initramfs-linux.img" --change-section-vma .initrd=0x3000000 \
/usr/lib/systemd/boot/efi/linuxx64.efi.stub kernel.efi

If I load the kernel.efi direct with the EFI bootmanager everything seems fine.
But if I load the kernel.efi with iPXE the cmdline is somehow missing (the /proc/cmdlin is
empty ... only kernel.efi is in there)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Loading a combined kernel, initramfs, and boot options as direct loadable efi stub - tbk - 2018-08-28 09:27



User(s) browsing this thread: 1 Guest(s)