Author Topic: Sandisk Connect Plus drivers  (Read 8324 times)

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sandisk Connect Plus drivers
« Reply #15 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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sandisk Connect Plus drivers
« Reply #16 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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sandisk Connect Plus drivers
« Reply #17 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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Sandisk Connect Plus drivers
« Reply #18 on: April 05, 2004, 04:40:30 am »
Try hostap drivers from the downloads section of this site.

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sandisk Connect Plus drivers
« Reply #19 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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Sandisk Connect Plus drivers
« Reply #20 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?

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sandisk Connect Plus drivers
« Reply #21 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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Sandisk Connect Plus drivers
« Reply #22 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?

TJRCHKA

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
Sandisk Connect Plus drivers
« Reply #23 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?

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Sandisk Connect Plus drivers
« Reply #24 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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com