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 02-07-2021, 10:29 AM   #3076
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled

Quote:
Originally Posted by AlleyTrotter View Post
You may not like my method which is patterned after the Kernel documentation But
You are still wrong about older GCC
You obviously have little experience building kernel
Code:
ls /boot/*4.4.240*
/boot/System.map-generic-4.4.240  /boot/config-generic-4.4.240.x64  /boot/vmlinuz-generic-4.4.240
/boot/System.map-huge-4.4.240     /boot/config-huge-4.4.240.x64     /boot/vmlinuz-huge-4.4.240
The above "not needed" is also installed by the SlackBuild.
Are we in the contest who build kernels longer? What would be the point? Kernels (from user point of view) are just a piece of software as any other: just follow the recipe (in this case config file) and if needed modify to your heart content.

Quote:
will not work because (as you mentioned) latest kernels refuse to compile with older versions of gcc and oldconfig is just a way to copy previous version of config file.
personally I don't see a point of recompiling default Slackware kernels.
this is what I exactly said. I don't know why @enorbet could not build 5.10.x on Slackware 14.2. He clearly got some GCC arrors
Quote:
it won't compile with the older gcc on 14.2
Easiest solution to his problem is to install latest current kernel from Slackware packages

"not needed" options are really not needed.
/boot/System.map
useful for kernel debugging (with the pace of kernel changing today it does not provide anything usefull for the user). Personally, I got rid from debugging info from the kernel (I don't need it). I have not seen Slackware user actually debugging kernel crashes.
System.map does not play a role if you have /proc filesystem support

by the way default System.map file is located in (e.g.)
/usr/src/linux-x.x.x/System.map
So no need to duplicate it as System.map has no role in boot proccess.

and
/boot/config
also does not play a role in boot proccess. It is kept there for documentation purpose on default system for curious user who wants to take look at the file. If user is building custom kernel, obviously /boot/config is not needed as the file is located in /usr/src/linux-x.x.x/

I still don't see a point of re-building default kernel. Provided by Slackware kernel just works (= boots). Missing hardware is something else, but re-building default kernel definitely does not solve this particular problem.
 
Old 02-07-2021, 10:37 AM   #3077
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I was not talking about rebuilding the default kernel.
enorbet was talking about building the current kernel to use on 14.2
and my initial comment about the GCC was directed to him not you
john

Last edited by AlleyTrotter; 02-07-2021 at 10:38 AM.
 
Old 02-07-2021, 11:35 AM   #3078
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by cwizardone View Post
As 3resho has pointed out, kernel updates 5.10.14, 5.4.96, 4.19.174 and 4.14.220 are now available at,
https://www.kernel.org/
5.4.96 seems to compile and boot fine on -current:
Code:
Linux hp-laptop.example.org 5.4.96 #1 SMP Sun Feb 7 17:31:00 CET 2021 x86_64 Intel(R) Core(TM)2 Duo CPU T6400@2.00GHz GenuineIntel GNU/Linux
I use the following steps to build and install my custom kernels adapted from:
https://docs.slackware.com/howtos:sl...kernelbuilding
Code:
sudo -s                  # a side effect of '-s' is that it allows root to run X programs
. /etc/profile                 # sourcing the global profile ensures
                               # that root has the ''sbin'' directories in the $PATH
cd /usr/src
rm linux                       # remove the existing symlink
ln -sf linux-5.4.96 linux      # create a symlink pointing to your new linux source
zcat /proc/config.gz > /usr/src/linux-5.4.96/.config #grab the config
cd /usr/src/linux-5.4.96
make localmodconfig
make -j2 bzImage modules && make modules_install
cp arch/x86/boot/bzImage /boot/vmlinuz-custom-5.4.96  # copy the new kernel file
cp System.map /boot/System.map-custom-5.4.96          # copy the System.map (optional)
cp .config /boot/config-custom-5.4.96                 # backup copy of your kernel config
make oldconfig && make prepare && make clean
rm -rf .config.old .version
cd /boot
rm System.map config vmlinuz                          # delete the old links
ln -sf System.map-custom-5.4.96 System.map            # create a new link
ln -sf config-custom-5.4.96 config
ln -sf vmlinuz-custom-5.4.96 vmlinuz
/etc/lilo.conf:
image = /boot/vmlinuz
initrd = /boot/initrd.gz
root = /dev/sda4
label = Linux
read-only
mkinitrd:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.4.96|bash && lilo

Last edited by mats_b_tegner; 02-07-2021 at 04:50 PM.
 
2 members found this post helpful.
Old 02-07-2021, 12:17 PM   #3079
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 mats_b_tegner View Post
5.4.96 seems to compile and boot fine on -current:
Code:
Linux hp-laptop.example.org 5.4.96 #1 SMP Sun Feb 7 17:31:00 CET 2021 x86_64 Intel(R) Core(TM)2 Duo CPU T6400@2.00GHz GenuineIntel GNU/Linux
As Gomer would say "Surprise Surprise!"
My convoluted method to build, install and run the current kernel(5.10.14) on Slackware64-14.2 works just fine.
Following the best practices of those with greater knowledge than myself helps.

Come on. I can't be the only one running the 5.10 series on 64-14.2 can I?
Anyway
Just another me too.
HTH
John
 
1 members found this post helpful.
Old 02-07-2021, 01:30 PM   #3080
Spidergawd
Member
 
Registered: Jun 2016
Location: Cave Johnson's hometown
Distribution: Slackware64-15.0
Posts: 33

Rep: Reputation: Disabled
Code:
cat /etc/slackware-version
Slackware 14.2
Code:
gcc (GCC) 5.5.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Code:
Linux spidergawd 5.10.13 #1 SMP PREEMPT Sat Feb 6 20:31:40 EST 2021 x86_64 AMD Ryzen 5 1600 Six-Core Processor AuthenticAMD GNU/Linux
 
2 members found this post helpful.
Old 02-07-2021, 01:43 PM   #3081
Uncle Lumpy
Member
 
Registered: Feb 2010
Posts: 63

Rep: Reputation: 48
I've been running 5.10.x kernels on Slackware64 14.2 since the 5.10.x series were baby kernels. GCC 5.5.0 installed. No problems building the kernels.

Lumpy
 
2 members found this post helpful.
Old 02-07-2021, 04:32 PM   #3082
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,107

Original Poster
Rep: Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282
5.11-rc7

Release Candidate 7, for the 5.11 "mainline" development kernel has been been made available for testing.

The tarball, https://git.kernel.org/torvalds/t/linux-5.11-rc7.tar.gz

Mr. Torvalds' announcement, http://lkml.iu.edu/hypermail/linux/k...2.0/08975.html

Last edited by cwizardone; 02-07-2021 at 04:35 PM.
 
2 members found this post helpful.
Old 02-07-2021, 06:33 PM   #3083
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by cwizardone View Post
5.11-rc7
Mr. Torvalds' announcement, http://lkml.iu.edu/hypermail/linux/k...2.0/08975.html
Quote:
So it's the biggest sporting day of the year here in the US, when everybody is getting ready to watch the yearly top TV commercials, occasionally interrupted by some odd handegg carrying competition that I still haven't figured out the rules for after twenty-odd years here. It's kind of a more violent and hands-on team-oriented version of the traditional egg-and-spoon race, and involves a lot of standing around, apparently waiting for the next commercial to come on.

Outside the US, everybody scratches their heads about the whole thing, and...
... settles down in front of telly to watch "The 6 Nations" with a tankard of ale.

Recording the Superbowl (KC fan for many years: don't laugh!). Getting too old to stay up all night like I used to, so will watch it tomorrow as I'm likely to be snowed in. Not that our cv-19 restrictions would let me go out anyway. *sigh*

Anyway, found time to build .14 this evening. Seems ok.

Last edited by GazL; 02-07-2021 at 06:35 PM.
 
2 members found this post helpful.
Old 02-07-2021, 07:03 PM   #3084
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 GazL View Post
... settles down in front of telly to watch "The 6 Nations" with a tankard of ale.

Recording the Superbowl (KC fan for many years: don't laugh!). Getting too old to stay up all night like I used to, so will watch it tomorrow as I'm likely to be snowed in. Not that our cv-19 restrictions would let me go out anyway. *sigh*

Anyway, found time to build .14 this evening. Seems ok.
I have compiled it (5.10.14) on Slackware64-14.2
works just fine
Not too excited over the super bowl here, A giants fan
HTH
john
 
Old 02-07-2021, 07:52 PM   #3085
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,107

Original Poster
Rep: Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282
Quote:
Originally Posted by GazL View Post
... settles down in front of telly to watch "The 6 Nations" with a tankard of ale.

Recording the Superbowl (KC fan for many years: don't laugh!). Getting too old to stay up all night like I used to, so will watch it tomorrow as I'm likely to be snowed in. Not that our cv-19 restrictions would let me go out anyway. *sigh*

Anyway, found time to build .14 this evening. Seems ok.
After all the nonsense of the last year, the NFL can go straight to h*ll.
 
2 members found this post helpful.
Old 02-08-2021, 12:56 AM   #3086
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Quote:
Originally Posted by AlleyTrotter View Post
enorbet was talking about building the current kernel to use on 14.2
Actually no I wasn't. It is extremely rare that I use any stock Slackware kernel with the occasional exception from installing from an iso and then I rebuild it in the first hour. In this specific case, I didn't download the kernel or any part of it from Current. For Slackpkg(+) I blacklist all kernel entries. I downloaded the source from kernel.org.

I have mentioned that I am mistaken that nobody can build a very new kernel by saying what I did about 14.2's gcc. It is most likely it is just my badly altered system I built a few years ago when Current came out with the Pure Alsa option that was never meant for 14.2. It did what I wanted for years even built some newer kernels like 5.5.12 just fine.

I wrongly jumped to a general conclusion that got quickly set straight as a "Doh! PEBKAC" moment. I haven't used 14.2 as my daily driver in almost a year, have 5 different Slack installs on this box, and just forgot that 14.2 had been so jury-rigged by yours truly.
 
1 members found this post helpful.
Old 02-08-2021, 10:05 AM   #3087
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Quote:
Originally Posted by AlleyTrotter View Post
I was not talking about rebuilding the default kernel.
enorbet was talking about building the current kernel to use on 14.2
and my initial comment about the GCC was directed to him not you
john
Actually you did talk about building huge:

https://www.linuxquestions.org/quest...ml#post6216785

Quote:
...compiles and runs fine using the kernel config in Slackware64-current iso
slackware64/source/k/config-huge-5.10.13x64. ( I use huge kernel)
you suggested also the use of localmodconfig
https://www.linuxquestions.org/quest...ml#post6215717
this is absolute useless if building huge: you have all devices build in so scanning for modules will not discover/add anything to kernel config (not to mention that localmodconfig in fact should be used only under special conditions. Is this harmful? No (in the case of huge kernel), yes it is if you don't know what this command do.

just to make it clear.
Regarding kernel building, my point is that steps that you suggest are not needed. They do not provide any specific advantage, nor they are not harmful, just make things unnecesary complicated.

Last edited by Aeterna; 02-08-2021 at 10:20 AM.
 
Old 02-08-2021, 11:20 AM   #3088
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,107

Original Poster
Rep: Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282Reputation: 7282
Let's get back track, shall we?


Year 2021, Round 11.

Another batch of updates has been scheduled for release on Wednesday, 10 February 2021, at approximately 15:00, GMT. If no problems are found while testing the release candidates, they might be available sometime on Tuesday (depending on your time zone).

The details:

5.10.15-rc1, with 120 patches, http://lkml.iu.edu/hypermail/linux/k...2.1/01098.html

5.4.97-rc1, with 65 patches, http://lkml.iu.edu/hypermail/linux/k...2.1/00949.html

4.19.175-rc1, with 38 patches, http://lkml.iu.edu/hypermail/linux/k...2.1/00895.html

4.14.221-rc1, with 30 patches, http://lkml.iu.edu/hypermail/linux/k...2.1/00855.html

4.9.257-rc1, with 43 patches, http://lkml.iu.edu/hypermail/linux/k...2.1/00794.html

4.4.257-rc1, with 38 patches, http://lkml.iu.edu/hypermail/linux/k...2.1/00744.html

Last edited by cwizardone; 02-08-2021 at 11:46 AM.
 
1 members found this post helpful.
Old 02-08-2021, 12:29 PM   #3089
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 Aeterna View Post

just to make it clear.
Regarding kernel building, my point is that steps that you suggest are not needed. They do not provide any specific advantage, nor they are not harmful, just make things unnecesary complicated.
If not harmful then why the attack and condemnation over recommended procedures?
I am not the only one who copies those files to /boot directory
EG see the slackbuild for slackware slint and several other distros
Many people delete the source after building and could possibly need the copied files for other purposes such as the next time they build an out of tree kernel.
You jumped in where I was trying to suggest a successful method to build the 5.10 series kernel for slack14.2 for the OP
So I am done here
john
Per Cwizardone I intend to get back on track can you

Last edited by AlleyTrotter; 02-08-2021 at 12:32 PM.
 
Old 02-08-2021, 03:14 PM   #3090
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473
Quote:
Originally Posted by PROBLEMCHYLD View Post
I use the configs from current and constantly get the error when using build-all-kernels.sh on 14.2.
I had a look at this and found that CONFIG_BPF_PRELOAD=y runs a python3 script which causes the build to fail if python3 is not installed on the system. I've confirmed that if python3 is installed on Slackware 14.2 then the 5.10.x kernel build scripts from current's source/k/ work with no changes required.

Otherwise, you can edit out that line from the config, run make oldconfig and answer N when asked if you want BPF_PRELOAD. The resulting config will work fine on Slackware 14.2 without python3 installed.

Hope this helps.
 
8 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
Linux.conf.au: Latest Linux kernel release due early March DragonSlayer48DX Linux - News 0 01-18-2010 10:43 PM
No video on latest kernel release Tralce Linux - Kernel 3 11-30-2006 07:48 AM
What is the latest Redhat release TILEMANN Linux - Software 5 11-20-2006 10:48 PM
LXer: News: OpenVZ To Release Support, Patches for Latest Kernel LXer Syndicated Linux News 0 11-01-2006 10:54 PM
latest debian release? doralsoral Linux - Software 5 12-25-2004 12:40 PM

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

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