LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-10-2019, 11:31 AM   #16
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled

Quote:
Originally Posted by Scribtor View Post
While on the topic of messing around with LILO,
How to change the default "slack.bmp" image that is loaded at boot-time to a picture I might prefer better?
LiLo bmp's are a bit tricky. I haven't gotten one to work that I made with Gimp. But I have made some work when I made them with Windows (7) Paint.

Here is a nice (old) article explaining how to do it with Gimp, (that I used with MS Paint): https://princessleia.com/liloSplash.php

I also have a handful of them in the slack-wallpapers SlackBuild on SBo.
Or you can find them on my GitHub here.
Make sure to read the accompanying .txt file with the images.

Last edited by Skaendo; 11-10-2019 at 11:41 AM.
 
1 members found this post helpful.
Old 11-10-2019, 11:44 AM   #17
Scribtor
Member
 
Registered: Sep 2019
Distribution: Slackware64 - current
Posts: 65

Original Poster
Rep: Reputation: Disabled
No output available since kernel panics on every boot attempt, regardless of whether I create and define initrd.gz or not. On this kernel that works, only thing dmesg outputs is some invalid data for the touchpad (although everything works)

The last few times the panic message is always the same: system unable to mount my /dev/sda4 ext4 filesystem as /

Skaendo: I had a buddy send me a 640x480 bmp image (A pro graphic designer), that I only downgraded in quality using gimp options mentioned before. This eventually became the way easier of the two options posted, but thanks for sharing!

Last edited by Scribtor; 11-10-2019 at 11:47 AM. Reason: Avoiding unnecessary bumps
 
Old 11-10-2019, 01:42 PM   #18
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@ Scribtor

I'd suggest to not "over-complicate" yourself with the initial ramdisk for your own kernel compilation if you have a modern system with at least 256-512MB RAM.

If you start your kernel build with the default config (make defconfig), you should have all the options (HW support) needed to successfully boot the kernel, unless your HW is somewhat special.
You can follow this short guide I wrote recently for compiling your own kernel - adapt it to your desired kernel version:
https://www.linuxquestions.org/quest...8/#post6052734
- for your case, stop after the step "make modules_install", never mind the rest of the instructions, and just manually copy the kernel, as advised by hazel in post #6

Add a new image section to your /etc/lilo.conf and execute /sbin/lilo
Code:
# new kernel image section - substitute the "x" with your configuration
image = /boot/vmlinuz-xx.xx.xx
root = /dev/xxx
label = kernel-xx.xx.xx
read-only
You'll have two kernels, your own and the one Slackware is providing, which you can continue to update (slackpkg). If you need to cleanup your own kernel, just delete the file(s) you manually copied in /boot , remove/comment the extra image section you defined in lilo (don't forget to run lilo afterwards) and delete the /lib/modules/your-kernel folder.
 
Old 11-11-2019, 01:05 AM   #19
Scribtor
Member
 
Registered: Sep 2019
Distribution: Slackware64 - current
Posts: 65

Original Poster
Rep: Reputation: Disabled
Thanks for the help!


Kernel is now showing progress.

Using the instructions from the previous post, I was able to survive kernel panic events and the kernel image again produced an environment that is without wifi,no touchpad, no sound, and no ntfs-3g support for two of my win ntfs partitions

(I've tested the wired connection and it works, so there's something at least)

Attached is the dmesg output that was asked a few posts back
Attached Files
File Type: txt output.txt (44.0 KB, 19 views)
 
Old 11-11-2019, 03:42 AM   #20
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,601
Blog Entries: 19

Rep: Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456
Your dmesg output shows that you do not have the regulatory.db package. You should install that. A lot of network drivers need it. That might even be (part of) the reason you don't have wi-fi.

I made a bit of a mess of my kernel upgrade and have only just got Slackware up and running again, so here is a piece of hard-won advice for anyone who reads this thread: when you create a new initrd, do not use the default output /boot/initrd.gz. That will overwrite your old initrd and then it won't help you that you saved your old kernel as a backstop. You won't be able to boot it because the initrd won't match, and if you can't boot the new kernel either, you're stuck. I had to chroot over from LFS to create an initrd that worked with the new kernel.
 
1 members found this post helpful.
Old 11-11-2019, 05:02 AM   #21
Scribtor
Member
 
Registered: Sep 2019
Distribution: Slackware64 - current
Posts: 65

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Your dmesg output shows that you do not have the regulatory.db package. You should install that. A lot of network drivers need it. That might even be (part of) the reason you don't have wi-fi.

I made a bit of a mess of my kernel upgrade and have only just got Slackware up and running again, so here is a piece of hard-won advice for anyone who reads this thread: when you create a new initrd, do not use the default output /boot/initrd.gz. That will overwrite your old initrd and then it won't help you that you saved your old kernel as a backstop. You won't be able to boot it because the initrd won't match, and if you can't boot the new kernel either, you're stuck. I had to chroot over from LFS to create an initrd that worked with the new kernel.
Same thing happened to me but I managed to salvage myself by overwriting it all thanks to slackpkg and the fact that a new kernel version was released, so...yeah.

I grabbed the config for the current kernel version (4.19.83) from the slackware site, and am recompiling again, but using the new stable kernel 5.3.10.

Will update with what effects that had.
 
Old 11-11-2019, 11:25 AM   #22
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
The i915 firmware also did not load. I am not sure what problems that could cause.

Do "lsmod" to see which modules loaded.

BTW, you are compiling the kernel on an Atom. You must have a lot of patience.
Ed
 
Old 11-11-2019, 11:35 AM   #23
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,601
Blog Entries: 19

Rep: Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456Reputation: 4456
If he doesn't have i915, X will probably use modesetting instead.
 
Old 11-11-2019, 03:25 PM   #24
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@Scribtor
Quote:
the kernel image again produced an environment that is without wifi,no touchpad, no sound, and no ntfs-3g support for two of my win ntfs partitions
You should first investigate what HW is available in your laptop in order to know what HW support (options) to enable in the kernel you're compiling.
The following commands will provide you some info on the HW available:
Code:
/usr/bin/lsusb
/sbin/lspci
# for the input devices
cat /proc/bus/input/devices
# or grep them by name
cat /proc/bus/input/devices | grep Name
lspci & lsusb will show the available WiFi & Sound Card.
On inputs, you can also grep the dmesg after "input:" and indeed, I also noticed your touchpad was not recognized. On some modern laptops the touchpad is connected through the i2c interface and I believe the i2c_hid driver is not enabled in your kernel.
https://wiki.gentoo.org/wiki/I2C
On NTFS, again, you need to enable the support in the kernel:
https://wiki.gentoo.org/wiki/NTFS

@EdGr
Modern Celerons (Atoms too) are pretty fast, I suspect it won't take more than 1 hour to get the kernel & modules (standard config) built.
From OP's dmesg:
Code:
CPU0: Intel(R) Celeron(R) CPU N3350 @ 1.10GHz (family: 0x6, model: 0x5c, stepping: 0x9)
On the i915 firmware, if the OP used the "make defconfig" target, then the i915 driver is built as built-in module and the firmware needs to be also available built-in in the kernel:
https://wiki.gentoo.org/wiki/Intel#Firmware
Alternatively, configure the kernel and build i915 as an external module, this way the /lib/firmware will be available by the time the i915 module is loaded.

Last edited by abga; 11-11-2019 at 03:34 PM. Reason: formatting + typo
 
Old 11-11-2019, 03:58 PM   #25
Scribtor
Member
 
Registered: Sep 2019
Distribution: Slackware64 - current
Posts: 65

Original Poster
Rep: Reputation: Disabled
Running out of ideas here....My last attempt resulted in an inadvertent overwrite of the working kernel because when I build using the huge config downloaded from the slackware site, the result produced no bzImage to just copy it to /boot/ so not knowingly i ran the "make install" which, well, destroyed the kernel and the new kernel resulted in a panic event. I only recovered couple of minutes ago.

On the topic of CPU speed, both building of 5.3.9 with 4.19.82 huge slack-config and 5.3.10 with 4.19.83 huge slack-config lasted a full five hours. (each, not combined for both)

I tried building with generic, and even USING the generic kernels provided by slackpkg, but those kernels don't have the necessary drivers for wifi/touchpad (can't remember as to whether ntfs-3g was there or not)
 
Old 11-11-2019, 04:48 PM   #26
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@Scribtor

If you take the .config from older kernels (the ones Slackware is providing) and use it for your own kernel configuration (5.3.x), then I suggest to use the standard name for the config - .config (rename it when you put it in the 5.3.x source tree), don't run "make mrproper" and instead of:
Code:
make defconfig
# use
make oldconfig
I never use older kernel .config files to start a newer kernel compilation but only use them as inspiration (parse/diff).

On your mistake with make install instead of manually copying your new kernel build files (vmlinuz & System.map) in /boot, overwriting the symlinks, you can easily correct it:
Code:
# rename the kernel files you just installed, overwriting the symlinks
cd /boot
mv vmlinuz vmlinuz-xx.xx.xx
mv System.map System.map-xx.xx.xx
# create the symlinks back
ln -sf System.map-huge-4.19.83 System.map 
ln -sf vmlinuz-huge-4.19.83 vmlinuz
ln -sf vmlinuz-huge-4.19.83 vmlinuz-huge
Your lilo.conf is pointing to the symlinks for the default kernel image Slackware is providing and this should be the way to go if you want to keep the default kernel maintained by the Slackware update tools. Slackware is using these symlinks to perform kernel updates and not bother amending the /etc/lilo.conf for each new kernel.

P.S.
You should also delete the /lib/modules/5.3.xx before every kernel rebuild.

Last edited by abga; 11-11-2019 at 04:53 PM. Reason: P.S.
 
Old 11-11-2019, 05:01 PM   #27
Scribtor
Member
 
Registered: Sep 2019
Distribution: Slackware64 - current
Posts: 65

Original Poster
Rep: Reputation: Disabled
I don't want to overwrite the default kernel Slackware provides, but to add a second kernel to the system.

As the title suggests, my end goal is to have three boot options in LILO

1. label = l // Kernel provided by slackpkg updates

2. label = k // Latest stable 5.x kernel that is presumed to have at least all the drivers of kernel under number 1. Suppose I did download this from kernel.org

3. label = w // win10 boot partition

I already figured out how to get points 1 and 3 working, but it's the number 2 that's giving me a headache.

Questions:

1. Would I need a second initrd?
2. How to configure/build/boot this second kernel?
3. Am I wrong to assume that newer kernels have better configured hardware controllers/drivers and also controllers/drivers for more recent hardware?


P.S. Perhaps it was overlooked or not stated precisely> building 5.x kernels produced no bzImage/vmlinuz files that one could copy. I later discovered that there is a shell script that would produce this, but this was after the script was run under "make install" and at that point, I rebooted the system not knowing my kernel was gone to panic

Last edited by Scribtor; 11-11-2019 at 05:05 PM.
 
Old 11-11-2019, 05:12 PM   #28
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Quote:
Originally Posted by Scribtor View Post
1. Would I need a second initrd?
2. How to configure/build/boot this second kernel?
3. Am I wrong to assume that newer kernels have better configured hardware controllers/drivers and also controllers/drivers for more recent hardware?
1. No!, only if you like to make your life more complicated.
2. Build it and update the /etc/lilo.conf as advised in my post #18
3. No, you're right, however, the kernel Slackware -current is providing is not that old - should work well on new HW.

On:
Quote:
On the topic of CPU speed, both building of 5.3.9 with 4.19.82 huge slack-config and 5.3.10 with 4.19.83 huge slack-config lasted a full five hours. (each, not combined for both)
Well, that's a lot of time. I hope you use both cores for the compilation (make -j2). Configuring a kernel is not that easy, as there are many options you need to care about. As mentioned before, I never used .config files from other kernels when I built my own kernels, instead, used make defconfig and removed things I didn't need (like pcmcia) and added the extra drivers & HW support that were required.
 
Old 11-11-2019, 05:54 PM   #29
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Quote:
Originally Posted by Scribtor View Post
As the title suggests, my end goal is to have three boot options in LILO

1. label = l // Kernel provided by slackpkg updates

2. label = k // Latest stable 5.x kernel that is presumed to have at least all the drivers of kernel under number 1. Suppose I did download this from kernel.org

3. label = w // win10 boot partition

I already figured out how to get points 1 and 3 working, but it's the number 2 that's giving me a headache.
Just to provide you with a concrete example on how to configure your /etc/lilo.conf for your goal - note that this is just a generic example and some paths & syntax need correction/adaptation.
In your /etc/lilo.conf (after the global options), you should have:
Code:
# use the global option to specify which image is the default to boot
default=l

#Slackware provided kernel (here you might have an initrd entry if you're booting the generic kernel)
image=/boot/vmlinuz
        label=l
        root=/dev/xxx
        read-only

#Your kernel without initrd (no need for it)
image=/boot/vmlinuz-xx.xx.xx
        label=k
        root=/dev/xxx
        read-only

#Redmond
other=/dev/hda1
        label=w
 
Old 11-11-2019, 09:13 PM   #30
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
If you are running -current, is there some reason why you are not trying the 5.4 kernel in /testing?

I know it's not the "stable" release, but you could use the configs in there as a starting point.
 
  


Reply

Tags
boot loader, initrd, kernel, lilo, ramdisk



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] imagemagick - converting bitmap to the same parameters as other bitmap (apart from resolution) Irbis Linux - Software 5 03-29-2019 03:38 PM
Switching from win10 to a linux distro with win10 vm kevgk Linux - Virtualization and Cloud 3 11-01-2018 05:36 AM
Lilo breaking Win10 boot (BIOS not UEFI) dalgrim Slackware 10 05-08-2016 09:57 PM
convertion of 24 bit bitmap image to 8 bit bitmap image vipulc Linux - General 2 03-10-2006 08:22 AM

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

All times are GMT -5. The time now is 07:20 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
Open Source Consulting | Domain Registration