LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-22-2005, 03:59 AM   #1
MeOrSo
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
can't get network card to work


first, hello everyone
i set up a debian sarge with kernel 2.6 last week. i use the asus motherboard p5gdi with onboard lan.
for linux did not automaticly install a driver, I downloaded one from the asus homepage. it's the sk98lin driver. i'm quite sure this is the right one, cause i found it on the corresponding download page to my motherboard.
i'm trying to install this since last week but i think i'm getting nowhere. when i install it in user mode i always get an error. first i got the error that in /usr/src/linux/include/linux the file version.h is missing. this is true, there is no such file. the kernel sources are from www_kernel_org. version 2.6.8, i have version 2.6.8-2-386 installed.
this file (version.h) exists in the kernel headers but using the headers in /usr/src/linux installation says .config is missing (which is also true. but anyway i'm pretty sure i need the sources).
after compiling the kernel the missing file exists (the compiled kernel didn't work on first try i got fatal: could not load /lib/modules/2.6.8/modules.dep, on second it didn't want to load due to wrong format or so. I know this is not a good sign anyway but i have never compiled a kernel before so i didn't worry).
when i try to install the driver now there is a error while compiling the kernel:
Code:
Create tmp dir (/tmp/Sk98IWBojJdZJSrpcJBOdoPAr)                      [   OK   ]
Check user id (0)                                                    [   OK   ]
Check kernel version (2.6.8-2-386)                                   [   OK   ]
Check kernel symbol file (/proc/kallsyms)                            [   OK   ]
Check kernel type (SP)                                               [   OK   ]
Check architecture (found)                                           [   OK   ]
Set architecture (i386)                                              [   OK   ]
Check compiler (/usr/bin/gcc)                                        [   OK   ]
Check mcmodel flags (32bit)                                          [   OK   ]
Check module support (/sbin/insmod)                                  [   OK   ]
Check make (/usr/bin/make)                                           [   OK   ]
Check archive file (sk98lin)                                         [   OK   ]
Check kernel gcc version (3.3.5) (Kernel:3.3.5 == gcc:3.3.5)         [   OK   ]
Check sk98lin driver availability (not loaded)                       [   OK   ]
Check kernel header files (/usr/src/linux)                           [   OK   ]
Check the mem address space (lowmem)                                 [   OK   ]
Unpack the sources (done)                                            [   OK   ]
Check sources for .config file (/usr/src/linux/.config)              [   OK   ]
Copy and check .config file (done)                                   [   OK   ]
Execute: make oldconfig (done)                                       [   OK   ]
Check kernel header version (Kernel:2.6.8-2-386 == Header:2.6.8-2-386[   OK   ]
Check kernel functions (Changed: nothing)                            [   OK   ]
Compile the kernel (error)                                           [ failed ]
somehow i have now a module sk98lin , but trying modprobe i get:
Code:
FATAL: Error inserting sk98lin (/lib/modules/2.6.8-2-386/kernel/drivers/net/sk98lin/sk98lin.ko): Invalid module format
i thought, that i maybe messed up with kernel-sources but the check while installation of sk98lin said its ok.

it would be really nice if someone could help me with this.
lg
Jasmin
 
Old 07-22-2005, 08:58 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
There doesn't seem to be a lot of info about on this motherboard. Is it one of those new PCI Express things? You could try the command 'lspci -vv' and check the output for more details about the ethernet controller. Maybe recent kernels already have a driver?

I don't know why the manufacturer's driver doesn't work. Often they don't because they have only been tested with a particular (usually out-of-date) kernel. But the fact that you are not familiar with compiling/installing a new kernel is also a big handicap. I'd suggest getting the latest kernel source (as a Debian package if you like) and a tutorial on kernel configuration/compilation to practice with.

You may also be lucky and find someone who has succeeded with the Asus driver and can tell you what to do. Note that the kernel you actually use and the driver have to be compiled from the same source.

As a last resort you can always just stick an old ethernet card in and use it until linux catches up with your hardware.
 
Old 07-25-2005, 01:30 AM   #3
MeOrSo
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
yes, the motherboard has 2 pci-express slots. it for intel 64bit processors.
lspci -vv says:
Code:
0000:02:00.0 Ethernet controller: Marvell Technology Group Ltd.: Unknown device4362 (rev 15)
        Subsystem: Asustek Computer, Inc.: Unknown device 8142
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-<MAbort- >SERR+ <PERR-
        Latency: 0, Cache Line Size: 0x04 (16 bytes)
        Interrupt: pin A routed to IRQ 177
        Region 0: Memory at d2efc000 (64-bit, non-prefetchable) [size=16K]
        Region 2: I/O ports at c800 [size=256]
        Expansion ROM at d2ec0000 [disabled] [size=128K]
        Capabilities: [48] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=7 DScale=1 PME-
        Capabilities: [50] Vital Product Data
        Capabilities: [5c] Message Signalled Interrupts: 64bit+ Queue=0/1 Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [e0] #10 [0011]
i installed kernel 2.6.8, seems quite recent to me. I tried to use the onboard lan before installing any driver and it didn't work. Also the card was not in the menu in menuconfig. Now it is.
I'll probably give up today. i have a network card which works under linux. But I use Windows XP 64bit too on this machine and there are no drivers for XP64bit. So if anyone has an idea how to fix it, i'll try it out.
Thanx for your reply anyway
 
Old 07-26-2005, 12:56 AM   #4
MeOrSo
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
searching further on the net I have found this:
http://ta.twi.tudelft.nl/DV/Staff/Le...nux_p5gd1.html

I've tried it out and it worked. So it seems i had the wrong driver (though i had the one from the asus homepage)
lg
Jasmin
 
  


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
Getting Network Card to Work (RHL 9) supertroop Linux - Networking 1 08-27-2005 09:14 PM
help!! newbie can't get network card to work loof Slackware 10 03-24-2005 07:56 AM
Network card that will work with my computer myohanne Linux - Networking 3 12-01-2004 12:16 PM
How do I get my network card to work? TheScot Linux - Hardware 12 07-01-2004 02:38 PM
my second network card does not work (slackware) slacktom Linux - Networking 4 04-08-2004 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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