LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-22-2012, 11:59 AM   #1
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Rep: Reputation: 16
Help with Linux (No ms-windows installed) uefi setup


I can't get my x86 (32bit) Fedora-15 on /dev/sdb to boot with UEFI.
When I select "Launch EFI Shell from Filesystem Device" in bios it displays:
Warning
Not Found
ok ...Selecting "ok" sends me back to bios

I guess this means the Asus firmware (bios) can't find my /boot/efi/grub/grub.efi file. I tried renaming it to shellX86.efi, shelli386.efi & even shellx86_64.efi but nothing works.
I even downloaded the "EdkShellBinPkg_FullShell_la32_Shell_full.efi", renamed it as above & copied it to my /boot/efi directory ..but I still got the same warning message.

If anyone knows where Asus UFEI firmware looks for an EFI Shell & the name it searches for, I would appreciate the info.


Here is some info about my Linux system:
I have an Asus F1A75-M motherboard with EZ-Bios that supports UEFI booting.
It has an advanced bios option to "Launch EFI Shell From Filesystem Device" & I have GPT partitions setup as follows:

#gdisk -l /dev/sdb
Number Start (sector) End (sector) Size Code Name
1 34 390625 190.7 MiB EF00 efi_sys
2 391168 98045951 46.6 GiB 0700 linux
3 98045952 101953535 1.9 GiB 8200 swap
4 101953536 121485311 9.3 GiB 0700 linux
5 121485312 625141759 240.2 GiB 0700 linux

#parted -l
Number Start End Size File system Name Flags
1 17.4kB 200MB 200MB fat32 efi_sys boot
2 200MB 50.2GB 50.0GB ext4 linux
3 50.2GB 52.2GB 2001MB linux-swap(v1) swap
4 52.2GB 62.2GB 10.0GB ext4 linux
5 62.2GB 320GB 258GB ext4 linux

My kernel-3.3.1 is configured for UEFI & have grub-1.99 configured for UEFI using the following commands:
#Kernel
CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
CONFIG_FB_EFI=y
CONFIG_EFI_VARS=m

#Grub-1.99
./configure --with-platform=efi --enable-grub-mkfont --target=i386 --program-prefix=""
grub-mkimage -O i386-efi -d . -o grub.efi -p "" boot normal part_gpt part_msdos efi_gop linux multiboot fat ext2 ls lspci reboot search help video lvm configfile datetime loadenv

#Grub.cfg
timeout=10
default=0
set prefix=(hd0,gpt1)/efi/grub
set color_normal=white/black
set menu_color_normal=white/dark-gray
set menu_color_highlight=green/yellow
if $prefix/font/unicode.pf2 ; then
insmod font
loadfont $prefix/font/unifont.pf2
set gfxmode="1024x768x32"
set gfxpayload=keep
insmod gfxterm
terminal_output gfxterm
fi

menuentry "linux-sdb 3.3.1-se fedora-FC15 systemd no-initramfs fglrx uefi" {
set root=(hd0,gpt1)
linux (hd0,gpt2)/boot/bzImage-3.3.1-se root=/dev/sdb2 ro resume=/dev/sdb4 raid=noautodetect init=/bin/systemd
}

menuentry "Reboot" {
reboot
}
 
Old 04-22-2012, 09:23 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
before you go to far with fedora 15
in about 2 months fedora 15 goes END OF LIFE

you might want to use fedora 16 instead
or fedora 17 next month
 
Old 04-23-2012, 09:17 AM   #3
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Original Poster
Rep: Reputation: 16
Actually I am planning to install Fedora-17 (X86-64) when it is available. My current Fedora-15 is a x86 (32 bit) install & I have been reluctant to install a 64 bit operating system for fear of software support. However, I guess this is the future & I Think it may also solve my problem booting in UEFI Mode.

I Think Asus EZ-Bios (F1A75-M motherboard) uses X86_64 UEFI FIRMWARE ARCHITECTURE & Since my Fedora-15 is x86 it can't find my i386 grub.efi shell. When I install Fedora-17 as X86_64, I'll configure Grub-1.99 as an x86_64 bootloader & then make an x86_64 grub.efi as follows.

./configure --with-platform=efi --enable-grub-mkfont --target=x86_64 --program-prefix=""
grub-mkimage -O x86_64-efi -d . -o grub.efi -p "" [modules]

Actually, I think Fedora-17 comes with grub-1.99 so it will probably already be configured for x86_64 booting. Maybe the install CD will have even have an option to install with UEFI booting. I'll have to wait & see.

In the meantime if anyone can shed more light on booting Linux in UEFI mode I would appreciate a reply. Thanks for reading this post.
 
Old 04-23-2012, 07:11 PM   #4
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by ssenuta View Post
... I have been reluctant to install a 64 bit operating system for fear of software support.
These days mostly all software has 64 bit versions available. Unless you specifically know that there is some software that you really need that is only available in a 32 bit version I would go with 64 bit.
Quote:
Originally Posted by ssenuta View Post
In the meantime if anyone can shed more light on booting Linux in UEFI mode I would appreciate a reply.
According to this thread on the Suse forums, a UEFI Linux install, at least on Asus motherboards, may not be possible because they only support Windows with UEFI installs: http://forums.opensuse.org/english/g...ll-64-bit.html
You should still be able to install any Linux on a motherboard with a UEFI bios though. Just boot from the install disc and install the regular way.
TobiSGB managed to install Slackware on that same Asus M5A99X EVO motherboard they talked about in that thread on the Suse forums: http://www.linuxquestions.org/questi...3/#post4648502

Last edited by tommcd; 04-23-2012 at 07:13 PM.
 
Old 04-27-2012, 10:08 AM   #5
clunky munky
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
I also have the Asus F1A75-M motherboard (bios version 1901). It looks like the fat32 formatted EFI system partition (EF00) is already in place. As mentioned in the openSUSE link, the fallback location \efi\boot\bootx64.efi works for my setups (below) where bootx64.efi is GRUB's or rEFInd's efi file copied and renamed. Since I have the ESP mounted to /boot/efi, it looks like /boot/efi/efi/boot/bootx64.efi after successfully booting.


Arch Linux 64-bit + GRUB2 1:2.00beta3-1 on Samsung Series 9 NP900X3A

Arch Linux 64-bit + rEFInd (git 20120427) on Asus F1A75-M

Last edited by clunky munky; 04-27-2012 at 10:12 AM. Reason: forgot to mention source of bootx64.efi
 
Old 04-29-2012, 07:59 AM   #6
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Original Poster
Rep: Reputation: 16
Thanks clunky munky. Its good to know the Asus F1A75-M UEFI firmware will successfully boot in UEFI Mode.

I still plan to Inatall Fedora-17-x86_64 when the stable version is (May 15th) available.
After reading the Fedora-16 installation instructions, I will try a custom setup with one of the (3ea) partition setups.

UEFI System Partitions (1st choice):

NUMBER MNT-POINT SIZE DEVICE FILESYSTEM NAME CODE FLAG
1 /boot/efi 200MB /dev/sda1 vfat efi_sys EF00 BOOT ../boot/efi/EFI/redhat/grub.efi (grub efi-bootloader)
2 / 50GB /dev/sda2 ext4 linux 0700 ..code 8300 also possible if dual booting windows
3 ------ 2GB /dev/sda3 linux-swap swap 8200
4 /home 10GB /dev/sda4 ext4 linux 0700 ..code 8300 also possible if dual booting windows
5 un-partitioned

NOTE: parted probably will use code 0700 instead of 8300 because I don't dual-boot Windows

BIOS GPT Partitions (2nd choice):

NUMBER MNT-POINT SIZE DEVICE FILESYSTEM NAME CODE FLAG
1 ------ 1MB /dev/sda1 ------ linux EF02 bios_grub ..grub2 will put its core.img data here
2 /boot 250MB /dev/sda2 ext3 linux 0700 legacy_boot
3 / 50GB /dev/sda3 ext4 linux 0700
4 ------ 2GB /dev/sda4 linux-swap swap 8300
5 /home 10GB /dev/sda5 ext4 linux 0700
6 un-partitioned

MS-DOS Partitions (3rd choice):

NUMBER TYPE MNT-PT SIZE DEVICE FILESYSTEM NAME CODE FLAG
1 primary /boot 250MB /dev/sda1 ext3 linux 83 * ..kernel & boot-loader files here
2 primary / 50GB /dev/sda2 ext4 linux 83
3 primary ------ 2GB /dev/sda3 linux-swap linux 82
4 extended ------ /dev/sda4 ------ extended 05
5 logical /home 10GB /dev/sda5 ext4 linux 83
6 logical un-partitioned
 
  


Reply



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
LXer: UEFI On Linux Is Like A Pathogen LXer Syndicated Linux News 0 04-07-2012 11:11 AM
Set up a multiboot Linux / Windows with UEFI nub Linux - Newbie 2 01-04-2012 04:46 PM
LXer: UEFI and Windows 8: is this bad news for GNU/Linux? LXer Syndicated Linux News 0 11-03-2011 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:27 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