LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NIC driver help command line (https://www.linuxquestions.org/questions/linux-newbie-8/nic-driver-help-command-line-251503/)

nutthick 11-05-2004 11:12 AM

NIC driver help command line
 
I've just bought a mini PC that I'm going to learn Linux on. I'm using Slackware 10 (non negotiable) and have, at last, managed to get it installed without any errors. The PC is fully Linux compatable and has been supplied with drivers for the NIC. Despite reading everything supplied, I have only managed to get the supplied driver file decompressed into /usr/src and then I'm stuck. I've posted the driver file at www.sulsado.org/linux for you to look at. My Linux knowledge is very very basic so feel free to treat me like an idiot.

I need to learn linux from the command line. I'm a system administrator and will be performing maintenance on the linux box remotely, so I'm trying to stay away from GUIs as much as possible. There's no point in making it easy for myself if I can't have it when the sh#t hits the fan.

Any help would be appreciated

superbondbond 11-05-2004 11:23 AM

There are install instructions in the README file.
Location would be /usr/src/iANS-1.7.65/

nutthick 11-05-2004 11:32 AM

They give scripts for the other distro's except Slackware. As for the command line instructions I type in 'make', press return and get the following:

-bash: make: command not found

Peacedog 11-05-2004 11:33 AM

Enter the /usr/src/iANS-1.7.65/src run

make

then run

make install

After that try brining the card up with ifconfig, or netconfig.
good luck.

<edit>Install the development packages from the install cd.</edit>

nutthick 11-05-2004 11:37 AM

Peacedog: Just tried that, but I get the same result.

-bash: make: command not found

Am I missing a link to the 'make' file?

Peacedog 11-05-2004 11:42 AM

See the edit in my first post, and are you issuing the make command as root or su -?

nutthick 11-05-2004 11:43 AM

Peacedog: Sorry missed that. Is there a way of just getting setup to install the dev components, or is it a case of installing everything from scratch again?

Peacedog 11-05-2004 11:48 AM

Run pkgtool, point it to the cdrom, install everything in the D packages. Have a look here.

http://www.slackware.com/config/packages.php

good luck.

nutthick 11-05-2004 11:53 AM

Thanks for the info. I'll soldier on for a bit more.

Peacedog 11-05-2004 12:05 PM

If you have trouble with the packages from the cd, you can get them from one of the slack mirrors.
good luck.

nutthick 11-05-2004 12:24 PM

Well I'm making some progess. I now have it compiles and installed to some extent. When I type 'insmod ians' though I get a warning that the kernel was compiled with a gcc version 3, whilst my module was compiled with gcc version 2. Everything on this system has come from the same Slackware disk. Any ideas what's going on?

Peacedog 11-05-2004 07:23 PM

I had the same problem with a sound card some time ago, for the life of me I can't recall how exactly I solved it. I seem to remember something about editing the make file, and using insmod -f, but I will not reccomend that in this case.

Doing some research on the module your trying to compile does shed a little light. The last driver release was in 2002. This leads me to believe that possibly there is already support for the device in the current kernel, or there is a newer driver available.

With all that said, could you please post the output of the following commands?

/sbin/lspci -v

/sbin/lsmod

I hope we will get this working.
good luck.

nutthick 11-06-2004 02:33 AM

The outputs are as follows:

/sbin/lspci -v (I can't get anything off the PC at the moment, so I'm copying onto paper and then typing in. This command listed loads of stuff, but the relevent piece came at the end)

01:08.0 Ehternet Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) integrated LAN Controller (rev 02)
Subsystem: Intel Corp. 82801EB/ER (ICH5/ICH5R) integrated LAN Controller
Flags: bus master, mediu devsel, latency 32, IRQ 11
Memory at f8001000 (32-bit, non-prefetchable) [size=4K]
I/O ports at 9000 [size=64]
Capabilities: [dc] Power Management version 2


/sbin/lsmod

snd-pcm-oss 37736 0 (unused)
snd-mixer-oss 12504 0 [snd-pcm-oss]
intelfb 31004 63
uhci 24444 0 (used)
ehci-hcd 17580 0 (used)
usbcore 59308 1 [uhci ehci-hcd]
snd-intel8x0 18924 0 (used)
snd-ac97-codec 49500 0 [snd-intel8x0]
gameport 1420 0 [snd-intel8x0]
snd-pcm 56072 0 [snd-pcm-oss snd-intel8x0]
snd-timer 13604 0 [snd-pcm]
snd-page-alloc 6328 0 [snd-intel8x0 snd-pcm]
snd-mpu401-uart 3200 0 [snd-intel8x0]
snd-rawmidi 12740 0 [snd-mpu401-uart]
snd-seq-device 3888 0 [snd-mpu401-uart]
snd 30852 0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3396 4 [snd]
ohci1394 24112 0 (used)
ieee1394 42276 0 [ohci1394]
ide-scsi 9328 0
agpgart 43940 0 (used)

That's it. I thought my previous posted message was because my 'make' file was too old. I had a look on the web and found version 3.8. It's a nightmare to install (well for me anyway), but that's my problem at the moment. Does anything stand out in the file outputs above? Looks like everything but ethernet in the second one.

Thanks

Peacedog 11-06-2004 06:05 PM

Sorry it took so long to get back to you. I'm googling support for your device currently.

Please accept my apology, but I have no answer for the kernel and module gcc mismatch.

You might try recompiling the current kernel with the set of tools installed, and use the "make oldconfig" option so hopefully it doesn't break anything.

I'll get back to you when I have more info.
good luck.


All times are GMT -5. The time now is 02:34 PM.