LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 06-20-2005, 07:19 PM   #1
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Rep: Reputation: 30
RTL8180 driver won't compile


I have a Blitzz wireless LAN PC card that uses a Realtek 8180 chipset. Blitzz supplies a really crappy linux driver on their web site, but Realtek has a really cool one that was written for FC3 right on hand. I wish the fine folks at Realtek spoke better English to make their readme a little easier to understand, though. Taiwanese chipset, Taiwanese driver, Taiwanese help. c'est la vie.

I got this driver to compile just fine on a previous installation of FC3. I just recently freshly installed FC4 and want to include this driver when I compile a new kernel (which I am doing right away in hopes of remedying the 600E's famous sound problem).

AFAIK I have the compiler I need installed.

When I run make, the shell pukes this out at me:

Code:
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/data/rtl MODVERDIR=/data/rtl modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  CC [M]  /data/rtl/r8180_pci_init.o
/data/rtl/r8180_pci_init.c: In function ‘rtl8180_pci_probe’:
/data/rtl/r8180_pci_init.c:146: error: ‘struct pci_dev’ has no member named ‘slot_name’
/data/rtl/r8180_pci_init.c:150: error: ‘struct pci_dev’ has no member named ‘slot_name’
make[2]: *** [/data/rtl/r8180_pci_init.o] Error 1
make[1]: *** [_module_/data/rtl] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
make: *** [modules] Error 2
TIA guys and gals

Last edited by litlmary; 06-20-2005 at 07:29 PM.
 
Old 06-20-2005, 10:41 PM   #2
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Original Poster
Rep: Reputation: 30
A few hours and endless Googling later:
There seem to be issues with the gcc4 compiler and some drivers. Apparently I am the first person to run into this particular driver's incompatability with gcc4. I have noticed that minor changes to people's drivers have universally yielded positive results. It seems that I need somebody who is a lot smarter than me and is familiar with gcc4 to look at this driver and tell me what to try changing.

Any takers? Should I go to the Fedora forum and ask this?
 
Old 06-22-2005, 04:43 AM   #3
bluesheet
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Rep: Reputation: 15
may be you can try to use ndiswrapper for your wireless, I also use ndiswrapper to enable wireless function.
 
Old 06-22-2005, 08:27 PM   #4
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Original Poster
Rep: Reputation: 30
I piddled a little bit with ndiswrapper but it fussed about my kernel, and I don't especially like the ndis driver for this card.

I really liked that driver that Realtek wrote and will only give it up after ALL other options are exhausted.

I am presently trying to recompile my kernel to support the stupid sound card in the TP 600E. Then maybe I will take another crack at ndiswrapper, but that doesn't mean I will like it...
 
Old 08-13-2005, 11:13 PM   #5
ruggy306
LQ Newbie
 
Registered: Aug 2005
Location: Akron, OH
Posts: 1

Rep: Reputation: 0
Question 8180 working yet?

Were you ever able to resolve this? I'm going through it right now... been googling all night and haven't been able to find a solution. Thanks!
 
Old 08-15-2005, 03:57 PM   #6
jspaar
Member
 
Registered: Feb 2004
Location: California
Posts: 99

Rep: Reputation: 15
Quote:
Originally posted by litlmary
I piddled a little bit with ndiswrapper but it fussed about my kernel, and I don't especially like the ndis driver for this card.

I really liked that driver that Realtek wrote and will only give it up after ALL other options are exhausted.
I hope you get that working, and post back if you do. I have a card with the same chip, and ndiswrapper with the vendor's driver (Belkin) did not work well at all (system freeze-ups, etc.). But ndiswrapper using RealTek's own driver works flawlessly for me.

If you haven't tried it yet, the current version is here:
ftp://202.65.194.18/cn/wlan/rtl8180l...-8180(173).zip
 
Old 08-31-2005, 04:47 AM   #7
rhoyerboat
Member
 
Registered: Feb 2005
Posts: 40

Rep: Reputation: 15
from:
http://sourceforge.net/forum/forum.p...orum_id=390417

>>To get the module to compile, you'll have to change line 3633 of >>rtl8180_core.c to contain pci_name(pdev) instead.

i had it compiled fixed the other direction but these guys wrote the code,
my fix sucked.

Last edited by rhoyerboat; 08-31-2005 at 05:16 AM.
 
Old 08-31-2005, 07:51 AM   #8
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Rep: Reputation: 31
If gcc4 gives you troubles you van always compile with the previous version. Perhaps that does give you a clean compile.

As HappyTux explained in a different thread you can accomplish that by doing:

Quote:
You would use ln -sf /usr/bin/gcc-3.4 /usr/bin/gcc to change the link or if you do not want to do that then you could use in the shell/console just before starting to compile export CC=/usr/bin/gcc-3.4 then it will use gcc-3.4 for anything you compile in that shell/console.

Last edited by powadha; 08-31-2005 at 07:56 AM.
 
Old 09-02-2005, 07:18 PM   #9
jspaar
Member
 
Registered: Feb 2004
Location: California
Posts: 99

Rep: Reputation: 15
So has anybody compiled that driver and gotten it to work well? I managed to build something from CVS head, and the module loaded cleanly, but it never worked right on my hardware. It wouldn't allow me to set the channel to match the frequency of my AP.

But if anybody has a success story, I might give it another go.
 
Old 09-03-2005, 03:13 AM   #10
rhoyerboat
Member
 
Registered: Feb 2005
Posts: 40

Rep: Reputation: 15
well no

i got it to build, i added "char slot_name" to the definition of struct pci_dev and it worked just fine,
the light didnt come on though, now that fix isnt working and neither is the one i posted. dangit. im on
an unstable kernel though, for one and number two .. um .. im working on it .. ohyeah, i cant get the
current CVS for some reason, cvs -dserver:anonymous@cvs.sourceforge.net:/cvsroot/rtl8180-sa2400:login" isnt right or im dumb or
something
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How compile a new driver GregLille Linux - Networking 3 01-05-2005 05:42 AM
Using Belkin 6020 v3 card with the RTL8180 driver moomer Linux - Wireless Networking 0 03-19-2004 02:36 PM
How to compile a driver Kuki Linux - Newbie 2 03-04-2004 04:21 PM
driver compile rcarlino Mandriva 0 08-25-2003 07:22 AM
How do I compile a driver lexy Linux - Newbie 3 12-16-2002 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration