LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-25-2005, 08:18 PM   #1
keith2045
Member
 
Registered: Feb 2005
Location: Missour, USA
Posts: 83

Rep: Reputation: 15
Cant install kernel source?


I've got suse 9.1 and i cant download and install the kernel source. I've used YAST and found it, but cant check it. I've also search the net and found an rpm and tried to install it that way, but it doesnt work. I'm tring to set up my wireless nic card and need it for the make command.

Any suggestions?

Keith
 
Old 02-26-2005, 12:10 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Download the full source for the newest stable kernel from kernel.org. Then use make oldconfig to create the .config file, make changes based on your system and compile. Then you'll be running the newest stable release and have the kernel sources you want.
 
Old 02-26-2005, 12:46 AM   #3
keith2045
Member
 
Registered: Feb 2005
Location: Missour, USA
Posts: 83

Original Poster
Rep: Reputation: 15
Ok i will try that, but i've never compiled a kernel before.

Keith
 
Old 02-26-2005, 01:46 AM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
after you unpack the new kernel to /usr/src/linux-2.6.9

make clean
make mrproper
make oldconfig
make menuconfig (change anything you need)
make bzImage
make modules
make modules_install
cp ./arch/i386/boot/bzImage /boot/vmlinuz-2.6.9
mkinitrd -k vmlinux-2.6.9 -i initrd-2.6.9

Now edit the /boot/grub/menu.lst

Add this entry, you could leave out the comments or put in your own
### New 2.6.9 kernel ###
title linux-2.6.9
kernel (hd0,2)/boot/vmlinux-2.6.9 root=/dev/hda3
initrd (hd0,2)/boot/initrd-2.6.9


At the time i wrote this, 2.6.9 was the stable, I know 2.6.10 is stable, but there might be another since then.
 
Old 02-26-2005, 05:28 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
musicman_ace:
Do you really think this was a good advice? keith2045 asked for help because he needs the sources of his kernel to compile a module for his wireless device and you tell him to configure and install a completely new kernel...after doing this, the wireless adapter might still not work and who knows what other problems appear.

keith2045:
Could it be that you are running 9.1 Personal edition? This one comes without development tools, but they can easiely installed from a FTP server. Have a look here for a detailed description:
http://www.linuxquestions.org/questi...hreadid=266647

Otherwise download the sources from the SuSE server directly and install them with rpm -ihv <kernel-source-package> or by clicking the file. Be sure to have the sources matching the version number of the running kernel (output of uname -r). You may need to run YOU to update the sources.
 
Old 02-26-2005, 06:51 AM   #6
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
This is true, but he said he couldn't download it which I assumed meant from within YasT. If for whatever reason he can't get Yast to install the kernel source, then what I posted will get the kernel source for him. He could figure out what version his kernel is and download that source, but why not go to the trouble of getting a newer stable release. 9.1 came with SusE's 2.6.4-default-52 if I remember right. There were latency issues and SusE quickly pushed out 2.6.5-xxxx, so I wouldn't suggest sticking with their original kernel.
 
Old 02-26-2005, 07:20 AM   #7
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Quote:
Originally posted by keith2045
I've got suse 9.1 and i cant download and install the kernel source. I've used YAST and found it, but cant check it. I've also search the net and found an rpm and tried to install it that way, but it doesnt work.
This is the SuSE 9.1 source kernel base release: kernel-source-2.6.4-52.i586.rpm

Download that file and then, if you are in KDE, goto where you placed the RPM, right-click on it and select Actions > Install with YaST. That should be all you need to do. If you get an error with the install let us know. There are other ways to do this procedure but that is probably the most intuitive.
 
Old 02-26-2005, 06:11 PM   #8
keith2045
Member
 
Registered: Feb 2005
Location: Missour, USA
Posts: 83

Original Poster
Rep: Reputation: 15
I've tried downloading it from suse's ftp server. But when i double click it, it opens YAST, then after a second, it closes with no messages.

I will try downloading the development tools.

Thanks

Keith
 
Old 02-26-2005, 06:21 PM   #9
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Quote:
Originally posted by keith2045
But when i double click it, it opens YAST, then after a second, it closes with no messages.
Are you able to install other packages in this manner?
Sounds like you have a problem with YaST.
 
Old 02-26-2005, 06:26 PM   #10
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
You could always just open a terminal and su to root, then cd to the location of the kernel-source RPM and issue this command:

rpm -i kernel-source-2.6.4-52.i586.rpm

For example, if you downloaded the file to your desktop:

$ su
Password: <your root password>
# cd /home/<your user name>/Desktop
# rpm -i kernel-source-2.6.4-52.i586.rpm

Edit: BTW, what kernel version are you currently using?
Open a terminal and type in this command:

$ uname -r

What is the output?

Last edited by Xian; 02-26-2005 at 06:29 PM.
 
Old 02-26-2005, 07:11 PM   #11
keith2045
Member
 
Registered: Feb 2005
Location: Missour, USA
Posts: 83

Original Poster
Rep: Reputation: 15
It's not YAST, I've installed programs with it and it worked. I've just done what abisko00 said, and it appears to be working. I'm currently downloading and installing the kernel sources.

Thanks for your help.

Keith
 
  


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
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
10.1 install kernel and kernel-source different - build fails Feebles Mandriva 2 06-10-2005 06:58 PM
kernel source install Odin5578 SUSE / openSUSE 1 11-04-2004 02:29 AM
Cannot install kernel-source... please help Ksiyousei Mandriva 3 10-28-2004 05:34 AM
slackware kernel source install (kernel 2.6.6) ? LinuxOG Slackware 22 06-06-2004 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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