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 08-26-2008, 09:49 AM   #1
Anonymo
Member
 
Registered: Dec 2004
Location: The Woodlands, Texas
Distribution: Slackware, Archlinux, CentOS
Posts: 196

Rep: Reputation: 40
Kernel .tgz


I'm a newbie to kernel compiling and package creation, and I guess just about anything in Linux. I have been using it a while, but been distro hoping a lot.

Would it be possible to download this directory to my home folder:
ftp://slackware.mirrors.tds.net/pub/...12.1/source/k/

Replace the 2.6.24 kernel with the 2.6.26 or 2.6.27 from kernel.org.
Edit each slackbuild in each of the folders in the directory to 2.6.26 or 2.6.27rc4

Run each slackbuild and then I should have up to date kernel packages I just install and then run the nvidia drivers script again.

or is it more complicated then this?
 
Old 08-26-2008, 12:02 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Why do you want packaging the kernel ? Just curious
Use the packages on other PCs ?

Yes I think you right, edit the kernel version on slackbuild and it should work in that case
but may require a 'make oldconfig' in the kernel source tree before as the new kernel may have new features

Last edited by keefaz; 08-26-2008 at 12:05 PM.
 
Old 08-26-2008, 01:35 PM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
There's a guide to building a new kernel here:

http://alien.slackbook.org/dokuwiki/...kernelbuilding
 
Old 08-27-2008, 10:40 AM   #4
Anonymo
Member
 
Registered: Dec 2004
Location: The Woodlands, Texas
Distribution: Slackware, Archlinux, CentOS
Posts: 196

Original Poster
Rep: Reputation: 40
I want packages so that I can uninstall and install easily.
 
Old 08-27-2008, 10:40 AM   #5
Anonymo
Member
 
Registered: Dec 2004
Location: The Woodlands, Texas
Distribution: Slackware, Archlinux, CentOS
Posts: 196

Original Poster
Rep: Reputation: 40
I want packages so that I can uninstall and install easily using the package manager.
 
Old 09-01-2008, 09:24 AM   #6
Anonymo
Member
 
Registered: Dec 2004
Location: The Woodlands, Texas
Distribution: Slackware, Archlinux, CentOS
Posts: 196

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by keefaz View Post
Why do you want packaging the kernel ? Just curious
Use the packages on other PCs ?

Yes I think you right, edit the kernel version on slackbuild and it should work in that case
but may require a 'make oldconfig' in the kernel source tree before as the new kernel may have new features
So what would be the best way to compile a Huge Slackware kernel just like the ones included in the Slackware DVD/CD/Online, so that I end up with a tgz file that I can install/uninstall with the package manager?
 
Old 09-01-2008, 10:08 AM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I would do it in 2 steps:
- Kernel compilation
- Kernel packaging

For the Kernel compilation:
- do it as Alien Bob tutorial, looks good

For the Kernel packaging:
- Now it is the tedious part, there is 2 packages to make: kernel and kernel-modules
Look at the file lists in /var/log/packages to give you an idea, look also at the corresponding scripts in /var/log/scripts
But I am sure Slackbuild scripts exists somewhere, look in slackware sources directories

I wonder if it is worth it to make a kernel package if you don't use it in other PCs...
If it is for install/uninstall, there is not advantage to make a package imho, you just replace the kernel in /boot and the modules in /lib/modules (and this last operation is done for you when you issue make modules_install in kernel compilation)

[edit]
You will have to install the kernel and modules before make the packages anyway
You wouldn't make a kernel package with an un-tested kernel, would you ?

Last edited by keefaz; 09-01-2008 at 10:18 AM.
 
  


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
kernel patch (.tgz) for BT b345713 Slackware 4 09-25-2006 12:50 PM
Creating a custom kernel .tgz saf Slackware 3 06-29-2006 01:07 PM
reiserfs and kernel-generic-2.6.8.1-i486-1.tgz davidsrsb Slackware 4 10-21-2004 05:22 AM
kernel 2.6.3 compile time and tgz newinlinux Slackware - Installation 2 02-19-2004 09:32 PM
X Sever crash after xset.tgz & vg16.tgz install lachlan Slackware 0 08-13-2003 02:48 AM

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

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