LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-13-2022, 03:30 AM   #1
spat
LQ Newbie
 
Registered: Nov 2013
Location: Cornwall
Distribution: 15.0 on Ryzen Thinkpad A285
Posts: 28

Rep: Reputation: Disabled
lilo, BIOS vga mode, menu missing, Ryzen in a thinkpad, Slackware 15


"A subject that accurately describes your problem will make your thread much more likely to get a quick response."

Anyway. I was on -current before and I had a lilo menu in red.

Congratulations all round though releasing 15.0, getting all those vanilla compiles to mesh together is wonderful. But I've lost that red menu block. I have just the one line lilo 24.2 prompt, which admittedly shows all my lilo labels if I press TAB which lets me use them.

I also had to append "mem=16G" to get lilo to work. This Lenovo Thinkpad BIOS (1.47, latest version, for model A285) has quirks.

"Boot loader will fall back to TEXT only operation", the VGA warning, and that's what it's doing. I think if I only used 4-bit shades it might work but the defaults use 8-bit.

Googling mutters about people in general ignoring it. I didn't get that warning with -current though.

The only other change I can see from the liloconfig skeleton is the initrd=/boot/initrd.gz I added, and LBA32.

My lilo has the default vga=standard still. There's supposed to be a way to display all acceptable vga modes at boot time but I've not managed that.

Ignoring grub, can anyone suggest what I might try in order to get my red menu back? It's trivial but it has me puzzled.
 
Old 02-13-2022, 11:27 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,376

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
The way is "Trial & Error." You're on your own here.

There was something like 16 modes every card was supposed to have automatically. I don't know how many it is now. But there's a pile of 3 digit number choices you can stick in to lilo.conf
Code:
vga=791
used to be a standard one. Find out what you can put in (Lilo docs) find out which ones don't crash your box(trial & error) and post your winning recipe.

EDIT: On a newish box like that, you should have the all-pervasive UEFI along without a boot loader from the last millenium. Your distro, your rules, I know, but I'd suggest it. That's coming from someone who has BIOS issues getting out of legacy mode. And the Thinkpads always have quirks which may not be in the generic kernel.

Last edited by business_kid; 02-13-2022 at 11:34 AM.
 
1 members found this post helpful.
Old 02-13-2022, 01:22 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,368

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
Quote:
There's supposed to be a way to display all acceptable vga modes at boot time but I've not managed that.
vga=ask

Last edited by colorpurple21859; 02-13-2022 at 01:23 PM.
 
1 members found this post helpful.
Old 02-13-2022, 05:34 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Quote:
I also had to append "mem=16G" to get lilo to work.
Try adding the 'large-memory' option to your /etc/lilo.conf
I always enable the 'lba32' and 'compact' options. I have never had hardware where there was a problem.

If you use 'vga=normal', the default BIOS settings are used, which will always work.
With 'vga=ask', you can see possible alternatives on your hardware.

I am happy to use the default Slackware LILO bitmap.
Code:
bitmap = /boot/slack.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255
 
1 members found this post helpful.
Old 02-14-2022, 03:11 AM   #5
spat
LQ Newbie
 
Registered: Nov 2013
Location: Cornwall
Distribution: 15.0 on Ryzen Thinkpad A285
Posts: 28

Original Poster
Rep: Reputation: Disabled
I'm grateful for all three responses, I'll report back when I've got somewhere. This Thinkpad BIOS is definitely an outlier.
 
Old 02-14-2022, 04:45 AM   #6
spat
LQ Newbie
 
Registered: Nov 2013
Location: Cornwall
Distribution: 15.0 on Ryzen Thinkpad A285
Posts: 28

Original Poster
Rep: Reputation: Disabled
Okay. First off, this is what the BIOS appears to be telling me:

Code:
root@a285:~# lilo -T video

VGA adapter:

    640x350x16    mode 0x0010
    640x480x16    mode 0x0012

    320x200x256   mode 0x0013

root@a285:~#
though none of those modes, or any other I tried, removes the "fall back to TEXT only" warning.

I have got back to my red boot rectangle, with all my labels, by removing every part of the lilo.conf relating to vga or bmp. All I have now, which works fine, is:

Code:
root@a285:~# cat /etc/lilo.conf
append="mem=16G "
boot = /dev/nvme0n1
#lilo -M /dev/sda # will write a USB2 boot stick
LBA32
compact
message = /boot/message.txt
prompt
timeout = 300
change-rules
  reset

image = /boot/vmlinuz
  initrd=/boot/initrd.gz
  root = /dev/slack/root
  label = Linux
  read-only

image = /boot/vmlinuz-generic
  initrd=/boot/initrd.gz
  root = /dev/slack/root
  label = Generic
  read-only

image = /boot/vmlinuz-huge-5.15.19
  initrd=/boot/initrd-5.15.19.gz
  root = /dev/slack/root
  label = Linux-5.15.19
  read-only
- the message.txt is empty. No warnings, boot screen as desired, I have no idea why the warning showed up this time, it wasn't there with 14.2-current. The initrd.gz is there because I'm using LVM/LUKS for encryption at rest.

Thank you all again for the suggestions.

Last edited by spat; 02-14-2022 at 04:48 AM.
 
1 members found this post helpful.
Old 02-14-2022, 06:15 AM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
A few comments.
Quote:
append="mem=16G "
I would write that with a space character between the initial double quote and the option as the kernel parses the append line as space delimited parameters.
Code:
append=" mem=16G"
Quote:
LBA32
That should be lower case.
Code:
lba32
I would still add a global option.
Code:
vga=normal
Quote:
image = /boot/vmlinuz
initrd=/boot/initrd.gz
The "initrd=" is unnecessary as the huge kernel does not use an initrd.
Quote:
image = /boot/vmlinuz-generic
initrd=/boot/initrd.gz
root = /dev/slack/root
The "root=" is unnecessary when an initrd is used, as it is specified in the initrd.gz
 
1 members found this post helpful.
Old 02-14-2022, 11:32 AM   #8
spat
LQ Newbie
 
Registered: Nov 2013
Location: Cornwall
Distribution: 15.0 on Ryzen Thinkpad A285
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thank you allend, I've corrected those now. I still seem to need the initrd.gz with -huge, possibly because of luks encryption modules which might normally load that way. Dropping the root= line was a surprise.

I can now confidently add self-compiled kernels with my own edits, as a learning step. I'm sure it could be done with a grub2 configuration file but that's unfamiliar to me. My trivial compile script extends this working lilo.conf very easily now.
 
Old 02-14-2022, 01:02 PM   #9
JayByrd
Member
 
Registered: Aug 2021
Location: Seattle, WA
Distribution: Slackware
Posts: 302

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
Quote:
Originally Posted by spat View Post
...I still seem to need the initrd.gz with -huge, ...
Yes. While huge handles most common scenarios without an initrd, there are still times when an initrd is needed. E.g., using kernel-huge, I'm still trying to figure out all the modules I need in the initrd to get a macbook pro booting from a USB flash drive!
 
1 members found this post helpful.
  


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
[SOLVED] Lenovo Thinkpad E595 (AMD Ryzen) compatability problems? Hermani Linux - Laptop and Netbook 6 08-24-2020 01:46 PM
LXer: Overclock your AMD Ryzen Mobile on Linux with Ryzen Controller LXer Syndicated Linux News 0 08-27-2019 06:31 PM
if i get an nforce mobo with built-in VGA... will the built in vga work in linux? kublador Linux - Hardware 2 11-10-2003 08:26 PM
VGA to VGA cards Stephanie Linux - General 3 02-07-2003 08:46 AM
Lilo vga mode dj_relentless Linux From Scratch 1 02-21-2002 12:29 PM

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

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