Results 1 to 1 of 1
OK, get a PCI WiFi card from ebay, 13 bucks, works great in Windows after driver installation, (also works great for web browsing using ndiswrapper, but I'll talk later about ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-05-2008 #1Just Joined!
- Join Date
- Nov 2008
- Posts
- 5
Driver installation fails, should be easy for you guys
OK, get a PCI WiFi card from ebay, 13 bucks, works great in Windows after driver installation, (also works great for web browsing using ndiswrapper, but I'll talk later about how I want the actual drivers not to work, not ndiswrapper) I want to get it to work in Linux, has a Realtek 8185 chipset, so I check the website, download a .tar.gz driver file.
Decompress it.
OK, easy enough, got some files, one is a readme, should be simple
(NOTE: Since then I have now run all of this rubbish as root, no difference)
< Installation >
Running the scripts can finish all operations of building up modules from source code and start the nic:
(1)Build up the driver from the source code
./makedrv
(2)Load the driver module to kernel and start up nic
./wlan0up
(if "insmod: error inserting 'r8180.ko': -File exists." met,
./wlan0rmv
./wlan0down
./wlan0up
should be OK.
)
So I open terminal, go to my folder, which is on my desktop, type in "./makedrv"
Seems screwed up, lets try wlan0up to make sureCode:john@john-desktop:~/Desktop/rtl8185_linux_26.1027.0823.2007$ ./makedrv ./ieee80211/ ./ieee80211/ieee80211_module.c ./ieee80211/ieee80211_rx.c ./ieee80211/tags ./ieee80211/Makefile ./ieee80211/ieee80211_crypt_tkip.c ./ieee80211/ieee80211_softmac.c ./ieee80211/readme ./ieee80211/ieee80211_crypt_ccmp.c ./ieee80211/ieee80211.h ./ieee80211/ieee80211_tx.c ./ieee80211/ieee80211_softmac_wx.c ./ieee80211/ieee80211_crypt.h ./ieee80211/ieee80211_wx.c ./ieee80211/license ./ieee80211/ieee80211_crypt_wep.c ./ieee80211/ieee80211_crypt.c rtl8185/ rtl8185/README.adhoc rtl8185/r8180_sa2400.h rtl8185/Makefile rtl8185/copying rtl8185/README.master rtl8185/r8180.h rtl8185/install rtl8185/r8180_max2820.h rtl8185/r8180_max2820.c rtl8185/r8180_rtl8225.h rtl8185/r8180_wx.h rtl8185/authors rtl8185/tags rtl8185/r8180_pm.c rtl8185/r8180_hw.h rtl8185/r8180_gct.c rtl8185/r8180_gct.h rtl8185/r8180_rtl8225.c rtl8185/readme rtl8185/r8180_93cx6.h rtl8185/ieee80211.h rtl8185/license rtl8185/r8180_pm.h rtl8185/changes rtl8185/r8180_rtl8225z2.c rtl8185/r8180_wx.c rtl8185/r8180_rtl8255.c rtl8185/r8180_93cx6.c rtl8185/r8180_sa2400.c rtl8185/r8180_core.c rtl8185/r8180_rtl8255.h rtl8185/ieee80211_crypt.h rm -f *.mod.c *.mod *.o .*.cmd *.ko rm -rf /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/tmp make -C /lib/modules/2.6.24-21-generic/build M=/home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211 CC=gcc modules make[1]: Entering directory `/usr/src/linux-headers-2.6.24-21-generic' CC [M] /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.o /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_init’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2236: warning: assignment from incompatible pointer type /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2237: warning: assignment from incompatible pointer type /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2238: warning: assignment from incompatible pointer type /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2239: warning: assignment from incompatible pointer type /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2240: warning: assignment from incompatible pointer type /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac.c:2241: warning: assignment from incompatible pointer type CC [M] /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_rx.o CC [M] /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_tx.o CC [M] /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_wx.o CC [M] /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_module.o CC [M] /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_softmac_wx.o CC [M] /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt.o CC [M] /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.o /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c: In function ‘ieee80211_ccmp_aes_encrypt’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c:88: warning: passing argument 1 of ‘crypto_cipher_encrypt_one’ from incompatible pointer type /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c: In function ‘ieee80211_ccmp_init’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c:110: warning: assignment from incompatible pointer type /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c:127: warning: passing argument 1 of ‘crypto_free_cipher’ from incompatible pointer type /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c: In function ‘ieee80211_ccmp_deinit’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c:144: warning: passing argument 1 of ‘crypto_free_cipher’ from incompatible pointer type /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c: In function ‘ieee80211_ccmp_set_key’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_ccmp.c:422: warning: passing argument 1 of ‘crypto_cipher_setkey’ from incompatible pointer type CC [M] /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip.o /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip.c: In function ‘ieee80211_tkip_encrypt’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip.c:417: error: ‘struct scatterlist’ has no member named ‘page’ /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip.c: In function ‘ieee80211_tkip_decrypt’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip.c:511: error: ‘struct scatterlist’ has no member named ‘page’ /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip.c: In function ‘michael_mic’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip.c:613: error: ‘struct scatterlist’ has no member named ‘page’ /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip.c:617: error: ‘struct scatterlist’ has no member named ‘page’ make[2]: *** [/home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211/ieee80211_crypt_tkip.o] Error 1 make[1]: *** [_module_/home/john/Desktop/rtl8185_linux_26.1027.0823.2007/ieee80211] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-21-generic' make: *** [modules] Error 2 rm -f *.mod.c *.mod *.o .*.cmd *.ko *~ rm -rf /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/tmp make -C /lib/modules/2.6.24-21-generic/build M=/home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185 CC=gcc modules make[1]: Entering directory `/usr/src/linux-headers-2.6.24-21-generic' CC [M] /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.o /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: In function ‘rtl8180_proc_module_init’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:588: error: ‘proc_net’ undeclared (first use in this function) /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:588: error: (Each undeclared identifier is reported only once /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:588: error: for each function it appears in.) /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: In function ‘rtl8180_proc_module_remove’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:594: error: ‘proc_net’ undeclared (first use in this function) /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: In function ‘rtl8180_init’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:3159: warning: assignment from incompatible pointer type /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:3522: error: ‘SA_SHIRQ’ undeclared (first use in this function) /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:3522: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: In function ‘rtl8180_pci_probe’: /home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:4213: error: implicit declaration of function ‘SET_MODULE_OWNER’ make[2]: *** [/home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.o] Error 1 make[1]: *** [_module_/home/john/Desktop/rtl8185_linux_26.1027.0823.2007/rtl8185] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-21-generic' make: *** [modules] Error 2 john@john-desktop:~/Desktop/rtl8185_linux_26.1027.0823.2007$
OK, rubbish, lets try ./wlan0rmv and then do as it says to do wlan0down then wlan0up, or whatever it says in the readme, turns out there is no ./wlan0rmv in the folder...nice, in the readme it says to use it, but it doesn't exist.Code:john@john-desktop:~/Desktop/rtl8185_linux_26.1027.0823.2007$ ./wlan0up insmod: can't read 'ieee80211_crypt-rtl.ko': No such file or directory insmod: can't read 'ieee80211_crypt_wep-rtl.ko': No such file or directory insmod: can't read 'ieee80211_crypt_tkip-rtl.ko': No such file or directory insmod: can't read 'ieee80211_crypt_ccmp-rtl.ko': No such file or directory insmod: can't read 'ieee80211-rtl.ko': No such file or directory insmod: can't read 'r8180.ko': No such file or directory wlan0: ERROR while getting interface flags: No such device john@john-desktop:~/Desktop/rtl8185_linux_26.1027.0823.2007$
Now as I said, ndiswrapper gets it working, but I want to also mess around with some wep cracking (for real just cracking my own for fun) but, when I go to do I think it is airmon-ng stop start or whatever, it says ndiswrapper drivesr aren't supported.
So I need to get this fricking driver working on my system, which is the latest ubuntu linux clean install with all of the updates (got it to a wired connection to download all of the updates) the driver for the wifi card says it is for linux kernel 2.6.22 so do you think that could be the issue?
I don't know really what to do when it comes to linux, I am very smart and good with computers so I can do whatever you want me to, just I don't know what to do....
Thanks!


Reply With Quote
