LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-18-2006, 11:42 AM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Rep: Reputation: 46
Trying download kernel source


I think I might need the kernel source to install the drivers for my G-302 wireless card.

I am running debian etch, 11-Aug-2006 version: 2.6.16-2-486

Here is what I tried:

apt-get install kernel-source-2.6.16 kernel-headers-2.6.16

I got an error that debian couldn't find any package whose name or description matched.

I found the headers on the cdrom, and downloaded with:

apt-get install linux-headers-2.6.16-2-486

But I can not find the source for the kernel anywhere. I have been trying apt-cache search, for everything I can think of, but I can not find it.
 
Old 08-18-2006, 01:04 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
When You find it let me know. I have been looking for that for sometime now. It has been a frustrating hold back.
 
Old 08-18-2006, 02:30 PM   #3
Uruclef
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 45

Rep: Reputation: 15
Since the linux kernel nomenclature has changed, you have to download the source with apt-get source, like

apt-get source linux-version
 
Old 08-19-2006, 01:24 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
You need to install a new kernel image. The 486 kernel image is a piece of junk. I can't figure out why is in there. do:

apt-cache search linux-image

and pick the one that fits your hardware, which I am sure is not 486 architechture. Like if you have a Pentium 4, choose the Pentium 4 smp kernel image. Apt-get will try to install a bunch of other stuff. Just let it, and delete the other kernel images later with dpkg -r <package>.

apt-cache search linux-source

and pick the one that matches the kernel image you installed. Go in /boot/grub.menu.lst and change "root=/dev/hda1" in the kernel line for your new kernel to "root=/dev/sda1". Edit /etc/fstab and make everything that says hdx say sdx, (i.e. hda1 to sda1), and save the file. Boot with the non-pathetic excuse of a kernel by choosing it from the grub menu when you restart the machine (arrow keys, but it should be first.) 2.6.15 and 2.6.16 work pretty well with acpi, but if you can't boot the first thing I try is put "acpi=off" on the kernel line in the grub listing for the kernel I am booting. When the boot menu first comes up, if you hit the down arrow the timer stops. Then hit the up arrow to go back to the kernel you want to edit. Hit the "e" key, and select the kernel line. Hit the "e" key again and you can add kernel parameters, but put them at the end of the line. Hit enter and hit "b" for boot. You probably won't need to do that with acpi, but it's always good to know how.
 
  


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
Where to download Kernel-Source? dbzw SUSE / openSUSE 4 10-15-2005 10:23 PM
possible to download kernel source? juanbobo *BSD 1 06-13-2005 07:21 PM
Download kernel source waynefrank Linux - Newbie 1 02-10-2005 08:04 PM
Where can I download the 2.6 kernel and its source? lyonsd Linux - Software 2 03-08-2004 05:27 PM
where to download kernel source 2.4.20-8 hamish Red Hat 4 10-06-2003 01:06 PM

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

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