Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 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?
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"
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).
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.