OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Security and Networking => Topic started by: Anonymous on March 02, 2004, 05:33:13 am
-
Hi all\'
Does anyone know of some drivers for the Sandisk Connect Plus CF card? I don\'t really need the 128MB memory that is on the card but I do need the wi-fi functionality.
Regards,
Fredrik
-
I\'ve read on www.externe.net/zaurus/forum that the card is NOT supported and will not work with the zaurus at all for either memory or wifi:
http://externe.net/zaurus/forum/viewtopic....ghlight=sandisk (http://externe.net/zaurus/forum/viewtopic.php?t=588&highlight=sandisk)
There was also another thread (can\'t find quickly) where someone went to lengths and determined that it won\'t work either way at the moment due to whatever initializing must be done in order to get EITHER functionality working.
If you do switch to the regular SanDisk Connect wifi card (which I have), it is a GREAT low-power card and works out of the box with every ROM for the SL-5500.
Good luck-
Nate
-
Thanks for your answer n8a!
I guess it is hard to get the card working for other embedded linux tools as well then.
-
Ah, but if you read the thread he says that there\'s example code available from sandisk and that he\'ll send it to you if you\'re a code guru.
If you\'ve already got the card then you may as well ask for the code and see what it looks like.
Si
-
The WiFi portion should work with hostap.
-
Hm, hostap, will try it
-
I\'m not a code guru, but I should have included that mention for those of you that are!
I\'d love to hear if anyone could get this working for both the WiFi and the memory...
-
OZ 3.3.5 using hostap seems to have huge pauses when this card is inserted. dmesg compains about register timeouts and irq\'s not being assigned. If I can get a Sharp flash re-installed, I\'ll try that.
-
OZ 3.3.5 using hostap seems to have huge pauses when this card is inserted. dmesg compains about register timeouts and irq\'s not being assigned. If I can get a Sharp flash re-installed, I\'ll try that.
On a Sharp SL-5500G with ROM 3.10 inserting the card does simply nothing! It neither lights its LED nor does it appear as a CF memory card.
On a MacOS X machine (10.3.3), the PCCard Menu Item appears telling it is a Sandisk ConnectPlus card - but the memory is also not mounted. The only thing you can do there is to \"Power off\"...
So it appears that Sandisk has twisted something really.
But I remember some threads telling that they at least managed to make the WiFi portion recognized on the Zaurus.
Here is my collection of links on this topic:
http://externe.net/zaurus/forum/viewtopic....ghlight=sandisk (http://externe.net/zaurus/forum/viewtopic.php?t=588&highlight=sandisk)
http://zaurus.help4free.de/html/modules/ne...php?storyid=251 (http://zaurus.help4free.de/html/modules/news/article.php?storyid=251) (in German)
http://www.linuxquestions.org/questions/ar...004/01/1/131552 (http://www.linuxquestions.org/questions/archive/41/2004/01/1/131552)
http://www.mycable.de/wlan/835-4.C (http://www.mycable.de/wlan/835-4.C)
-- hns[/url]
-
On a Sharp SL-5500G with ROM 3.10 inserting the card does simply nothing! It neither lights its LED nor does it appear as a CF memory card.
Did you do the cardctl ident and then adding the entry into the config file? This should at least make this card recongnzed by the wifi drivers...
-
The latest Sharp ROM, using prism2_cs as hostap_cs isn\'t included, doesn\'t even see the card (according to dmesg).
This link seemed to hold some hope for OZ 3.2:
http://sourceforge.net/mailarchive/message...?msg_id=6845786 (http://sourceforge.net/mailarchive/message.php?msg_id=6845786)
But the same error messages as OZ 3.3.x are reported in dmesg, however the unit does not pause like OZ 3.3.5/6 when the card is inserted.
The good news is that the memory portion of the card can be made to work, as pointed out in the above link by inserting the following into /etc/pcmcia/config on OZ 3.2/3.3.x.
card \"SanDisk ConnectPlus 128M\"
manfid 0xd601, 0x0101
bind \"ide_cs\" to 1
before \"source ./*.conf\" at the end of the file. For OZ 3.3.x the bind item seems to be \"ide-cs\".
This may also work for Sharp ROMs.
HTH
-
card \"SanDisk ConnectPlus 128M\"
manfid 0xd601, 0x0101
bind \"ide_cs\" to 1
before \"source ./*.conf\" at the end of the file.
This may also work for Sharp ROMs.
It is even better to put this into a separate file sandiskconnectplus.conf. The mentioned line \"source ./*.conf\" will then include it.
And the good news: IT WORKS on a SL-5500G with ROM 3.10 (with ide_cs).
The WLAN part is still not working - but others have reported progress.
I will copy this to some HowTo page...
But let me add two questions:#
1. what does the \"bind to 1\" mean?
2. and what is the correct syntax to bind two drivers?
card
bind 1, 2
card
bind 1
bind 2
card
bind1
card
bind2
-- hns
-
2. and what is the correct syntax to bind two drivers?
card
bind 1, 2
card
bind 1
bind 2
card
bind1
card
bind2
The second syntax seems to be the right one - simply use two bind statements.
Additionally I suspect that it needs something like:
device \"prism2_cs\"
class \"wlan-ng\" module \"prism2_cs\"
But trying to really bind the \"prism2_cs\" driver crashes the SL5500 ROM 3.10 so heavily that a hard reset is required! So be sure to make a backup before experimenting...
And we know that it is a Prism3 which appears not to be backwards compatible.
-- hns
-
From the pcmcia(5) man page, it appears that
bind \"hostap_cs\" to 0, \"ide_cs\" to 1
is the correct format. (substitute your favorite drivers)
-
From the pcmcia(5) man page, it appears that
bind \"hostap_cs\" to 0, \"ide_cs\" to 1
is the correct format. (substitute your favorite drivers)
Many thanks! I will try what happens.
Just for curiosity: where did you find that on the pcmcia(5) page? I have googled some pages (updated 2001 or 1998) and they don\'t describe a to clause or multiple binds...
Once again it appears to be a drawback that the Zaurus has no official man pages... Just an idea: the ZUG could start an archive/WiKi separating ROM versions where man pages can be contributed/adapted.
-- hns
-
Folks,
here my findings:
* Sharp ROM 3.10 does not come with hostap_cs
* so I have managed to unpack hostap-modules-2.4.18-rmk3_hh20f_arm.ipk (* REMARK ON *) which is strangely an ar (not tar) archive that can not be decoded directly on the Zaurus and neither on MacOS X - I guess there are now approx. 5 different package formats around all with the same suffix .ipk (* REMARK OFF *)
* I have copied the hostap.o, hostap_cs.o files etc. to /home/root/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/
* I have changed the sandisk.conf file (mentioned above) to load \"hostap_cs\" instead of \"prism2_cs\"
and the strange result:
* the memory part of the CF is again recognized (although no \"ide_cs\" is specified!)
* but only if I specify bind \"hostap_cs\" to 1
* hostap is *not* loaded (not shown by lsmod) and the WLAN part remains dead...
Still strange...
-- hns
-
and the strange result:
* the memory part of the CF is again recognized (although no \"ide_cs\" is specified!)
* but only if I specify bind \"hostap_cs\" to 1
That was too early (or late in the night)...
* the memory part is only recognized if bind \"ide_cs\" to 1 is specified
* strangely, the Sharp ROM 3.10 does not provice an ide_cs.o module...
* the CF card (but not the memory part) is recognized if \"hostap_cs\" is bound to any number - so you can \'Eject\'
I have also reverse-engineered the cardmgr source code (the YACC syntax). It does not matter to write bind \"x\", \"y\" or bind \"x\" bind \"y\". And the \"to\" number is passed as a \'function\' parameter to the bind record of ioctl(DS_BIND_REQUEST). But it seems not to be related to the function printed by \'cardctl status\' or \'cardctl ident\'.
-- hns
-
Just got a new idea. I tries to load the hostap_cs manually:
# insmod hostap_cs
Using /lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/hostap_cs.o
/lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/hostap_cs.o: kernel-module version mismatch
/lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/hostap_cs.o was compiled for kernel version 2.4.18-rmk3
while this kernel is version 2.4.18-rmk7-pxa3-embedix.
This might explain why no module is loaded although hot-plugging of the card is recognized.
So, we need some kernel guru who can compile hostap for the Sharp ROM kernel 2.4.18-rmk7-pxa3-embedix.
-- hns
-
Try hostap drivers from the downloads section of this site.
-
Try hostap drivers from the downloads section of this site.
Many thanks!!! That was a great step forward. Now, the WLAN part is recognized (although not yet working).
Here the results:
# cardctl ident
Socket 0:
product info: "SanDisk", "ConnectPlus"
manfid: 0xd601, 0x0101
function: 6 (network)
Socket 1:
no product info available
# cardctl status
Socket 0:
3.3V 16-bit PC Card
function 0: [ready]
function 1: [ready], [bat dead], [bat low]
Socket 1:
no card
# lsmod
Module Size Used by
hostap_crypt_wep 3120 0 (unused)
hostap_cs 40704 0 (unused)
hostap 82464 0 [hostap_crypt_wep hostap_cs]
sa1100_bi 23088 0 (unused)
net_fd 16688 1
usbdcore 22592 0 [sa1100_bi net_fd]
usbdmonitor 5488 0
sharp_mmcsd_m 27408 2
devinfo 2912 0 (unused)
# iwconfig
lo no wireless extensions.
irda0 no wireless extensions.
usbd0 no wireless extensions.
Warning: Driver for device wlan0 has been compiled with version 12
of Wireless Extension, while this program is using version 13.
Some things may be broken...
Warning: Driver for device wlan0 recommend version 13 of Wireless Extension,
but has been compiled with version 12, therefore some driver features
may not be available...
wlan0 IEEE 802.11-DS Mode:Master
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
#
But now, the memory part is no longer recognized. So, currently you can use the card as memory or as a dead WLAN card :-)
So the next step is to get BOTH parts being recognized. On low priority, the iwconfig warning should be made disappearing :-)
-- hns
SL-5500G ROM 3.10 SanDisk Connect, SanDisk ConnectPlus, PowerBook G4/400/40
-
Now, the WLAN part is recognized (although not yet working).
From what I can see it IS working. Did you try to create a connection using network setup?
-
From what I can see it IS working. Did you try to create a connection using network setup?
Yes, but the LED stays off. And dmesg indicates some IRQ problems.
-- hns
-
From what I can see it IS working. Did you try to create a connection using network setup?
Yes, but the LED stays off. And dmesg indicates some IRQ problems.
-- hns
What entry do you have in config file?
-
So any idea if SanDisk will be coming out with any drivers, or anyone have a generic driver of sort? I just got the card cause I thought it work, at least the memory part?
-
So any idea if SanDisk will be coming out with any drivers, or anyone have a generic driver of sort? I just got the card cause I thought it work, at least the memory part?
SanDisk seems not to provide drivers. For the memory part, please look at the beginning of this thread (contribution by \'klight\') or in the HowTos. In the latter, I have described a short config file that enables the memory part.
-- hns