LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-07-2015, 02:02 PM   #1
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Post Observations on Slackware-current UEFI install 'glitch' on MSI X99S motherboard


This is a perfect example to to why, when our BDFL recommends, to make a USB boot stick "just in case". Its a bit lengthy for the tl;dr crowd, but may be useful to some as it also shows that UEFI implementations can vary.

I have set up on old Slackware-14.1 server to allow PXE boot via syslinux menu of both Slackware64-current and Slackware-current. This avoids the need to update an install DVD or USB stick, or in case one's laptop does not have an optical drive. TFTP boot was set up as per instructions in README_PXE.TXT and syslinux docs. This has worked well. So far:

Asus x200CA Intel notebook PC UEFI, safe boot off
This system does not provide a legacy boot mode. PXE boots works, set up GPT partitions, installer runs to completion. skip lilo and elilo config prompts normally. Slackware64-current boots normally in UEFI via elilo.

MSI U123 Atom netbook BIOS
PXE boots works, set up standard partitions, installer runs to completion. lilo prompts run normally. Slackware-current boots normally from MBR via lilo.

MSI X99S SLI Krait motherboard UEFI, UEFI+Legacy, safe boot off
This motherboard allows UEFI only boot or simultaneous UEFI+Legacy boot. With UEFI+legacy setting, PXE boot works, I set up the appropriate GPT partitions, setup runs and completes. However, only the lilo setup prompt occurs; no elilo prompts occur. The usb stick, however, is set up for UEFI boot. In summary:
  • LILO boots old Slackware-14.1 (/dev/sdb1) ok with UEFI+legacy setting.
  • PXE boots ok on UEFI+legacy setting
  • PXE does NOT boot on UEFI only setting
  • USB stick only boots via UEFI and NOT UEFI+legacy
  • eliloconfig does not run under UEFI+legacy mode (no error message)
At this point, I needed to set the X99 to boot UEFI only, plug in the USB stick, and I can now boot into the new Slackware64-current install on /dev/sda2. At this point, I note that /boot/efi/EFI/Slackware is empty. Being in UEFI only, run eliloconfig, which now works, and I can boot into Slackware64-currect without the USB stick.

However, in UEFI only, I cannot boot onto the old /dev/sdb1 Slackware partition. Howver, in UEFI+legacy mode, all the boot options are available. I can copy a 14.1 kernel and initrd over from /dev/sdb1 and set up elilo.conf:
Code:
prompt
chooser=simple
delay=1
timeout=50
default=slack64c
#
image=vmlinuz-generic
        label=slack64c
        initrd=initrd.gz
        read-only
        append="root=/dev/sda2 vga=normal ro"
image=vmlinuz-generic-3.10.17
        label=slackwarew64
        initrd=initrd2.gz
        read-only
        append="root=/dev/sdb1 vga=normal ro"
I can now boot into either Slackware installation without converting /dev/sdb to GPT partitions.

It may not be worth while determining why setup and liloconfig are a bit brittle on this particular motherboard UEFI firmware implementation. Going forward, I doubt many of us will need a legacy boot mode for much longer.
 
Old 09-07-2015, 02:36 PM   #2
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
So this must be the answer to http://www.linuxquestions.org/questi...ad-4175552092/? Very cool you sorted it out. Thanks for sharing the solutions here. Much appreciated.
 
Old 09-07-2015, 02:41 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Thanks for sharing your findings kingbeowulf. Yes of course UEFI implementation vary.

If you get no elilo prompt during installation, that's because /usr/sbin/eliloconfig didn't find a /sys/firmware/efi directory, that efibootmgr needs to work (it is through that interface that it modifies the firmware's menu IIRC).

In some cases (e.g. here) the firmware can give priority to UEFI or legacy booting if it proposes both. I don't know if this is the case for your MSI X99S motherboard. It is possible that its firmware advertize its UEFI interface to the OS only in case of UEFI only, or maybe also when both are enabled but then when priority is set to UEFI.

You could check that yourself: just start the Slackware installer and as soon as logged in as (fake) root, check the existence of the directory /sys/firmware/efi.

Last edited by Didier Spaier; 09-07-2015 at 03:08 PM. Reason: Path corrected.
 
Old 09-07-2015, 04:39 PM   #4
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Try out rEFInd sometime.
 
Old 09-07-2015, 04:42 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Make sure you report this to the motherboard manufacturer as well so they can fix it in a firmware update, also.
 
Old 09-07-2015, 04:51 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by Rinndalir View Post
Try out rEFInd sometime.
rEFINd helps a lot, especially in case of buggy or faulty or incomplete implementation of the UEFI specification in the provided firmware. In an ideal world (certainly not to morrow morning, alas) we shouldn't need it...
 
Old 09-07-2015, 06:05 PM   #7
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266

Original Poster
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Quote:
Originally Posted by ReaperX7 View Post
Make sure you report this to the motherboard manufacturer as well so they can fix it in a firmware update, also.
Good idea. When in the (BIOS) setup screen, the firmware shows what available boot devices are available, and highlights those with a detected boot partition or flag. With UEFI+legacy, that's a whole mess o' boot device icons, with, now, HD-u, HD, NET icons lit up (see attached photograph). Pretty damn silly to have it force legacy installation when obviously it can boot both.
Attached Thumbnails
Click image for larger version

Name:	New_x99_1st_powerup_small.jpg
Views:	77
Size:	238.4 KB
ID:	19525  
 
  


Reply

Tags
bios, boot, legacy, 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
Is better install Slackware in UEFI-mode ? xavi_slacky Slackware 11 01-15-2015 11:24 AM
[SOLVED] I Cannot install Slack64 14.1 with GPT in UEFI motherboard gauchao Slackware - Installation 10 01-02-2015 10:18 AM
Installing Slackware 14.1 via UEFI on a Thinkpad W530 ... observations and questions bimboleum Slackware 2 12-01-2013 09:54 PM
how to install RHEL 5.1 on a MSI K9A2 Platinum Motherboard mnv Red Hat 4 06-13-2008 09:26 AM
who use MSI 9130 motherboard? Could you have install the fedoracore2 using SATA hd? fuxcoding Fedora 0 10-21-2004 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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