OESF Portables Forum
General Forums => General Discussion => Topic started by: maslovsky on March 02, 2004, 08:49:36 am
-
After following a long thread about adding USB Storage support to SL-5500 devices and tracking down a few issues, I\'ve built a complete package, which adds such funcitonality.
The package is available at http://my-zaurus.narod.ru/usbstorage.html (http://my-zaurus.narod.ru/usbstorage.html)
It has been tested on Sharp 3.10 and 3.13. ROMs. It has not been tested with other ROMs and kernels, but it may work under compatible ROMs.
Also, do not install this package on SL-5600!
Thanks to nilch, lardman and rrusaw for working on this
-
Thanks to nilch, lardman and rrusaw for working on this
And thanks maslovsky
1 small prob...sudo link is dead?
Thanks all
Greg
-
Sudo can be downloaded here: http://www.zaurususergroup.com/modules.php...q=getit&lid=184 (http://www.zaurususergroup.com/modules.php?op=modload&name=UpDownload&file=index&req=getit&lid=184)
What\'s the problem with the 5600?
-
This also won\'t work on OZ (the scripts won\'t work, but the GUI app ought to, I don\'t know about the hotplug scripts). If I have time I\'ll do a mod this evening (but more likely it\'ll be at the weekend).
Anton, what\'s the problem with using this on the 5600?
Cheers for packaging it all up,
Si
-
Anton, what\'s the problem with using this on the 5600?
Ah I see you\'ve altered sa1100_bi too. Fair enough does this make it more stable for you? I\'m still running with my original sa1100_bi and don\'t have any issues (other than needing to suspend after insmoding). I\'d guess that as long as they remove any references to sa1100_bi they should be okay. I\'ll also have a look at this later on.
Si
-
What\'s the problem with the 5600?
The package includes 5500-specific USB module (sa1100_bi), which will not work on 5600. I don;t have a 5600 device to test, but sources are available on my site - so anyone willing to port this to 5600 are wellcome.
The modifications should be trivial - remove sa1100_bi module from disctro and update hotplug scripts and application to reference pxa_bi modules instead.
Ah I see you\'ve altered sa1100_bi too. Fair enough does this make it more stable for you?
Yes, I added the one line patch mentioned in the other thread. That;s the only way it works for me.
Simon, feel free to update the package to support OZ and/or 5600. I don\'t have enough time for that, sorry...
-
1 small prob...sudo link is dead?
Updated link to the sudo package
-
When I\'ve got some time (probably at the weekend) I\'ll do the update (and test) for OZ and I\'ll alter the package for the 5600. For those with a 5600 who can\'t wait, you should be okay to use the same storage_fd.o module and you also shouldn\'t need any changes to your pxa_bi module. You will have to alter the hotplug scripts (and the package if you want to use ipkg to install) by hand until I can modify it.
For some more info about testing on the 5600 (and some quick and dirty scripts to get it working) look at this thread: http://www.zaurususergroup.com/index.php?n...iewtopic&t=1996 (https://www.oesf.org/forums/index.php?showtopic=1996) (Make sure you read it all the way through as my initial scripts had a couple of typos).
Si
-
It seems there is a bug with it. I can\'t close the application when click on x just near the OK button?
-
It seems there is a bug with it. I can\'t close the application when click on x just near the OK button?
Could be. Just click OK instead
-
First off, let me just send out a big \"Thank you\" to maslovsky and the others for creating this and making it available. Secondly, I just wanted to let everyone know that I\'m running it on a 5500 w/ tkcROM 2.0 alpha 3 and I\'ve had no problems so far using it w/ my WinXP laptop. Haven\'t tried attaching it to my RH9 Linux box at home yet; when I do, I\'ll let y\'all know how it goes.
Thanks again, gang!
-
Just out of curiosity -- what does this do? (I installed it last night finding it on yuor site just by coincidence) but i don\'t really know what it does... any help?
-
Thanks maslovsky, you are the man, now then I know what is my craddle use for.
BTW, I really can\'t think of any point to install this package.
https://www.oesf.org/downl...udo_0.1_arm.ipk (http://www.elsix.org/downloads/apps/sudo_0.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.
Once again, thanks for the hardwork.
John Bull
-
Is there something like this for a C750?
-
I\'ll probably do a package for the 5600/C750/C760 all in one.
In fact I\'m just trying to work out how to make an ipk of it all......
Si
-
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.
-
Hmm, works for me on Mandrake 9.2.
What does dmesg show after you plug it in?
Si
-
Is there something like this for a C750?
Latest Cacko Qtopia ROM supports this on all 7x00 devices
-
BTW, I really can\'t think of any point to install this package.
https://www.oesf.org/do (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.
-
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
-
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)
-
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\'?)
-
Try mounting /dev/sda - that\'s what I have to do.
Si
-
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?
-
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.
-
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
-
Quote:
BTW, I really can\'t think of any point to install this package.
https://www.oesf.org/do (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 (https://www.oesf.org/forums/index.php?showtopic=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 (https://www.oesf.org/forums/index.php?showtopic=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
-
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
-
Thanks for the great application. Works fine with my configuration, and the sudo package wasn\'t needed.
-
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.
-
I would be interested to know if anyone has tried this as a USB drive to work with Mandrake Move.
-
What\'s Mandrake Move? I use it with Mandrake 9.2.
Si
-
Take a look here lardman (like the name, I get called that sometimes...)
http://www.mandrakelinux.com/en/mandrakemove (http://www.mandrakelinux.com/en/mandrakemove)
It\'s a distro that runs off a CD, you use it with a USB Mass Storage device to hold your data and config. Could be handy if it worked with our beloved Z\'s.
-
As Move is based on 9.2 I\'d guess (and that\'s all it is) that it will work.
Try it and see ;-)
Si
P.S. Lardman came from my habit (in the first year at uni) of eating nothing much but eggs and bacon (all I knew how to cook back then). Hasn\'t done me any harm either.... :-)
-
LOL!
;-)
-
oops, i wasn\'t logged in
-
Iv tried the USB Storage pakage under Opie but it dont work. The Z looks good to go, but is not recognised by my windows PC when docked. Is there anything stoopid Imdoing or am I flogging a dead horse?
C
-
I never actually tested the ipk for OZ. Which version are you running BTW?
I manually placed the storage_fd.o module in place, then I use the scripts (either earlier in this thread or the other one about mass-storage) to change from net to storage etc.
Si
-
(Sorry for reviving old topics)
Anyone tried this on a recent (3.5.3) OZ? Specially for those who use / on a SD?
-
It worked for me with 3.5.3 iirc.
If you have / on the sd card you won't be able to mount the sd card as usb-storage though, unless you are willing to lose / on the Zaurus (whatever's used as usb-storage must be umounted on the Zaurus so it's accessible for the computer you're plugging into to write to it directly).
Si
-
Hm. Lardman's package work on my setup. I had to open the package and install it manually because even with sharp-compat-libs installed and all the force-* magic, it always failed complaining about qpe-base.
I used my CF as a storage device.
-
It worked for me with 3.5.3 iirc.
If you have / on the sd card you won't be able to mount the sd card as usb-storage though, unless you are willing to lose / on the Zaurus (whatever's used as usb-storage must be umounted on the Zaurus so it's accessible for the computer you're plugging into to write to it directly).
Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109515\"][{POST_SNAPBACK}][/a][/div]
This might explain why I couldnt get it to work. I installed quite a few apps to the SD card I was trying to use as storage... If the SD couldnt be remounted cos its in use then I guess that would be why it didnt work for me.