Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm porting UEFI BIOS. I'd like to download an Linux image (bzImage) to system memory by TFTP in my UEFI shell, and then boot the OS directly. I know we generally need another bootloader to do that. But is it possible to boot Linux in UEFI BIOS? And how?

share|improve this question

migrated from stackoverflow.com Feb 10 '11 at 15:52

This question came from our site for professional and enthusiast programmers.

    
Might be relevant: unix.stackexchange.com/a/40775/12779 –  Marco Jun 14 '12 at 13:17
    
You may find Matthew Garrett's (recently formerly of RedHat) adventures with UEFI useful: mjg59.dreamwidth.org/20187.html –  Rob Nov 15 '12 at 13:31
add comment

2 Answers 2

As far as I know, a UEFI firmware (not BIOS, that's something else) can only load UEFI applications corresponding to the EFI firmware architecture. So you can't directly load a Linux kernel, but you should be able to load a UEFI bootloader which will then load the Linux kernel into memory and jump to it. I know of GRUB2 and ELILO which support UEFI, you may want to check them out.

Update: Since I've posted this answer it has since become possible to compile a Linux kernel with the EFISTUB option, which allows to directly execute/load the kernel as an EFI image without having to use a boot loader (that being said, using a boot loader such as Gummiboot is probably still a good idea).

share|improve this answer
    
Is it possible to do what UEFI bootloader does in UEFI BIOS? –  Vince Feb 11 '11 at 1:21
    
Not as far as I know. –  Cedric Feb 11 '11 at 8:14
add comment

Basically, yes but firstly you need to enable the network card so that your target machine can ping the FTP server to get the kernel image.

Checkout the EDK Boot Loader (EBL) WiKi SourceForge link.

share|improve this answer
    
EBL looks like not booting a Linux bzImage... –  Vince Aug 10 '11 at 4:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.