Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

PrismII and Linux 2.6

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
20 posts • Page 1 of 1
Author
Message
AthlonRob
n00b
n00b
Posts: 37
Joined: Sun Jan 19, 2003 8:52 pm
Contact:
Contact AthlonRob
Website

PrismII and Linux 2.6

  • Quote

Post by AthlonRob » Wed Dec 17, 2003 7:39 am

Hey-

I'm buying what I think is a PrismII-based PCMCIA card tomorrow for $30 at Fry's and am trying to build the drivers for it tonight... but I'm not having a ton of luck. :-\

I am running kernel 2.6.0-test11 with PCMCIA enabled as a module. My last WiFi card (which I fried, BTW) worked fine (until it was fried).

I understand linux-wlan-ng is the only way to get these PrismII cards working, so I tried to emerge it. No go, it bails out looking for modversions.h in /usr/src/linux. Why things keep doing that, I wish I understood! Actually, it was the pcmcia_cs crap doing that.

So I tried the ~x86. Same thing. So I cut the pcmcia stuff out. This time it starts building, but errors out looking for /usr/src/linux/arch/x86/Makefile - duhhh... no directory there. So I symlink it from /usr/src/linux/arch/i386. Try again. Now we're making some progress, it errors out with a sandbox violation:

Code: Select all

make[3]: Entering directory `/usr/src/linux'
  MKELF   scripts/elfconfig.h
ACCESS DENIED  open_wr:   /usr/src/linux/scripts/elfconfig.h
/bin/sh: line 1: scripts/elfconfig.h: Permission denied
make[4]: *** [scripts/elfconfig.h] Error 1
make[3]: *** [scripts] Error 2
make[3]: Leaving directory `/usr/src/linux'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/var/tmp/portage/linux-wlan-ng-0.2.1_pre11/work/linux-wlan-ng-0.2.1-pre11/src/p80211'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/linux-wlan-ng-0.2.1_pre11/work/linux-wlan-ng-0.2.1-pre11/src'
make: *** [all] Error 2
 
!!! ERROR: net-wireless/linux-wlan-ng-0.2.1_pre11 failed.
!!! Function src_compile, Line 118, Exitcode 2
!!! failed compiling
"Okay," I say to myself, "how about we just compile this as a user, outside of portage, where we have no stinkin' sandboxen!"

Make runs along merrily compiling this that and the other thing.... until WAM! It hits me like a ton of bricks:

Code: Select all

  CC [M]  /home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2_cs.o
In file included from /home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2_cs.c:5:
/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2sta.c: In function `prism2sta_attach':
/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2sta.c:2827: structure has no member named `release'
/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2sta.c:2828: structure has no member named `release'
/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2sta.c:2829: structure has no member named `release'
In file included from /home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2_cs.c:5:
/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2sta.c: In function `prism2sta_detach':
/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2sta.c:2919: structure has no member named `release'
In file included from /home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2_cs.c:5:
/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2sta.c: In function `prism2sta_event':
/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2sta.c:3387: structure has no member named `release'
/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2sta.c:3388: structure has no member named `release'
make[5]: *** [/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver/prism2_cs.o] Error 1
make[4]: *** [/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver] Error 2
make[4]: Leaving directory `/usr/src/linux'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2/driver'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/rob/linux-wlan-ng-0.2.1-pre11/src/prism2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/rob/linux-wlan-ng-0.2.1-pre11/src'
make: *** [all] Error 2
"So," I say to myself, "looks like we need to try the version TPTB call stable in the land of the x86." So I try 0.2.0:

Code: Select all

make[2]: Entering directory `/home/rob/linux-wlan-ng-0.2.0/src/p80211'
gcc -E -M -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium4 -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -DMODULE -I../include -DCONFIG_PACKET=1 p80211conv.c p80211req.c p80211frm.c p80211wext.c p80211wep.c p80211netdev.c p80211mod.c > .depend
In file included from p80211conv.c:73:
../include/wlan/wlan_compat.h:314:31: linux/modversions.h: No such file or directory
p80211req.c:70:22: net/sock.h: No such file or directory
In file included from p80211req.c:73:
../include/wlan/wlan_compat.h:314:31: linux/modversions.h: No such file or directory
In file included from p80211frm.c:68:
../include/wlan/wlan_compat.h:314:31: linux/modversions.h: No such file or directory
p80211wext.c:51:28: net/iw_handler.h: No such file or directory
In file included from p80211wext.c:58:
../include/wlan/wlan_compat.h:314:31: linux/modversions.h: No such file or directory
In file included from p80211wep.c:59:
../include/wlan/wlan_compat.h:314:31: linux/modversions.h: No such file or directory
p80211netdev.c:74:28: net/iw_handler.h: No such file or directory
In file included from p80211netdev.c:81:
../include/wlan/wlan_compat.h:314:31: linux/modversions.h: No such file or directory
In file included from p80211mod.c:69:
../include/wlan/wlan_compat.h:314:31: linux/modversions.h: No such file or directory
make[2]: *** [.depend] Error 1
make[2]: Leaving directory `/home/rob/linux-wlan-ng-0.2.0/src/p80211'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/rob/linux-wlan-ng-0.2.0/src'
make: *** [all] Error 2
The curse of the blasted modversions.h! Wuzzup wit dat? :-)

I'm stumped, I don't know where to go from here... so has anybody gotten there prismII-based card working with their shiney new 2.6.0-testWhatever kernel? If they have, how'd they do it? I'd love some pointers, maybe a patch or something, or even a nice swift kick into the proper google search terms, although I did google this one quite extensively, I think. My googling ability is always lacking, however... The Force is not with me, I fear. :-(

Rob[/code]
Top
Galahad
Tux's lil' helper
Tux's lil' helper
Posts: 126
Joined: Wed Feb 12, 2003 8:10 pm

  • Quote

Post by Galahad » Thu Dec 18, 2003 5:10 pm

Am I right you are not root when you are compiling? Bad idea.
Top
AthlonRob
n00b
n00b
Posts: 37
Joined: Sun Jan 19, 2003 8:52 pm
Contact:
Contact AthlonRob
Website

  • Quote

Post by AthlonRob » Fri Dec 19, 2003 9:14 am

Root is for installing, not compiling....

You emerge as root, but if you notice, you drop privs for the compilation.

There's no good reason to be root while doing the actual compiling.

BTW, I got the drivers working... just had to build pre16 by hand.
Top
hulk2nd
Guru
Guru
User avatar
Posts: 512
Joined: Tue Mar 25, 2003 2:45 pm
Location: Freiburg, Germany

  • Quote

Post by hulk2nd » Fri Dec 19, 2003 12:23 pm

as far as i know you dont need linux-wlan-ng
Top
lorgoth
n00b
n00b
Posts: 24
Joined: Sat Oct 12, 2002 8:53 pm

  • Quote

Post by lorgoth » Sun Dec 21, 2003 3:00 pm

The orinoco_cs driver in the kernel works for most prism2 cards. I have a D-link DWL-650 and it works quite well with the kernel provided stuff.
Top
mike4148
l33t
l33t
Posts: 641
Joined: Tue Sep 09, 2003 11:05 pm

  • Quote

Post by mike4148 » Sun Dec 21, 2003 8:14 pm

If that doesn't work, you should try hostap, which is in portage (hostap-drivers). It happens to be the only driver set that has ever worked correctly all the time for my two adapters (Netgear MA311 PCI and Microsoft MN-520 PCMCIA).
Top
coondog
n00b
n00b
User avatar
Posts: 69
Joined: Sun Sep 28, 2003 6:52 am
Location: Tallahassee, Florida

  • Quote

Post by coondog » Thu Jan 08, 2004 12:43 am

Hulk2nd, how do i get the card to work after i've modprobed the orinoco_cs modules ?

What configurations must I make
Top
jshaw523
n00b
n00b
Posts: 12
Joined: Mon Dec 29, 2003 6:30 pm
Location: Columbus, OH

  • Quote

Post by jshaw523 » Thu Jan 08, 2004 12:57 am

When the orinoco_cs driver loads it should detect the card. If it does then you can configure your wireless parameters with iwconfig, and your regular ethernet parameters with ifconfig.

If you are using 2.6 you definitly don't need to use linux-wlan as the Prism 2 PCI/PCMCIA drivers are all included in the kernel now.
Top
coondog
n00b
n00b
User avatar
Posts: 69
Joined: Sun Sep 28, 2003 6:52 am
Location: Tallahassee, Florida

  • Quote

Post by coondog » Thu Jan 08, 2004 1:06 am

Well here's the thing I load the orinoco_cs module but when i run iwconfig it says i have no connections ???

I have a DLink 650DWL card and I'm not quite sure why it's not working, because it is supported
Top
hpux
n00b
n00b
Posts: 14
Joined: Mon Nov 24, 2003 11:41 pm
Location: Oregon State University
Contact:
Contact hpux
Website

  • Quote

Post by hpux » Mon Jan 26, 2004 5:35 am

I have a similar problem with 2.6.1 and an orinoco card (Netgear).

I can get the pcmcia drivers working either in the kernel or as a module,
but I can't get pcmcia-cs to work, and I think that's why my iwconfig can't find a net
card :(
Top
alwyn
Tux's lil' helper
Tux's lil' helper
Posts: 140
Joined: Wed May 21, 2003 4:18 am

  • Quote

Post by alwyn » Mon Jan 26, 2004 6:00 am

Ok I figured this out over the weekend.

In order to get DWL-650 to work on 2.6.1 you need to do the following:
1) Compile kernel with PCMCIA support, Orinoco driver and hermes drivers as modules. Also have wireless network support on and yenta_socket as module.
2) Reboot and emerge the MASKED pcmcia-cs and wireless-tools. Also make sure you have the MASKED module-init-tools for 2.6.1.
3) Have yenta_socket in your /etc/modules.autoload.d/kernel-2.6. Do NOT add orinoco_cs here as it must be loaded by cardmgr.
4) Edit your /etc/conf.d/pcmcia to have PCIC=yenta_socket

After the above your PCMCIA card would be recognised but not associated with an interface as the cardmgr do not know which driver to associate with it.

In order to achieve that you need to add the following to /etc/pcmcia/config.opts:

Code: Select all

card "D-Link DWL-650 11Mbps 802.11b WLAN Card"
   version "D", "Link DWL-650 11Mbps WLAN Card", "Version 01.02"
   bind "orinoco_cs"
This will cause the cardmgr to recognize your card correctly and load the
correct driver.

It will now be on eth1 or eth0 depending on whether you already have a normal NIC. Configure as usual.
Top
dlight
n00b
n00b
Posts: 7
Joined: Sat Jul 10, 2004 9:21 pm

  • Quote

Post by dlight » Sat Jul 10, 2004 10:04 pm

This thread simply got off track a bit, and I have not been able to locate any other threads that mirror my current issue more clearly.

My card will work great under the orinoco_cs module, however that module, and that card is not capable of setting RFMON. This is a requirement for my laptop. The problem is that linux-wlan-ng is not needed with kernel 2.6.x.

Does anyone have a proven method of getting this card to be supported in 2.6.x with the standard set of features?
Top
coondog
n00b
n00b
User avatar
Posts: 69
Joined: Sun Sep 28, 2003 6:52 am
Location: Tallahassee, Florida

  • Quote

Post by coondog » Sun Jul 11, 2004 2:18 am

For those who can't get their cards to work under Linux

USE NDISWRAPPER program

`emerge ndiswrapper`
Top
clockwise
Apprentice
Apprentice
User avatar
Posts: 152
Joined: Sat Aug 24, 2002 2:53 pm
Location: uk
Contact:
Contact clockwise
Website

  • Quote

Post by clockwise » Wed Jul 14, 2004 2:49 pm

just at this stage myself, can i suggest for compiling the drivers:

Code: Select all

# FEATURES="-sandbox" emerge /usr/portage/linux-wlan-ng/linux-wlan-ng-0.2.1_pre20.ebuild
now, i've just got to figure out how to configure it!
"if an injury has to be done to a man it should be so severe that his vengeance need not be feared." - niccolò machiavelli
Top
rm53
n00b
n00b
Posts: 3
Joined: Sun Aug 08, 2004 1:31 pm
Location: Linz/Danube
Contact:
Contact rm53
Website

where to get linux-wlan-ng-0.2.1-pre21.ebuild?

  • Quote

Post by rm53 » Sun Aug 08, 2004 1:54 pm

sorry I am new to the Gentoo way of software maintenance.
I am able to "emerge linux-wlan-ng" but this version is hopelessly outdated.
I saw you use newer ebuilds like 0.2.1-pre20.ebuild - where or how can I get this?
And pre21 is current since some months and really better.
Can I make an "ebuild" myself from the normal linux-wlan-ng tarball?

thanks
rudolf mittelmann
Top
clockwise
Apprentice
Apprentice
User avatar
Posts: 152
Joined: Sat Aug 24, 2002 2:53 pm
Location: uk
Contact:
Contact clockwise
Website

  • Quote

Post by clockwise » Mon Aug 09, 2004 10:40 am

you can emerge a specific version by pointing directly to the ebuild, hence the pathname rather than just the package name in my examply above.
"if an injury has to be done to a man it should be so severe that his vengeance need not be feared." - niccolò machiavelli
Top
bus.dch
n00b
n00b
Posts: 57
Joined: Wed Nov 30, 2005 6:23 pm

Re: prism2_usb and Linux 2.6

  • Quote

Post by bus.dch » Wed Jan 11, 2006 8:43 am

Hi, I'm having trouble getting prism2_usb to work on amd64.

It seems to modprobe okay but not recognize the usb device and add the wlan0 interface. I have the config files all ready to go when wlan0 shows up. I have created a one-line file in /etc/modules.d, called wlan0, containing "alias wlan0 prism2_usb". When I do /etc/init.d/wlan0 start, it can't find wlan0.

What should I do next?
Top
bus.dch
n00b
n00b
Posts: 57
Joined: Wed Nov 30, 2005 6:23 pm

Re: prism2_usb and Linux 2.6

  • Quote

Post by bus.dch » Wed Jan 11, 2006 7:31 pm

Still can't get the prism2_usb driver to work with my Netgear MA111 wireless usb adapter.

I got the same results on an x86 machine. No wlan0 after I plug in the usb device.

Code: Select all

# dmesg | tail
ACPI: PCI Interrupt 0000:02:07.0[A] -> GSI 16 (level, low) -> IRQ 16
eth0: Davicom DM9102 at pci0000:02:07.0, 00:08:a1:0d:17:ff, irq 16.
ACPI: PCI Interrupt 0000:02:0a.0[A] -> GSI 19 (level, low) -> IRQ 19
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (7168 buckets, 57344 max) - 212 bytes per conntrack
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/projects/ipt_recent/
prism2usb_init: prism2_usb.o: 0.2.3 Loaded
prism2usb_init: dev_info is: prism2_usb
usbcore: registered new driver prism2_usb
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: device descriptor read/64, error -71
Well, I don't get the device descriptor read/64, error -71 on the amd64 machine.

Help, anyone?
Top
bus.dch
n00b
n00b
Posts: 57
Joined: Wed Nov 30, 2005 6:23 pm

Re: prism2_usb and Linux 2.6

  • Quote

Post by bus.dch » Wed Jan 11, 2006 8:13 pm

I found some more info on device descriptor read/64, error -71, take a look at url]http://www.spinics.net/lists/usb/msg02644.html[/url]. However, when I plugged and unplugged the device a few times, it didn't get the error anymore, so I'm not going to recompile my kernel just to get usbcore as a module.

Then I found this post:
I just went through all this setup, config, etc. Apparently, Netgear changed the chipset used in MA111, but didn't change the product name or id. If your MA111 box has a tiny little "v2" on the side, then you probably have the new chipset, and the standard MA111 (v1) drivers will not recognize the device. I'm returning mine to the store now.
I'm not going to return my usb wireless to the store, but does anyone know about work to get the MA111 v2 working?
Top
guldan
Tux's lil' helper
Tux's lil' helper
Posts: 81
Joined: Mon May 24, 2004 9:03 pm

  • Quote

Post by guldan » Tue Jan 31, 2006 11:25 pm

According what I've read here, I do not need the wlan-ng drivers for the Prism 2.5 PCMCIA card withe the 2.6'er kernel ?
I use gentoo-source-2.6.15-r1 with yenta built into the kernel, Hermes chipset support built into the kernel and the Hermes PCMCIA card support built as a module.

Inserting the card leads to a: Jan 31 23:47:09 noti cardmgr[8338]: module /lib/modules/2.6.15-gentoo-r1/pcmcia/prism2_cs.o not available

Which kernel section is responsible for this prism2_cs module ?

EDITED: seemsas if the linux-wlan-ng package is bringing that module with it. That still does not answer how I'd suppose to run the prism2.5 card without the wlan-ng drivers ??
Top
Post Reply

20 posts • Page 1 of 1

Return to “Kernel & Hardware”

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