LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Doing something wrong with driver install, don't know what (https://www.linuxquestions.org/questions/linux-newbie-8/doing-something-wrong-with-driver-install-dont-know-what-592596/)

aeroegnr 10-17-2007 07:04 PM

Doing something wrong with driver install, don't know what
 
I have slackware 12.0 running and am having difficultly running the driver makefile. I don't know exactly where to point it. I have the exact driver (linux!) for my card, but I don't quite know what the driver wants when it says to point it to the kernel. I've tried usr/src/linux but that didn't work, as it ran several errors, including one saying that it couldn't find config.h


The website is here: http://rt2x00.serialmonkey.com/wiki/...lackware_Howto
but the readme states thus:

"For 2.6 series kernel:
a. run 'cd STA/Module'
'cp ./2.6.x/Makefile .'
'cp ./2.6.x/load .'"

*****I have completed this copying portion above, step b is where I have no clue
*****I have tried "make -C /usr/src/linux SUBDIRS=$PWD modules" on the command line but that results in the error I mentioned above

"b. $make -C /path/to/source SUBDIRS=$PWD modules
Where /path/to/source is the path to the source directory for the (configured and built) target kernel.

c. run '/sbin/insmod rt2500.ko' (as root)
'/sbin/ifconfig ra0 inet YOUR_IP up'"




Did I need to do any kind of kernel configuration before I started working on this wireless driver. The only things I've done aside from run the first two distro cds and the installation was run KDE a few times and fool around moving the necessary files into location. I have run no additional configuration of any kind. The slackbook mentioned something about compiling the kernel, or choosing the kernel, but wasn't that chosen already in the installation process?

ray_80 10-17-2007 10:13 PM

It is asking for the directory in which the kernel headers are located. This means you need the kernel source installed. As for the driver, I am surprised it is not already supplied with your kernel. Try a

modprobe rt2500

and see if it loads:

lsmod

After that, please post the results of

ls -laR /lib/modules/

Regards

aeroegnr 10-18-2007 12:07 AM

Quote:

Originally Posted by ray_80 (Post 2927983)
It is asking for the directory in which the kernel headers are located. This means you need the kernel source installed. As for the driver, I am surprised it is not already supplied with your kernel. Try a

modprobe rt2500

and see if it loads:

lsmod

After that, please post the results of

ls -laR /lib/modules/

Regards

If I had a way of posting it I would, I have to switch OS's to XP to access the internet. I've tried both wireless and ethernet with Slackware and can't get it to work.

I searched the /lib/modules directory (running ls -laR /lib/modules exceeds the display buffer) and found the wireless drivers, but I did not find rt2500.

modprobe rt2500 results in a fatal error of the not found variety


On another note, I try running modprobe eepro100 (driver for my ethernet card), which seems to run okay, but then after running netconfig with the appropriate values I can't ping anything. I'm going to try to continue fooling around with the netconfig settings to get my ethernet to work, but so far no dice.

thank you

aeroegnr 10-18-2007 12:57 AM

I get the error siocsifaddr eth0 no such device exists
when trying to run ifconfig eth0 <add> netmask 255.255.255.0
I tried eth1,eth2, etc. with the same result

ray_80 10-18-2007 08:53 AM

Quote:

Originally Posted by aeroegnr (Post 2928062)

On another note, I try running modprobe eepro100 (driver for my ethernet card), which seems to run okay, but then after running netconfig with the appropriate values I can't ping anything.

thank you

What does your /etc/resolve say? Are the values correct? Is the gateway set up? If the module loads, then it appears that configuration tweaks are in order. The nic card is active, but DNS is not (if I understand your issue correctly).

Regards

aeroegnr 10-18-2007 04:16 PM

Quote:

Originally Posted by ray_80 (Post 2928446)
What does your /etc/resolve say? Are the values correct? Is the gateway set up? If the module loads, then it appears that configuration tweaks are in order. The nic card is active, but DNS is not (if I understand your issue correctly).

Regards

my /etc/resolv.conf lists the DNS that I supplied it. If I modify the configuration and set DHCP to yes it's empty.

I also went and checked /etc/rc.d/rc.inet1.conf and the ipaddress, netmask, and gateway for eth0 are correct according to what I entered in netconfig. Using static IP or DHCP (I have a router) doesn't work, and I'm grabbing all of the relevant information under the command prompt in windows XP using netconfig /all

also, when running ifconfig -a, it doesn't list eth0, only lo which gets me nowhere. I can't even run a ping on my router, but I can do it under XP with no problems.

Also, I used modprobe and then lsmod to ensure that eepro100 was loaded and it is.

Thank you

ray_80 10-19-2007 08:40 AM

Are you sure the driver is loaded? Do a

modprobe eepro100

Regards,

aeroegnr 10-19-2007 11:08 AM

Quote:

Originally Posted by ray_80 (Post 2929640)
Are you sure the driver is loaded? Do a

modprobe eepro100

Regards,

Yup, before I did any of this I ran modprobe eepro100 then I ran lsmod, and eepro100 was listed.

ray_80 10-20-2007 05:50 PM

Did you configure the device with ifconfig? What does your config for eth0 say? Check inside

/etc/sysconfig/network-scripts/

and please post it.

Regards,

aeroegnr 11-24-2007 07:16 PM

Quote:

Originally Posted by ray_80 (Post 2931094)
Did you configure the device with ifconfig? What does your config for eth0 say? Check inside

/etc/sysconfig/network-scripts/

and please post it.

Regards,

Sorry for the long delay, but I finally got back to trying to get Slackware to work.

The only file in that directory is ifconfig-lo, there is no configuration for eth0.


I'm currently online in slackware using firefox and an ethernet cable after successfully installing the network card driver that I had to download for my pc. To do that I had to hack an extra linksys router so that it would act as a repeater (I have no ethernet in my room and no cable long enough to reach the jack across my apartment) and plug a cable into the repeater. I still have no luck with the wireless card, it works fine in winXP.

Aside from that, I managed to finally get the correct nVidia driver installed, along with my scrollwheel working, and figured out how to manually recover from fouled-up xorg.conf files.


I'd like to get wireless working, but right now I have a workaround (which requires the hacked router, hahaha).

Thank you!

aeroegnr 11-24-2007 11:42 PM

Another wrinkle in my install is I can't get sound to work. I've enabled/disabled integrated audio, run alsaconf and alsamixer and it detects my onboard sound. I play with the volume and still can't get a peep out of my speakers. I've got a soundblaster live 24.

Any ideas?


Edit: I got sound to work by setting my system to full duplex. At least I think that's the setting that did it.


All times are GMT -5. The time now is 07:17 AM.