View previous topic :: View next topic |
Author |
Message |
_loki_ l33t
Joined: 18 Dec 2003 Posts: 680 Location: in the shell
|
Posted: Mon Jul 19, 2004 11:01 pm Post subject: WLAN HOWTO for prism2 pcmcia cards on kernel-version 2.6 |
|
|
I don't know if there already is a real HOWTO on that topic, but as I can remeber how difficult it was to me to set up my card I thought it might be helpful..
First of all you should compile pcmcia support in your kernel, this is different to kernel-versions 2.4.. if you choose to compile as a module don't forget to load it while booting, e.g. put it in /etc/modules.autoload/kernel-2.6; most card-adapters will also need the yenta-cardbus-support, but this is dependent on your certain cardbus.
Even if pcmcia support is now builded in the kernel, you'll still need the pcmcia-cs tools, therefore do an and Code: | rc-update add pcmcia default | .
Also hotplug might be helpful loading the right modules on startup; followed by Code: | rc-update add hotplug default | .
Now it comes to wlan. you can use the linux-wlan-ng package in portage, for me it's working perfectly! It's just not compiling with sandbox using kernel 2.6, though the command is Code: | FEATURES="-sandbox" emerge linux-wlan-ng |
Now you need a script for your new network-device. Code: | cp /etc/init.d/net.eth0 /etc/init.d/net.wlan0 | followed by Code: | rc-update add net.wlan0 default | (if you want to start the device every boot-sequenze) will do it. Don't forget to add a iface configuration in Code: | nano /etc/conf.d/net | ; if you're using dhcp Code: | dhcpcd_wlan0="-t 2" | is a nice feature, as dhcp seems to be much faster while being kicked a bit..
While booting hotplug should now load the right module for your prism card, but you'll still get a nasty error-message saying there is no module called wlan. You can avoid that by setting an alias in Code: | nano /etc/modules.d/aliases | , just add the line Code: | alias wlan0 prism2_cs | and do a afterwards.
Last thing to do is setting up the wlan configuration. Having the linux-wlan-ng package installed by "emerge" to configuration-files are in , insert your SSID in wlan.conf and make yourself a copy of wlancfg-DEFAULT to wlancfg-yourSSID. Modify wlancfg-yourSSID (WEP-Keys and stuff..)
Now everything shoulf work fine! Try a Code: | /etc/init.d/pcmcia restart | and hope I didn't forget anything!
I hope this is pretty complete, but if there is something missing please add!
I corrected writting-misstakes and added a 2 in the Headline, like comments recommanded.
I think setting up an iface is explained in itself good enough, of course the timeout option doesn't make any sense not having a dhcp server. I just made the experience that many dhcp servers are faster giving an IP-Adr. being forced by you..
Greetz §Miro§
Last edited by _loki_ on Thu Sep 23, 2004 11:02 am; edited 5 times in total |
|
Back to top |
|
|
GhostTyper Tux's lil' helper
Joined: 03 Apr 2004 Posts: 83 Location: Germany; BW
|
Posted: Sat Aug 07, 2004 12:53 pm Post subject: |
|
|
Code: | rc-update add net-wlan0 default |
shuldt be
Code: | rc-update add net.wlan0 default |
|
|
Back to top |
|
|
epretorious Apprentice
Joined: 04 Jul 2003 Posts: 191 Location: Truckee, CA
|
Posted: Fri Aug 20, 2004 1:22 am Post subject: Re: WLAN HOWTO for prism based cards on kernel-version 2.6 |
|
|
_loki_ wrote: | Don't forget to add a iface configuration in Code: | nano /etc/conf.d/net | ; if you're using dhcp Code: | dhcpcd_wlan0="-t 2" | is a nice feature, as dhcp seems to be much faster while being kicked a bit. |
...Should be added the thenano /etc/conf.d/net along with... Code: |
dhcpcd_wlan0="-t 2" |
_________________ Eric P.
Sunnyvale, CA |
|
Back to top |
|
|
epretorious Apprentice
Joined: 04 Jul 2003 Posts: 191 Location: Truckee, CA
|
Posted: Sun Aug 22, 2004 12:04 am Post subject: |
|
|
Just for clarification, it might be useful to change this topic's title to "WLAN HOWTO for prism2-based cards on kernel-version 2.6" since the linux-wlan-ng driver (prism2_cs) does not support Prism 2.5/3. _________________ Eric P.
Sunnyvale, CA |
|
Back to top |
|
|
rush_ad l33t
Joined: 22 Jul 2004 Posts: 863 Location: New Jersey, USA
|
Posted: Sun Aug 22, 2004 1:24 am Post subject: |
|
|
might want to put this in
Documentation, Tips & Tricks
nice howto, by the way. |
|
Back to top |
|
|
epretorious Apprentice
Joined: 04 Jul 2003 Posts: 191 Location: Truckee, CA
|
Posted: Sun Aug 22, 2004 9:52 pm Post subject: |
|
|
rush_ad wrote: | might want to put this in
Documentation, Tips & Tricks |
I'd recommend Networking & Security... _________________ Eric P.
Sunnyvale, CA |
|
Back to top |
|
|
Obsidian_MH Apprentice
Joined: 30 May 2004 Posts: 170 Location: Pittsburgh, PA, USA
|
Posted: Mon Aug 30, 2004 2:24 am Post subject: |
|
|
Hmmm...
Prism2_cs isn't found...
Something I'm missing here? _________________ Obsidian |
|
Back to top |
|
|
usingloser Apprentice
Joined: 18 May 2003 Posts: 297 Location: ->Here<-
|
Posted: Mon Aug 30, 2004 3:35 pm Post subject: |
|
|
I am getting the same error now, and I had it working for awhile... _________________ gentoo 4tw |
|
Back to top |
|
|
Obsidian_MH Apprentice
Joined: 30 May 2004 Posts: 170 Location: Pittsburgh, PA, USA
|
Posted: Mon Aug 30, 2004 7:10 pm Post subject: |
|
|
I'm running 2.6.8, so I'm wondering if it's because I compiled Hermes support in? So when emerging it doesn't compile the prism driver?
Really need to get this bloody card working (Belkin) _________________ Obsidian |
|
Back to top |
|
|
_loki_ l33t
Joined: 18 Dec 2003 Posts: 680 Location: in the shell
|
Posted: Tue Aug 31, 2004 6:53 am Post subject: change kernel? |
|
|
did you change the kernel? If though you have to remerge the linux-wlan-ng package.. whats your exact error message? Did you have have any problems emerging linux-wlan-ng in the first place? |
|
Back to top |
|
|
_loki_ l33t
Joined: 18 Dec 2003 Posts: 680 Location: in the shell
|
Posted: Sat Sep 11, 2004 11:09 am Post subject: one more thing.. |
|
|
updating on pcmcia-cs - 3.2.7-r1 yesterday, my wlan wasn't working anymore. Restartig pcmcia the card was trying to load the orinoco-module witch I haven't compiled in the kernel. That was because Code: | emerge linux-wlan-ng | didn't compile the pcmcia drivers, but only those for pci.. I don't know why that happed as the ebuild shouldn't have been changed; anyway a solution to that is to change the ebuild. Code: | nano -w /usr/portage/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre20.ebuild | The setup is made from line 61 up to line 87. There is a line for each of the different driver modules, eg pci, plx, pcmcia and usb. You can change the setup by changing Code: | sed -i -e 's:PRISM2_PCMCIA=y:PRISM2_PCMCIA=n:' \ | into Code: | sed -i -e 's:PRISM2_PCMCIA=n:PRISM2_PCMCIA=y:' \ | in line 78.
By switching n's and y's you can also turn off pci support if you don't need it.. |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Tue Sep 28, 2004 1:43 pm Post subject: |
|
|
Moved from K&H _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
CyD Tux's lil' helper
Joined: 23 Jul 2004 Posts: 117
|
Posted: Tue Nov 23, 2004 7:57 pm Post subject: |
|
|
linux-wlan-ng now supports prism2.5 |
|
Back to top |
|
|
g1um n00b
Joined: 19 Nov 2003 Posts: 32 Location: Thunder Bluff, Mulgore
|
Posted: Tue Nov 23, 2004 8:48 pm Post subject: |
|
|
thx for nice howto |
|
Back to top |
|
|
CyD Tux's lil' helper
Joined: 23 Jul 2004 Posts: 117
|
Posted: Tue Nov 30, 2004 6:20 pm Post subject: |
|
|
hi, I've used this tutorial twice now, and have found I cannot get to work unless I add
Code: | rc-update add wlan default && /etc/init.d/wlan start |
this is the script provided by the wlan driver. After running this script, I still have to manually run
this should be taken care of by /etc/init.d/net.wlan0, but the script is run before the first wlan script, which causes dhcp failure.
I followed the tutorial exactly i believe, and nobody else seems to mention this problem. Any suggestions? Thnx! |
|
Back to top |
|
|
dedicated n00b
Joined: 27 Dec 2004 Posts: 5
|
Posted: Tue Dec 28, 2004 3:46 am Post subject: |
|
|
For some reason, I can't seem to get an interface to show up for my card. It is a D-Link DWL-650 (rev V.P1). Apparently it has the prism3 chipset, but linux-wlan.org had it on the list of working cards, so I don't think that's the problem. For some reason, though, I can't load prism2_cs. I get the following error:
Code:
Code: | WARNING: Error inserting p80211 (/lib/modules/2.6.10/kernel/drivers/net/p80211.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting prism2_cs (/lib/modules/2.6.10/kernel/drivers/net/prism2_cs.ko): Unknown symbol in module, or unknown parameter (see dmesg)
|
And dmesg shows the following:
Code: | p80211: Unknown symbol hotplug_path
p80211: Unknown symbol dev_get
prism2_cs: Unknown symbol p80211netdev_rx
prism2_cs: Unknown symbol register_wlandev
prism2_cs: Unknown symbol wlan_unsetup
prism2_cs: Unknown symbol unregister_wlandev
prism2_cs: Unknown symbol p80211netdev_hwremoved
prism2_cs: Unknown symbol wlan_setup
|
Anyone have any ideas? |
|
Back to top |
|
|
snakattak3 Guru
Joined: 11 Dec 2002 Posts: 468 Location: Seattle
|
Posted: Tue Dec 28, 2004 6:59 am Post subject: |
|
|
Try using the drivers from the kernel sources. I think they are new for prism2 cards in 2.6.10. _________________ Ban Reality TV!
Adopt an Unanswered Post |
|
Back to top |
|
|
|