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-29-2022, 08:42 AM   #31
NaboHipersonico
Member
 
Registered: Sep 2022
Location: /home
Distribution: Debian 12 bookworm xfce
Posts: 116

Original Poster
Rep: Reputation: 24

Quote:
Originally Posted by hazel View Post
The generic kernel needs an initrd to work. Did you make one?
Yes, but I guess it would be wrong, I followed these steps:

http://docs.slackware.com/es:slackwa...tema_slackware

/usr/share/mkinitrd/mkinitrd_command_generator.sh

It returns this:


bash-5.1# /usr/share/mkinitrd/mkinitrd_command_generator.sh
#
# mkinitrd_command_generator.sh revision 1.45
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:

mkinitrd -c -k 5.15.63 -f ext4 -r /dev/sda7 -m usb-storage:ehci-hcd:ehci-pci:xhci-pcihci-pci:xhci-hcd:uhci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-asus:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:crc32c_intel:crc32c_generic:ext4 -u -o /boot/initrd.gz
bash-5.1#

Then I pass the script which gives me:

bash-5.1# mkinitrd -c -k 5.15.63 -f ext4 -r /dev/sda7 -m usb-storage:ehci-hcd:ehci-pci:xhci-pcihci-pci:xhci-hcd:uhci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-asus:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:crc32c_intel:crc32c_generic:ext4 -u -o /boot/initrd.gz
OK: /lib/modules/5.15.63/kernel/drivers/usb/storage/usb-storage.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/usb/host/ehci-hcd.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/usb/host/ehci-hcd.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/usb/host/ehci-pci.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/usb/host/xhci-hcd.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/usb/host/xhci-pci-renesas.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/usb/host/xhci-pci.ko added.
WARNING: Could not find firmware "/lib/firmware/renesas_usb_fw.mem"
OK: /lib/modules/5.15.63/kernel/drivers/usb/host/ehci-hcd.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/usb/host/ohci-hcd.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/usb/host/ohci-pci.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/usb/host/xhci-hcd.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/usb/host/uhci-hcd.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/usbhid/usbhid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/i2c/i2c-core.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/i2c-hid/i2c-hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid-generic.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/acpi/video.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/platform/x86/wmi.ko added.
OK: /lib/modules/5.15.63/kernel/net/rfkill/rfkill.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/input/sparse-keymap.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/acpi/battery.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/acpi/platform_profile.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/platform/x86/asus-wmi.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/usbhid/usbhid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid-asus.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid-cherry.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/usbhid/usbhid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid-logitech.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/usbhid/usbhid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid-logitech-dj.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid-logitech-hidpp.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid-lenovo.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid-microsoft.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.15.63/kernel/drivers/hid/hid-multitouch.ko added.
OK: /lib/modules/5.15.63/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.15.63/kernel/fs/mbcache.ko added.
OK: /lib/modules/5.15.63/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.15.63/kernel/fs/mbcache.ko added.
OK: /lib/modules/5.15.63/kernel/fs/ext4/ext4.ko added.
63890 bloques
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
bash-5.1#

This may be wrong because it is for elilo not refind, refind may require another command.

Last edited by NaboHipersonico; 09-29-2022 at 08:44 AM.
 
Old 09-29-2022, 11:09 AM   #32
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by NaboHipersonico View Post

This may be wrong because it is for elilo not refind, refind may require another command.
This command creates an initrd.gz, which is used (if needed / wanted) by all boot loaders. You create an entry in the bootloader's indicating to use the initrd.gz. For example here is a snippet from my refind.conf

Quote:
menuentry Slackware {
icon EFI/icons/slackware-banner.png
loader EFI/vmlinuz.efi
initrd EFI/initrd.gz
}
What I typically do is create a mkinitrd.conf, Slackware includes template / sample file. then you can just simple do mkinitrd -F -k 5.19.12 (for example)

Then once you generate the initrd.gz you can simple put it on the esp volume... (wherever the refind.conf in this case, is expecting to find it).

Last edited by khronosschoty; 09-29-2022 at 11:15 AM.
 
1 members found this post helpful.
Old 09-29-2022, 11:26 AM   #33
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
in the rEFInd home boot menu you can select your Slackware instance with arrow keys or mouse then hit F2 and you will get a pull down menu.

in that menu select the huge kernel and it should boot then you can fix the initrd problem as you like.
 
1 members found this post helpful.
Old 09-29-2022, 11:33 AM   #34
NaboHipersonico
Member
 
Registered: Sep 2022
Location: /home
Distribution: Debian 12 bookworm xfce
Posts: 116

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by Regnad Kcin View Post
in the rEFInd home boot menu you can select your Slackware instance with arrow keys or mouse then hit F2 and you will get a pull down menu.

in that menu select the huge kernel and it should boot then you can fix the initrd problem as you like.
Hello, I can boot without problem with all the options, the problem is with the generic kernel only, when booting with the generic one I find a kernel panic.
 
Old 09-29-2022, 11:38 AM   #35
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by NaboHipersonico View Post
Hello, I can boot without problem with all the options, the problem is with the generic kernel only, when booting with the generic one I find a kernel panic.
Generic kernel requires the use of initrd.gz
 
1 members found this post helpful.
Old 09-29-2022, 11:41 AM   #36
NaboHipersonico
Member
 
Registered: Sep 2022
Location: /home
Distribution: Debian 12 bookworm xfce
Posts: 116

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by khronosschoty View Post
Generic kernel requires the use of initrd.gz
Yes, I know and I have created it, but apparently I need to put it in the refind.conf and that is what I don't know how to do, I am looking at it
 
Old 09-29-2022, 11:42 AM   #37
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by NaboHipersonico View Post
Yes, I know and I have created it, but apparently I need to put it in the refind.conf and that is what I don't know how to do, I am looking at it
the refind.conf has example entries like the one I shared.
 
1 members found this post helpful.
Old 09-29-2022, 11:43 AM   #38
NaboHipersonico
Member
 
Registered: Sep 2022
Location: /home
Distribution: Debian 12 bookworm xfce
Posts: 116

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by khronosschoty View Post
This command creates an initrd.gz, which is used (if needed / wanted) by all boot loaders. You create an entry in the bootloader's indicating to use the initrd.gz. For example here is a snippet from my refind.conf



What I typically do is create a mkinitrd.conf, Slackware includes template / sample file. then you can just simple do mkinitrd -F -k 5.19.12 (for example)

Then once you generate the initrd.gz you can simple put it on the esp volume... (wherever the refind.conf in this case, is expecting to find it).

Hi, because of those translation things I don't really understand what you mean, do I have to configure the refind.conf file?
 
Old 09-29-2022, 11:45 AM   #39
NaboHipersonico
Member
 
Registered: Sep 2022
Location: /home
Distribution: Debian 12 bookworm xfce
Posts: 116

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by khronosschoty View Post
the refind.conf has example entries like the one I shared.

Yes, I am looking at it but I do not understand very well those examples or where I have to put it
 
Old 09-29-2022, 11:47 AM   #40
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by NaboHipersonico View Post
Hi, because of those translation things I don't really understand what you mean, do I have to configure the refind.conf file?
If you need to use an initrd.gz (in this case to use the generic kernel) then you make entries in the refind.conf.

On my computer I have a refind.conf, here

/boot/efi/EFI/refind/refind.conf

You might need to read through some documentation or use the examples in the conf.

see:
usr/share/rEFInd-0.13.3.1/refind/refind.conf-sample
At least, inside of my refind package, such a file exists.

Last edited by khronosschoty; 09-29-2022 at 11:50 AM.
 
2 members found this post helpful.
Old 09-29-2022, 11:59 AM   #41
NaboHipersonico
Member
 
Registered: Sep 2022
Location: /home
Distribution: Debian 12 bookworm xfce
Posts: 116

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by khronosschoty View Post
If you need to use an initrd.gz (in this case to use the generic kernel) then you make entries in the refind.conf.

On my computer I have a refind.conf, here

/boot/efi/EFI/refind/refind.conf

You might need to read through some documentation or use the examples in the conf.

see:
usr/share/rEFInd-0.13.3.1/refind/refind.conf-sample
At least, inside of my refind package, such a file exists.
Yes I also have it here /boot/efi/EFI/refind/refind.conf

I've been looking for a while, but I don't understand the examples, or where I have to put it, or what I have to put
 
Old 09-29-2022, 12:01 PM   #42
NaboHipersonico
Member
 
Registered: Sep 2022
Location: /home
Distribution: Debian 12 bookworm xfce
Posts: 116

Original Poster
Rep: Reputation: 24
I have put this at the end of refind.conf, but it is still the same with kernel panic





menuentry Slackware {
icon EFI/icons/slackware-banner.png
loader EFI/vmlinuz.efi
initrd EFI/initrd.gz
}
 
Old 09-29-2022, 12:05 PM   #43
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by NaboHipersonico View Post
I have put this at the end of refind.conf, but it is still the same with kernel panic





menuentry Slackware {
icon EFI/icons/slackware-banner.png
loader EFI/vmlinuz.efi
initrd EFI/initrd.gz
}

Over here, I have /boot/efi/EFI/vmlinuz.efi and I also have /boot/efi/EFI/initrd.gz.

to get that I copied over the generic kernel from /boot/ (making sure to copy the actual kernel and not a symlink) and renamed it to vmlinuz.efi. Then I copied the /boot/initrd.gz that I generated like the example above.

Also, you'll need to select the correct entry, in the refind boot menu (when refind comes up on boot).

NOTE I've been assuming that the initrd that you generated has the modules you need to boot, if this is not the case, you will certainly have kernel panics that will not be resolved until your initrd is correct or you change kernels.

Last edited by khronosschoty; 09-29-2022 at 12:11 PM.
 
2 members found this post helpful.
Old 09-29-2022, 12:21 PM   #44
NaboHipersonico
Member
 
Registered: Sep 2022
Location: /home
Distribution: Debian 12 bookworm xfce
Posts: 116

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by khronosschoty View Post
Over here, I have /boot/efi/EFI/vmlinuz.efi and I also have /boot/efi/EFI/initrd.gz.

to get that I copied over the generic kernel from /boot/ (making sure to copy the actual kernel and not a symlink) and renamed it to vmlinuz.efi. Then I copied the /boot/initrd.gz that I generated like the example above.

Also, you'll need to select the correct entry, in the refind boot menu (when refind comes up on boot).

NOTE I've been assuming that the initrd that you generated has the modules you need to boot, if this is not the case, you will certainly have kernel panics that will not be resolved until your initrd is correct or you change kernels.

Wow, now I know even less. I'm sorry but I'm retiring, I really appreciate how you all have turned to me, but I'm stuck and I don't understand anything, it's weird because I usually find out everything because I have a lot of insistence, but I can't find it or understand it.

I will leave the hugues kernel and that's it.

I had only handled grub and in grub they were always as simple as update-grub. I know that slackware is something else and I love it and I'm passionate about it, but I'm not going to waste your time anymore because I'm not understanding it and that, as I told you, I'm smart, I've never used slackware and I just installed it and install all the programs, proprietary drivers, virtualbox, steam, etc, etc without having to ask, at the last, when I had everything set up, I started asking the things that eluded me and I'm going to continue with slackware because I love it, but I don't understand how to make it boot with the generic kernel, as much as I try I don't understand it, so I'll continue with hugue and that's it.

Thanks for everything. Greetings.
 
Old 09-29-2022, 12:33 PM   #45
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Your mkinitrd generator outputs: "-o /boot/initrd.gz" and your refind.conf file points to EFI/initrd.gz
Make sure refind.conf points to correct file.
 
3 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] Problem upgrading to new kernel 5.3.0-45-generic from 4.18.0-25-generic fgonza1971 Linux - Laptop and Netbook 1 04-01-2020 02:54 PM
[SOLVED] setting up initrd / generic kernel in Grub2...can't load generic Ubunoob001 Slackware 12 03-20-2015 07:32 AM
kernel-generic and kernel-generic-smp ?? liuyug Slackware - Installation 5 06-01-2014 07:01 PM
slack 12, switch to generic kernel from huge kernel, using grub? jaguarrh Slackware 8 09-19-2007 06:29 AM
GART TLB error generic level generic Clydesdale Linux - Hardware 0 08-13-2007 06:18 PM

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

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