 |
 |
 |
 |
| Hardware & Laptops Help with your hardware, including laptop issues |

25th November 2007, 01:39 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 46

|
|
|
RTL8185 error 2?
Laptop is a Gateway MT3705. 1 Gig ram Dual Core. 80 gig HD
Downloaded the realtek drivers into my user directory. su into root mode and run ./makedrv
it ends with these error messages:
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: ‘INIT_WORK’ undeclared (first use in this function)
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: (Each undeclared identifier is reported only once
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: for each function it appears in.)
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:3276: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:64)
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:3276: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_pci_probe’:
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:4031: error: ‘struct net_device’ has no member named ‘get_wireless_stats’
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_pci_module_init’:
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:4156: error: implicit declaration of function ‘pci_module_init’
make[2]: *** [/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.o] Error 1
make[1]: *** [_module_/home/ray/Download/rtl8185_linux_26.1010.0531.2006/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-49.fc8-i686'
make: *** [modules] Error 2
|

26th November 2007, 12:45 PM
|
 |
Registered User
|
|
Join Date: Feb 2005
Location: London, UK
Posts: 333

|
|
|
"error: ‘INIT_WORK’ undeclared (first use in this function)" Usualy this is due to a missing library. If you look higher up in the errors - where the first error line is - you'll probably see a line saying like "could not find file: something.h". This will help determine what is missing.
|

26th November 2007, 03:32 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 46

|
|
|
Thanks, I'll take a look later on today.
|

26th November 2007, 03:46 PM
|
 |
Registered User
|
|
Join Date: Feb 2005
Location: London, UK
Posts: 333

|
|
|
btw: It's probably kernel headers, you could try doing a "yum install kernel-devel kernel-headers" if you don't want to look through the errors - although it's good practice for the future.
|

26th November 2007, 05:55 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 46

|
|
--> Running transaction check
---> Package kernel-devel.i686 0:2.6.23.1-42.fc8 set to be erased
---> Package kernel-devel.i586 0:2.6.23.1-42.fc8 set to be installed
--> Finished Dependency Resolution
You might be on to something!
|

26th November 2007, 08:42 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 46

|
|
|
OK,Here are the first errors that I saw.
:391: warning: ISO C90 forbids mixed declarations and code
/home/ray/Download/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c
:412: warning: passing argument 2 of ‘queue_delayed_work’ from incompatible pointer type
So far though I can't figure out what I did wrong.
Let me know if you want me to include the whole file.
|

27th November 2007, 10:11 AM
|
 |
Registered User
|
|
Join Date: Feb 2005
Location: London, UK
Posts: 333

|
|
|
Warnings are fine, you can ignore them. What's the lines around the first error line?
|

29th November 2007, 07:22 PM
|
|
Registered User
|
|
Join Date: Dec 2006
Posts: 2

|
|
|
i am getting exact same errors on gateway mx6426 with rtl8185 chipset running FC6
[root@localhost rtl8185_linux_26.1010.0531.2006]
# uname -r
2.6.22.9-61.fc6
# ./makedrv
rm -f *.mod.c *.mod *.o .*.cmd *.ko
rm -rf /home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/tmp
make -C /lib/modules/2.6.22.9-61.fc6/build M=/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211 CC=gcc modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.9-61.fc6-i686'
CC [M] /home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.o
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_scan_wq’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:391: warning: ISO C90 forbids mixed declarations and code
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:412: warning: passing argument 2 of ‘queue_delayed_work’ from incompatible pointer type
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_stop_scan’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:486: warning: passing argument 1 of ‘cancel_delayed_work’ from incompatible pointer type
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_associate_abort’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:885: warning: passing argument 2 of ‘queue_delayed_work’ from incompatible pointer type
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:1359:4: warning: #warning CHECK_LOCK_HERE
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:1399:2: warning: #warning CHECK_LOCK_HERE
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_rx_frame_softmac’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:1470: warning: ISO C90 forbids mixed declarations and code
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_stop_protocol’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2059: warning: passing argument 1 of ‘cancel_delayed_work’ from incompatible pointer type
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2167:78: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_init’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2167: error: ‘INIT_WORK’ undeclared (first use in this function)
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2167: error: (Each undeclared identifier is reported only once
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2167: error: for each function it appears in.)
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2168:88: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2169:94: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2170:96: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2171:82: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2172:82: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_free’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.c:2191: warning: passing argument 1 of ‘cancel_delayed_work’ from incompatible pointer type
make[2]: *** [/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211/ieee80211_softmac.o] Error 1
make[1]: *** [_module_/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/ieee80211] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.9-61.fc6-i686'
make: *** [modules] Error 2
rm -f *.mod.c *.mod *.o .*.cmd *.ko
rm -rf /home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/tmp
make -C /lib/modules/2.6.22.9-61.fc6/build M=/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1 CC=gcc modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.9-61.fc6-i686'
CC [M] /home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.o
In file included from /home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:61:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180.h:29:26: error: linux/config.h: No such file or directory
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_rx’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2080: warning: implicit declaration of function ‘rdtsc’
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953:67: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_init’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: ‘INIT_WORK’ undeclared (first use in this function)
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: (Each undeclared identifier is reported only once
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:2953: error: for each function it appears in.)
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:3276: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:3276: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_pci_probe’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:4031: error: ‘struct net_device’ has no member named ‘get_wireless_stats’
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c: In function ‘rtl8180_pci_module_init’:
/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.c:4156: warning: implicit declaration of function ‘pci_module_init’
make[2]: *** [/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1/r8180_core.o] Error 1
make[1]: *** [_module_/home/strasbu/Desktop/rtl8185_linux_26.1010.0531.2006/rtl818x-0.1] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.9-61.fc6-i686'
make: *** [modules] Error 2
Any more ideas?
Last edited by bigstras; 29th November 2007 at 07:24 PM.
|

29th November 2007, 10:24 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 46

|
|
|
Ok first error seems to be:
:2167:78: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
I attached the makefile results if anyone wants to take a look.
Thanks.
|

5th December 2007, 11:04 PM
|
 |
Registered User
|
|
Join Date: Jun 2007
Location: SF Bay Area
Age: 61
Posts: 28

|
|
|
Anyone got a set of good answers for rtl8185 wireless yet? Lots of chatter, but not a lot of success stories, that I can see. Myself, I'm one step away from just breaking down and buying a more linux-friendly card. ??? Thanks!
|

6th December 2007, 01:33 AM
|
|
Registered User
|
|
Join Date: Dec 2006
Posts: 2

|
|
|
Lots of work, and I finally got RTL8185 working with FC6
1) installed the 2.6.22.9-61.stk16 16K stack kernel rpm downloaded from linuxant's website
the kernel headers are on their site as well
(because i'm too lazy to recompile my kernel - you could do that if you'd prefer)
2) used ndiswrapper with the windows drivers from realtek's website
3) IT FINALLY WORKS
i'm sort of a noob so it took some messin around, but i'd be glad to give all the help i can
|

6th December 2007, 02:52 AM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 46

|
|
Well, It works after last nights updates but I don't know how or why. I just updated a bunch of stuff and when I rebooted my laptop this morning an option for WLAN1 was available.
Dooh! But I can live with it.
|

7th December 2007, 12:07 AM
|
 |
Registered User
|
|
Join Date: Jun 2007
Location: SF Bay Area
Age: 61
Posts: 28

|
|
|
ok. i'll keep mucking about with it myself. REALLY tempted just to spend the $30 for a Trendnet card though. It seems like my next steps will be 1) noapic in boot, 2) insure use of 16k stack (command line option, or recompile/install? more investigation) and 3) rtfm! - follow the instructions on ndiswrapper site for an rtl8185 install, this time including the step to bind the hardware address to the device properly (dropped that last time through). I'll post my results here.
|

10th December 2007, 04:50 PM
|
 |
Registered User
|
|
Join Date: Jun 2007
Location: SF Bay Area
Age: 61
Posts: 28

|
|
|
I briefly had the rtl8185l realtek connected to my home network last night. First off, I downloaded from Realtek's website the 64-bit driver, and installed that via ndiswrapper. After that, I was poking about long enough to get a solid feel that the device itself was there and connected and routing requests, but that there was something bad about the dhcp configuration. So, I manually assigned an ip address via the network manager gui. Viola! But then *something* happened, and my WEB encryption key wasn't working properly; I kept getting a popup window asking me to enter the key and it wouldn't stay connected after that. More to follow. I'll give it another evening of working on it before I get a Trendnet card. In thread after thread of online research, I get the impression that it's possible to get this wireless card connected, but that it takes a level of luinx/unix system administration that some of linux newbies (like myself) have little experience with, and often it's easier just to switch cards if the GUI admin tools don't easily provide us with what we're expecting.
|

10th December 2007, 06:15 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 46

|
|
|
Usually I start config problems off with a plain WIFI connection. This way I can test out the drivers and so on.
Then I'll introduce a change and see what happens. boring and tedious but it's the only way to solve problems like this.
G'luck.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 15:28 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|