Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

WLAN HOWTO for prism2 pcmcia cards on kernel-version 2.6

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
17 posts • Page 1 of 1
Author
Message
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

WLAN HOWTO for prism2 pcmcia cards on kernel-version 2.6

  • Quote

Post by _loki_ » Mon Jul 19, 2004 11:01 pm

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: Select all

emerge pcmcia-cs
and

Code: Select all

rc-update add pcmcia default
.
Also hotplug might be helpful loading the right modules on startup;

Code: Select all

emerge hotplug
followed by

Code: Select all

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: Select all

FEATURES="-sandbox" emerge linux-wlan-ng


Now you need a script for your new network-device.

Code: Select all

cp /etc/init.d/net.eth0 /etc/init.d/net.wlan0
followed by

Code: Select all

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: Select all

nano /etc/conf.d/net
; if you're using dhcp

Code: Select all

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: Select all

nano /etc/modules.d/aliases
, just add the line

Code: Select all

alias wlan0 prism2_cs
and do a

Code: Select all

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: Select all

/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: Select all

/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: Select all

 /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.
Top
GhostTyper
Tux's lil' helper
Tux's lil' helper
Posts: 83
Joined: Sat Apr 03, 2004 10:58 pm
Location: Germany; BW

  • Quote

Post by GhostTyper » Sat Aug 07, 2004 12:53 pm

Code: Select all

rc-update add net-wlan0 default
shuldt be

Code: Select all

rc-update add net.wlan0 default
Top
epretorious
Apprentice
Apprentice
Posts: 191
Joined: Fri Jul 04, 2003 8:07 pm
Location: Truckee, CA
Contact:
Contact epretorious
Website

Re: WLAN HOWTO for prism based cards on kernel-version 2.6

  • Quote

Post by epretorious » Fri Aug 20, 2004 1:22 am

_loki_ wrote:Don't forget to add a iface configuration in

Code: Select all

nano /etc/conf.d/net
; if you're using dhcp

Code: Select all

dhcpcd_wlan0="-t 2"
is a nice feature, as dhcp seems to be much faster while being kicked a bit.

Code: Select all

iface_wlan0="dhcp"
...Should be added the thenano /etc/conf.d/net along with...

Code: Select all

dhcpcd_wlan0="-t 2"
Eric P.
Sunnyvale, CA
Top
epretorious
Apprentice
Apprentice
Posts: 191
Joined: Fri Jul 04, 2003 8:07 pm
Location: Truckee, CA
Contact:
Contact epretorious
Website

  • Quote

Post by epretorious » Sun Aug 22, 2004 12:04 am

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
Top
rush_ad
l33t
l33t
User avatar
Posts: 863
Joined: Thu Jul 22, 2004 8:27 pm
Location: New Jersey, USA

  • Quote

Post by rush_ad » Sun Aug 22, 2004 1:24 am

might want to put this in

Documentation, Tips & Tricks


nice howto, by the way.
Top
epretorious
Apprentice
Apprentice
Posts: 191
Joined: Fri Jul 04, 2003 8:07 pm
Location: Truckee, CA
Contact:
Contact epretorious
Website

  • Quote

Post by epretorious » Sun Aug 22, 2004 9:52 pm

rush_ad wrote:might want to put this in

Documentation, Tips & Tricks
I'd recommend Networking & Security...
Eric P.
Sunnyvale, CA
Top
Obsidian_MH
Apprentice
Apprentice
User avatar
Posts: 170
Joined: Sun May 30, 2004 11:26 pm
Location: Pittsburgh, PA, USA
Contact:
Contact Obsidian_MH
Website

  • Quote

Post by Obsidian_MH » Mon Aug 30, 2004 2:24 am

Hmmm...

Prism2_cs isn't found...

Something I'm missing here?
Obsidian
Top
usingloser
Apprentice
Apprentice
User avatar
Posts: 297
Joined: Sun May 18, 2003 6:48 pm
Location: ->Here<-
Contact:
Contact usingloser
Website

  • Quote

Post by usingloser » Mon Aug 30, 2004 3:35 pm

I am getting the same error now, and I had it working for awhile...
gentoo 4tw
Top
Obsidian_MH
Apprentice
Apprentice
User avatar
Posts: 170
Joined: Sun May 30, 2004 11:26 pm
Location: Pittsburgh, PA, USA
Contact:
Contact Obsidian_MH
Website

  • Quote

Post by Obsidian_MH » Mon Aug 30, 2004 7:10 pm

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
Top
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

change kernel?

  • Quote

Post by _loki_ » Tue Aug 31, 2004 6:53 am

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?
Top
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

one more thing..

  • Quote

Post by _loki_ » Sat Sep 11, 2004 11:09 am

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: Select all

 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: Select all

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: Select all

sed -i -e 's:PRISM2_PCMCIA=y:PRISM2_PCMCIA=n:' \ 
into

Code: Select all

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..
Top
pilla
Bodhisattva
Bodhisattva
User avatar
Posts: 7732
Joined: Wed Aug 07, 2002 8:19 pm
Location: Underworld

  • Quote

Post by pilla » Tue Sep 28, 2004 1:43 pm

Moved from K&H
"I'm just very selective about the reality I choose to accept." -- Calvin
Top
CyD
Tux's lil' helper
Tux's lil' helper
Posts: 117
Joined: Fri Jul 23, 2004 11:04 pm

  • Quote

Post by CyD » Tue Nov 23, 2004 7:57 pm

linux-wlan-ng now supports prism2.5
Top
g1um
n00b
n00b
User avatar
Posts: 32
Joined: Wed Nov 19, 2003 10:28 am
Location: Thunder Bluff, Mulgore
Contact:
Contact g1um
Website

  • Quote

Post by g1um » Tue Nov 23, 2004 8:48 pm

thx for nice howto
Top
CyD
Tux's lil' helper
Tux's lil' helper
Posts: 117
Joined: Fri Jul 23, 2004 11:04 pm

  • Quote

Post by CyD » Tue Nov 30, 2004 6:20 pm

hi, I've used this tutorial twice now, and have found I cannot get to work unless I add

Code: Select all

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: Select all

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!
Top
dedicated
n00b
n00b
User avatar
Posts: 5
Joined: Mon Dec 27, 2004 12:30 am
Contact:
Contact dedicated
Website

  • Quote

Post by dedicated » Tue Dec 28, 2004 3:46 am

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: Select all

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: Select all

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?
Top
snakattak3
Guru
Guru
User avatar
Posts: 468
Joined: Wed Dec 11, 2002 5:13 am
Location: Seattle

  • Quote

Post by snakattak3 » Tue Dec 28, 2004 6:59 am

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
Top
Post Reply

17 posts • Page 1 of 1

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic