Author Topic: Announce: USB Storage package for SL 5500/5000 is available  (Read 15782 times)

Anonymous

  • Guest
Announce: USB Storage package for SL 5500/5000 is available
« Reply #15 on: March 04, 2004, 01:32:22 am »
Is this supposed to work with linux boxes using usb-storage.  I can mount my camera using this module, but not the 5500.  It does work with my roomates xp box so I know the package works.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Announce: USB Storage package for SL 5500/5000 is available
« Reply #16 on: March 04, 2004, 04:20:52 am »
Hmm, works for me on Mandrake 9.2.

What does dmesg show after you plug it in?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Announce: USB Storage package for SL 5500/5000 is available
« Reply #17 on: March 04, 2004, 07:22:47 am »
Quote
Is there something like this for a C750?

Latest Cacko Qtopia ROM supports this on all 7x00 devices

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Announce: USB Storage package for SL 5500/5000 is available
« Reply #18 on: March 04, 2004, 07:23:52 am »
Quote
BTW, I really can\'t think of any point to install this package.  
https://www.oesf.org/do ... .1_arm.ipk  
Just look at the sudo control file \'/home/etc/sudoers\'  

zaurus ALL=(ALL) NOPASSWD: ALL  

is the same of giving user \'zaurus\' to superuser power, and by installing this package, you are at security risk.  

So, my point is, if you use your zaurus as PDA and you also needs to install this package.  
It is best to switch the default user to root that just like TKC rom, sharprom 2.x etc.  

What you need is edit this file \'/home/QtPalmtop/qpe.sh\', change this line \'export QPEUSER=zaurus\' to \'export QPEUSER=root\' and reboot.  
This is what my current zaurus 5500 running and so far, has not encounter any problem

I can only assume a default Sharp ROM. I cannot make every user to make the change that you suggest in order to use my package.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Announce: USB Storage package for SL 5500/5000 is available
« Reply #19 on: March 04, 2004, 07:35:29 am »
BTW is the directory structure on the 5600/Cxxx the same as on the 5500 (with 3.10 style ROM).

I\'ve created an OZ package and a 5600/Cxxx package by modifying Maslovsky\'s original but in the case of the 5600/Cxxx package I\'d like to know, specifically, whether the hidden tar files are available so that the original hotplug scripts can be replaced when/if the usb-storage package is uninstalled.

I\'d also like to roll the 5600 and (possibly OZ) installation functionality all into the same package to save some confusion and the multitude of packages which are floating about. I think this is generally a good idea so long as package sizes don\'t increase too much.

With regard to OZ, I need to take a look at the standard hotplug ipk and see whether I can create a drop-in replacement.

Anyway I\'m making progress.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Announce: USB Storage package for SL 5500/5000 is available
« Reply #20 on: March 04, 2004, 09:05:44 am »
Quote
BTW is the directory structure on the 5600/Cxxx the same as on the 5500 (with 3.10 style ROM).

Yes, the directory structure is the same on all Sharp ROMs.
Basicaly the only difference between 5500 and 5600 in regards of USB storage is the USB driver (sa1100_bi vs pxa_bi)

Anonymous

  • Guest
Announce: USB Storage package for SL 5500/5000 is available
« Reply #21 on: March 05, 2004, 01:03:15 am »
Quote
Hmm, works for me on Mandrake 9.2.

What does dmesg show after you plug it in?


Si

hub.c: USB new device connect on bus/1/2/2, assigned device number 5
usb.c: USB new device connect, assigned device number 5
usb.c: USB device 5 (vend/prod 0x4dd/0x8002) is not claimed by any active driver.
Then I /sbin/modprobe usb-storage
usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
scsi : 1 host.
usb-storage: device_reset() called
usb-storage: bus_reset() called
usb-storage: host_reset() called
usb-storage: device_reset() called
usb-storage: bus_reset() called
usb-storage: host_reset() called
WARNING: USB Mass Storage data integrity not assure
USB Mass Storage device found at 5
USB Mass Storage support registered.
When I try mount /dev/sda1 /mnt/pda i get
mount: the kernel does not recognize /dev/sda1 as a block device
(maybe `insmod driver\'?)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Announce: USB Storage package for SL 5500/5000 is available
« Reply #22 on: March 05, 2004, 04:52:48 am »
Try mounting /dev/sda - that\'s what I have to do.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Anonymous

  • Guest
Announce: USB Storage package for SL 5500/5000 is available
« Reply #23 on: March 05, 2004, 06:17:59 pm »
I can\'t get it to work with SuSE 9.0

hub.c: new USB device 00:11.3-2, assigned address 3
usb-uhci.c: interrupt, status 3, frame# 1924
scsi2 : SCSI emulation for USB Mass Storage devices
usb-uhci.c: interrupt, status 2, frame# 82
usb-storage: host_reset() requested but not implemented
scsi: device set offline - command error recover failed: host 2 channel 0 id 0 lun 0
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
usb.c: USB disconnect on device 00:11.3-2 address 3
hub.c: new USB device 00:11.3-1, assigned address 4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4

Any ideas?

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Announce: USB Storage package for SL 5500/5000 is available
« Reply #24 on: March 06, 2004, 08:29:17 am »
I\'ve been setting up a 5500 to give to a friend coz I\'m getting a 860 with this feature, I cannot get it to work on SuSE, it causes all manner of grief with SuSEplugger in fact to plug it in and get it detected is a long tiresome process, it takes almost five minutes but it is not mountable, dmesg as above.

Also when selecting CF as the device to be used as mass storage, the CF icon vanishes from Doc tab, tried ROM 3.10, tkcROM 1, and the latest tkcROM beta, gonna try ROM 3.10 now. Failing that, sod it, I\'ll go back to using a CF reader.
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Announce: USB Storage package for SL 5500/5000 is available
« Reply #25 on: March 06, 2004, 11:34:55 am »
It will vanish from the Doc tab as it has to be unmounted for the PC (via the storage driver) to access it directly.

Firstly what format are you using on the cards? Are you sure they are unmounted (can you umount /dev/hda1 or /dev/mmcda1 without errors).

I\'m not quite sure how to help you, but I can compare what you\'re getting with my tests and see whether I find anything.

Try posting the output of:

dmesg
usbview
/proc/bus/usb/devices
cat /proc/scsi/usb-storage-0/1 (you may/will have to change the numbers to fit with your setup, have a look round)

For my first ever successful plug in I got the following:

dmesg (well tail /var/log/messages actually)
---------------------------------------------------

Feb 25 21:56:28 PC kernel: hub.c: new USB device 00:1f.2-2, assigned address 4
Feb 25 21:56:28 PC kernel: usb.c: USB device 4 (vend/prod 0x4dd/0x8002) is not claimed by any active driver.
Feb 25 21:56:32 PC /etc/hotplug/usb.agent: Setup usb-storage for USB product 4dd/8002/0
Feb 25 21:56:32 PC kernel: Initializing USB Mass Storage driver...
Feb 25 21:56:32 PC kernel: usb.c: registered new driver usb-storage
Feb 25 21:56:32 PC kernel: usb-uhci.c: interrupt, status 3, frame# 954
Feb 25 21:56:33 PC kernel: usb_control/bulk_msg: timeout
Feb 25 21:56:33 PC kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Feb 25 21:56:33 PC kernel:   Vendor: Sharp     Model: SL-5500           Rev: 1.00
Feb 25 21:56:33 PC kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Feb 25 21:56:33 PC kernel: USB Mass Storage support registered.
Feb 25 21:56:33 PC /etc/hotplug/usb.agent: Module setup usb-storage for USB product 4dd/8002/0
Feb 25 21:56:33 PC /etc/hotplug/usb/usb-storage: Load scsimon
Feb 25 21:56:33 PC /etc/hotplug/usb/usb-storage: loading ... scsimon
Feb 25 21:56:33 PC /etc/hotplug/scsi.agent: loading ... sd_mod
Feb 25 21:56:34 PC /etc/hotplug/scsi.agent: sr_mod allready loaded
Feb 25 21:56:34 PC kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Feb 25 21:56:34 PC kernel: sda: Unit Not Ready, sense:
Feb 25 21:56:34 PC kernel: Current 00:00: sense key Not Ready
Feb 25 21:56:34 PC kernel: Additional sense indicates Medium not present
Feb 25 21:59:21 PC kernel: sda: Unit Not Ready, sense:
Feb 25 21:59:21 PC kernel: Current 00:00: sense key Not Ready
Feb 25 21:59:21 PC kernel: Additional sense indicates Medium not present
Feb 25 21:59:25 PC kernel: sda: Unit Not Ready, sense:
Feb 25 21:59:25 PC kernel: Current 00:00: sense key Not Ready
Feb 25 21:59:25 PC kernel: Additional sense indicates Medium not present
Feb 25 21:59:30 PC kernel: sda: Unit Not Ready, sense:
Feb 25 21:59:30 PC kernel: Current 00:00: sense key Not Ready
Feb 25 21:59:30 PC kernel: Additional sense indicates Medium not present
Feb 25 22:00:28 PC kernel: sda: Unit Not Ready, sense:
Feb 25 22:00:28 PC kernel: Current 00:00: sense key Not Ready
Feb 25 22:00:28 PC kernel: Additional sense indicates Medium not present
Feb 25 22:00:28 PC kernel: sda: Unit Not Ready, sense:
Feb 25 22:00:28 PC kernel: Current 00:00: sense key Not Ready
Feb 25 22:00:28 PC kernel: Additional sense indicates Medium not present

[Not sure about the \'additional sense\' messages - it certainly worked]

usbview
---------

<snip>
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=04dd ProdID=8002 Rev= 0.00
S:  Manufacturer=Sharp
S:  Product=SL-5500
S:  SerialNumber=A01234
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms



/proc/bus/usb/devices
-------------------------

SL-5500
Manufacturer: Sharp
Serial Number: A01234
Speed: 12Mb/s (full)
USB Version:  2.00
Device Class: 00(>ifc )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 8
Number of Configurations: 1
Vendor Id: 04dd
Product Id: 8002
Revision Number:  0.00

Config Number: 1
   Number of Interfaces: 1
   Attributes: c0
   MaxPower Needed:   2mA

   Interface Number: 0
      Name: usb-storage
      Alternate Number: 0
      Class: 08(stor.)
      Sub Class: 06
      Protocol: 50
      Number of Endpoints: 2

         Endpoint Address: 01
         Direction: out
         Attribute: 2
         Type: Bulk
         Max Packet Size: 64
         Interval: 0ms

         Endpoint Address: 82
         Direction: in
         Attribute: 2
         Type: Bulk
         Max Packet Size: 64
         Interval: 0ms


cat /proc/scsi/usb-storage-0/1
-----------------------------------

   Host scsi1: usb-storage
       Vendor: Sharp
      Product: SL-5500
Serial Number: A01234
     Protocol: Transparent SCSI
    Transport: Bulk
         GUID: 04dd80020000000000a01234
     Attached: Yes





Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Anonymous

  • Guest
Announce: USB Storage package for SL 5500/5000 is available
« Reply #26 on: March 07, 2004, 03:03:53 am »
Quote:
BTW, I really can\'t think of any point to install this package.
https://www.oesf.org/do ... .1_arm.ipk
Just look at the sudo control file \'/home/etc/sudoers\'

zaurus ALL=(ALL) NOPASSWD: ALL

is the same of giving user \'zaurus\' to superuser power, and by installing this package, you are at security risk.

So, my point is, if you use your zaurus as PDA and you also needs to install this package.
It is best to switch the default user to root that just like TKC rom, sharprom 2.x etc.

What you need is edit this file \'/home/QtPalmtop/qpe.sh\', change this line \'export QPEUSER=zaurus\' to \'export QPEUSER=root\' and reboot.
This is what my current zaurus 5500 running and so far, has not encounter any problem


I can only assume a default Sharp ROM. I cannot make every user to make the change that you suggest in order to use my package.

---------------------------------------------

Above post is just for highlighting to all that the sudo package did break the security, especially for security concern user whose use the zaurus as small web/database server. I discover it after this thread.  http://www.zaurususergroup.com/index.php?n...&t=1531&start=0

In fact, I should highlight it to that thread, but just happen to see this thread also using this sudo package, furthermore, this package will convert your zaurus to usb storage, so I highlight here to get more people aware of, and now is the user duty to ensure what security level that he/she want. If you want tighten security, after install the package, you got to findout what are the commands or related commands that using sudo in the script files, code these commands(override) into sudoers file, it should not gain user zaurus to access all files, all commands and all hosts.
 If you got no concern on security likes me, either just install sudo or switch the default user to root, and I comment best to be root as default user is after my experience to install net systemtime from OPIE, you can refer to this thread,
http://www.zaurususergroup.com/index.php?n...iewtopic&t=2274

All in all, this is a good package which provide addition function to your zaurus as USB storage device. we should give big thanks to maslovsky, nilch, lardman and rrusaw that make this happen.

John Bull

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Announce: USB Storage package for SL 5500/5000 is available
« Reply #27 on: March 07, 2004, 05:25:03 am »
I assume that sudo is required as you need to insmod and rmmod kernel drivers. Would it be possible to have \'run as root\' enabled for the Qtopia bit? Would this run the scripts as root and remove the need for sudo?

The problem with adding this to sudoers is that inserting kernel modules *is* a security problem, once you\'ve enabled this you may as well enable everything else (in my cloudy judgement ;-)). I suppose a way around it would be to have a daemon running and waiting for you to ask it to change. I\'m afraid that a) I don\'t really see the Z as being a high security machine anyway (my impression of having zaurus as the default user is to stop people from deleting important things by accident) and  I only run OZ - with root as the user - so I can\'t test, etc. so it won\'t be me making these alterations.

Sorry,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

rjd_z

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • http://
Announce: USB Storage package for SL 5500/5000 is available
« Reply #28 on: March 07, 2004, 09:21:01 am »
Thanks for the great application.   Works fine with my configuration, and the sudo package wasn\'t needed.
SL-5500; tKRom 1.0; Windows XP
Simpletech 128 SD; PNY 128 CF; Ambicom WL1100-CF

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Announce: USB Storage package for SL 5500/5000 is available
« Reply #29 on: March 07, 2004, 12:21:05 pm »
Re: The SuSE 9.0 problem

It appears to be a problem with SuSEplugger, the following is a workaround.  It must be disabled and prevented from autostarting, this means re-creating CD/DVD etc icons on the desktop manually after adding the following to /etc/fstab

/dev/sda             /media/zaurus        auto       rw,noauto,user,exec   0 0

and creating the following directory

/media/zaurus

Finally add an icon for the KDE desktop so you can mount/dismount nicely.

YMMV, this should work for anyone having connection probs with SuSE 9.0 and C-7X0 and 8x0 machines too.

Once working it works great.
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.