LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-22-2016, 03:17 PM   #16
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242

Quote:
Originally Posted by bassmadrigal View Post
Because you didn't bother to try my suggestions.
huh????
in this post?
Quote:

Seriously, orbea is correct that trying to get Void's grub to work with a non-Void kernel is still a Void issue. We don't know what software is included with Void (unless some of us have run it, which I haven't) and it'd be best to get OS specific instructions on how to make Void's grub properly recognize and boot another kernel. You wouldn't go to a Windows forum trying to get Windows to be recognized in Void's bootloader, would you?
I really don't see why this is an issue at all period.

anybody has two or more Linux (and windows) installed on a HARD DRIVE, one only one Linux can be used to run update-grub, through update-grub it gets the default kernel that every other system uses to boot its own system. regardless of how many different kernels are in /boot.

that is obvious that something some where within each Linux it has to have something to tell grub which is the default kernel to use because I have more then one kernel in both Linux Installs and that grub is picking them up and when I boot into a different Linux it does not get confused as to which kernel to use.

OR
when that Linux is booted then within that system it has to have somewhere to tell it to use only one kernel, that would be it's the default kernel to use out of all of the kernels within /boot

because having more then one kernel in /boot and some part of each system has to have some how to know which kernal to get out of all of the kernels in /boot.

either way each system has to have a way to tell itself which Kernel in /boot is the default kernel to use, out of all of the kernels within /boot

so therefore how is it strictly a VOID linux problem only based on the fact that I am using that ones grub to boot off of?


Quote:
As for building a kernel, it is as simple as:

Code:
make bzImage modules
make modules_install
I just missed that make modules_install part, and all of that other part in that page is just ????? I have no idea what for
Quote:
Code:
cp arch/x86_64/boot/bzImage /boot/vmlinuz-4.8.6
that part is done.

Quote:

If you went with a generic kernel, you would need to then generate an initrd based off the output of /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.8.6. Then updating your bootloader to see the new kernel (and possibly initrd). As said above, since you aren't using Slackware's bootloader, it would be best to ask in the Void forum how to update the Slackware entry to use a new kernel in the Void bootloader.
RIGHT THERE you hit the nail on the head: -> right there -> generate a initrd

that is where i got my error at then posted this, just adding the other stuff to try and kill more then one bird at a time. thinking it all has to be tied together some how to get slack to use that new kernal so I could test it out, seeings how i cannot get LILO to do what it is suppose to be able to multi-boot.

when I ran this
Quote:
mkinitrd -c -k 4.8.3 -m ext4
that is when it bitched at me about noting in /lib/modules/ with 4.8.3
that is when I looked in it to see what is in it and seen all of this

Quote:
userx@SlackDaddy & ~ >> $ls /lib/modules/4.4.23
build modules.builtin modules.devname modules.symbols.bin
kernel modules.builtin.bin modules.order source
modules.alias modules.dep modules.softdep
modules.alias.bin modules.dep.bin modules.symbols
then look in the source for 4.8.3 and seen it did not match ... so ooooooooo going back to the start again ... like a dog chasing his tail... your turn....


AND I cannot get into Slack for at least another aprox one hour to run that make modules_install to see if that will fix that last part in order to run mkinitrd

Last edited by BW-userx; 10-22-2016 at 03:30 PM.
 
Old 10-22-2016, 05:50 PM   #17
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by orbea View Post
I would suggest to just use lilo, seriously if you want help configuring grub in void linux ask a void linux specific place. This is not a slackware problem.
what, this you mean THIS SUGGESTION????? USE LILO

well tell me then how do I add an different system three more to be exact for lilo to boot all of them???????
 
Old 10-22-2016, 05:53 PM   #18
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
kernel panic Not syncing VFS unable to mount root fs on unknown-block (8,1)
anyone?
 
Old 10-22-2016, 05:54 PM   #19
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by BW-userx View Post
huh????
in this post?
No, in your huge post about getting lilo to work in Slackware.

Quote:
Originally Posted by BW-userx View Post
I really don't see why this is an issue at all period.

anybody has two or more Linux (and windows) installed on a HARD DRIVE, one only one Linux can be used to run update-grub, through update-grub it gets the default kernel that every other system uses to boot its own system. regardless of how many different kernels are in /boot.

that is obvious that something some where within each Linux it has to have something to tell grub which is the default kernel to use because I have more then one kernel in both Linux Installs and that grub is picking them up and when I boot into a different Linux it does not get confused as to which kernel to use.
True. Only one bootloader can be used unless you intend to chainload (which I had also mentioned in the lilo thread, but you never commented on it, so I assumed you didn't want to use it). But, just as you wouldn't go to a Windows forum when your Void's grub won't boot Windows, you shouldn't come to a Slackware forum and expect that we know what's going on with Void's grub. That grub is likely a different version than Slackware's and/or possibly has patches or additional software that Slackware doesn't have (I remember you complaining in a previous bootloader thread that Slackware's grub didn't contain some grub command/script you expected it to have).

Quote:
Originally Posted by BW-userx View Post
when that Linux is booted then within that system it has to have somewhere to tell it to use only one kernel, that would be it's the default kernel to use out of all of the kernels within /boot

because having more then one kernel in /boot and some part of each system has to have some how to know which kernal to get out of all of the kernels in /boot.

either way each system has to have a way to tell itself which Kernel in /boot is the default kernel to use, out of all of the kernels within /boot
Any Linux bootloader should be able to support multiple kernels for one distro.

Quote:
Originally Posted by BW-userx View Post
so therefore how is it strictly a VOID linux problem only based on the fact that I am using that ones grub to boot off of?
Because Void's grub is not necessarily the same grub that Slackware uses. As I said above, it could be a different version or it could contain patches or scripts that Slackware's doesn't.

Quote:
Originally Posted by BW-userx View Post
I just missed that make modules_install part, and all of that other part in that page is just ????? I have no idea what for
that part is done.
Well, the make modules_install part was even in the section you copied But we do all miss the obvious sometimes. I've definitely had those moments before.

Quote:
Originally Posted by BW-userx View Post
RIGHT THERE you hit the nail on the head: -> right there -> generate a initrd
An initrd should only be needed if you're basing your kernel off a generic config. If you compile all the needed drivers into the kernel instead of modules, no initrd is needed (except for a few exceptions, like using lvm or encryption).

Quote:
Originally Posted by BW-userx View Post
seeings how i cannot get LILO to do what it is suppose to be able to multi-boot.
lilo is more than capable of multi-boot. It just doesn't have utilities like grub to make things easier (supposedly... but I haven't used grub enough to know). lilo requires you to edit a conf file and if it is wrong, it can lead you to failed boots. But, when it's right, it works beautifully.

Quote:
Originally Posted by BW-userx View Post
when I ran this that is when it bitched at me about noting in /lib/modules/ with 4.8.3
that is when I looked in it to see what is in it and seen all of this

then look in the source for 4.8.3 and seen it did not match ... so ooooooooo going back to the start again ... like a dog chasing his tail... your turn....

AND I cannot get into Slack for at least another aprox one hour to run that make modules_install to see if that will fix that last part in order to run mkinitrd
If you didn't do make modules_install, where did the directories in /lib/modules/4.8.3/ come from? Have you had other 4.8.3 kernel compilations on this install?

Good luck
 
Old 10-22-2016, 07:01 PM   #20
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bassmadrigal View Post
No, in your huge post about getting lilo to work in Slackware.



True. Only one bootloader can be used unless you intend to chainload (which I had also mentioned in the lilo thread, but you never commented on it, so I assumed you didn't want to use it). But, just as you wouldn't go to a Windows forum when your Void's grub won't boot Windows, you shouldn't come to a Slackware forum and expect that we know what's going on with Void's grub. That grub is likely a different version than Slackware's and/or possibly has patches or additional software that Slackware doesn't have (I remember you complaining in a previous bootloader thread that Slackware's grub didn't contain some grub command/script you expected it to have).



Any Linux bootloader should be able to support multiple kernels for one distro.



Because Void's grub is not necessarily the same grub that Slackware uses. As I said above, it could be a different version or it could contain patches or scripts that Slackware's doesn't.



Well, the make modules_install part was even in the section you copied But we do all miss the obvious sometimes. I've definitely had those moments before.



An initrd should only be needed if you're basing your kernel off a generic config. If you compile all the needed drivers into the kernel instead of modules, no initrd is needed (except for a few exceptions, like using lvm or encryption).



lilo is more than capable of multi-boot. It just doesn't have utilities like grub to make things easier (supposedly... but I haven't used grub enough to know). lilo requires you to edit a conf file and if it is wrong, it can lead you to failed boots. But, when it's right, it works beautifully.



If you didn't do make modules_install, where did the directories in /lib/modules/4.8.3/ come from? Have you had other 4.8.3 kernel compilations on this install?

Good luck

sooo you remember that lilo problem I posted about huh... whatever happened to altimers? lol
I am not a dummy but some of this stuff does confuse me.ah on that where did the 4.8.3 come from well when I looked and did not see it, and only seen the 2.x.x for the install. I just mimicked it and mkdir 4.8.3 then looked in to source to copy it from there into that dir and that is where everything went huh??? so I posted in here.



and so here we are .. sorry if I am sounding like an ass on this stuff....

now they have just put out a 4.8.4 updated kernel and damn that list is long.

what is the basic rule of thumb for saying y or n or m on every stinking question?

I know my basic hardware on my motherboard then their is all of these other questions about shit I don't even know what it is, and some stuff I have a slight idea to what it is but do I really need it, I have no idea.

that is why on that other one I just selected M for most everything trying to play it safe. this time I am just saying Y to everything. which is mad crazy HUGE ...

anyways I hacked it so that slack had no choice but to boot the 4.8.3 by moving everything into a different directory I made on root, leaving only everything to do with 4.8.3 then ran Void update-grub then booted got kernel panic

Code:
kernel panic not syncing VFS unable to mount root fs on unknown-block (8,1)
I have no idea what (8,1) is I only have two hdd's partitioned with 4 on one and 3 on the other one neither one has 8 ... If that is what it is referring to.

as far as that lilo thing to me at that time the grub seemed like the fastest easiest way to go, then I found that part out about no one uses the same grub, fu*K what the f*** is that ... learning the hard way on that one.

I could have sworn I've duel booted on lilo with slack and void before too a while back, but too I remember I put grub on slack and used that so maybe that is why it dual booted with VOID .. anyways.

I just went to one system, VOID, then slack went 14.2 so I figured I 'd check it out again. I kind of like it - but all of that typing to install everything ...

anyways I am at point one again. I over wrote that initrd I didn't name it customxxx when I did it. but Slack is still booting off of HUGE so I don't know About that if i needed it or not for HUGE ...

Now I am planing on just compiling that latest one 4.8.4 so I can see if I can get that because I have not actually made progress here anyways ... so it only a few hours to get that made. then try this again.


missing that step started this post, but it looks like I'd of posted on this anyways by still not getting anywhere with this kernel....

Code:
root@SlackDaddy & src >> $ls
linux-4.4.23  linux-4.8.3  linux-4.8.4
root@SlackDaddy & src >> $ln -s linux-4.4.23  linux 
root@SlackDaddy & src >> $mkinitrd -c -k 4.4.2 -m ext4
ERROR: No /lib/modules/4.4.2 kernel modules tree found for kernel "4.4.2"
root@SlackDaddy & src >> $mkinitrd -c -k 4.4.23 -m ext4
OK: /lib/modules/4.4.23/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/4.4.23/kernel/fs/mbcache.ko added.
OK: /lib/modules/4.4.23/kernel/fs/ext4/ext4.ko added.
36556 blocks
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
their I fixed that possible problem
thanks

Last edited by BW-userx; 10-22-2016 at 07:19 PM.
 
Old 10-22-2016, 08:30 PM   #21
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by BW-userx View Post
sooo you remember that lilo problem I posted about huh... whatever happened to altimers? lol
Of course I remember it. I spent a lot of time trying to help you fix your problem and it wasn't that long ago.

Quote:
Originally Posted by BW-userx View Post
I am not a dummy but some of this stuff does confuse me.ah on that where did the 4.8.3 come from well when I looked and did not see it, and only seen the 2.x.x for the install. I just mimicked it and mkdir 4.8.3 then looked in to source to copy it from there into that dir and that is where everything went huh??? so I posted in here.
Ok, so you manually created the 4.8.3 directory and copied directories out of the source folder? That makes a bit more sense. Luckily, you now know you can just run make modules_install to get everything where it should be.

Quote:
Originally Posted by BW-userx View Post
now they have just put out a 4.8.4 updated kernel and damn that list is long.

what is the basic rule of thumb for saying y or n or m on every stinking question?

I know my basic hardware on my motherboard then their is all of these other questions about shit I don't even know what it is, and some stuff I have a slight idea to what it is but do I really need it, I have no idea.

that is why on that other one I just selected M for most everything trying to play it safe. this time I am just saying Y to everything. which is mad crazy HUGE ...
This is one of the difficult things about building a custom kernel. Pat (and other distro maintainers) takes a lot of time to get the kernel configured as it is in Slackware. Generally, you can just follow the suggestion ("if unsure, say X") in the HELP portion of that section. This is also why it's generally recommended to use a good config as a start rather than starting from a completely blank slate. Then you can run make old-config to go through just the new stuff.

Quote:
Originally Posted by BW-userx View Post
anyways I hacked it so that slack had no choice but to boot the 4.8.3 by moving everything into a different directory I made on root, leaving only everything to do with 4.8.3 then ran Void update-grub then booted got kernel panic

Code:
kernel panic not syncing VFS unable to mount root fs on unknown-block (8,1)
I have no idea what (8,1) is I only have two hdd's partitioned with 4 on one and 3 on the other one neither one has 8 ... If that is what it is referring to.
If you compiled things as modules but then didn't install those modules and then create an initrd, then it certainly would prevent you from booting, because it probably didn't have the required things built in the kernel, so it didn't know how to load the filesystem containing the OS.

Quote:
Originally Posted by BW-userx View Post
as far as that lilo thing to me at that time the grub seemed like the fastest easiest way to go, then I found that part out about no one uses the same grub, fu*K what the f*** is that ... learning the hard way on that one.

I could have sworn I've duel booted on lilo with slack and void before too a while back, but too I remember I put grub on slack and used that so maybe that is why it dual booted with VOID .. anyways.

I just went to one system, VOID, then slack went 14.2 so I figured I 'd check it out again. I kind of like it - but all of that typing to install everything ...
While lilo is certainly capable of handling your setup, it wouldn't be worth it to address it again. It'd be much easier to stick with your current bootloader and figure out how to get that to update properly. Unfortunately, as I said before, I don't use grub, so I can't help out with that.

Quote:
Originally Posted by BW-userx View Post
anyways I am at point one again. I over wrote that initrd I didn't name it customxxx when I did it. but Slack is still booting off of HUGE so I don't know About that if i needed it or not for HUGE ...
Technically, there's no such thing as a huge or generic kernel. They are just tags used by Patrick in Slackware to label whether a kernel has all drivers compiled into the kernel (huge) or as modules (generic). If you based your kernel off a huge config, then depending on what changes you made, you might still not have the required drivers compiled into the kernel and they exist as modules. If that is the case, then you do need an initrd. However, even if all that stuff is compiled into the kernel, using an initrd won't harm anything, so you can use one no matter what type of config you use.

Quote:
Originally Posted by BW-userx View Post
Now I am planing on just compiling that latest one 4.8.4 so I can see if I can get that because I have not actually made progress here anyways ... so it only a few hours to get that made. then try this again.

missing that step started this post, but it looks like I'd of posted on this anyways by still not getting anywhere with this kernel....

Code:
root@SlackDaddy & src >> $ls
linux-4.4.23  linux-4.8.3  linux-4.8.4
root@SlackDaddy & src >> $ln -s linux-4.4.23  linux 
root@SlackDaddy & src >> $mkinitrd -c -k 4.4.2 -m ext4
ERROR: No /lib/modules/4.4.2 kernel modules tree found for kernel "4.4.2"
root@SlackDaddy & src >> $mkinitrd -c -k 4.4.23 -m ext4
OK: /lib/modules/4.4.23/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/4.4.23/kernel/fs/mbcache.ko added.
OK: /lib/modules/4.4.23/kernel/fs/ext4/ext4.ko added.
36556 blocks
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
their I fixed that possible problem
thanks
I would highly recommend using Slackware's mkinitrd_command_generator.sh script I posted earlier (found under /usr/share/mkinitrd/). It will help you determine a proper mkinitrd command. It would contain more than just the module for your filesystem (it also sets the filesystem and the root partition, in addition to loading several other modules). Here's an example of what it output on my computer:

Code:
mkinitrd -c -k 3.18.24 -f ext4 -r /dev/sda2 -m usb-storage:xhci-hcd:usbhid:hid_generic:mbcache:jbd2:ext4 -u -o /boot/initrd.gz
Personally, I'll change the output at the end to list my kernel version in it, so I would change it to be /boot/initrd-3.18.24.gz.
 
Old 10-22-2016, 08:52 PM   #22
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bassmadrigal View Post
Of course I remember it. I spent a lot of time trying to help you fix your problem and it wasn't that long ago.



Ok, so you manually created the 4.8.3 directory and copied directories out of the source folder? That makes a bit more sense. Luckily, you now know you can just run make modules_install to get everything where it should be.



This is one of the difficult things about building a custom kernel. Pat (and other distro maintainers) takes a lot of time to get the kernel configured as it is in Slackware. Generally, you can just follow the suggestion ("if unsure, say X") in the HELP portion of that section. This is also why it's generally recommended to use a good config as a start rather than starting from a completely blank slate. Then you can run make old-config to go through just the new stuff.



If you compiled things as modules but then didn't install those modules and then create an initrd, then it certainly would prevent you from booting, because it probably didn't have the required things built in the kernel, so it didn't know how to load the filesystem containing the OS.



While lilo is certainly capable of handling your setup, it wouldn't be worth it to address it again. It'd be much easier to stick with your current bootloader and figure out how to get that to update properly. Unfortunately, as I said before, I don't use grub, so I can't help out with that.



Technically, there's no such thing as a huge or generic kernel. They are just tags used by Patrick in Slackware to label whether a kernel has all drivers compiled into the kernel (huge) or as modules (generic). If you based your kernel off a huge config, then depending on what changes you made, you might still not have the required drivers compiled into the kernel and they exist as modules. If that is the case, then you do need an initrd. However, even if all that stuff is compiled into the kernel, using an initrd won't harm anything, so you can use one no matter what type of config you use.



I would highly recommend using Slackware's mkinitrd_command_generator.sh script I posted earlier (found under /usr/share/mkinitrd/). It will help you determine a proper mkinitrd command. It would contain more than just the module for your filesystem (it also sets the filesystem and the root partition, in addition to loading several other modules). Here's an example of what it output on my computer:

Code:
mkinitrd -c -k 3.18.24 -f ext4 -r /dev/sda2 -m usb-storage:xhci-hcd:usbhid:hid_generic:mbcache:jbd2:ext4 -u -o /boot/initrd.gz
Personally, I'll change the output at the end to list my kernel version in it, so I would change it to be /boot/initrd-3.18.24.gz.

I did run make old-config to go through just the new stuff. their is a lOT of new stuff in that listings. I was already close to 35 minutes into it by just hitting y to everything and it still was not done before I did a Ctrl+C to kill it.

I just ran it regular like so it would over write that other one, mkinitrd -c -k 3.18.24 -f ext4

that HUGE was just me making reference to Slackware's HUGE everything compiled in it kernel, because I was saying yes to everything. there fore it is a larger Kernel. hence HUGE

as far a the kernel panic I did everything over after installing modules, and making a initrd using the shell script and using version numbers. then booted it again and still had a kernel panic.
 
Old 10-22-2016, 10:42 PM   #23
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by BW-userx View Post
I did run make old-config to go through just the new stuff. their is a lOT of new stuff in that listings. I was already close to 35 minutes into it by just hitting y to everything and it still was not done before I did a Ctrl+C to kill it.
Yes, it can be quite the process to go with a newer kernel than Slackware supports. You could try using make olddefconfig, which will use the default value for any new items in the kernel, but that could prevent support for things that the developers haven't enabled by default (like updated drivers). But, I guess you could always go through the menus later and verify everything you need enabled is enabled.

Quote:
Originally Posted by BW-userx View Post
as far a the kernel panic I did everything over after installing modules, and making a initrd using the shell script and using version numbers. then booted it again and still had a kernel panic.
You would need to make sure the new kernel and initrd are referenced properly in grub. But I don't know what you need to do that since I'm not familiar with grub.
 
Old 10-23-2016, 01:00 PM   #24
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bassmadrigal View Post
Yes, it can be quite the process to go with a newer kernel than Slackware supports. You could try using make olddefconfig, which will use the default value for any new items in the kernel, but that could prevent support for things that the developers haven't enabled by default (like updated drivers). But, I guess you could always go through the menus later and verify everything you need enabled is enabled.
make olddefconfig they do have some new CPU governor items and other things I seen I'd like to add, but a lot of that stuff is, in my guess, for someone running Linux as a server, a lot of Networking items and then their is all of that other, "it's all greek to me" stuff in there as well I'd seen.

Quote:
You would need to make sure the new kernel and initrd are referenced properly in grub. But I don't know what you need to do that since I'm not familiar with grub.
by the way I did it grub had no choice in the matter, I moved everything else into a different directory. Adding that I might not have giving the kernel what it needed I have no idea. that is why I went to saying yes on the 4.8.4 kernel with everything to make sure it had everything, knowing that it is over kill.

then looked at the clock and decided it is too late in the day for this, as I was still working on the list. so I kill'ed it for another day.

Last edited by BW-userx; 10-23-2016 at 01:02 PM.
 
Old 10-23-2016, 03:30 PM   #25
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bassmadrigal View Post
Yes,
how do I clean this up so I can run this to completion?
Code:
userx@SlackDaddy & linux-4.8.4 >> $make -j 8
  HOSTCC  scripts/kconfig/conf.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
scripts/kconfig/Makefile:37: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
Makefile:545: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
  SYSTBL  arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'.  Stop.
make: *** Waiting for unfinished jobs....
userx@SlackDaddy & linux-4.8.4 >> $
I am guessing I have no idea. Maybe it is looking at a file in /boot because i deleted the other 4.8.4 and unzipped it again and tried it again, and got this error again. I killed a make oldconfig session the other day, Ctrl+C . That is the only thing I can think of that it is talking about make: *** Waiting for unfinished jobs....
[MOD]
OR
when it asked me to name the config somewhere in that menu it gave me an option to name it so I named it config-4.8.4 so now it does not see it. *** Configuration file ".config" not found! BUT
Code:
/home/userx/bin/linux-4.8.4/.config-4.8.4
maybe you could share with me what command line argument to make it use that one

Last edited by BW-userx; 10-23-2016 at 03:36 PM.
 
Old 10-23-2016, 03:55 PM   #26
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by BW-userx View Post
how do I clean this up so I can run this to completion?

maybe you could share with me what command line argument to make it use that one
Might I respectfully recommend starting with the README in the kernel source tree.
No offense intended.
John
 
Old 10-23-2016, 03:57 PM   #27
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Documentation
Code:
userx@SlackDaddy & linux-4.8.4 >> make -j 8
Setup is 16860 bytes (padded to 16896 bytes).
System is 25425 kB
CRC cc406bf7
Kernel: arch/x86/boot/bzImage is ready  (#1)

(time aprox 10-12 minutes finished)


userx@SlackDaddy & linux-4.8.4 >> $sudo make modules_install 

  INSTALL net/netfilter/xt_nat.ko
  DEPMOD  4.8.44.8.4
userx@SlackDaddy & linux-4.8.4 >> $sudo cp arch/x86/boot/bzImage /boot/vmlinuz-custom-4.8.3 mistake needs to be 4.8.4
userx@SlackDaddy & linux-4.8.4 >> $su
Password: 


root@SlackDaddy & linux-4.8.4 >> $cp .config /boot/config-custom-4.8.4

root@SlackDaddy & linux-4.8.4 >> $cd /boot

root@SlackDaddy & boot >> $rm System.map


root@SlackDaddy & boot >> $ cp -v  /home/userx/bin/linux-4.8.4/System.map /boot/System.map-custom-4.8.4
'/home/userx/bin/linux-4.8.4/System.map' -> '/boot/System.map-custom-4.8.4'

root@SlackDaddy & boot >> $ln -s System.map-custom-4.8.4 System.map



root@SlackDaddy & boot >> $mv -v System.map-huge-4.4.23 System.map-generic-4.4.23 System.map-custom-userx-4.8.3 conf-4.8.3  conf-4.4.23 config-custom-userx-4.8.3 config-generic-4.4.23 config-huge-4.4.23 vmlinuz-custom-4.8.3 vmlinuz-custom-userx-4.8.3 vmlinuz-generic vmlinuz-generic-4.4.23 vmlinuz-huge vmlinuz-huge-4.4.23 /kernelHold 

'System.map-huge-4.4.23' -> '/kernelHold/System.map-huge-4.4.23'
'System.map-generic-4.4.23' -> '/kernelHold/System.map-generic-4.4.23'
'System.map-custom-userx-4.8.3' -> '/kernelHold/System.map-custom-userx-4.8.3'
'conf-4.8.3' -> '/kernelHold/conf-4.8.3'
'conf-4.4.23' -> '/kernelHold/conf-4.4.23'
'config-custom-userx-4.8.3' -> '/kernelHold/config-custom-userx-4.8.3'
'config-generic-4.4.23' -> '/kernelHold/config-generic-4.4.23'
'config-huge-4.4.23' -> '/kernelHold/config-huge-4.4.23'
'vmlinuz-custom-4.8.3' -> '/kernelHold/vmlinuz-custom-4.8.3'
'vmlinuz-custom-userx-4.8.3' -> '/kernelHold/vmlinuz-custom-userx-4.8.3'
'vmlinuz-generic' -> '/kernelHold/vmlinuz-generic'
'vmlinuz-generic-4.4.23' -> '/kernelHold/vmlinuz-generic-4.4.23'
'vmlinuz-huge' -> '/kernelHold/vmlinuz-huge'
'vmlinuz-huge-4.4.23' -> '/kernelHold/vmlinuz-huge-4.4.23'


root@SlackDaddy & boot >> $/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.8.4
Modules for kernel 4.8.4 aren't installed.
root@SlackDaddy & boot >> $ls /lib/modules/
4.4.23	4.8.3  4.8.44.8.4
root@SlackDaddy & boot >> $ls /lib/modules/4.8.44.8.4
build		   modules.builtin	modules.devname  modules.symbols.bin
kernel		   modules.builtin.bin	modules.order	 source
modules.alias	   modules.dep		modules.softdep
modules.alias.bin  modules.dep.bin	modules.symbols
root@SlackDaddy & boot >> $/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.8.44.8.4
#
# 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 4.8.44.8.4 -f ext4 -r /dev/sda1 -u -o /boot/initrd.gz

I don't know how it got changes from 4.8.4 to 4.8.44.8.4
I don't know how it got changes from 4.8.4 to 4.8.44.8.4 or created as 4.8.44.8.4
appended
Code:
userx@SlackDaddy & ~ >> $su
Password: 
root@SlackDaddy & userx >> $mv -v /boot/vmlinuz-custom-userx-4.8.3 /boot/vmlinuz-custom-userx-4.8.4
'/boot/vmlinuz-custom-userx-4.8.3' -> '/boot/vmlinuz-custom-userx-4.8.4'
redo
Code:
root@SlackDaddy & boot >> $mv -v System.map-custom-userx-4.8.3 System.map-generic-4.4.23 System.map-huge-4.4.23 config-custom-userx-4.8.3 config-generic-4.4.23 config-huge-4.4.23 vmlinuz-custom-4.8.3 vmlinuz-generic vmlinuz-generic-4.4.23  vmlinuz-huge vmlinuz-huge-4.4.23 /kernelHold/
'System.map-custom-userx-4.8.3' -> '/kernelHold/System.map-custom-userx-4.8.3'
'System.map-generic-4.4.23' -> '/kernelHold/System.map-generic-4.4.23'
'System.map-huge-4.4.23' -> '/kernelHold/System.map-huge-4.4.23'
'config-custom-userx-4.8.3' -> '/kernelHold/config-custom-userx-4.8.3'
'config-generic-4.4.23' -> '/kernelHold/config-generic-4.4.23'
'config-huge-4.4.23' -> '/kernelHold/config-huge-4.4.23'
'vmlinuz-custom-4.8.3' -> '/kernelHold/vmlinuz-custom-4.8.3'
'vmlinuz-generic' -> '/kernelHold/vmlinuz-generic'
'vmlinuz-generic-4.4.23' -> '/kernelHold/vmlinuz-generic-4.4.23'
'vmlinuz-huge' -> '/kernelHold/vmlinuz-huge'
'vmlinuz-huge-4.4.23' -> '/kernelHold/vmlinuz-huge-4.4.23'

root@SlackDaddy & boot >> $cp -v initrd.gz initrd-custom-userx-4.8.4.gz
'initrd.gz' -> 'initrd-custom-userx-4.8.4.gz'

root@SlackDaddy & boot >> $reboot
system Fail Kernel Panic

Quote:
kernel panic not syncing VFS unable to mount root fs on unknown-block (8,1)
next time
http://www.linuxfromscratch.org/lfs/...08/kernel.html

Last edited by BW-userx; 10-23-2016 at 05:03 PM.
 
Old 10-23-2016, 04:50 PM   #28
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by AlleyTrotter View Post
Might I respectfully recommend starting with the README in the kernel source tree.
No offense intended.
John
tanks but I already figured it out before I even read this, and did everything else I just did.

when all else fails read the instructions method
Code:
cp /home/userx/bin/linux-4.8.4/.config-4.8.4 /home/userx/bin/linux-4.8.4/.config


then ran it again .. like ~12 minutes compile completed

Last edited by BW-userx; 10-23-2016 at 04:54 PM.
 
Old 10-23-2016, 05:39 PM   #29
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
try 3
Code:
ln -fsn ../../x86/boot/bzImage ./arch/x86_64/boot/bzImage
root@SlackDaddy & linux-4.8.4 >> $ls
COPYING        Makefile        block	 include  modules.builtin  sound
CREDITS        Module.symvers  certs	 init	  modules.order    tools
Documentation  README	       crypto	 ipc	  net		   usr
Kbuild	       REPORTING-BUGS  drivers	 kernel   samples	   virt
Kconfig        System.map      firmware  lib	  scripts	   vmlinux
MAINTAINERS    arch	       fs	 mm	  security	   vmlinux.o
root@SlackDaddy & linux-4.8.4 >> $cp -v arch/x86/boot/bzImage /boot/vmlinux-custom-4.8.4
'arch/x86/boot/bzImage' -> '/boot/vmlinux-custom-4.8.4'
root@SlackDaddy & linux-4.8.4 >> $rm /boot/System.map
root@SlackDaddy & linux-4.8.4 >> $cp System.map /boot/System.map-4.8.4
root@SlackDaddy & linux-4.8.4 >> $ln -s /boot/System.map-4.8.4 /boot/System.map
root@SlackDaddy & linux-4.8.4 >> $make modules_install
  INSTALL arch/x86/kvm/kvm-intel.ko
  INSTALL drivers/thermal/x86_pkg_temp_thermal.ko
  DEPMOD  4.8.44.8.4
Code:
root@SlackDaddy & boot >> $mv -v System.map-generic-4.4.23 System.map-huge-4.4.23 conf-4.4.23 conf-4.8.3 config config-generic-4.4.23 config-huge-4.4.23 vmlinuz-generic vmlinuz-generic-4.4.23 vmlinuz-huge vmlinuz-huge-4.4.23 /kernelHold/mv: cannot stat 'System.map-generic-4.4.23': No such file or directory
'System.map-huge-4.4.23' -> '/kernelHold/System.map-huge-4.4.23'
'conf-4.4.23' -> '/kernelHold/conf-4.4.23'
'conf-4.8.3' -> '/kernelHold/conf-4.8.3'
'config' -> '/kernelHold/config'
'config-generic-4.4.23' -> '/kernelHold/config-generic-4.4.23'
'config-huge-4.4.23' -> '/kernelHold/config-huge-4.4.23'
'vmlinuz-generic' -> '/kernelHold/vmlinuz-generic'
'vmlinuz-generic-4.4.23' -> '/kernelHold/vmlinuz-generic-4.4.23'
'vmlinuz-huge' -> '/kernelHold/vmlinuz-huge'
'vmlinuz-huge-4.4.23' -> '/kernelHold/vmlinuz-huge-4.4.23'

root@SlackDaddy & boot >> $ls
README.initrd	  coffee.dat	    inside.bmp	  slack.bmp
System.map	  elilo-ia32.efi    inside.dat	  tuxlogo.bmp
System.map-4.8.4  elilo-x86_64.efi  map		  tuxlogo.dat
boot.0800	  grub		    onlyblue.bmp  vmlinux-custom-4.8.4
boot_message.txt  initrd-tree	    onlyblue.dat  vmlinuz


root@SlackDaddy & boot >> $cp /home/userx/bin/linux-4.8.4/.config /boot/.config-4.8.4

root@SlackDaddy & boot >> $mv -v vmlinuz /kernelHold
'vmlinuz' -> '/kernelHold/vmlinuz'

root@SlackDaddy & boot >> $ls
README.initrd	  coffee.dat	    inside.bmp	  slack.bmp
System.map	  elilo-ia32.efi    inside.dat	  tuxlogo.bmp
System.map-4.8.4  elilo-x86_64.efi  map		  tuxlogo.dat
boot.0800	  grub		    onlyblue.bmp  vmlinux-custom-4.8.4
boot_message.txt  initrd-tree	    onlyblue.dat

root@SlackDaddy & boot >> $mv .config-4.8.4 config-4.8.4

root@SlackDaddy & boot >> $ls
README.initrd	  coffee.dat	    initrd-tree   onlyblue.dat
System.map	  config-4.8.4	    inside.bmp	  slack.bmp
System.map-4.8.4  elilo-ia32.efi    inside.dat	  tuxlogo.bmp
boot.0800	  elilo-x86_64.efi  map		  tuxlogo.dat
boot_message.txt  grub		    onlyblue.bmp  vmlinux-custom-4.8.4

root@SlackDaddy & boot >> $cp -v vmlinux-custom-4.8.4 vmlinux
'vmlinux-custom-4.8.4' -> 'vmlinux'

root@SlackDaddy & boot >> $reboot
in VOID
Code:
userx@Voided.1 & ~ >> $sudo update-grub
Generating grub configuration file ...
Found background: /usr/share/void-artwork/splash.png
Found linux image: /boot/vmlinuz-4.8.4_1
Found initrd image: /boot/initramfs-4.8.4_1.img
Found linux image: /boot/vmlinuz-4.8.3_1
Found initrd image: /boot/initramfs-4.8.3_1.img
Found linux image: /boot/vmlinuz-4.7.10_1
Found initrd image: /boot/initramfs-4.7.10_1.img
Found linux image: /boot/vmlinuz-4.7.9_1
Found initrd image: /boot/initramfs-4.7.9_1.img
Found linux image: /boot/vmlinuz-4.7.8_1
Found initrd image: /boot/initramfs-4.7.8_1.img
Found linux image: /boot/vmlinuz-4.7.6_1
Found initrd image: /boot/initramfs-4.7.6_1.img
Found linux image: /boot/vmlinuz-4.0.5_2
Found initrd image: /boot/initramfs-4.0.5_2.img
Found Slackware Linux (Slackware 14.2) on /dev/sda1
Found Windows 10 (loader) on /dev/sdb1
Found Void Linux 64 on /dev/sdb3
done
userx@Voided.1 & ~ >> $sudo reboot
System Fail Kernel Panic
Code:
Kernel Panic not syncing no working init found

Last edited by BW-userx; 10-23-2016 at 05:51 PM.
 
Old 10-23-2016, 06:41 PM   #30
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Whoa! Why are you creating a symbolic link between the 32bit and 64bit kernels?

Are you trying to build a 32bit or 64bit kernel? Based on what you're building, you should only copy that kernel (32bit would be in the x86 folder and 64bit would be in the x86_64 folder).

Here's all you need to do to build a kernel after you've configured it as you desired (based on a 64bit kernel... if that's different, switch the x86_64 to x86).

Code:
make bzImage modules
make modules_install
cp arch/x86_64/boot/bzImage /boot/vmlinuz-4.8.4
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r -k 4.8.4 -a "-o /boot/initrd-4.8.4.gz")
Everything else is not needed and can be left out for simplicity. You can remove other kernels, if needed, so grub will pick this up properly. If it doesn't work, then it is one of two issues... 1. your kernel isn't configured properly for your machine, or 2. grub on Void isn't set up properly for the new kernel. Unfortunately, until you know you're configuring grub properly, there's no easy way to determine whether the issue is grub or your kernel config (at least not that I'm familiar with).

Last edited by bassmadrigal; 10-23-2016 at 07:39 PM. Reason: Fixed kernel version
 
  


Reply

Tags
grub 2, kernel



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] Installing Slackware Linux/LILO but keeping things intact on Lenovo notebook dimm0k Slackware 10 05-29-2010 11:48 PM
Installing Lilo with Slackware Hell Cheese Slackware 2 05-02-2004 03:21 PM
Installing lilo on slackware 9.0 ThorsHamburger Slackware 34 08-28-2003 07:25 PM
Installing lilo on Slackware 9.0 ThorsHamburger Linux - Newbie 1 08-17-2003 03:09 PM

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

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