Help needed: SanDisk Connect Plus with hostap_cs on Sharp Zaurus
Dr. H. Nikolaus Schaller
hns
Thu May 13 07:07:41 PDT 2004
Pavel,
we have now tried to compile and below are the result reported from
Anton.
Nikolaus
-----
I've tried SanDisk Plus CF with hostap 0.2.0 with patch from Pavel
Roskin applied. The drivers were compiled with
firmware download support (including non-volitile) - I was able to
flash my Ambicom CF card with the latest firmware
successfully.
The Sandisk card still fails to initialize. Here are some messages that
might be usefull:
Upon card insertion
#dmesg
hostap_cs: 0.2.0 - 2004-02-15 (Jouni Malinen <jkmaline at cc.hut.fi>)
hostap_crypt: registered algorithm 'WEP'
hostap_cs: setting Vcc=33 (constant)
hostap_cs: CS_EVENT_CARD_INSERTION
hostap_cs: setting Vcc=33 (from config)
Checking CFTABLE_ENTRY 0x01 (default 0x01)
IO window settings: cfg->io.nwin=1 dflt.io.nwin=1
io->flags = 0x0047, io.base=0x0000, len=128
hostap_cs: Registered netdevice wifi0
wifi0: Interrupt, but dev not OK
hostap_cs: index 0x01: Vcc 3.3, irq 39, io 0xf6000000-0xf600007f
hostap_cs: assuming no Primary image in flash - card initialization not
completed
wifi0: test Genesis mode with HCR 0x1f
prism2_pccard_cor_sreset: original COR 45
Setting I/O base to 0xf6000000
Activating wireless function
prism2_pccard_genesis_sreset: original COR 45
Setting HCR directly to 0x1f
Readback test failed, HCR 0x1f write 00 e1 a1 ff read 38 00 38 00
wifi0: test Genesis mode with HCR 0x0f
prism2_pccard_cor_sreset: original COR 45
Setting I/O base to 0xf6000000
Activating wireless function
prism2_pccard_genesis_sreset: original COR 45
Setting HCR directly to 0xf
Readback test failed, HCR 0x0f write 00 e1 a1 ff read 38 00 38 00
prism2_pccard_genesis_sreset: original COR 45
Setting HCR directly to 0x17
wifi0: registered netdevice wlan0
#iwpriv wlan0 reset 1
#dmesg
wlan0: manual reset request(1)
hostap_cs: wlan0: resetting card
prism2_pccard_cor_sreset: original COR 45
Setting I/O base to 0xf6000000
Activating wireless function
hostap_cs: assuming no Primary image in flash - card initialization not
completed
wifi0: test Genesis mode with HCR 0x1f
prism2_pccard_cor_sreset: original COR 45
Setting I/O base to 0xf6000000
Activating wireless function
prism2_pccard_genesis_sreset: original COR 45
Setting HCR directly to 0x1f
Readback test failed, HCR 0x1f write 00 e1 a1 ff read 38 00 38 00
wifi0: test Genesis mode with HCR 0x0f
prism2_pccard_cor_sreset: original COR 45
Setting I/O base to 0xf6000000
Activating wireless function
prism2_pccard_genesis_sreset: original COR 45
Setting HCR directly to 0xf
Readback test failed, HCR 0x0f write 00 e1 a1 ff read 38 00 38 00
prism2_pccard_genesis_sreset: original COR 45
Setting HCR directly to 0x17
# hostap_diag wlan0
Host AP driver diagnostics information for 'wlan0'
ioctl[PRISM2_IOCTL_HOSTAPD]: Inappropriate ioctl for device
Could not communicate with the kernel driver.
# hostap_fw_load wlan0
Downloading primary firmware /etc/pcmcia/firmware/pm010102.hex
srec summary for pm010102.hex
Included file name: PM010102.HEX
Component: 0x0015 1.1.2 (primary firmware)
Verifying update compatibility and combining data:
Plugging PDR 0400 (NIC configuration): ram16=1 pci=0 (03 00)
OK.
Downloading to volatile memory (RAM).
ioctl[PRISM2_IOCTL_DOWNLOAD]: Input/output error
Download failed!
# cardctl ident
Socket 0:
product info: "SanDisk", "ConnectPlus"
manfid: 0xd601, 0x0101
function: 6 (network)
# cardctl config
Socket 0:
Vcc 3.3V Vpp1 0.0V Vpp2 0.0V
interface type is "memory and I/O"
irq 39 [exclusive] [level]
function 0:
config base 0x03e0
option 0x45
io 0xf6000000-0xf600007f [16bit]
Any further help is appriciated.
Regards,
Anton
Am 15.04.2004 um 00:01 schrieb Pavel Roskin:
> Wed, 14 Apr 2004, Pavel Roskin wrote:
>
>> The initialization process is written in some pseudocode, but I think
>> it
>> can be easily integrated into hostap. Let me know if you are ready to
>> test the patch against hostap 0.2.0.
>
> The patch is attached. It not ready for applying and may need further
> work, but should be OK as a starting point. It can be applied to
> version
> 0.2.0 and the CVS version.
>
> Use "iwconfig wlan0 reset 1" to force COR reset. Use
> util/hostap_fw_load
> to load the firmware. The firmware can be downloaded from
> http://www.red-bean.com/~proski/firmware/ (I don't have 1.8.2
> firmware, so
> please adjust the script accordingly to use 1.8.0 firmware).
>
> It would be interesting to see the output of "cardctl ident" and
> "cardctl
> config". I'm not sure if the wireless part is function 0, which the
> driver assumes in several places.
>
> --
> Regards,
> Pavel Roskin<sandisk.diff>
+------------------+
! hns at computer.org !
! make !
! software !
+------------------+
More information about the Hostap
mailing list