LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 08-27-2012, 10:11 PM   #1
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 116

Rep: Reputation: 16
Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM


I made a cdrom rescue rootfs that can boot in both bios-mode & uefi-mode.
However, I have to use the UEFI (ShellX64.efi) Shell to boot my UEFI isolinux/efiboot.img.
What I need is a regular efibootmgr created UEFI menu entry like "Boot0003* Rescue-cdrom" &
would appreciate any info you can provide.

Here is what I have now:
[root@localhost stan]# efibootmgr -v
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0004,0000,0001,0002
Boot0000* Fedora-17 HD(1,28,100000,8673914e-53a2-4c46-a75f-0e55944f2005)File(\EFI\FEDORA17\bzImage.efi)
Boot0001 Hard Drive BIOS(2,0,00)
Boot0002 CD/DVD Drive BIOS(3,0,00)SATA PM: ASUS DRW-24B1ST .
Boot0004* Rescue-usb HD(1,800,64000,b9d26721-d617-4718-bcee-5bb0d49bb913)File(\EFI\BOOT\BOOTX64.efi)i.n.i.t.r.d.=.\.E.F.I.\.B.O.O.T.\.i.n.i.t.r.f.s...r.d.z...

Here is what I tried:
1.) efibootmgr -c -d /dev/sr0 p 1 -L Rescue-CD -l \\EFI\\BOOT\\BOOTX64.efi -u "initrd=\\EFI\\BOOT\\initrfs.rdz"
Error: no partition information on disk /dev/sr0.
Cowardly refusing to create a boot option.

2.) efibootmgr -c -d /dev/sr0 -L Rescue-CD -l \\EFI\\BOOT\\BOOTX64.efi -u "initrd=\\EFI\\BOOT\\initrfs.rdz"
Error: no partition information on disk /dev/sr0.
Cowardly refusing to create a boot option.

To boot this rescue-cdrom via uefi-mode NOW I have to:
Enter bios & start my UEFI Shell .........................Shellx64.efi is in my /dev/sdb1 ESP root (/) directory
shell> fs1: ..............................................change to cdrom drive
fs1:\> cd EFI\BOOT .......................................change to cdrom kernel & initrd location
fs1:\> BOOTX64.efi initrd=\EFI\BOOT\initrfs.rdz ..........boot my efistub kernel & initrd

NOTE: BOOTX64.efi is a Linux efistub (bzImage) kernel configured with built-in boot options
CONFIG_CMDLINE="root=/dev/ram0 selinux=0 plymouth.enable=0 raid=noautodetect single"

To make my (UEFI-MODE) eltorito boot cdrom rescue.iso image I used the following:
genisoimage -v -R -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat -eltorito-alt-boot -e isolinux/efiboot.img -no-emul-boot -o rescue.iso .

Content of isolinux directory:

bzImage ..............Regular (non-efistub) Kernel
initrd ...............Rootfs Image
efiboot.img ..........UEFI Tree Image
isolinux.bin .........Boot code
isolinux.cfg .........Boot config
message.txt ..........User message

Content of (FAT-32) efiboot.img:

EFI ..................Directory
BOOT..................Directory
BOOTX64.efi ..........EFISTUB Kernel renamed from bzImage
initrfs.rdz ..........Rootfs (gzip) Image

Thanks for reading this post.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 vs. BIOS install - Which one should I choose? tauro_kpo Linux - Hardware 4 08-16-2012 05:31 AM
BIOS vs. uEFI? confuey Linux - Kernel 5 05-22-2012 03:40 PM
Make UEFI bootable live CD Plamen Doykov Linux - General 0 01-27-2012 01:00 PM
UEFI and BIOS: What is it really? cruiser General 10 09-27-2011 12:18 PM


All times are GMT -5. The time now is 11:37 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration