LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-16-2005, 12:23 AM   #1
willis3000
LQ Newbie
 
Registered: Aug 2004
Posts: 12

Rep: Reputation: 0
Debian Sarge 2.6 Kernel No Network


Hi,

I recently installed kernel-image-2.6.8-2-686 on my Debian 3.1 by following this quick tutorial.

After I boot I couldn't get any network connection and my ethernet card doesn't show up in ifconfig.

The 2.4 kernel works fine.

What could be the problem?

Thanks!

Will
 
Old 04-16-2005, 02:24 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
The most likely cause is that the ethernet card driver is not in the kernel but is a module which means you'll have to install the driver. You need to know the make and model of the card which you should have from the 2.4 kernel. As root do modconf. If it says unknown then apt-get install modconf then do it again. This will produce a menu. Go down the list until you find network card drivers and select. Then select the relevant driver for the card and install. It will do the necessary stuff for you. You then need to configure the network. The configuration is in /etc/network/interfaces
 
Old 04-16-2005, 07:57 AM   #3
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

you can see your PCI devices by using 'lspci' or by reading the /proc/pci file... you should have a line concerning your ethernet device and the info needed to find the corresponding driver.
Once you now what driver you need, recompile your kernel with the module corresponding to your driver.

If you've trouble to know what driver you need, post the lines of /proc/pci concerning your NIC, I'm pretty sure someone on the forum will know the driver from this.
 
Old 04-16-2005, 12:50 PM   #4
willis3000
LQ Newbie
 
Registered: Aug 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the replies!

I'm having trouble finding the driver. The line in /proc/pci regarding my NIC is as follow:
Code:
  Bus  0, device  16, function  0:
    Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 16).
      IRQ 5.
      Master Capable.  Latency=32.  Min Gnt=32.Max Lat=64.
      I/O at 0xa000 [0xa0ff].
      Non-prefetchable 32 bit memory at 0xce800000 [0xce8000ff].
Which driver am I suppose to select?

Thanks!
 
Old 04-16-2005, 01:23 PM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Thats odd. It should use the 8139too driver which should be part of the kernel. Suggest installing hotplug and discover with apt. Also have a look at the kernel config file and see if 8139too is part of the kernel or a module.
 
Old 04-16-2005, 01:48 PM   #6
willis3000
LQ Newbie
 
Registered: Aug 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks! I got it to work by making some changes to the kernel config file.

Here are the lines I changed in "/boot/config-2.6.8-2-686":

CONFIG_8139CP=m ---> CONFIG_8139CP=y
CONFIG_8139TOO=m ---> CONFIG_8139CP=y

Also I used to have to manually load psmouse and mousedev for X to start, now they're loaded automatically.

What do these 2 lines mean? Do I need to set them both to 'y'?

Thanks again!

Last edited by willis3000; 04-16-2005 at 01:50 PM.
 
Old 04-16-2005, 03:04 PM   #7
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You wouldn't have got it to work merely by editing the config file and not recompiling the kernel. The entry;

CONFIG_8139CP=m
CONFIG_8139TOO=m

indicates that the drivers have been included as modules in the compile process and are therefore in the modules library.
 
  


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
compile the new kernel 2.6 on Debian Sarge cccc Debian 7 08-01-2005 07:26 AM
Debian Sarge Wired & Wireless Network configuration yoonsangkyun Linux - Wireless Networking 2 03-28-2005 07:59 PM
Debian Sarge: Welcome to my network. Brother Michael LinuxQuestions.org Member Success Stories 0 01-09-2005 03:13 AM
Sound in Debian Sarge Kernel 2.6 quentusrex Debian 13 08-13-2004 11:44 PM
No sound on Debian sarge, kernel 2.6.5.1-k7 bruno buys Debian 4 07-12-2004 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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