LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   NEtwork card not recognized (https://www.linuxquestions.org/questions/slackware-14/network-card-not-recognized-668159/)

Winol 09-07-2008 11:21 AM

NEtwork card not recognized
 
Hey there :)

I am a newbie with linux but i worked very hard to make a triple boot (with success : XP/Backtrack/Slack), and this is my second day on Linux so please accept my apologizes not being a professionnal

Here is my problem:
My Network is not recognized on my slack 12.1 but it is on my Backtrack

here is the result of my lspci on my Backtrack Distribution

03.08.0 Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Controller (rev 02)


after some google search i tried this on my slack
ls /lib/modules/*/kernel/drivers/net

i have to say that the driver is not present (only the 82596.ko is there). So i guess i have to recompile the kernel .... wich i have no idea about how to do.

Many thanks for the help

keefaz 09-07-2008 11:26 AM

Do you have e100.ko module ?
http://hardware4linux.info/component/21359/

Winol 09-07-2008 12:04 PM

Yeah i found E100.ko in the both kernel directories ....

How can i make the network card workng now ?

Thanks for the previous help :)

Edit: i tried a modeprob e100.ko but it tells me that he cant find the module ......

even with modeprob /lib/modules/2.6.24.5/kernel/drivers/net/e100.ko it doesn't allow me to load the module :/

keefaz 09-07-2008 12:52 PM

Don't put the ko extension:
/sbin/modprobe e100
/sbin/netconfig

Winol 09-07-2008 04:15 PM

I tried that but it tells me thats there is a lot of error in line 12 23 24 25 etc etc and it can't load the module :/

How can i do ? :-(


Any IRC chan where we can speak ? :)

onebuck 09-07-2008 05:04 PM

Hi,

Post the out put of 'ifconfig -a'. I think your device is recognized.

Did you run 'netconfig' as root to configure the network?

Winol 09-08-2008 11:59 AM

Quote:

Originally Posted by onebuck (Post 3272650)
Hi,

Post the out put of 'ifconfig -a'. I think your device is recognized.

Did you run 'netconfig' as root to configure the network?


Ifconfig -a : only the Lo is present :(

I tried to do a netconfig as a root but i still can't connect and i have a error message when i try to Ifconfig eth0

Trying to find some reference on google but still not working :(

keefaz 09-08-2008 12:01 PM

It's hi tech forum here, please elaborate with your "not working" :)

masonm 09-08-2008 12:14 PM

As root try just typing in the command /sbin/modprobe e100

and see what happens.

That is the correct module for that card so either you're entering the wrong command or your configuration is off. Did you do a lsmod to see what modules are already loaded?

Winol 09-08-2008 01:15 PM

Quote:

Originally Posted by masonm (Post 3273540)
As root try just typing in the command /sbin/modprobe e100

and see what happens.

That is the correct module for that card so either you're entering the wrong command or your configuration is off. Did you do a lsmod to see what modules are already loaded?




modprobe e100 : lot of bad line ... and FATAL Error Invalid Modul Format



Lsmod : Actually no module loaded :(



Any idea ?

keefaz 09-08-2008 02:17 PM

Could you post the error lines (say 5-7 lines) with /sbin/modprobe e100 ?

Winol 09-08-2008 02:52 PM

Quote:

Originally Posted by keefaz (Post 3273627)
Could you post the error lines (say 5-7 lines) with /sbin/modprobe e100 ?


Just booted on the distro and shell is telling me

line 1 ignoring bad line starting with 'ELF'
line 3 " " " " " {unreadable}
same for line 6 8 9 11 13 14 15 16 17 ...... and till 113

keefaz 09-08-2008 03:19 PM

The complete error messages would help :/
Could you try:
/sbin/depmod -a
/sbin/modprobe e100

Winol 09-08-2008 03:29 PM

Quote:

Originally Posted by keefaz (Post 3273699)
The complete error messages would help :/
Could you try:
/sbin/depmod -a
/sbin/modprobe e100

well the charachters are ASCII and i know how to type them in the forum

Same errors with your commands.


WARNING : /etc/modprobe.d/e100.ko line 1: ignoring bad line starting with 'ELF'
WARNING : /etc/modprobe.d/e100.ko line 3: ignoring bad line starting with (ascii)
WARNING : /etc/modprobe.d/e100.ko line 5: ignoring bad line starting with (ascii)
WARNING : /etc/modprobe.d/e100.ko line 6: ignoring bad line starting with (ascii)
WARNING : /etc/modprobe.d/e100.ko line 8: ignoring bad line starting with (ascii)
WARNING : /etc/modprobe.d/e100.ko line 9: ignoring bad line starting with (ascii)
WARNING : /etc/modprobe.d/e100.ko line 11: ignoring bad line starting with (ascii)
WARNING : /etc/modprobe.d/e100.ko line 12: ignoring bad line starting with (ascii)
WARNING : /etc/modprobe.d/e100.ko line 13: ignoring bad line starting (ascii)
with (ascii)

WARNING : /etc/modprobe.d/e100.ko line 14: ignoring bad line starting with (ascii)
WARNING : /etc/modprobe.d/e100.ko line 15: ignoring bad line starting with (ascii)
WARNING : /etc/modprobe.d/e100.ko line 16: ignoring bad line starting with (ascii)

etc etc till 113


WARNING ERROR inserting mii (/lib/modules/2.6.21.5/kernel/drivers/net/mi.ko :Invalid module format

WARNING ERROR inserting e100 /lib/modules/2.6.21.5/kernel/drivers/net/e100.ko 100:Invalid module format




here you are :/

Linux For Ever 09-08-2008 03:33 PM

You can know what exactly the module that you need.
So, from backtrack type these commands as root:

Code:

basename `readlink /sys/class/net/eth0/device/driver/module`
change eth0 with your NIC.

in my case the module was tg3.
Now you know the module that you need.

Back to your slackware and in /usr/src/linux-2.6.24.5/ type:
Code:

find -type f -name Makefile | xargs grep tg3
change tg3 with your module.

in my case the result was
Code:

./drivers/net/Makefile:obj-$(CONFIG_TIGON3) += tg3.o
you have to notes CONFIG_* , in my case TIGON3 is what i need.

type
Code:

make menuconfig
press / key to search and type what you saw after CONFIG_. In my case TIGON3.

you will see something like this
Code:

Symbol: TIGON3 [=m]                                                                                               
  Prompt: Broadcom Tigon3 support                                                                                   
    Defined at drivers/net/Kconfig:2256                                                                             
    Depends on: NETDEVICES && NETDEV_1000 && PCI                                                                     
    Location:                                                                                                       
      -> Device Drivers                                                                                             
        -> Network device support (NETDEVICES [=y])                                                                 
          -> Ethernet (1000 Mbit) (NETDEV_1000 [=y])

now you have to enable your driver "in my case I'll but M or * before Broadcom Tigon3 support" and build the kernel.

You will find topics about compiling kernel.

or visit this site
http://www.kroah.com/lkn/

Good luck


All times are GMT -5. The time now is 01:18 PM.