Announcement

Collapse
No announcement yet.

A Single UEFI Executable With The Linux Kernel, Initrd & Command Line

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A Single UEFI Executable With The Linux Kernel, Initrd & Command Line

    Phoronix: A Single UEFI Executable With The Linux Kernel, Initrd & Command Line

    Thanks to recent work done by systemd developers Kay Sievers and David Herrmann on Gummiboot, there's a UEFI boot-loader stub for starting a Linux kernel with an initial RAM disk (initrd) and kernel command line that are all embedded within the executable...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    I like this.

    Comment


    • #3
      Originally posted by flubba86 View Post
      I like this.
      Same

      (awaits inevitable systemd-doing-everything complaint)

      Comment


      • #4
        I don't really see what is the point in all the efforts with UEFI 'bootloaders' as of lately. Linux EFI stub has been there for four solid years, so any fairly recent kernel (as well as initrd) can be loaded and booted directly from (U)EFI, without the need for any sort of bootloaders... Linux EFI stub is particulary suitable for setting up a rescue env, which can be added as one of the boot options by efibootmgr. For anything more advanced (meus, plethora of boot options) grub2 in its UEFI flavor will do just fine. Check http://www.rodsbooks.com/efi-bootloaders/efistub.html

        Comment


        • #5
          Cool. I'm looking at objcopy now.

          Comment


          • #6
            Humm....

            Originally posted by phoronix View Post
            Phoronix: A Single UEFI Executable With The Linux Kernel, Initrd & Command Line

            Thanks to recent work done by systemd developers Kay Sievers and David Herrmann on Gummiboot, there's a UEFI boot-loader stub for starting a Linux kernel with an initial RAM disk (initrd) and kernel command line that are all embedded within the executable...

            http://www.phoronix.com/scan.php?pag...ec-Stub-Loader
            (obligatory systemd bait follows)

            Can inclusion into the monolithic empire of SystemD(eath) be far behind? "All your hardware belongs to systemd!!!"

            Comment


            • #7
              I've been playing with uefi shell and efi stub last year, made a few kernel images as efi applications just for fooling around Additional kernel parameters could be set as an efi application argument when going through uefi shell. Nice thing anyway.
              Originally posted by NotMine999 View Post
              (obligatory systemd bait follows)

              Can inclusion into the monolithic empire of SystemD(eath) be far behind? "All your hardware belongs to systemd!!!"
              busybox & kexec & stuff...really no need for systemd. Depends on use case.

              Comment


              • #8
                It is not practical for booting directly from such image. Try having multiple boot options... At least on my motherboard number is limited to 4 i think. And managing them is more manual than one would wish for. On the other hand if used with bootloader i can see advantages. Entire image could be signed and signature checked by bootloader whose signature in turn checked by firmware. That sounds pretty solid.

                Comment


                • #9
                  Hah, in this case the tools do not need systemd but the script does.

                  Comment


                  • #10
                    Exactly. The only tool that script invokes is objcopy.

                    After reading this post last night, I made a one line script that does the same thing without systemd.

                    Comment

                    Working...
                    X