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 10-23-2016, 06:45 PM   #31
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
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).
you mean seeing the file -> file remarks are not links that is feed back using -v
Quote:
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.6
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r -k 4.8.6 -a "-o /boot/initrd-4.8.6.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).
where did the 4.8.6 come from? I just downloaded the latest 4.8.4 yesterday off kernel.org
I got 20 minutes to try this today. thanks

I'll try the already compiled Kernel image

Last edited by BW-userx; 10-23-2016 at 06:48 PM.
 
Old 10-23-2016, 07:38 PM   #32
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
you mean seeing the file -> file remarks are not links that is feed back using -v
The first line in your previous post... "ln -fsn ../../x86/boot/bzImage ./arch/x86_64/boot/bzImage" There's no reason to do that.

Quote:
Originally Posted by BW-userx View Post
where did the 4.8.6 come from? I just downloaded the latest 4.8.4 yesterday off kernel.org
I got 20 minutes to try this today. thanks

I'll try the already compiled Kernel image
Sorry, I meant 4.8.4. I got the versions mixed up as there's been a lot of different versions discussed. I'll edit my previous post.
 
Old 10-23-2016, 07:49 PM   #33
hotchili
Member
 
Registered: Sep 2009
Location: Germany
Distribution: slackware64-current
Posts: 89

Rep: Reputation: 32
I use grub with slackware, when I install a new kernel I run this command:
Code:
grub-mkconfig -o /boot/grub/grub.cfg
At this page: https://wiki.voidlinux.eu/Install_LVM_LUKS_on_UEFI_GPT
it seems void uses the same grub command.

So I would suggest you get those modules installed correctly,
then you boot into void and run the above command, that should
scan the partitions and in theory it will pickup your new kernel.

Good luck
 
Old 10-24-2016, 07:32 AM   #34
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
The first line in your previous post... "ln -fsn ../../x86/boot/bzImage ./arch/x86_64/boot/bzImage" There's no reason to do that.



Sorry, I meant 4.8.4. I got the versions mixed up as there's been a lot of different versions discussed. I'll edit my previous post.
it is not that big a deal - only think I remember someone else did the same, and just seeing 4.8.6 confused me a little
what did they update that much already? do you know something that I don't?
so I went and checked
 
Old 10-24-2016, 07:46 AM   #35
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 hotchili View Post
I use grub with slackware, when I install a new kernel I run this command:
Code:
grub-mkconfig -o /boot/grub/grub.cfg
At this page: https://wiki.voidlinux.eu/Install_LVM_LUKS_on_UEFI_GPT
it seems void uses the same grub command.

So I would suggest you get those modules installed correctly,
then you boot into void and run the above command, that should
scan the partitions and in theory it will pickup your new kernel.

Good luck
well that last run last night didn't end up in a kernel panic .. it couldn't find a directory (i forget what it called it, being all abbreviated words, but it looked like it meant something to do with Supports ExpressCard/54 cards or that PIMAC or how ever they spell that Acronym for that card slot, I think that may have been what it was looking for, a directory that dealt with that.

It just hung up trying to boot, I had to catch the last bus out, so I just shut it down, put everything back, ran update-grub , then took off.

as far as grub I was thinking the same thing, as you are right about the command it runs for grub, just in a script, or wrapper, which ever term is correct, named update-grub.

the theory being that it should or is suppose to pick up the latest kernel and make that one the default, and the others stand-by . but I have no idea how it would know by its name? One should not even have to dig into the code or the how does this really work instructions, to know, it is suppose to just work. I have never had this problem before with Grub not seeing other distros before. I only know basic stuff on programming and Linux methodology.

there are bugs in it. someone put bugs in it. Grub one was working just fine. look how long lilo has been around, and what changes have they made to that one? and it is still working. (that is just me ranting)

as far as me actually taking the time to learn how to chain load something, right now with Void being a rolling release, I get Kernel updates whenever they come out, I'd be forever changing lilo to keep up.

I am going to start fresh with a new unzip of the kernel then go from there, because I screwed something up with the modules in the naming of the directory it says 4.8.44.8.4 and not just 4.8.4 .

thanks fro the help (all of you.)

Last edited by BW-userx; 10-24-2016 at 08:00 AM.
 
Old 10-24-2016, 08:15 AM   #36
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
Taking from the config file (off slack web mirror)
Code:
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
as I am going to replace that one with the one that is in /boot just to make sure it is a fresh correct it came with the HUGE kernel config file.

it states it looks at and or uses this one in that directroy, and not the one in /boot yes? so I'd be better off looking at that one first, and I could make changes within it as well first before running make oldconfig ? because I am actually getting some , to me, nasty errors showing up in syslog on the HUGE kernel, that should be tended to. In my option. well they are just warnings actually, but just the same.

I just looked at syslog, and made sure which Kernel was going me them errors, because of my doing this kernel thing. it'd probably be a good idea to TRY and get that squared away first yes? at least I think so. maybe not, I could be wrong, seriously I could be.

well I just looked inside it
Code:
userx@SlackDaddy & log >> $ls /lib/modules/4.4.23/.config
ls: cannot access '/lib/modules/4.4.23/.config': No such file or directory
why is it not there? is it suppose to be? the config script says it is.


DOES THIS LINK have anything to do with this grub problem in Void not picking up the new kernel?

Code:
lrwxrwxrwx  1 root root       19 Oct 13 14:45 vmlinuz -> vmlinuz-huge-4.4.23
lrwxrwxrwx  1 root root       22 Oct 13 14:44 vmlinuz-generic -> vmlinuz-generic-4.4.23
-rw-r--r--  1 root root  4378720 Sep 30 21:15 vmlinuz-generic-4.4.23
lrwxrwxrwx  1 root root       19 Oct 13 14:45 vmlinuz-huge -> vmlinuz-huge-4.4.23
-rw-r--r--  1 root root  7624672 Sep 30 21:23 vmlinuz-huge-4.4.23
should not the new kernel be linked to vmlinuz too?

and the config file is linked to
Code:
lrwxrwxrwx  1 root root       18 Oct 13 14:45 config -> config-huge-4.4.23
am I skipping more needed steps then first found out (make modules_install)? which I just happened to miss is all.

Last edited by BW-userx; 10-24-2016 at 08:29 AM.
 
Old 10-24-2016, 08:34 AM   #37
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
Are you building 32bit or 64bit? Because the kernel directory you linked to was for 32bit Slackware.

And you really should start out with the configs in the testing/ directory (the 32bit and 64bit 4.6 kernel configs), as they were prepped for 4.6, rather than 4.4, so that's fewer options you need to go through when you do make oldconfig.

As for CONFIG_DEFCONFIG_LIST, I believe that is just one place the kernel will look for a .config file, but I don't think it will place it there automatically. However, I can't verify this, because I'm having a hard time finding info on that option through my google-fu. In actuality, just take whatever config you end up using and copy/move it to the base of your 4.8.4 kernel source and name it ".config" (without quotes). You don't need a .config anywhere else (including /boot/, that was only referenced in the SlackDocs so you can save the .config used to build that kernel).
 
Old 10-24-2016, 08:37 AM   #38
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
Code:
Initial RAM filesystem and RAM disk (initramfs/initrd) support (BLK_DEV_INITRD) [Y/n/?] y
  Initramfs source file(s) (INITRAMFS_SOURCE) [] (NEW)
first what the hell is this, question.
 
Old 10-24-2016, 09:47 AM   #39
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
Are you building 32bit or 64bit? Because the kernel directory you linked to was for 32bit Slackware.

And you really should start out with the configs in the testing/ directory (the 32bit and 64bit 4.6 kernel configs), as they were prepped for 4.6, rather than 4.4, so that's fewer options you need to go through when you do make oldconfig.

As for CONFIG_DEFCONFIG_LIST, I believe that is just one place the kernel will look for a .config file, but I don't think it will place it there automatically. However, I can't verify this, because I'm having a hard time finding info on that option through my google-fu. In actuality, just take whatever config you end up using and copy/move it to the base of your 4.8.4 kernel source and name it ".config" (without quotes). You don't need a .config anywhere else (including /boot/, that was only referenced in the SlackDocs so you can save the .config used to build that kernel).
I forgot how I got to that sight off of Slacks sight, but WHAAT , anyways I didn't bother replacing it, checking what it was linked to in /boot, it was Slacks original config so I used that one instead. but thanks for the heads up. I just did a make oldconfig and held down the enter key selecting all of the defaults it has in it. that list is long, and most already default to N, so I do not even know why they bother putting in all of that support. just cuz I suppose. (rhetorical statement)

it compiled in under 10 minutes, using make -j 8 all which is valid for modules getting compiled too. Next step install modules etc...

that 4.8.6 thing is interesting though. How did they get so far ahead of themselves?
 
Old 10-24-2016, 10:02 AM   #40
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
Code:
Initial RAM filesystem and RAM disk (initramfs/initrd) support (BLK_DEV_INITRD) [Y/n/?] y
  Initramfs source file(s) (INITRAMFS_SOURCE) [] (NEW)
first what the hell is this, question.
I don't know. This is one of the things you need to figure out if you're running a newer kernel than what Pat provides. My guess is you can leave this blank, because I would assume this is where you can specify source files for your initrd, but it likely isn't required to be specified in the kernel (just like your resume from hibernation partition can be specified in the kernel, but doesn't need to be).

Running a newer kernel than what Slackware ships (or provides testing configs for) can add a lot of difficulty. Especially when you aren't familiar with the kernel and the options it has. Building custom kernels isn't something everyone needs to do (although, it can still be a great learning exercise).

I guess I should ask, is there a reason for building such a new kernel series? If you're just looking to patch the dirty cow exploit, you can simply use Slackware's existing config to build the latest version of the 4.4 series (anything 4.4.26 and later are patched against dirty cow -- it's currently at 4.4.27). You don't even have to run make oldconfig (although, it probably wouldn't hurt) because there are no new options from the 4.4.14 kernel used in 14.2. Here's all you need to do to patch against dirty cow.

Code:
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.27.tar.xz
tar -xvf linux-4.4.27.tar.xz
cd linux-4.4.27
cp /boot/config-huge-4.4.* .config
make bzImage modules
make modules_install
cp arch/x86_64/boot/bzImage /boot/vmlinuz-4.4.27
Then just update your grub to see the new kernel. If you're basing it off the huge kernel, there's normally no need for an initrd.
 
Old 10-24-2016, 10:06 AM   #41
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
that 4.8.6 thing is interesting though. How did they get so far ahead of themselves?
The 4.8.6 was just a typo from me. The kernel developers only have 4.8.4 out right now. Ignore my previous mention of 4.8.6.
 
Old 10-24-2016, 10:07 AM   #42
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
BAM O' noppers,

Quote:
5.652873 ] [<ffffffff8167946F>] apic_timer_interrupt+0x3d/0x90
5.653037] <EOI> [<ffffffff811629ca>] ? panic+0x1b7/0x1f0

.
.
.
mount_block root
.
.
.
End trace ee73a6173094ed6
 
Old 10-24-2016, 10:08 AM   #43
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
The 4.8.6 was just a typo from me. The kernel developers only have 4.8.4 out right now. Ignore my previous mention of 4.8.6.
I think your subconscious is just wanting that version. so it is not really a typo per sa ..
 
Old 10-24-2016, 10:15 AM   #44
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
I THINK I NEED TO STRESS THIS POINT

I am running make oldconfig using what ever Slack has before in its config and just getting the NEW stuff and it is tendentiously long. download it and just check it out.

go through each one separately and time yourself ...
 
Old 10-24-2016, 10:20 AM   #45
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
I don't know. This is one of the things you need to figure out if you're running a newer kernel than what Pat provides. My guess is you can leave this blank, because I would assume this is where you can specify source files for your initrd, but it likely isn't required to be specified in the kernel (just like your resume from hibernation partition can be specified in the kernel, but doesn't need to be).

Running a newer kernel than what Slackware ships (or provides testing configs for) can add a lot of difficulty. Especially when you aren't familiar with the kernel and the options it has. Building custom kernels isn't something everyone needs to do (although, it can still be a great learning exercise).

I guess I should ask, is there a reason for building such a new kernel series? If you're just looking to patch the dirty cow exploit, you can simply use Slackware's existing config to build the latest version of the 4.4 series (anything 4.4.26 and later are patched against dirty cow -- it's currently at 4.4.27). You don't even have to run make oldconfig (although, it probably wouldn't hurt) because there are no new options from the 4.4.14 kernel used in 14.2. Here's all you need to do to patch against dirty cow.

Code:
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.27.tar.xz
tar -xvf linux-4.4.27.tar.xz
cd linux-4.4.27
cp /boot/config-huge-4.4.* .config
make bzImage modules
make modules_install
cp arch/x86_64/boot/bzImage /boot/vmlinuz-4.4.27
Then just update your grub to see the new kernel. If you're basing it off the huge kernel, there's normally no need for an initrd.
just a learning experience is all. along with curtailing it to just my hardware on my laptop. My brain has as of late being toying with the idea to just get the source for what it in it then trimming that instead.

that dirty cow doesn't bother me I am not running a server to think someone might try to exploit my system (laptop) but it is a good point, they could I think in theory use me to piggy back off of maybe ?

I am going to right now run that series of commands you gave me to see what I see. as soon as I boot out of Void and back into Slack.
 
  


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:26 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