(note that most these commands need to be run as root. Use 'sudo su -' command, or sudo commands)
It doesn't realy matter if it's in the /lib/modules/2.6.15-23-368/extra directory or not just as long as there is only one rt2500.ko module. If you have 2 I don't know which one it will detect.
insmod is like 'insert module'. You manually specify the .ko file and it loads.
Most people use the 'modprobe' command. Modprobe command is more intellegent. It depends on the 'depmod' command though.
So after you copy the module to a /lib/modules/2.6.15-23-368/ subdirectory you run 'depmod'. Depmod scans that directory, finds all the modules and analizes which module depends on what. Then you should be able to run 'modprobe rt2500' and it will load the module and any other modules it needs to run, if it needs other modules.
After that if you reboot then the hardware should be detected and the stuff loaded automaticly. The udev scripts and hardware detection stuff should take care of that and gotten rt2500 module loaded.
Otherwise if you don't reboot you would have to rmmod (remove module) the rt2500 module and modprobe/insmod the new one in. The reason I tell you to reboot is because loading and unloading modules can cause instabilities. It may leave your hardware or your kernel in a inconsistant state.
Overview of module handling commands:
lsmod -- lists loaded modules.
rmmod -- removes modules
insmod -- manually load modules by file name
depmod -- scans /lib/modules/<yourkernelversion> directory intellegently.
modprobe -- intellegently loads modules by module name not file name (no .ko or path statement needed)
In order for your wifi card to work it needs to:
load the module driver
have the interface activated
scan the radio channels to find aviable access points.
find a access point and authenticate with it.
grab a DHCP lease from the AP or dhcp server on that network
In the guide I linked to, it had a "insmod (directory of the rt2500.ko file)" command...what does this do, and the commands that follow? I do not see these in yours, or the ubuntu forums, guide. Are they needed? Why does the insmod not work for me (some "-1 files exist" error). I will try dmesg later and see, but does anyone know right now?
Probably because the old module is still running in memory. Removing the file does not stop it from running. Reboot and make sure that your new module is loaded.
Use lsmod to see if it's loaded.
If it didn't load automaticly then do:
modprobe rt2500
When I move the file to the "correct" spot, and follow the instructions given in that link, it says I'm connected, but then I can not do anything online.
You need to do basic network troubleshooting. Remove the possible reasons WHY it's not connecting to anything.
lsmod|grep rt2500
That should show your module is loaded. If it's not then load it.
iwconfig
That should show information your wireless devices. The 'essid' is the name of the wireless network. Also it should have the address for your access point
sta0 IEEE 802.11b/g ESSID:"rhea" Nickname:"Broadcom 4306"
Mode:Managed Frequency=2.462 GHz Access Point: 00:13:46😀4:84:CE
Bit Rate:11 Mb/s Tx-Power=15 dBm
RTS thr😱ff Fragment thr😱ff
Encryption key😱ff
Link Quality=100/100 Signal level=2/3 Noise level=184/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
See the 'Essid' and the 'Access Point' entries?
Those need to be present. If it's not then either your interface can't find or isn't authenticated or can't athenticate with the wireless access point.
Without being associated with a access point you won't be able to realy connect to the LAN.
If your associated successfully then you move onto connectivity issues.
Is your interface configured correctly?
ifconfig
That command should show all your network interfaces. Lets assume that your wifi card is wlan0.
iwconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:11:24:27:88:A6
inet addr:192.168.50.100 Bcast:192.168.50.255 Mask:255.255.255.0
inet6 addr: fe80::211:24ff:fe27:88a6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:63231 errors:0 dropped:0 overruns:0 frame:0
TX packets:47554 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:61269326 (58.4 MiB) TX bytes:5195399 (4.9 MiB)
Interrupt:52 Base address:0x4000
See the inet addr entry? That needs to have a ip address for your network.
Other commands:
cat /etc/resolv.conf
to see your DNS settings
route (this command can take a while)
to see your routing tables. You should have a default gateway entry.
like such:
default 192.168.50.1 0.0.0.0 UG 0 0 0 wlan0
If it doesn't have a ip address or a proper dns address or a proper default gw then it's not going to work.
If your network is not configured correctly then it may not be getting a DHCP lease properly. Sometimes bad wifi drivers will allow you to associate with a access point but will crap out when you try to get dhcp working.
IF it looks like dhcp is working and everything is configured correctly...
Try pinging your 'gateway'. Substitute the IP address .
ping 192.168.50.1
That should reach it.
Try pinging a server on the internet:
ping 4.2.2.2
(that is a real address)
Try pinging a host:
ping
www.google.com
If you can do all that then your network is correctly configured. Depending on were it fails and what is not working will determine what you do next to try to get it working.