Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Live USB UEFI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
divoxx
n00b
n00b


Joined: 23 Feb 2005
Posts: 11
Location: Brazil

PostPosted: Wed Jul 09, 2014 6:33 pm    Post subject: Live USB UEFI Reply with quote

Hey Guys,

I was wondering if anyone would know a way to boot the minimal installation iso or the live cd/dvd as EFI. Looking at the images, there is a bunch of .efi files which leads me to think that it couldn't be impossible.

For example, there is "gentoo.efimg" and "gentoo.efimg.mountPoint", which have a elilo.efi, a gentoo kernel and a folder efi/boot/ with bootia32.efi and elilo.msg. There is also another elilo.efi inside the isolinux folder. Could those be used to put together as a bootable UEFI USB?

I've been trying to find some information but can't really find new subjects on the topic.

Thanks a lot for any help.
Back to top
View user's profile Send private message
The Doctor
Veteran
Veteran


Joined: 27 Jul 2010
Posts: 1725

PostPosted: Wed Jul 09, 2014 7:55 pm    Post subject: Reply with quote

Quote:
I was wondering if anyone would know a way to boot the minimal installation iso or the live cd/dvd as EFI.
No, it lacks support for that. Use the System Rescue CD instead. It has no problems with EFI and is functionally identical to the minimal CD except with a xfce (I think) and better hardware support.
_________________
First things first, but not necessarily in that order.
Back to top
View user's profile Send private message
srs5694
Guru
Guru


Joined: 08 Mar 2004
Posts: 434
Location: Woonsocket, RI

PostPosted: Thu Jul 10, 2014 12:46 am    Post subject: Reply with quote

As The Doctor says, the path of least resistance is to use something else that explicitly supports EFI-mode booting.

If you're looking for a learning project, though, you can add an EFI-mode boot loader to just about any medium. (Doing it on optical discs is a big pain, though, so I recommend starting with USB flash drives.) Basically, you need a FAT partition with an "EFI/BOOT/bootx64.efi" file on it. That file should be ELILO, SYSLINUX, rEFInd, or some other EFI-mode boot loader or boot managers. You'll also need to provide it with a configuration file that will point the boot loader to the kernel and (if present) initrd file, and pass suitable options to it. You may need to figure out those options by studying the BIOS-mode boot loader on the medium. Figuring out how to "translate" to whatever EFI-mode boot program you use is up to you. For more on EFI-mode boot programs generally, see my Web page on the subject.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1801
Location: Berlin, Germany

PostPosted: Thu Jul 10, 2014 10:32 am    Post subject: Reply with quote

As the minimal install CD already uses ISOLINUX, it is possible to follow the LiveUSB guide, and then make the result EFI bootable.

For that change the partition type to EF (or EF00 on gpt), emerge >=syslinux-6, copy the files syslinux.efi ldlinux.e64 libutil.c32 menu.c32 from /usr/share/syslinux/efi64/ to EFI/Boot and rename syslinux.efi to bootx64.efi.

Then create a config file which does nothing but load the existing config file that came with the install CD:
EFI/boot/syslinux.cfg:
DEFAULT existing_config
PROMPT 0

LABEL existing_config
        CONFIG /syslinux.cfg /
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum