LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-30-2002, 08:11 PM   #1
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Rep: Reputation: 15
Question My First Kernel compile....


I am very lost...I am updateing my kernel to the 2.4.20 one, im on the 2.4.18 kernel right now. If you would like to knwo why its because i am trying to get my sound working and its not liking me compiling it from the kernel im on now and i read somewhere saying this kernel would support my sound card. Anyway, this is what i have done so far. I downloaded the kernel source from kernel.org and untared it. And i dont know what to do after that i read the read me file but it didnt make much sence to me. So if you could help me that would be great. Thanks!
 
Old 12-30-2002, 09:10 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you need to do all of this in the source folder
Code:
make mrproper menuconfig
then you need to configure the kernel for your hardware. You can load your config file from your current kernel in the load config section in menuconfig if you want, it's probably in /boot, look for /boot/config-ide-2.4.18

after configuration

Code:
make dep clean bzImage modules modules_install
then you can put the kernel you made in /boot
Code:
cat arch/i386/boot/bzImage > /boot/vmlinuz-2.4.20
and the System map file
Code:
cp System.map /boot/System.map-2.4.20
the config file
Code:
cp .config /boot/config-2.4.20
ok now the initrd if you use one. If /etc/lilo.conf has no initrd in it then you don't need it. I have not seen it used on Slack. I'm adding it in case someone has a distro with mkinitrd
Code:
mkinitrd /boot/initrd-2.4.20.img 2.4.20
then it's a matter of duplicating the image section of your old kernel and change the image , initrd, and label names to match the new kernel in the file /etc/lilo.conf


then run

Code:
lilo

Last edited by DavidPhillips; 12-30-2002 at 09:28 PM.
 
Old 12-30-2002, 09:53 PM   #3
RRepster
Member
 
Registered: Dec 2002
Location: aksarben
Distribution: Several
Posts: 117

Rep: Reputation: 15
See the below link for more instructions. (basically a lot of those steps you can skip by issueing the command "make install") I've used the steps outlined there a few times now.

http://p-two.net/modules.php?op=modl...=article&sid=5
 
Old 12-30-2002, 09:58 PM   #4
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
i got this error when i did the make modules_install, i dont know what it means or if its nothing but it says error so i thought i would ask

depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/char/drm/sis.o
depmod: sis_free_Rsmp_ced25333
depmod: sis_malloc_Rsmp_a3329ed5
make: *** [_modinst_post] Error 1
 
Old 12-30-2002, 10:12 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
never saw this before, did the folder exist before you started?

try rm -rf /lib/modules/2.4.20

then try it again
 
Old 12-30-2002, 10:59 PM   #6
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
i am still getting an error :-/
 
Old 12-30-2002, 11:10 PM   #7
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
i also need to add in another driver that i have the source for how can i do this? it sis7012.o
 
Old 12-30-2002, 11:27 PM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
did you try the i810 driver?

I think the sis7012 is a patch

did it come with a README file

Last edited by DavidPhillips; 12-30-2002 at 11:59 PM.
 
Old 12-31-2002, 06:34 AM   #9
RRepster
Member
 
Registered: Dec 2002
Location: aksarben
Distribution: Several
Posts: 117

Rep: Reputation: 15
That error is because of your current 2.4.18 symlink (I think). I got an error like that the first time I compiled the .20 kernel as well. Delete your symlink, and make a new one pointing to your 2.4.20 kernel source and recompile. At least that's what fixed it for me. I'm fairly new to slack myself though so I can't be 100% sure that's the issue, just that's what worked for me.

Rob
 
Old 12-31-2002, 12:58 PM   #10
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
there is a symlink in the folder its /usr/src/linux linked to /usr/src/linux-2.4.18, is that what you want me to delete the symlink linux?

DavidPhillips - where could i get the i810 driver? that your tlaking about?
 
Old 12-31-2002, 01:44 PM   #11
RRepster
Member
 
Registered: Dec 2002
Location: aksarben
Distribution: Several
Posts: 117

Rep: Reputation: 15
aye you need a new symlink pointing to your new sources:

ln -s /usr/src/linux/linux-2.4.20 /usr/src/linux

credit to Excalibur for teaching me that last week.

Rob
 
Old 12-31-2002, 01:50 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
You should be able to build a kernel from anywhere though, unless something has changed and I missed the boat.
 
  


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
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

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

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