USB enclosure with IDE disc
Pages: 1 2
Frank de Bruijn (160) 228 posts |
After years of fun and frustration I finally retired my Iyonix PC when it violently rejected its third replacement PSU after one month of completely troublefree use. I have a Raspberry Pi and inspired by a thread in the RISC OS section of the Pi forum, I bought a USB enclosure for the Iyonix’s disc in the hope I would be able to use it with the Pi. Doesn’t work. My Linux box sees the device with no issues, but thinks the drive isn’t formatted of course. Anyone familiar with this thing: http://www.pclcomputers.nl/productinfo.asp?productid=39875 I know USB on RISC OS is not exactly a plug and play thing – I have another external hard drive which totally locks any RISC OS machine it’s plugged into. Yet I was hoping I might be lucky this time. Does anyone have any suggestion about what I could do to get close to what’s mentioned in this thread: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=55&t=30180 I’m not even thinking about actually running the Pi from the HD yet. Just having the HD show up on the Pi would be nice. Some additional info. When the Pi is booted with SCSI discs set to 1 and the USB HD switched on, it doesn’t get past the second green boot up screen (eternal hourglass). If the HD is switched on or plugged in when the Pi is already running, the hourglass shows up as well and all USB devices (well, keyboard and mouse at least) stop responding. This is irrespective of SCSI discs setting. Booting with SCSI discs 0 works, but nothing shows. The device does show up in the USBDevices listing (number 4): *usbdevices *usbdevinfo 4 Was this just another waste of time and money? Edit: had to replace the hash with ‘number’ in the usbdevinfo listing to prevent this ******* forum software from screwing up. |
Dave Higton (1515) 3534 posts |
I have no experience with the enclosure you have, but I ran my Raspberry Pi with a USB hard drive from day 1. No trouble at all. The one I have is a 2.5" portable USB drive that was on offer at Maplin at the time – I don’t remember the exact size but I think it was probably 250 GB. I’ve use it with the the original model B and the later revision model B (the one where they kindly moved the IIC pins). I always use the RPi with a 7 port powered hub. The drive has a Y cable in order to pick up power from two outlets. Do make sure that your hardware setup provides enough power to all items. Failure to do so seems to be a frequent problem. Resistance of cables and of internal RPi protection devices is a well known cause. I hope this at least gives you encouragement that it is possible. |
Frank de Bruijn (160) 228 posts |
Thanks Dave. Besides, I would really like to be able to get at one particular piece of data on the Iyonix disc. My last backup was done Saturday evening and I did some work on Sunday morning. Sunday afternoon the machine decided it didn’t like the new PSU after all (can’t understand why it took a whole month to make up its mind…). |
Trevor Johnson (329) 1645 posts |
Did you try using |
Chris Johnson (125) 825 posts |
I have two different IDE to USB enclosures, self powered, both I think from Maplin in the distant past. I have a pile of old IDE drives from previous and this Iyonix (ADFS format), of sizes of 80 – 120GB. I have often put them in to one of the enclosures to look for old files and never had any trouble on this Iyonix. RISC OS format drives over usb are rather slow of course. I have used one of these once on the BB and it was fine. On the BB and RPi, using modern usb-SATA enclosures and SSD drives is a bit more unpredictable. All mine have the double usb lead in to an external powered hub, but even then there are sometimes problems which I think are due to power or timing issues. The same drives when used on the Iyonix have never given any problem – an Iyonix is not all bad! |
Frank de Bruijn (160) 228 posts |
D’oh. Linux kernel has support for adfs discs. Getting stuff off the HD is a piece of cake. As this confirms that both the enclosure and the HD are fine, I would still like to be able to use it with the Pi. I have no expertise at all where USB is concerned. Is there any way to make RISC OS see this particular device anyway? |
Dave Higton (1515) 3534 posts |
My apologies for not looking thoroughly enough the first time. I see your problem. The enclosure needs to be seen as 8-6-80, but it is seen as 0-0-0. I can only hope that the class-subclass-protocol are seen at interface level as 8-6-80, but I can’t remember how to find out, apart from writing some code to get hold of the descriptor and then parsing it by eye. How does XAT’s !USBInfo app see it? |
Frank de Bruijn (160) 228 posts |
Device: 4 DeviceFS : USB11 USB spec : 2.00 Class : 0 (Defined at Interface level) Subclass : 0 Protocol : 0 MaxPacket : 64 Vendor : 14cd Product : 6600 Release : 2.01 Speed : Hi-speed (480 Mb/s) NumConfigs: 1 Config: 1 MaxPower : 2 mA Attributes: (Self-powered) Interfaces: 1 Interface: 0 Alternate: 0 Class : 8 Mass Storage Subclass : 6 SCSI Protocol : 80 Bulk (Zip) Endpoints : 2 Endpoint: 1 Direction : IN Transfer : Bulk MaxPacket : 512 Interval : - Endpoint: 2 Direction : OUT Transfer : Bulk MaxPacket : 512 Interval : - |
Colin (478) 2433 posts |
This looks like the same problem as Raik’s on another thread. I think you will find that *usbconfinfo |
Raik (463) 2061 posts |
“My problem” I have only with a newer ROM (after 28 May). If I use older ROMs (eg from 28.May or the original RC8) all things are fine. |
Frank de Bruijn (160) 228 posts |
Yup. *usbconfinfo 4 Current config : 1 number of interfaces : 1 Config value : 1 Name : '' Attributes : Bus powered Self powered Maximum power : 2mA Interface 0.0 class 8.6:80 '' 1 IN Bulk 512 bytes 0 frames 2 OUT Bulk 512 bytes 0 frames
This is with the March ROM from the Raspberry Pi site. |
Raik (463) 2061 posts |
I’m just confused ;-) I mean I use in my Lapdock the RC8 Image from March the surfstick cardreader worked perfectly. With a new ROM not. |
Colin (478) 2433 posts |
As am I. usbconfinfo shows that the USB layer can read the information from your device. The test program I sent shows that opening and closing the device doesn’t cause an error – which may have been a problem caused by a change to usbmodule on May 27. Also some 8.6:80 devices work. I’ve made up a debug version of scsisoftusb (scsisoftusbdebug/zip) which hopefully will tell us where it fails. It includes the DADebug module and SCSISoftUSB modules. To use it put it in a nonusb filing system – the ramdisc will do. Unplug your usb drives and run ‘setup’ in the archive. This loads DADebug and SCSISoftUSB. Now in a taskwindow type ‘*dadreset’ – this clears the debug data. Insert the problem disc and type ‘*dadprint’ this results in debugdata being printed in the taskwindow. If either of you would like to try it and make the debug data available. I may be able to trace the problem. If you have a drive that works it may be useful to see the debug info for that. (just *dadreset, insert the drive and *daprint) |
Bryan Hogan (339) 593 posts |
I can’t help with the USB enclosure issue, but one thing from your first mesaage:
I think the SCSI discs setting is for real SCSI hard discs connected via a SCSI podule, so it’s not surprising it hangs on a Pi! |
Raik (463) 2061 posts |
Well I’ve taken the Pandora and surf stick to job;-) Many thanks. |
Colin (478) 2433 posts |
That looks an easy one. If you reload scsisoftusbdebug/zip it should now work. SCSISoftUSB was swapping the Alternate and Interface values in the usb special field. Prior to fixes I made to special fields, in devicefs, values could be ignored. After that fix all values in the special field work so it exposed this bug in SCSISoftUSB. I would be interested if it fixed Frank’s drive too. |
Frank de Bruijn (160) 228 posts |
When something doesn’t work, you fiddle with settings. :) As I wrote in my first posting, plugging the drive in when the Pi was already running – which was my first attempt, with SCSI still at 0 – had the same effect. |
Raik (463) 2061 posts |
First short test on the Pandora works fine. Online with Surfstick and the storage card is working. RPi I can try at the evenning. Many thanks. @Frank |
Frank de Bruijn (160) 228 posts |
Was that second zip supposed to contain a different version of scsisoftusb? I got one that was identical to the first. There’s a zip at http://aconet.org/tmp/taskwindow.zip with three taskwindow outputs. Doing what is described in your zip’s !readme results in that behaviour: either a hang with hourglass (until the drive is unplugged again) or nothing at all. Edit: actually, I’m starting to wonder if this whole excercise is worth it. When I transferred the taskwindow output to my linux box over my local network, writing 400KB took 10 seconds. I knew outbound ether over usb was slow, but this is ridiculous. I need something I can run a (small) server on. That is so not going to be anything this slow! |
Colin (478) 2433 posts |
@Raik. Great I’ll submit the changes. @Frank. The file is the same I just updated scsisoftusb in it This isn’t the same problem as Raiks – obvious really as your alternative value and interface value are the same so swapping them won’t matter. Your drive is failing with a USB IOERROR. When I’ve encountered this it has been due to an overrun error. There’s an outside chance that changes to buffersize seen in the latest ROMs fix this. Failing that I may have a fix. In the usb modules I’m running I’ve fixed a problem I was having with overrun errors. Unfortunately I don’t know how to softload the USB modules for you to try them out as softloading causes the computer to hang. |
Raik (463) 2061 posts |
@Frank Edit: Forgot … I have also tested with the RPi Model A and my Lindy adapter. The upload is similarly slow. |
Raik (463) 2061 posts |
The new SCSISoftUSB module fixed also the detectproblem on the RPi. |
Colin (478) 2433 posts |
Thats a consequence of softloading SCSISoftUSB. USB modules don’t seem to take kindly to softloading. It won’t happen when the rom is changed. Do you have a drive plugged in when you softload SCSISoftUSB? |
Raik (463) 2061 posts |
Pandora and RPi only SDFS. xM = PIK = ARMini and PandaXL DVDROM, HD and Cardreader are plugged. |
Colin (478) 2433 posts |
It happens for me on an Iyonix if I softload scsisoftusb when I have a usbdrive plugged in. In fact you don’t need to softload scsisoftusb just rmkill scsisoftusb and shutdown. !closefiles shows that after rmkilling scsisoftusb the usbdrive devices are still open. When you shutdown DeviceFS tries to close them but they don’t exist. I note that the fix has made it to the sources so presumably it will appear in tomorrows roms. |
Pages: 1 2