Author Topic: Hostap For Rc12 Anyone?  (Read 13155 times)

agraef

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Hostap For Rc12 Anyone?
« on: October 18, 2005, 04:01:49 pm »
Hi,

the subject says it all: Did anyone get around building hostap for the latest and greatest RC yet? AFAIK, I need it to make my D-Link DCF-660W work properly (Akita running RC12).

sashz: Would it be possible to include hostap in the next RC?
« Last Edit: October 29, 2005, 05:36:13 pm by agraef »

agraef

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Hostap For Rc12 Anyone?
« Reply #1 on: October 19, 2005, 08:01:44 am »
Hmm, am I missing something? Should hostap_cs work out of the box on RC12? But when I add the necessary entries to hermes.conf, the card is only recognized but doesn't work at all; no hostap module gets loaded and dmesg shows just "pxa_pcmcia_init(0)", that's it.

Here are the entries that I used (I found those in another thread in this forum):

Code: [Select]
device "hostap_cs"
  class "hermes"
  module "hostap", "hostap_cs"

Code: [Select]
card "D-Link DCF660"
  manfid 0xd601, 0x0005
  bind "hostap_cs"

Something wrong with those? Or do I have to install the hostap modules first to make them work?

I'm confused. Any help appreciated.

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
Hostap For Rc12 Anyone?
« Reply #2 on: October 19, 2005, 06:25:05 pm »
C760 running pdaXrom lastest ;-)
SL5500 Running Cacko Qtopia
512 MB SD Card, 128 MB CF Card, Prism2 CF Wlan.

Always visit http://www.pdaXrom.org for latest news.

agraef

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Hostap For Rc12 Anyone?
« Reply #3 on: October 19, 2005, 07:45:22 pm »
Quote
Did you follow the: https://www.oesf.org/forums/index.php?showt...759&#entry44759
Yes, that's _exactly_ what I did. I had to modify the card entry for my card, of course, see above. But otherwise I carried out exactly the same steps: modify hermes.conf, eject the card, restart pcmcia services, reinsert the card. Then what I get is that the card is recognized according to my new entry (it shows up as D-Link something), but otherwise the card is dead (light stays turned off). If I change back to the old hermes.conf, restart pcmcia and reinsert the card, it works again (only in a limited way, that's why I want to switch to the hostap driver).

The strange thing is that I appear to have neither the orinoco nor the hostap modules on my system (straight RC11/12 install -- I tried both, and didn't remove any of the original packages). Are these modules supposed to be compiled into the kernel instead? Or maybe they're actually missing in the RC11/12 builds??

EDIT: Just to make this clear, there are really none of those wlan modules on my Z. Here's what's in my /lib/modules/2.4.20/kernel/drivers/net/wireless directory after a fresh install:

Code: [Select]
# ls -l /lib/modules/2.4.20/kernel/drivers/net/wireless
-rw-r--r--    1 root     root        70680 Jan  1  1970 airo.o
-rw-r--r--    1 root     root         7340 Jan  1  1970 airo_cs.o

Ok, some more data. Here is what /var/log/messages has to say when I insert the card with the original hermes.conf file:

Code: [Select]
Oct 20 00:47:14 cardmgr[8923]: socket 0: Sandisk Connect SDWCFB-000
Oct 20 00:47:14 cardmgr[8923]: executing: 'modprobe hermes 2>&1'
Oct 20 00:47:14 cardmgr[8923]: + modprobe: Can't locate module hermes
Oct 20 00:47:14 cardmgr[8923]: modprobe exited with status 255
Oct 20 00:47:14 cardmgr[8923]: module /lib/modules/2.4.20/pcmcia/hermes.o not available
Oct 20 00:47:14 cardmgr[8923]: executing: 'modprobe orinoco 2>&1'
Oct 20 00:47:14 cardmgr[8923]: + modprobe: Can't locate module orinoco
Oct 20 00:47:14 cardmgr[8923]: modprobe exited with status 255
Oct 20 00:47:14 cardmgr[8923]: module /lib/modules/2.4.20/pcmcia/orinoco.o not available
Oct 20 00:47:16 /etc/hotplug/net.agent: NET unregister event not supported
Oct 20 00:47:16 /etc/hotplug/net.agent: how do I bring interfaces up on this distro?
Oct 20 00:47:16 /etc/hotplug/net.agent: register event not handled
Oct 20 00:47:16 cardmgr[8923]: executing: './hermes start eth0 2>&1'
Oct 20 00:47:16 cardmgr[8923]: + Error for wireless request "Set Frequency" (8B04) :
Oct 20 00:47:16 cardmgr[8923]: +     SET failed on device eth0; Operation not supported.

As you can see, the orinoco modules fail to be loaded (quite logical, as I don't appear to have them), but the card still works in a limited way (transfer from host to Z works ok, but upload from the Z to the host is flaky, the driver dies whenever I transfer more than a few kb in one chunk). Here's what cardctl says:

Code: [Select]
# cardctl status 0
  3.3V 16-bit PC Card
  function 0: [ready]
# cardctl ident 0
  product info: "D-Link", "DCF-660W", ""
  manfid: 0xd601, 0x0005
  function: 6 (network)
# cardctl info 0
PRODID_1="D-Link"
PRODID_2="DCF-660W"
PRODID_3=""
PRODID_4=""
MANFID=d601,0005
FUNCID=6

Finally, here's the messages log after I add the two entries in my previous post to hermes.conf, restart pcmcia and reinsert the card:

Code: [Select]
Oct 20 00:48:38 cardmgr[9268]: socket 0: D-Link DCF660
Oct 20 00:48:39 cardmgr[9268]: executing: 'modprobe hostap 2>&1'
Oct 20 00:48:39 cardmgr[9268]: + modprobe: Can't locate module hostap
Oct 20 00:48:39 cardmgr[9268]: modprobe exited with status 255
Oct 20 00:48:39 cardmgr[9268]: module /lib/modules/2.4.20/pcmcia/hostap.o not available
Oct 20 00:48:39 cardmgr[9268]: executing: 'modprobe hostap_cs 2>&1'
Oct 20 00:48:39 cardmgr[9268]: + modprobe: Can't locate module hostap_cs
Oct 20 00:48:39 cardmgr[9268]: modprobe exited with status 255
Oct 20 00:48:39 cardmgr[9268]: module /lib/modules/2.4.20/pcmcia/hostap_cs.o not available
Oct 20 00:48:40 cardmgr[9268]: get dev info on socket 0 failed: Resource temporarily unavailable

Ok, so the hostap modules can't be loaded either, and now the card doesn't get proper initialization at all.

Any idea?

(BTW, other than that RC12 works really great for me, including the native SDK. Mplayer works great in fullscreen mode, too. Kudos!)

TIA,
Albert
« Last Edit: October 19, 2005, 09:56:18 pm by agraef »

magicbb

  • Newbie
  • *
  • Posts: 40
    • View Profile
    • http://
Hostap For Rc12 Anyone?
« Reply #4 on: October 19, 2005, 11:17:58 pm »
same as my case, i can never loaded hostap_cs
https://www.oesf.org/forums/index.php?showtopic=15345
Zaurus C-1000, AmbiCom Wifi, Pdaxrom beta 3

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Hostap For Rc12 Anyone?
« Reply #5 on: October 20, 2005, 03:16:40 am »
you can try  
Code: [Select]
find /lib/modules -name hostap*
to see if you have the modules hostap.o and hostap_cs.o.

If you don't have the modules well...
If they are somewhere else (on my 860 they are in kernel/drivers/net/wireless) Maybe copying them in /lib/modules/2.4.20/pcmcia/ could do the trick?
« Last Edit: October 20, 2005, 03:17:51 am by pgas »
SLC-860 cacko / senao wifi

agraef

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Hostap For Rc12 Anyone?
« Reply #6 on: October 20, 2005, 05:04:32 am »
Ok, I think I finally pinpointed this one. It's quite simply that all these modules are missing in the RC12 build.

pgas: Here is what I have on my RC12/C1000 system:
Code: [Select]
# find /lib/modules -name 'hostap*'
# find /lib/modules -name 'orinoco*'
# ls -l /lib/modules/2.4.20/kernel/drivers/net/wireless
-rw-r--r--    1 root     root        70680 Jan  1  1970 airo.o
-rw-r--r--    1 root     root         7340 Jan  1  1970 airo_cs.o

So these modules are definitely _missing_ in the RC12 build for the C1000. Just to make sure, I just reinstalled the kernel-modules_2.4.20_armv5tel.ipk package from the feed, and they're still not there.

I can see that both the orinoco and the hostap modules _are_ available in the kernel-modules package in the RC11 feeds so that seems to be an issue with RC12 only. Here is what I find in kernel-modules_2.4.18_armv5tel.ipk/data in the /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/net/wireless directory (I extracted that on my desktop):

Code: [Select]
-rw-r--r--  1 ag users   6888 2005-09-16 17:46 airo_cs.o
-rw-r--r--  1 ag users  54860 2005-09-16 17:46 airo.o
-rw-r--r--  1 ag users   7828 2005-09-16 17:46 hermes.o
-rw-r--r--  1 ag users   4852 2005-09-16 17:46 hostap_crypt_wep.o
-rw-r--r--  1 ag users  69268 2005-09-16 17:46 hostap_cs.o
-rw-r--r--  1 ag users 126856 2005-09-16 17:46 hostap.o
-rw-r--r--  1 ag users   8096 2005-09-16 17:46 orinoco_cs.o
-rw-r--r--  1 ag users  52184 2005-09-16 17:46 orinoco.o
-rw-r--r--  1 ag users  84964 2005-09-16 17:46 spectrum_cs.o

Unfortunately, these don't help much (wrong kernel version).

Oh well, do I have to go back to RC11 now? Please tell me that this isn't so.

Laze, would it be a big deal to build those modules and put them into an additional, say, wlan-modules package, or update the kernel-modules package in the RC12 feed? That would be much appreciated (I'm quite sure I can speak for all the c1000 users with wlan cards here).

Cheers,
Albert

agraef

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Hostap For Rc12 Anyone?
« Reply #7 on: October 20, 2005, 10:53:43 pm »
Quote
same as my case, i can never loaded hostap_cs
https://www.oesf.org/forums/index.php?showtopic=15345

Yes, I can confirm that this also affects RC11 for C1000. Apparently the releases for C7x0/C860 are unaffected. This seems to be related to bugid #302. I just filed a new bug report (#314) which details the missing modules and affected models.

magicbb

  • Newbie
  • *
  • Posts: 40
    • View Profile
    • http://
Hostap For Rc12 Anyone?
« Reply #8 on: October 23, 2005, 11:18:41 am »
Quote
Quote
same as my case, i can never loaded hostap_cs
https://www.oesf.org/forums/index.php?showtopic=15345

Yes, I can confirm that this also affects RC11 for C1000. Apparently the releases for C7x0/C860 are unaffected. This seems to be related to bugid #302. I just filed a new bug report (#314) which details the missing modules and affected models.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=100273\"][{POST_SNAPBACK}][/a][/div]

what do you mean? can i extract the driver from c7x0/c860 release and put it on rc11 for c1000
Zaurus C-1000, AmbiCom Wifi, Pdaxrom beta 3

agraef

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Hostap For Rc12 Anyone?
« Reply #9 on: October 23, 2005, 01:07:49 pm »
Quote
what do you mean? can i extract the driver from c7x0/c860 release and put it on rc11 for c1000
Well, the kernel-modules package in the C7x0/C860 feed seems to be for kernel 2.4.18, which won't work with the 2.4.20 kernel for the C1000/3100.

Question to those using RC11 with C7x0/860: What kernel do you have (uname -a)? Is it really 2.4.18 or 2.4.20?
« Last Edit: October 23, 2005, 01:22:19 pm by agraef »

kopsis

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • http://kopsisengineering.com
Hostap For Rc12 Anyone?
« Reply #10 on: October 23, 2005, 05:59:16 pm »
Quote
Question to those using RC11 with C7x0/860: What kernel do you have (uname -a)? Is it really 2.4.18 or 2.4.20?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=100636\"][{POST_SNAPBACK}][/a][/div]

Yes, it really is 2.4.18. In fact it's 2.4.18-rmk7-pxa3-embedix to be exact

agraef

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Hostap For Rc12 Anyone?
« Reply #11 on: October 23, 2005, 06:36:33 pm »
Quote
Yes, it really is 2.4.18. In fact it's 2.4.18-rmk7-pxa3-embedix to be exact
Ok, thanks for clarifying that. I was wondering because the kernel-modules package in the Akita RC11 feed also unpacks into /lib/modules/2.4.18-rmk7-pxa3-embedix, even though we're running 2.4.20... Probably an old package?

Oh well, so that still leaves us with the issue that there are no orinoco/hostap modules in the Akita /lib/modules directory, and we can't just copy the ones from a C7x0/860 because they're for the wrong kernel. If anyone has an idea what to do about that, please enlighten us poor Akita users.

Borealid

  • Newbie
  • *
  • Posts: 46
    • View Profile
Hostap For Rc12 Anyone?
« Reply #12 on: October 24, 2005, 05:27:18 am »
I've been trying (unsuccesfully) to find the SOURCES, or at least headers, for the RC12 kernel for quite a while.  I have absolutely no clue how to get them, so I can't even build my own modules...

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Hostap For Rc12 Anyone?
« Reply #13 on: October 24, 2005, 05:32:53 am »
the builder for rc12 is here
http://212.10.30.205/rc12/

instructions are available here:
http://212.10.30.205/index.php?mid=3

The builder contains the patches used and should download the sources for you.
SLC-860 cacko / senao wifi

agraef

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Hostap For Rc12 Anyone?
« Reply #14 on: October 24, 2005, 01:17:58 pm »
pgas, thanks for the pointers. I've downloaded the pdaXrom-builder tarball, but I need to get to a faster pipe to download the sources and the pdaX86 image.

Hmm, according to the docs I need that pdaX86 live image as the host system to use pdaXrom-builder. Is that true? I have a couple of Linux systems here (mostly SuSE 9.3), couldn't I use one of these as the build host instead?

Anyway, that looks like an awful lot of extra work just to compile a few kernel modules.
« Last Edit: October 24, 2005, 01:19:01 pm by agraef »