LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 08-23-2004, 10:44 AM   #1
akjmicro
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Belkin F5D6020 in Linux


How I got the "Belkin F5D6020" wireless PCMCIA card up and running in Linux

I use Gentoo, BTW.

Steps:

1. First you must make sure you have wireless support built into the
kernel. In you /usr/src/linux/.config file it would be
CONFIG_NET_RADIO=yes

2. Make sure you have installed the pcmcia_cs package. When I did this,
I found out that my card (maybe not yours) is actually a Realtek chipset:
'cardctl ident' returned:

Socket 0:
product info: "Realtek", "Rtl8180"
manfid: 0x0000, 0x024c
function: 6 (network)

but 'less /proc/pci' gave the proper Belkin ID for the card:

Bus 20, device 0, function 0:
Ethernet controller: PCI device 1799:6020 (rev 32).
IRQ 11.
Master capable. Latency=64. Min Gnt=32.Max Lat=64.
I/O at 0x4000 [0x40ff].
Non-prefetchable 32 bit memory at 0x10800000 [0x108010ff].

3. So then you download the Linux source code from the Realtek site, compile it
yourself (their presupplied driver will not load correctly, or work at all)
change the r8180_pci_init.c file to read, at lines 58-60:

static struct pci_device_id rtl8180_pci_id_tbl[] = {
{ 0x1799, 0x6020 /*0x8139*/, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },
{0,},
};

...notice I used the '1799:6020' in the above 'struct' statement...
Then do 'make' and 'make install' for the realtek driver.

4. Install if you haven't already, the Wireless-tools package. (iwconfig, iwpriv, etc.)

5. Disable your normal, 'wired' eth0 card if you have one, in the startup script(s)
These would be, for instance, in Gentoo: /etc/conf.d/net. Your distro may be different.
Also, unload any modules for wired cards with 'modprobe -r insert_modulename_here'

6. Make a startup script to get online. I have a wireless hub, so I configured
things for a 'managed network'. Here's my startup script:

/sbin/modprobe rtl8180_24x
/usr/sbin/iwconfig wlan0 mode Managed
/usr/sbin/iwconfig wlan0 essid auto
/usr/sbin/iwconfig wlan0 nwid auto
/usr/sbin/iwconfig wlan0 ap any
/usr/sbin/iwconfig wlan0 freq 2.46G #### these are mine, maybe not yours--check your hub info
/usr/sbin/iwconfig wlan0 channel 10 #### ditto
/usr/sbin/iwpriv wlan0 enable ##### belkin card starts blinking
/sbin/dhcpcd wlan0 #### if your wireless hub uses a DHCP scheme, else use ifconfig and route
#### (more complex) as one would normally do in a static setup

BTW, I changed/ignored the 'wlanup' script that came with the realtek driver to the above. 'wlandown' will work fine....

Good luck !
 
Old 08-26-2004, 03:08 AM   #2
nickI-S
Member
 
Registered: Aug 2004
Location: Bristol UK
Distribution: SuSE 5.4 to 9.2, RedHat 7.3
Posts: 57

Rep: Reputation: 15
Their driver does not build right on a 2.6 kernel.
With some editing I got rid of compile errors, but resulting module would not 'insmod'
so seems "making a module" is different for 2.6 in some way.
 
Old 01-04-2005, 09:31 AM   #3
rpnix
LQ Newbie
 
Registered: Dec 2003
Location: Rochester, MN
Distribution: Fedora, SuSE
Posts: 7

Rep: Reputation: 0
Tried your technique... Compiled and built ok, but when I do the insmod for the resulting file, I get a Segmentation Fault. In dmesg, I see "Unable to handle kernel paging request at virtual address 000e0109". It seems to have recognized the card, because it shows "06:00.0: region #0 IS a PIO resource!". In the messages log, I see rtl8180_pci_driver, then rtl8180_pci_module_init, rtl8180_pci_probe. Then the segfault.

lsmod shows rtl8180_24x size 249036 initializing. It's more than twice as big as any other driver listed in lsmod. I hadn't really expected that. System wouldn't shut down cleanly; ended up powering it off.

Any idea what I've done wrong? All help appreciated...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Belkin F5D6020 Problems ... again! finchee Linux - Hardware 0 03-16-2005 02:41 PM
Belkin F5D6020 Version 1 cddesjar Linux - Wireless Networking 1 01-29-2005 10:49 PM
Belkin F5D6020 v.3 in Linux Debian jalo Linux - Wireless Networking 1 01-05-2005 03:37 PM
Belkin F5D6020 Realtek RTL8180 wi-ft card on RH Linux 9.0 pvrbharg Linux - Wireless Networking 5 06-28-2004 09:52 AM
Cannot install Belkin 11mbps F5D6020 wireless card on redhat linux 9.0 sharadshankar Linux - Hardware 3 12-03-2003 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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

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