1
Zaurus - pdaXrom / Sandisk Connect Plus Wi-fi + 128mb
« on: August 15, 2005, 06:44:38 pm »Quote from: dvdrw,Jun 1 2005, 08:16 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.
[snip]
After following these excellent directions, I got the Sandisk Connect Plus card working, (yes it works, and it works well!) but I ran into a few glitches that required some changes from the instructions already posted. I actually reflashed my roms and reinstalled twice, so I can verify that the process works. (You'll need the prism and hostap files linked from the above post.) So, for the record, here's my synopsis of the steps with the changes included:
1. Copy hostap-0.3.7.tar.gz to / and tar -xzvf (this will replace the 3 existing modules in /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/net/wireless/).
2. Copy prism2_srec.tar.gz into /usr/sbin/ and untar (make sure /usr/sbin is in your PATH).
3. Add the following lines to the end of both /etc/pcmcia/hermes.conf and /etc/pcmcia/spectrum.conf (I'm not sure if BOTH are necessary).*
card "SanDisk ConnectPlus 128M"
version "SanDisk", "ConnectPlus"
manfid 0xd601,0x0101
# bind "ide_cs" to 1
bind "hostap_cs" to 0
3a. (You can ignore this step) It doesn't seem to be necessary to use the following at the top of the same 2 files in place of the existing silmilar lines, but it doesn't seem to hurt either:
device "hostap_cs"
class "network" module "hostap_crypt_wep", "hostap", "hostap_cs"
4. Reboot.
5. Get the prism firmware (primary.tar.gz, and 1.8.4.tar.gz) from http://www.red-bean.com/~proski/firmware/. Mkdir /etc/pcmcia/firmware/ and extract pm010102.hex from primary.tar.gz and rf010804.hex from 1.8.4.tar.gz into that directory.
6. Using the Wireless Settings tool (Lan and Wifi), create a second profile (in addition to 'default')called 'sandisk' with the appropriate settings (e.g. wireless, enter ESSID, operation mode = Master, channel = 0, crypting = hex, authorization = restricted, enter KEY) and save the settings.
7. Create a shell script in /usr/sbin/ called 'sanwifiup.sh' (for example), containing the following code:
#! /bin/sh
cardctl scheme deault
prism2_srec -gs wlan0 /etc/pcmcia/firmware/pm010102.hex
prism2_srec -gp wlan0 /etc/pcmcia/firmware/pm010102.hex
iwpriv wlan0 reset 1
prism2_srec -rp wlan0 /etc/pcmcia/firmware/rf010804.hex
iwconfig wlan0 mode 2
cardctl scheme sandisk
(I'm not sure why changing schemes is necessary, but it's the only way I could get it to work -- simply calling 'ifconfig wlan0 up' doesn't work.)
8. Eject the card, reinsert it, and using a terminal execute 'sanwifiup.sh' -- the lights should blink twice and then remain on. Ignore any errors unless it doesn't work.
FYI: if the Z goes to standby, the wifi quits. You have to run the connect script each time you want to connect.
* (To enable the flash memory (the wifi will not work at the same time), edit the /etc/pcmcia/*.conf files (see above) by changing the bind lines -- uncomment one line and comment the other -- as follows:
bind "ide_cs" to 1
# bind "hostap_cs" to 0