Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless Card on Compaq Evo n800c
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
melted_stencil
n00b
n00b


Joined: 26 Apr 2003
Posts: 18
Location: Hoboken

PostPosted: Tue Mar 16, 2004 2:52 am    Post subject: Reply with quote

Quote:
FYI, I have the n800 sister model, the Presario 2800. My multiport works flawlessly using wlan-ng, albeit on kernel 2.4.18. It's a Prism2 chip.


2.4 was fairly easy to get working as it didn't have teh overly stringent USB requirements/standards that 2.6 seems to enforce and seem to be the cause of the majority of the problems with this card

Now if only the orinoco drivers supported monitor mode, i'd be a happy man. Hopefully its not a card/hardware issue
Back to top
View user's profile Send private message
invis-eo
n00b
n00b


Joined: 12 Jun 2003
Posts: 72

PostPosted: Sun Apr 11, 2004 4:05 pm    Post subject: Reply with quote

As you can see in this thread, my w200 card worked with a 2.6.0 kernel (or something before 2.6.3). Actually, i hav the 2.6.4_rc1 kernel on my system and i installed the complete gentoo system new. Now my wlan w200 card don't work. I don't understand why. Can it be a problem with the kernel? i tried the orinoco-usb-0.3.0-rrey4 and the 0.3.0-rrey5 files and i can't make it work.

the output of dmesg is:

Quote:

usb 2-3: new full speed USB device using address 4
/home/luk/hardware/orinoco/orinoco-usb-0.3.0-rrey5/driver/orinoco_usb.c: No firmware to download
unregister_netdevice: device eth%d/c56af800 never was registered
orinoco_usb: probe of 2-3:1.0 failed with error -14


as someone said, i tried to download the firmware with the old code (0.2.2) and copied it in the correct directory, but as you can see, the dmesg sais no firmware to download..... this is everything that i can do against this error -14 or does someone have a good idea?


i think my kernel config is correct but if you want, i can post it also here!
Back to top
View user's profile Send private message
vtrac
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 86

PostPosted: Fri Apr 16, 2004 11:29 pm    Post subject: Reply with quote

Quote:
usb 4-1: new full speed USB device using address 3
/root/orinoco-usb-0.3.0-rrey4/driver/orinoco_usb.c: No firmware to download
unregister_netdevice: device wlan%d/de2c7800 never was registered
Orinoco USB: probe of 4-1:1.0 failed with error -14


Nearly the exam error as everyone else. I'm using kernel 2.6.3 and the new W200 card. Arg!!!
Back to top
View user's profile Send private message
otaci
n00b
n00b


Joined: 23 Apr 2003
Posts: 3

PostPosted: Mon Apr 19, 2004 5:18 pm    Post subject: Reply with quote

Thanks for all the tips on this thread.

Here's my two cents re "No firmware to download".

My situation: kernel 2.6.5, Compaq Evo N800c, Compaq Wireless W200.

I downloaded the orinoco from cvs here http://savannah.nongnu.org/projects/orinoco/

This gave my one directory of code which I make'd and copied the .ko files to /lib/modules/...

Everything fine, except I get the "No firmware to download" message.

Went here: http://alioth.debian.org/project/showfiles.php?group_id=1245 and downloaded the 0.2.2 version of orinoco-usb. This gave me multiple directories, one of which was called driver and was similar to the directory I downloaded from savannah. But it wouldn't compile.

The firmware sub-directory did compile, and generated a file "orinoco_ezusb_fw" (more acurately a soft link, but hey, whatever). Made a directory /usr/lib/hotplug/firmware, copied this file to the directory.

Fn-F2 twice to reset wireless card and it loaded fine.

I'm not suggesting anyone do exactly the same, it's a messy way to do it, but maybe it will help find the problem. I'm just glad the card is working so I can get on with some other stuff.

Now I just need to find an elegant place to put "iwconfig eth1 essid "mywifi"".

Ota
Back to top
View user's profile Send private message
vtrac
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 86

PostPosted: Mon Apr 19, 2004 6:29 pm    Post subject: Reply with quote

I just updated my kernel to 2.6.5 and tried reinstalling the CVS orinoco drivers. however, a make in that directory skips right over orinoco_usb and I'm still left with a orinoco_usb.c and not a orinoco_usb.ko. Any idea whats causing this?
Back to top
View user's profile Send private message
otaci
n00b
n00b


Joined: 23 Apr 2003
Posts: 3

PostPosted: Mon Apr 19, 2004 7:25 pm    Post subject: Reply with quote

You sure you have USB support compiled (either as module or in kernel)?
Back to top
View user's profile Send private message
vtrac
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 86

PostPosted: Wed Apr 21, 2004 1:10 am    Post subject: Reply with quote

Yes, I'm sure. I've got a USB mouse that I'm using.
Back to top
View user's profile Send private message
invis-eo
n00b
n00b


Joined: 12 Jun 2003
Posts: 72

PostPosted: Tue Jun 15, 2004 8:02 am    Post subject: Reply with quote

Has someone tried to get it work with a 2.6.6 or 2.6.7_rcX kernel?
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Tue Jun 15, 2004 10:19 pm    Post subject: Reply with quote

Hmm, I'll have to try these Orinoco drivers -- linux-wlan-ng is not working, despite some effort on my part to make the kernel USB stack more friendly by porting forward a patch I found on the Net.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
invis-eo
n00b
n00b


Joined: 12 Jun 2003
Posts: 72

PostPosted: Tue Jun 29, 2004 8:37 pm    Post subject: Reply with quote

i worked the half day on this problem because i hate these cables through my apartement. Now i can say it is working!!! :-) :-)
first i tried it with a 2.6.6 kernel, didnt work.. i don't know
second i tried an 2.6.3 and still the same sh**.
then the last one a 2.6.7-gentoo (gentoo-dev-sources)
then i downloaded the newest orinoco sources via cvs.
then
KERNEL_SRC="/usr/src/linux-2.6.7"
make
make install

then i had the same old error with the no firmware to download... etc and then i saw the post in this topic.... (page no. 3)

i downloaded this things, went to the firmware directory, make

copied the firmware, pressed fn+f2 and it worked... my yellow led lightened (and it still does :-) )

then dhcpcd eth1

my wlan card was up and had an ip ... now 5 minutes later i have written in this topic :-)!

my question now is, can i install a wap key? (i know its not secure, but my school needs it... :-( )!!!

so thanks a lot!!!!

im so happy!!! 8) 8) 8) 8)
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Tue Jun 29, 2004 8:40 pm    Post subject: Reply with quote

Hmm, I tried Orinoco USB on kernel 2.6.7, no luck; I'll try again with a new CVS checkout ...
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
invis-eo
n00b
n00b


Joined: 12 Jun 2003
Posts: 72

PostPosted: Tue Jun 29, 2004 8:50 pm    Post subject: Reply with quote

i have the cvs from today!

whats the problem??
can you build the drivers?
did you set the KERNEL_SRC="" variable?

luke
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Tue Jun 29, 2004 9:34 pm    Post subject: Reply with quote

No, build and install goes fine, but the driver just barfs when trying to instantiate the network device.

I'll give it another try soon ...
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
mellofone
Apprentice
Apprentice


Joined: 13 Apr 2002
Posts: 287

PostPosted: Tue Jun 29, 2004 9:59 pm    Post subject: Reply with quote

Which module did you load to get it to work? I loaded all of the modules I could find in the wireless dir, and nothing seems to be detected. I have an orinoco_usb.c, but it doesn't seem to compile a module...

I just tried it, everything compiled and I have the firmware, but whatever I seem to load doesn't make a difference with the card...
_________________
:wq
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Tue Jun 29, 2004 10:46 pm    Post subject: Reply with quote

[quote="mellofone"]Which module did you load to get it to work? I loaded all of the modules I could find in the wireless dir, and nothing seems to be detected. I have an orinoco_usb.c, but it doesn't seem to compile a module...

I just tried it, everything compiled and I have the firmware, but whatever I seem to load doesn't make a difference with the
You need the latest CVS for orinoco_usb to load. Also, radio/wireless extensions must be enabled in the kernel config.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
invis-eo
n00b
n00b


Joined: 12 Jun 2003
Posts: 72

PostPosted: Wed Jun 30, 2004 5:47 am    Post subject: Reply with quote

i think you need one of the newst kernels because with the older one it won't compile the orinoco_usb.c and so you dont have the orinoco_usb.ko.

so i installed the gentoo-dev-sources-2.6.7.ebuild becaus i thought that i need the newest one to get it work!
try it with this one!
then i compiled it with genkernel :-(! (i didnt had the time to edit the hole config so now if i had time i will it do by my self... )

when you have compiled these things you only ned the following modules to load:

hermes
firmware_class
orinoco
orinoco_usb

and then hit FN+F2

Now i have also a question, is there a way to get wep encryptioning to work?

thanks!
Back to top
View user's profile Send private message
mellofone
Apprentice
Apprentice


Joined: 13 Apr 2002
Posts: 287

PostPosted: Wed Jun 30, 2004 12:28 pm    Post subject: Reply with quote

Well I finally got it to work after hacking around the Makefile a bit. All I have to load is
Code:
orinoco
orinoco_usb

and I get an eth1. To get WEP working, I use a shell script and the iwconfig tool that is part of the net-wireless/wireless-tools package. Here is the iwconfig format in my script:
Code:
/usr/sbin/iwconfig eth1 mode Managed key enter-hex-key-here essid wap_name

Obviouosly replace enter-hex-key-here with your key and the wap_name with your appropriate essid. You can get all of the command-line functions from the iwconfig man page.
_________________
:wq
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Fri Jul 02, 2004 12:08 pm    Post subject: Reply with quote

Eh, still no dice: 2.6.7+orinoco_usb, it says it can't get the NIC ID

Same error with linux-wlan-ng
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
mellofone
Apprentice
Apprentice


Joined: 13 Apr 2002
Posts: 287

PostPosted: Fri Jul 02, 2004 12:36 pm    Post subject: Reply with quote

Do you have orinico and orinoco_usb modules loaded? If so, what is the error message you get?
_________________
:wq
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Fri Jul 02, 2004 12:50 pm    Post subject: Reply with quote

from dmesg

Code:
prism_usb 0.15rc1HEAD (Pavel Roskin <proski@gnu.org>)
orinoco_usb: No firmware to download
orinoco_usb: probe of 1-3:1.1 failed with error -14
prism_usb_hard_reset - dummy
prism_usb_init - dummy
prism_usb_init - dummy
prism_usb_allocate - dummy
prism_usb_read_ltv - dummy
eth1: Cannot read hardware identity: error -95
eth1: Incompatible firmware, aborting
prism_usb: Cannot register network device
prism_usb: probe of 1-3:1.1 failed with error -95


lsusb:

Code:
Bus 001 Device 008: ID 049f:0033 Compaq Computer Corp. 801.11b Adapter [orinoco]

_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
mellofone
Apprentice
Apprentice


Joined: 13 Apr 2002
Posts: 287

PostPosted: Fri Jul 02, 2004 12:57 pm    Post subject: Reply with quote

What do you have in your hotplug firmware (/usr/lib/hotplug/firmware) directory?
_________________
:wq
Back to top
View user's profile Send private message
invis-eo
n00b
n00b


Joined: 12 Jun 2003
Posts: 72

PostPosted: Fri Jul 02, 2004 1:52 pm    Post subject: Reply with quote

you have to do the things what otaci has written in this thread (page 3 entry 4). You have no firmware to load, so you must genearte your firmware and copy it in the correct directory!

bye
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Fri Jul 02, 2004 8:52 pm    Post subject: Reply with quote

Tried, otaci's steps, but didn't work -- the driver doesn't like my device (in fact, I had to manually add the device ID to the code).

The device ID is already in the linux-wlan-ng sourcebase, and I was using the linux-wlan-ng drivers successfully with kernel 2.4.x ... :x
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sun Jul 04, 2004 3:10 am    Post subject: Reply with quote

Ok, success; steps to get my Compaq Multiport (USB) 802.11b wireless (W100) working:

* Installed linux-wlan-ng-0.2.1pre21, against linux 2.6.7 (required min version of 2.6.x because the firmware is buggy, and this version introduces patches to complain, but not fail, on bad USB interface numbers).

* Got version 1.7.4 of the firmware here:

http://www.netgate.com/support/prism_firmware/

and copied the "ru<blah>.hex" file to "/etc/wlan/prism2_ru.hex"

This was necessary because v1.8.3 doesn't load successfully; perhaps it could work by removing the file altogether and not have any firmware loaded, but then the interface won't scan ...

* FYI, I generated a 128 bit key with the following Python incantation (and example output):

# import random
# hex(random.randrange(long(16.**26-1)))
'0x71963384A550CD30D2384983B1L'

Obviously, omit the "0x" at the beginning and the "L" at the end.

Ebuild for linux-wlan-ng-0.2.1_pre21:

Code:
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre20.ebuild,v 1.1 2004/03/01 05:42:22 latexer Exp $

inherit pcmcia

IUSE="${IUSE} usb build"

MY_P=${PN}-${PV/_/-}
S=${WORKDIR}/linux-wlan-ng-0.2.1pre21

DESCRIPTION="The linux-wlan Project"
SRC_URI="${SRC_URI}
      ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-0.2.1pre21.tar.gz"


HOMEPAGE="http://linux-wlan.org"
DEPEND="sys-kernel/linux-headers
      dev-libs/openssl
      >=sys-apps/sed-4.0*"

SLOT="0"
LICENSE="MPL-1.1"
KEYWORDS="~x86"

src_unpack() {
   check_KV

   unpack linux-wlan-ng-0.2.1pre21.tar.gz
   unpack ${PN}-gentoo-init.gz

   # Use pcmcia.eclass to setup pcmcia-cs sources as needed
   pcmcia_src_unpack

   cp ${WORKDIR}/${PN}-gentoo-init ${S}/etc/rc.wlan

   # Lots of sedding to do to get the man pages and a few other
   # things to end up in the right place.

   sed -i -e "s:mkdir:#mkdir:" \
      -e "s:cp nwepgen.man:#cp nwepgen.man:" \
      -e "s:\t\$(TARGET_:\t#\$(TARGET_:" \
      man/Makefile

   sed -i -e "s:/etc/wlan:/etc/conf.d:g" \
      etc/wlan/Makefile

   sed -i -e "s:/sbin/nwepgen:/sbin/keygen:" \
      etc/wlan/wlancfg-DEFAULT

   sed -i -e "s:/etc/wlan/wlan.conf:/etc/conf.d/wlan.conf:g" \
       -e "s:/etc/wlan/wlancfg:/etc/conf.d/wlancfg:g" \
      etc/wlan/shared

}

src_compile() {
   # Configure the pcmcia-cs tree if it exists
   pcmcia_configure

   # now lets build wlan-ng
   cd ${S}

   sed -i -e 's:TARGET_ROOT_ON_HOST=:TARGET_ROOT_ON_HOST=${D}:' \
      -e 's:PRISM2_PCI=n:PRISM2_PCI=y:' \
      config.in

   if [ -n "`use pcmcia`" ]; then
      if [ -n "${PCMCIA_SOURCE_DIR}" ];
      then
         export PCMCIA_SOURCE_DIR=${PCMCIA_SOURCE_DIR}
         sed -i -e 's:PCMCIA_SRC=:PCMCIA_SRC=${PCMCIA_SOURCE_DIR}:' \
            config.in
      fi
      sed -i -e 's:PRISM2_PLX=n:PRISM2_PLX=y:' \
         config.in
   else
      sed -i -e 's:PRISM2_PCMCIA=y:PRISM2_PCMCIA=n:' \
      config.in
   fi

   if [ -n "`use usb`" ]; then
      sed -i -e 's:PRISM2_USB=n:PRISM2_USB=y:' \
         config.in
   fi

   cp config.in default.config

   # 2.6 needs ARCH unset since it uses it
   unset ARCH
   emake default_config || die "failed configuring WLAN"
   emake all || die "failed compiling"

   # compile add-on keygen program.  It seems to actually provide usable keys.
   cd ${S}/add-ons/keygen
   emake || die "Failed to compile add-on keygen program"
   cd ${S}/add-ons/lwepgen
   emake || die "Failed to compile add-on lwepgen program"
}

src_install () {

   make install || die "failed installing"

   dodir etc/wlan
   mv ${D}/etc/conf.d/shared ${D}/etc/wlan/

   if [ -z "`use build`" ]; then

      dodir /usr/share/man/man1
      newman ${S}/man/nwepgen.man nwepgen.1
      newman ${S}/man/wlancfg.man wlancfg.1
      newman ${S}/man/wlanctl-ng.man wlanctl-ng.1
      newman ${S}/man/wland.man wland.1

      dodoc CHANGES COPYING LICENSE FAQ README THANKS TODO \
            doc/config* doc/capturefrm.txt
   fi

   exeinto /sbin
   doexe add-ons/keygen/keygen
   doexe add-ons/lwepgen/lwepgen

}

pkg_postinst() {
   depmod -a

   einfo "/etc/init.d/wlan is used to control startup and shutdown of non-PCMCIA devices."
   einfo "/etc/init.d/pcmcia from pcmcia-cs is used to control startup and shutdown of"
   einfo "PCMCIA devices."
   einfo ""
   einfo "Modify /etc/conf.d/wlan.conf to set global parameters."
   einfo "Modify /etc/conf.d/wlancfg-* to set individual card parameters."
   einfo "There are detailed instructions in these config files."
   einfo ""
   einfo "Three keygen programs are included: nwepgen, keygen, and lwepgen."
   einfo "keygen seems provide more usable keys at the moment."
   einfo ""
   einfo "Be sure to add iface_wlan0 parameters to /etc/conf.d/net."
   einfo ""
   ewarn "Wireless cards which you want to use drivers other than wlan-ng for"
   ewarn "need to have the appropriate line removed from /etc/pcmcia/wlan-ng.conf"
   ewarn "Do 'cardctl info' to see the manufacturer ID and remove the corresponding"
   ewarn "line from that file."

   ewarn "Previous versions of linux-wlan-ng recommended creating symlinks in"
   ewarn "/usr/src/linux for 2.6 kernel merges. This is NOT needed and will"
   ewarn "merely clutter things. This has been fixed in the ebuild where it"
   ewarn "should be handled."
   ewarn "Users emerging this with a 2.6 kernel still need to disable"
   ewarn "sandbox and userpriv from FEATURES."
}


_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
gnough
n00b
n00b


Joined: 20 Aug 2004
Posts: 15

PostPosted: Fri Aug 20, 2004 4:09 pm    Post subject: Reply with quote

I once got w200 working on debian using this method (downloading driver from alioth.debian.org and compile it to get orinoco_ezusb_fw and copy it to /usr/lib/hotplug/firmware.
Now, I installed gentoo ( 2.6.8 ) and alioth.debian.org is dead. But I found http://wiki.linuxquestions.org/wiki/Orinoco_USB_Card
From the above, you can execute get_ezusb_fw and it'll download .zip file and also orinoco_ezusb_fw.
By copying orinoco_ezusb_fw to /usr/lib/hotplug/firmware, you can make w200 work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
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