Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dvdrw

Pages: [1] 2 3
1
Sharp ROMs / Help! Sandisk Wi-fi + 128mb Card Not Working
« on: September 08, 2005, 01:14:31 am »
Quote
Anyone have any ideas where to go from here?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
it is strange that your hostap driver is receiving a card suspend during initialization.  I've posted one possibility perhaps to explore in this thread:

[a href=\"https://www.oesf.org/forums/index.php?showtopic=12567&st=15&p=94951&#entry94951]https://www.oesf.org/forums/index.php?showt...951&#entry94951[/url]

hope this is somewhat helpful!

2
Zaurus - pdaXrom / Sandisk Connect Plus Wi-fi + 128mb
« on: September 08, 2005, 01:09:35 am »
Quote
I was wondering how you built the drivers (ie. did you specify PCMCIA_PATH or anything like that) and are you aware of any options that need to be enabled in the kernel? I checked the default kernel config provided by Sharp and from what I can tell all the required things are enabled in the standard kernel - I could be wrong though. Any help greatly appreciated.
no changes are needed to the default pdaXrom kernel config to get the card to work; of course pdaXrom includes a relatively old version of hostap by default so that helps ensure the default kernel config patch will be correct.  perhaps try comparing the two kernel configs between the ROMs (Sharp and pdaXrom) to verify that nothing is missing/different from the Sharp config?

Quote
I posted some info in another thread but no one has responded.
there is definitely something amiss with your Sharp ROM configuration/operation - during the card init sequence, hostap is receiving suspend and reset events (!??):

Code: [Select]
...
wifi0: registered netdevice wlan0
wlan0: could not set interface UP - no PRI f/w
hostap_cs: CS_EVENT_PM_SUSPEND
hostap_cs: CS_EVENT_RESET_PHYSICAL
wifi0: hfa384x_cmd: entry still in list? (entry=c39dfda0, type=0, res=0)
wifi0: hfa384x_cmd: command was not completed (res=0, entry=c39dfda0, type=0, cmd=0x0002, param0=0x0000, EVSTAT=0000 INTEN=0010)
hostap_cs: Shutdown failed
pxa_pcmcia_suspend(0)
...
the subsequent card init code fails likely because the state of the driver is really confused (result of the pcmcia_suspend that is coming from somewhere).

one possibility, does the default Sharp ROM support hotplug events handling (i.e., /etc/hotplug/net.agent)?  if it does, then perhaps a case needs to be added to this script for handling wifi0 and wlan0 device registration?  perhaps the default is to try to suspend pcmcia if an unhandled registration event occurs?  (this just a guess, but might be worth exploring.)

here's an excerpt from my (successul) card init:

Code: [Select]
...
kernel: Readback test succeeded, HCR 0x0f
kernel: wifi0: registered netdevice wlan0
kernel: prism2_download: dl_cmd=4 start_addr=0x003f0000 num_areas=3
kernel: wifi0: test Genesis mode with HCR 0x0f
kernel: prism2_pccard_cor_sreset: original COR 4f
kernel: Readback test succeeded, HCR 0x0f
kernel: prism2_hw_init: initialized in 70 ms
kernel: wifi0: NIC: id=0x8000 v0.0.1
kernel: wifi0: PRI: id=0x15 v1.1.2
kernel: Could not get RID for component STA
kernel: wifi0: Failed to read STA f/w version - only Primary f/w present
cardmgr[130]: executing: './network start wlan0 2>&1'
cardmgr[130]: + srec summary for pm010102.hex
cardmgr[130]: + Included file name: PM010102.HEX
...
note also that this card works under OZ, so it might be worth poking around those forums or checking that ROM config out as well for some hints.

hope this is somewhat helpful in tracking down the problem!

3
Zaurus - pdaXrom / Sandisk Connect Plus Wi-fi + 128mb
« on: June 01, 2005, 11:16:41 am »
here's a really quick overview of how to get this card working under pdaXrom RC9/10.

I've attached the 0.3.7 hostap driver and prism2_srec util from the hostap utilities set to this post.  make backups of anything you change/replace so that you can recover if anything goes wrong, etc. etc. etc.

the hostap modules and srec util were built against the latest pdaXrom-builder package and kernel source that is on the pdaxrom website.  I used the stable hostap source straight from http://hostap.epitest.fi/ (no patches necessary), and the standard zaurus/embedix kernel toolchain for building.

hostap-0.3.7-arm-zaurus.tar.gz contains the three hostap kernel modules; prism2_srec-arm-zaurus.tar.gz contains the prism2_srec utility.

to install the modules, untar the three modules from the hostap-0.3.7 tar into /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/net/wireless/.  (this action will replace the existing older default pdaXrom version - so again, make backups...)

now untar the prism2_srec tar, and place the extracted binary somewhere in your PATH (e.g., /usr/sbin).

now you'll need to create a hostap.conf file for the PCMCIA cardmgr.  edit /etc/pcmcia/hostap.conf (create it if one doesn't exist), and add the following:

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

card "SanDisk ConnectPlus 128M"
  version "SanDisk", "ConnectPlus"
  manfid 0xd601,0x0101
#  bind "ide_cs" to 1
  bind "hostap_cs" to 0
after you create the file, force cardmgr to reload the config file:

Code: [Select]
kill -HUP `cat /var/run/cardmgr.pid`or you can just reboot.

pull out the card, wait a moment, then plug the card back in.

you should now be able to download the firmware to the card.  (you may want to check the logs via dmesg or tail /var/log/messages to ensure that the card was properly detected.)

grab the desired prism firmware from http://www.red-bean.com/~proski/firmware/ and copy it over to the zaurus.  for example, if you want to use the latest firmware, extract pm010102.hex from primary.tar.gz, and rf010803.hex from 1.8.3.tar.gz.  place these files somewhere for the next operation (e.g., /usr/local/etc/firmware/).

to download the firmware to the card RAM, perform these steps:

Code: [Select]
prism2_srec -gs wlan0 /usr/local/etc/firmware/pm010102.hex
prism2_srec -gp wlan0 /usr/local/etc/firmware/pm010102.hex   (this load will give an error, ignore it)
iwpriv wlan0 reset 1
prism2_srec -rp wlan0 /usr/local/etc/firmware/rf010803.hex
iwconfig wlan0 mode 2
you should see messages about plugging PDRs, etc., and at the end it should say something to the effect of

Code: [Select]
NIC: id=0x801d v1.0.0
 PRI: id=0x15 v1.1.2
 STA: id=0x1f v1.8.3
at this point your card should be functional, and you can try to bring the interface up:

Code: [Select]
ifconfig wlan0 upif you have configured wi-fi properly with the normal pdaXrom network.py config tool, then the card should light up and associate with the network.

if you want the card to automatically download the firmware when powered up, make a script out of the firmware download sequence above, and call it from /etc/pcmcia/network or /etc/pcmcia/wireless or wherever works best for you.  note also that you'll likely need to modify /usr/bin/apm to call the script as well (e.g., perhaps in post_suspend() in RC10).

to enable the flash part, edit your /etc/pcmcia/hostap.conf file (see above) and change the bind lines for the card:

Code: [Select]
 bind "ide_cs" to 1
#  bind "hostap_cs" to 0
after you do this, force cardmgr to reload the hostap config file (see the example "kill -HUP" line above), and pull the card, wait a moment, and plug in the card again (you could also do this programmatically/via script of course).  you can then access it and format it, use it, etc.  when it is formatted it will auto-mount as a normal flash CF card (/mnt/cf).

note that there are some other very helpful resources available regarding this card - e.g., see http://www.bentzon.net/acb/sandisk.html and the related forum posts at http://www.dsitri.de/phpBB2/viewforum.php?f=21 .

hope this is somewhat useful/helpful!

4
Zaurus - pdaXrom / Sandisk Connect Plus Wi-fi + 128mb
« on: May 31, 2005, 07:00:16 pm »
Quote
I just ordered this card at my nearest computer store. It should be arriving any day now. But I haven't bought it yet and I have no obligation to buy. Please advise whether I should buy it or not. I'm using RC10 if that helps. Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82299\"][{POST_SNAPBACK}][/a][/div]
if you simply want wi-fi to work out of the box w/pdaXrom, you may want to consider getting a different CF wi-fi card.  with this card you'll have to piece a few things together to get it working.  it's not difficult, but given that the flash doesn't work in parallel with wi-fi, I'm not sure it's worth the effort when there are other cards that work out of the box.  (ideally if both could work in parallel, then it would be fantastic, but that is not the case today.)

5
Zaurus - pdaXrom / Sandisk Connect Plus Wi-fi + 128mb
« on: May 31, 2005, 06:55:00 pm »
Quote
So it is possible to use the wifi of this card under pdaxrom??  Does it act as a flash card in a memory card reader?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82103\"][{POST_SNAPBACK}][/a][/div]
wifi does work fine, but it requires some work/hacking (see elsewhere in this thread)

the flash works fine in the device as well when enabled separately (wi-fi disabled).  XP also recognizes the flash portion fine in a PCMCIA CF card reader, I haven't tried a USB card reader with it

6
Zaurus - pdaXrom / Sandisk Connect Plus Wi-fi + 128mb
« on: May 31, 2005, 06:51:32 pm »
Quote
You seem so knowledgeable...could you develop some drivers for the Sharp 3.13 ROM for this card?  Or is there someone out there who could?  Please, pretty please.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82258\"][{POST_SNAPBACK}][/a][/div]
unfortunately I actually have no idea re: the Sharp 3.13 ROM, I've never used it...  I replaced the default ROM in my 750s with the old cacko ROMs right after I got the devices way back, and have only played with pdaXrom since cacko.  but perhaps someone else here has an idea if the Sharp ROM would support this?

7
Zaurus - pdaXrom / Sandisk Connect Plus Wi-fi + 128mb
« on: May 31, 2005, 06:45:18 pm »
Quote
could you please post the required driver and firmware, then i can make a package out them for everyone!
sure, I'll post the hostap drivers and utils along with an example bring-up script as soon as I get some free time.

there are some caveats w/wifi - as the card doesn't contain firmware, you need to load the firmware into the card's RAM immediately following any card power on event, prior to any network configuration or ifconfig.  this is fairly straightforward (e.g., use scripts in /etc/pcmcia/, such as wireless or network, or /etc/hotplug/net.agent), but you'll likely want to add a check for specific card type so that you don't go trying to download the prism f/w to some other type of network card...

8
Zaurus - pdaXrom / Sandisk Connect Plus Wi-fi + 128mb
« on: May 25, 2005, 11:03:52 am »
played with this some late last night.  I now have the Connect Plus working in pdaXrom at the same level as on OZ 3.5.3 - you can run wifi or IDE, but not both at the same time.  it looks like some arbitration is needed in the drivers when running both in parallel.  will continue to dig if/when time permits - it would be great to enable the flash at the same time.

FWIW, I built the 0.3.7 hostap drivers and utils against the latest pdaXrom kernel.  I bring up wifi in /etc/hotplug/net.agent (added a new case for wlan0) by downloading the primary and secondary firmware to the card via the prism2_srec util.  it seems that these cards need rev "M" Prism firmware, for which there appears to be no flash-based version available...so I'm using the Prism 1.8.3 f/w for now.

9
Zaurus - pdaXrom / Sandisk Connect Plus Wi-fi + 128mb
« on: May 23, 2005, 06:45:36 pm »
Quote
Bet you got those Sandisk Connect Plus cards on Woot like I did,  right?? ;-)

It looks like only the Open Zaurus ROM supports this card at the moment...correct me if I'm wrong.[div align=\"right\"][a href=\"index.php?act=findpost&pid=81109\"][{POST_SNAPBACK}][/a][/div]
yes, I got them from Woot    should be receiving them this week !

I do have the very latest hostap 0.3.7 drivers (including Connect Plus support) working under pdaXrom now with some older Prism-based CF wi-fi cards I have.  I'm crossing my fingers I'll be able to get the IDE interface working with wi-fi using these drivers - hope there aren't some caveats with the kernel.  I'll let you know if I have any luck getting them working completely..!

10
Zaurus - pdaXrom / Sandisk Connect Plus Wi-fi + 128mb
« on: May 13, 2005, 01:42:25 pm »
appreciate the pointer - this is helpful in providing some context.  those drivers are 0.2.4, and apparently this card requires 0.3.2 or greater, so those most likely won't work.

laze, it would be great if the next RC of pdaXrom could include newer hostap drivers (hint, hint   )

I ran across this page which may be helpful: http://www.dsitri.de/phpBB2/viewtopic.php?t=148, and http://www.bentzon.net/acb/sandisk.html contains some instructions and pointers to 0.3.7 hostap drivers for OZ, looks like I'll have to start from there for pdaXrom.

thanks again for the pointer!

11
Zaurus - pdaXrom / Sandisk Connect Plus Wi-fi + 128mb
« on: May 13, 2005, 11:51:36 am »
I just bought a couple of sandisk connect plus wifi+128MB flash cards ($20US, good deal!).  do these work with the latest RC of pdaXrom?

I did some searching, and it seems that some of the other Z ROMs support the card (through hostap).  does the latest RC include the latest hostap drivers or do I have to build a newer version?  or is there something available for download?

any insight is greatly appreciated!!

12
Zaurus - pdaXrom / Zaurus Ui Freezes If Suspended Too Long
« on: March 22, 2005, 11:27:22 pm »
Quote
Thanks for this hack! I've been using it for a while & have had zero lock ups. I was having  several per week.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=71790\"][{POST_SNAPBACK}][/a][/div]

very cool!  I haven't had any lockups as well since I've been using it.  it'd be interesting to find out if anyone else has had any luck with this hack...!

13
Zaurus - pdaXrom / Zaurus Ui Freezes If Suspended Too Long
« on: March 10, 2005, 12:33:04 pm »
for some time, I've been using a test hacked version of /usr/bin/apm to see if this eliminates the problem, and it's been working well:

   
Code: [Select]
#!/bin/sh
#
# X11 ROM apm wrapper
# http://www.pdaXrom.org
#

APM=/usr/bin/apm.x

if [ "$1" = "--suspend" -o "$1" = "-s" -o "$1" = "--su" ]; then
    cardctl eject 2>/dev/null

    sleep 1
    /etc/rc.d/init.d/pcmcia stop
    sleep 1

    $APM --suspend

    sleep 1
    /etc/rc.d/init.d/pcmcia start
else
    $APM $@
fi

note that this test hacked version always does a cardctl eject and PCMCIA stop/start (I removed the check for card present in case that didn't always work).  this seems to fix the problem for me (C750 w/CF wi-fi card and SD flash).  however if the problem occurs without a CF card installed, then it could very well be SD automount/dismount, or something else.  if I get some time, I'll put back the original apm script and look at the SD stuff.

14
Zaurus - pdaXrom / Zaurus Ui Freezes If Suspended Too Long
« on: February 23, 2005, 07:02:20 pm »
Quote
dvdrw : i always have a cf card in the slot, and a sd card, too.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=68260\"][{POST_SNAPBACK}][/a][/div]

I modified the apm script to stop PCMCIA services (cardmgr) after eject and before the $APM --suspend, and to restart PCMCIA services on resume (sprinkled some "sleep 1"s throughout as well).  seems to help (no more hangs for me) but this could just be luck/timing.  browsing all the OESF forums for "resume" shows that there seems to be some core kernel/driver issue that might be beyond our control.  e.g., it could be some issue with SD resume as opposed to CF resume, or perhaps none of these at all if it is X (or the WM?) that is crashing.  haven't had any time to explore any of this deeper...

if it is just X crashing, another idea might be to have the apm script grep `ps` output to determine if X has crashed on resume, and if it has, kill anything remaining and to auto-restart X.  I haven't spent the time trying to repro the resume crash to try this but next time it happens I'll hopefully have time to look into this.

15
Zaurus - pdaXrom / Zaurus Ui Freezes If Suspended Too Long
« on: February 22, 2005, 10:46:14 am »
Quote
Ho, by the way, i have no wifi card...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=68144\"][{POST_SNAPBACK}][/a][/div]

do you have any type of CF card inserted in the CF slot?  or no CF card is inserted at all when the resume lockup occurs?

Pages: [1] 2 3