Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
WLAN HOWTO for prism2 pcmcia cards on kernel-version 2.6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
_loki_
l33t
l33t


Joined: 18 Dec 2003
Posts: 680
Location: in the shell

PostPosted: Mon Jul 19, 2004 11:01 pm    Post subject: WLAN HOWTO for prism2 pcmcia cards on kernel-version 2.6 Reply with quote

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
Code:
emerge pcmcia-cs
and
Code:
rc-update add pcmcia default
.
Also hotplug might be helpful loading the right modules on startup;
Code:
emerge hotplug
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
Code:
modules-update
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
Code:
/etc/conf.d/
, 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
Code:
 /etc/conf.d/net
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
View user's profile Send private message
GhostTyper
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2004
Posts: 83
Location: Germany; BW

PostPosted: Sat Aug 07, 2004 12:53 pm    Post subject: Reply with quote

Code:
rc-update add net-wlan0 default

shuldt be
Code:
rc-update add net.wlan0 default
Back to top
View user's profile Send private message
epretorious
Apprentice
Apprentice


Joined: 04 Jul 2003
Posts: 191
Location: Truckee, CA

PostPosted: Fri Aug 20, 2004 1:22 am    Post subject: Re: WLAN HOWTO for prism based cards on kernel-version 2.6 Reply with quote

_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.

Code:
iface_wlan0="dhcp"

...Should be added the thenano /etc/conf.d/net along with...
Code:

dhcpcd_wlan0="-t 2"

_________________
Eric P.
Sunnyvale, CA
Back to top
View user's profile Send private message
epretorious
Apprentice
Apprentice


Joined: 04 Jul 2003
Posts: 191
Location: Truckee, CA

PostPosted: Sun Aug 22, 2004 12:04 am    Post subject: Reply with quote

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
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Sun Aug 22, 2004 1:24 am    Post subject: Reply with quote

might want to put this in

Documentation, Tips & Tricks


nice howto, by the way.
Back to top
View user's profile Send private message
epretorious
Apprentice
Apprentice


Joined: 04 Jul 2003
Posts: 191
Location: Truckee, CA

PostPosted: Sun Aug 22, 2004 9:52 pm    Post subject: Reply with quote

rush_ad wrote:
might want to put this in

Documentation, Tips & Tricks

I'd recommend Networking & Security...
_________________
Eric P.
Sunnyvale, CA
Back to top
View user's profile Send private message
Obsidian_MH
Apprentice
Apprentice


Joined: 30 May 2004
Posts: 170
Location: Pittsburgh, PA, USA

PostPosted: Mon Aug 30, 2004 2:24 am    Post subject: Reply with quote

Hmmm...

Prism2_cs isn't found...

Something I'm missing here?
_________________
Obsidian
Back to top
View user's profile Send private message
usingloser
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 297
Location: ->Here<-

PostPosted: Mon Aug 30, 2004 3:35 pm    Post subject: Reply with quote

I am getting the same error now, and I had it working for awhile...
_________________
gentoo 4tw
Back to top
View user's profile Send private message
Obsidian_MH
Apprentice
Apprentice


Joined: 30 May 2004
Posts: 170
Location: Pittsburgh, PA, USA

PostPosted: Mon Aug 30, 2004 7:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
_loki_
l33t
l33t


Joined: 18 Dec 2003
Posts: 680
Location: in the shell

PostPosted: Tue Aug 31, 2004 6:53 am    Post subject: change kernel? Reply with quote

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
View user's profile Send private message
_loki_
l33t
l33t


Joined: 18 Dec 2003
Posts: 680
Location: in the shell

PostPosted: Sat Sep 11, 2004 11:09 am    Post subject: one more thing.. Reply with quote

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
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Tue Sep 28, 2004 1:43 pm    Post subject: Reply with quote

Moved from K&H
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
CyD
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 117

PostPosted: Tue Nov 23, 2004 7:57 pm    Post subject: Reply with quote

linux-wlan-ng now supports prism2.5
Back to top
View user's profile Send private message
g1um
n00b
n00b


Joined: 19 Nov 2003
Posts: 32
Location: Thunder Bluff, Mulgore

PostPosted: Tue Nov 23, 2004 8:48 pm    Post subject: Reply with quote

thx for nice howto
Back to top
View user's profile Send private message
CyD
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 117

PostPosted: Tue Nov 30, 2004 6:20 pm    Post subject: Reply with quote

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

Code:
dhcpcd wlan0


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
View user's profile Send private message
dedicated
n00b
n00b


Joined: 27 Dec 2004
Posts: 5

PostPosted: Tue Dec 28, 2004 3:46 am    Post subject: Reply with quote

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
View user's profile Send private message
snakattak3
Guru
Guru


Joined: 11 Dec 2002
Posts: 468
Location: Seattle

PostPosted: Tue Dec 28, 2004 6:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum