LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2008, 05:57 AM   #1
shahin123
Member
 
Registered: Mar 2008
Posts: 43

Rep: Reputation: 15
Add a Driver to kernel


Hi,

I want to add a NIC driver to my kernel (Debian 2.6.18-5-686) , find a doc on how to do this, I did download the linux-2.2.26.tar.bz2 on my Debian box after unzip and untar it, the doc suggested to run make menuconfig but when I do so (or make or mske gconfig or make xconfig. etc..) I get this error:


make: *** No rule to make target `menuconfig'. Stop.
Debian:/usr/src/linux-2.6.27/drivers# make: *** No rule to make target `menuconfig'. Stop.


Do I need some extra application for recompiling a kernel? or standard Debian install is enough! or there is some thing more into it then just downloading the kernel src and untar it?

Thanks,

Shahin
 
Old 10-15-2008, 06:02 AM   #2
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
You run "make menuconfig" from the root of the source code directory, which in your case is /usr/src/linux-2.6.27.
 
Old 10-16-2008, 05:41 AM   #3
shahin123
Member
 
Registered: Mar 2008
Posts: 43

Original Poster
Rep: Reputation: 15
Hi,

Thanks for your reply,
I did get the make menuconfig to work.

As I said I want to add a driver for a nic to debian, becuse when I install it, Debian couldn't find a driver for nic and my nic is not in the list of NICs. so I did finsh the install without NIC, and download the proper NIC driver, it has .rpm and the source code. so could you tel me how to install the driver?



Thanks,

Shahin
 
Old 10-16-2008, 06:19 AM   #4
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
I'm not sure that's the best way to do this. You'd better to install the kernel development package through apt. It must be something like "apt get install kern-devel"
 
Old 10-17-2008, 04:10 AM   #5
shahin123
Member
 
Registered: Mar 2008
Posts: 43

Original Poster
Rep: Reputation: 15
Hi,

After starting the make menuconfig I can go to Drivers > Network but how can I load the driver here?

Thnaks,

Shahin
 
Old 10-17-2008, 12:11 PM   #6
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
The menu is used for deciding what you want compiled into the kernel. You have to specify the modules (drivers) you want loaded in /etc/modules.autoload (or something similar, depending on your distribution).
 
Old 10-22-2008, 06:11 AM   #7
shahin123
Member
 
Registered: Mar 2008
Posts: 43

Original Poster
Rep: Reputation: 15
Hi,

Thanks for your update,

I did install debian etch (Kernel 2.6.18-5-686) and as I said it does not see the NIC's, the NICs using the tg3.ko drivers, The read my files of the drivers say the kernel 2.6 should recogise the NICs, so I did check the /lib/modules/2.6.18-5-686/kernel/drivers/net/ and yes the tg3.ko is there (/lib/modules/2.6.18-5-686/kernel/drivers/net/tg3.ko), so my question is, why then the nic's are not recognise at the installion?

Thanks,

Shahin
 
Old 10-22-2008, 09:23 AM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
so I did check the /lib/modules/2.6.18-5-686/kernel/drivers/net/ and yes the tg3.ko is there
The module is "there", but is it loaded? It won't work unless it is loaded.
Check with lsmod | grep tg3
Is it listed?
If not, load the module with sudo modprobe tg3
Then see if your NIC is seen with sudo ifconfig
 
  


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
How to manually add SATA driver manually when kernel boot? aixilin Linux - Kernel 6 08-15-2008 10:36 AM
How to add driver support to a kernel mur1 Linux - Kernel 3 10-06-2006 11:13 AM
How to add a driver to kernel? fizilal Linux - Software 0 05-30-2004 10:24 AM
How to add a driver to kernel? fizilal Linux - Hardware 1 05-30-2004 09:38 AM
how to add driver? c12ayon Linux - Software 2 10-16-2003 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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