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-05-2003, 02:30 PM   #1
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Compile 2.4.19 kernel on slack 8.1


I tried compiling my own kernel from 2.4.19 source, but ended up with too many issues to list...most from my inexperience with configuring a kernel. I know I missed too many things while configuring the kernel, which is where I went wrong. I currently have a working 2.4.18 kernel but want to move to 2.4.19 for because I have hardware that isn't supported in 2.4.18. So what is the best way to do this? I am thinking that I can copy the kernel from the slackware/current directory (ftp site) to /boot, and my working .config to the 2.4.19 source tree. Then do:
make clean
menuconfig
make dep
make bzImage
make modules
make modules_install
mv /vmlinuz /vmlinuz.old
cat arch/i386/boot/bzImage > /vmlinuz
mv /boot/System.map /boot/System.map.old
cp System.map /boot/System.map

Then edit /etc/lilo.conf
lilo -v

and if all looks good, reboot? I think I am missing something here or maybe doing too much. Help?
 
Old 02-05-2003, 03:53 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Follow the instructions here: http://www.p-two.net/modules.php?op=...=article&sid=5 for Slack, very easy and never fails and its from our own good moderator Aussie's site.
 
Old 02-05-2003, 05:25 PM   #3
Henry
Member
 
Registered: Dec 2002
Location: USA
Distribution: Slackware9.0, some SuSe8.0
Posts: 179

Rep: Reputation: 30
ur missing depmod -a, or maybe that doesn't do anything, i dunno, but u also can DL .tgz kernel and do upgradepkg kernel*
 
Old 02-05-2003, 06:05 PM   #4
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Start with "make mrproper" then copy your ORIGINAL /boot/config to /usr/src/linux-2.4.19/.config and type "make oldconfig" then continue on with make menuconfig/xconfig. This should give you most of the basic things your current kernel has now just make sure to not remove anything critical such as ext2 support and it should work.
The link trickykid provided has great info, check it if you have any extra questions.
 
Old 02-05-2003, 07:11 PM   #5
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Original Poster
Rep: Reputation: 30
Man...this is good stuff. You know, I spent 3 hours trying all sorts of things, and I forgot that I posted this. I now see the things I was missing so I am trying it now. I actually managed to get to a good point but I kept getting /dev/mouse device not found, and x wouldn't start. After I get this to work, I will attempt to install drivers for my Radeon 9700 Pro...should be fun! Thanks guys for the replies and your time.
 
Old 02-05-2003, 09:44 PM   #6
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Original Poster
Rep: Reputation: 30
Didn't work. The original kernel is still the one that boots. I'll try again tomorrow. Thanks again.
 
Old 02-07-2003, 11:56 AM   #7
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Original Poster
Rep: Reputation: 30
Ok...I figured out why the original kernel kept booting and fixed that. I must not have commented out the line "export PATH=/boot" in Makefile, so the new vmlinuz and System.map were going to / instead of /boot. Anyway here is what I did...

First, I edited lilo.conf and Makefile according to the link from trickykid (thanks)

cd /usr/src/linux-2.4.19
ran make mrproper
cp /usr/src/linux-2.4.18/.config /usr/src/linux-2.4.19/.config
ran make oldconfig
ran make dep
ran make clean
ran make bzImage
ran make install
ran make modules
ran make modules_install
ran lilo
rebooted

All went well untill I got an oops from gpm.../dev/mouse : no such device

It's a USB mouse, and I tried recompiling with different USB settings and nothing at all worked. I believe that the problem lies from copying the .config from the 2.4.18 source, and configuring the new kernel from that. Does 2.4.19 handle something differently with USB and HID and /dev/mouse? Anyway, the original kernel is still ok. I copied the .config file from the /slackware-current/kernels/bare.i directory on slacks site. I will try to compile using this config and see what happens. I don't know what else it could be...the kernel configs were the same as far as I could tell.
Quote:
then copy your ORIGINAL /boot/config to /usr/src/linux-2.4.19/.config and type "make oldconfig"
Darin - I tried this also and got the same thing...which is another reason why I am thinking that I need the 2.4.19 .config.

Last edited by DaOne; 02-07-2003 at 12:00 PM.
 
Old 02-07-2003, 12:14 PM   #8
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
OK when I recompile my kernel I only do a make menuconfig then after that I run a make dep; make clean; make bzImage then I proceed to cp the arch/i386/boot/bzImage /boot then add the entry for the bzImage to /etc/lilo.conf ....if I do a make modules and make modules_install it tends to mess up for some reason.
 
Old 02-07-2003, 12:17 PM   #9
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Original Poster
Rep: Reputation: 30
So are you saying that it works without doing a make modules, and make modules_install?
 
Old 02-07-2003, 12:28 PM   #10
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
Depending on what you have compiled into your kernel or set as M in there yes it does.... I never change any of my kernel when I recompile anymore because slackware-current tends to load a lot of the modules for me, but on a recompile on my older 8.1 system, I either inclide it with a * or make it a module with an M. Otherwise it won't work if I install the modules....keep in mind you may need to edit /etc/rc.d/rc.modules too...
 
Old 02-07-2003, 12:52 PM   #11
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Did you edit and make the changes to lilo.conf to reflect the new kernel and old kernel before recompiling steps ?

Also I noticed you copied your old config file to your new 2.4.19 directory. Did you make sure its detecting that config to properly configure your kernel ? After copying, try to do a make menuconfig and load it that way and then proceed with the steps. But I'm sure its the way your setting up your lilo or not adding the new kernel to boot to. I would check that first.
 
Old 02-07-2003, 01:36 PM   #12
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Original Poster
Rep: Reputation: 30
Quote:
Did you edit and make the changes to lilo.conf to reflect the new kernel and old kernel before recompiling steps ?
Yes I did. I followed the steps that were in the link you provided exactly. Everything seemed fine...and I know the new kernel booted because I could catch the kernel version, and also, when I did a make oldconfig, it prompted for a N/y for the {NEW} items. Also, after I did a make oldconfig, I did an xconfig and it appeared to be ok. Keep in mind that I have tried this about 12 times now, so I have tried from no config, to an old config, to this and that. I just haven't tried what I seem to be missing of course.
All I did with lilo was copy what was there and add .old to the end of System.map and vmlinuz, and made the label slack.old. The original label "Linux" and its contents remained unchanged. Also, when I ran lilo, it added slack.old.
 
Old 02-07-2003, 02:01 PM   #13
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
Do you really have to copy all that system map whatever stuff? Cause I never have and it all works fine...but what is that for anyways?
 
Old 02-07-2003, 03:41 PM   #14
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Original Poster
Rep: Reputation: 30
Quote:
but u also can DL .tgz kernel and do upgradepkg kernel*
Does this method work?
 
Old 02-07-2003, 07:57 PM   #15
piraxter
LQ Newbie
 
Registered: Jul 2002
Location: Oaxaca
Distribution: Slackware, Libranet
Posts: 12

Rep: Reputation: 0
is the same procedure to ReiserFS

Hi.
I 'm newbie kernel compiler, so my question is; żIs the same compile procedure to install a new kernel on Slackware 8.1 with ReiserFS ?

Regards !!

Eliud
 
  


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
What is the exact way to compile 2.6.7 kernel source on Slack 10? sennasan Slackware 2 06-28-2004 11:58 PM
Dual Booting Slack with a new kernel compile? biledaemon Slackware 4 11-16-2003 11:23 AM
slack 9.0 kernel compile trace1918 Slackware 1 04-20-2003 06:50 PM
slack 9.0. Where do I compile the kernel? Schizo265 Slackware 3 03-28-2003 07:09 AM
Kernel Compile problems with Slack 8.1 X11 Slackware 4 07-17-2002 08:10 AM

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

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