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

Title: Sandisk Connect Plus drivers
Post 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
Title: Sandisk Connect Plus drivers
Post by: n8a on March 03, 2004, 09:56:37 am
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
Title: Sandisk Connect Plus drivers
Post by: Anonymous on March 09, 2004, 05:23:51 am
Thanks for your answer n8a!

I guess it is hard to get the card working for other embedded linux tools as well then.
Title: Sandisk Connect Plus drivers
Post by: lardman on March 09, 2004, 05:46:36 am
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
Title: Sandisk Connect Plus drivers
Post by: Mickeyl on March 09, 2004, 08:46:15 am
The WiFi portion should work with hostap.
Title: Sandisk Connect Plus drivers
Post by: Loial on March 09, 2004, 03:35:04 pm
Hm, hostap, will try it
Title: Sandisk Connect Plus drivers
Post by: n8a on March 09, 2004, 03:49:11 pm
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...
Title: Sandisk Connect Plus drivers
Post by: klight on March 27, 2004, 08:49:56 am
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.
Title: Sandisk Connect Plus drivers
Post by: dhns on March 27, 2004, 10:14:38 am
Quote
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]
Title: Sandisk Connect Plus drivers
Post by: maslovsky on March 27, 2004, 06:20:38 pm
Quote
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...
Title: Sandisk Connect Plus drivers
Post by: klight on March 30, 2004, 10:06:49 am
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
Title: Sandisk Connect Plus drivers
Post by: dhns on March 31, 2004, 11:03:00 am
Quote
   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
Title: Sandisk Connect Plus drivers
Post by: dhns on April 01, 2004, 02:00:48 pm
Quote
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
Title: Sandisk Connect Plus drivers
Post by: klight on April 01, 2004, 03:59:41 pm
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)
Title: Sandisk Connect Plus drivers
Post by: dhns on April 02, 2004, 05:38:55 am
Quote
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
Title: Sandisk Connect Plus drivers
Post by: dhns on April 02, 2004, 04:00:25 pm
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
Title: Sandisk Connect Plus drivers
Post by: dhns on April 03, 2004, 08:47:50 am
Quote
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
Title: Sandisk Connect Plus drivers
Post by: dhns on April 03, 2004, 08:55:48 am
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
Title: Sandisk Connect Plus drivers
Post by: maslovsky on April 05, 2004, 04:40:30 am
Try hostap drivers from the downloads section of this site.
Title: Sandisk Connect Plus drivers
Post by: dhns on April 05, 2004, 03:57:58 pm
Quote
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:
Code: [Select]
# 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
Title: Sandisk Connect Plus drivers
Post by: maslovsky on April 06, 2004, 01:16:31 am
Quote
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?
Title: Sandisk Connect Plus drivers
Post by: dhns on April 06, 2004, 02:01:55 am
Quote
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
Title: Sandisk Connect Plus drivers
Post by: maslovsky on April 06, 2004, 05:54:39 am
Quote
Quote
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?
Title: Sandisk Connect Plus drivers
Post by: TJRCHKA on April 06, 2004, 10:30:27 pm
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?
Title: Sandisk Connect Plus drivers
Post by: dhns on April 07, 2004, 02:11:37 am
Quote
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