LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-15-2021, 01:50 AM   #1
tosaikiran
LQ Newbie
 
Registered: Nov 2021
Posts: 20

Rep: Reputation: Disabled
Boot LFS from UEFI, without GRUB


Hi,

I am Sai Kiran. I am currently working on installing xen on LFS. I have successfully built the LFS system and installed xen on it. I am trying to boot from UEFI directly, instead of GRUB. The BLFS document talks about booting from GRUB-UEFI, which is not what I want. Could someone throw some light on how to boot from UEFI, bypassing GRUB?

Thanks in advance for your time and support.

Regards,
Sai Kiran.
 
Old 12-15-2021, 06:13 PM   #2
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,159

Rep: Reputation: 395Reputation: 395Reputation: 395Reputation: 395
I don't think you can. You need some form of bootloader. If there was a way to bypass the need for it it probably would have been done a long time ago. You need something that can be configured for the system. The EFI is built into the motherboard, no different than a bios. It's mostly a read only thing as I understand it.
 
Old 12-15-2021, 08:17 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,416

Rep: Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601
You will need to compile efi stub and possibly kernel options into the kernel. It is under processor type and features. Put the kernel on the efi partition and register it with the uefi firmware. Some of it will depend on your system uefi implementation.
Here is some additional information that may be useful
https://www.kernel.org/doc/Documentation/efi-stub.txt
https://wiki.archlinux.org/title/EFISTUB
https://wiki.debian.org/EFIStub
https://github.com/tklengyel/xen-uefi
https://wiki.xenproject.org/wiki/Xen_EFI

Last edited by colorpurple21859; 12-16-2021 at 09:17 AM.
 
Old 12-16-2021, 05:54 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,706
Blog Entries: 19

Rep: Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506Reputation: 4506
Is the OP trying to boot Linux directly or via xen? It's not clear from the post. You certainly can boot a kernel directly with efistubs but that may not be what is wanted here.
 
  


Reply

Tags
boot, lfs, uefi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI Class 3 :: To use UEFI, or not to use UEFI? jheengut Slackware 19 12-30-2020 09:24 AM
[SOLVED] Trying to boot Ubuntu in UEFI mode, UEFI doesn't recognize boot devices Sarcutus Ubuntu 11 01-11-2019 07:14 PM
Mobo only supports uefi boot - how do I boot off a non-uefi cd? Ulysses_ Linux - Hardware 3 02-25-2016 08:06 PM
how to install linux mint side by side windows into an uefi machine without uefi partition valgalsan Linux - Newbie 2 11-03-2015 12:25 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration