Pi Isochronous ROM
Chris Evans (457) 1614 posts |
LM98 Pi Model B RAM disc to NAS: ONLY about 60 times quicker than it used to be:-) |
Colin (478) 2433 posts |
I think the speed up of writes just requires a couple of changes to EtherUSB however there is still something wrong with reads. I fixed a bug in the driver for an ax88772 usb dongle relating to reads which made it work with my Pi but when I tried the EtherUSB changes on a beagle reads are still slow. I’ve a bad feeling that I’ll have to make changes to the USB driver to fix this. I’d like to know if anyone who is using USB ethernet not on a Pi is having problems with reading from a NAS or via ShareFS from an Iyonix. The reason I specify a NAS or Iyonix is to avoid the other machine having EtherUSB problems. Is anyone successfully using a USB Ethernet dongle to read from a NAS/Iyonix Presumably the PandaRO which is USB ethernet if I remember correctly works ok reading? If so Have you ever tried a separate Ethernet dongle. I’m trying to figure out if there’s a problem with the ax88772 driver or it’s more serious than that. |
Chris Johnson (125) 825 posts |
Just tried a few tests. File is a recent HD4 zip file about 11.3 MB. Timings are using Alarm set to display secs, so +/- 1 sec allowing for the vagaries introduced by NetTime 8) All machines are connected via the same 100 Mb/s switch and using ShareFS. Tests done are In all cases the transfer took 6 +/- 1 seconds, probably limited by my eyeballs and mouse finger, so we are looking at about 2 MB/s. Not sure if that is any help. All machines are running versions of RISC OS 5.21 dated in August, but not the same date. The ethernet hardware in all cases is ‘as supplied’, no separate dongles. |
Chris Johnson (125) 825 posts |
… and just for the record I have now done BB-PB and PB-BB and the timings for the 11.3MB file are both around the 6 second mark. |
Colin (478) 2433 posts |
Looks like there is no problem with the smsc95xx drivers which I think is used in all these machines except the Iyo. Thanks |
Raik (463) 2061 posts |
I can not try my AX-Dongle. It is not in the *ejproducts list. |
Colin (478) 2433 posts |
When you say the dongle works on a Beagle C4 can you transfer files ‘quickly’ ‘to’ the Beagle C4 using shareFS? |
Raik (463) 2061 posts |
No, I can’t ;-) AX88772 —> very very slow… abort by me after 15 Minutes (download from ROOL and send a Mail… no problem) |
Colin (478) 2433 posts |
Yes I find that using netsurf and lanman98 the ax88772 works ok but not reading with ShareFS. I think it may be a problem with flow control – I find ShareFS to be fast – it’s the fastest program for file transfer I’ve tried. I think fast replies are causing problems. |
George T. Greenfield (154) 748 posts |
Nothing to add on the pluggable adaptor issue, but I’ve been testing the PiISoch ROM on my (700Mhz) Pi using a 12xJPEG, 46,000k directory, copying it from its location on my 32GB Kingston class 10 USB stick to various locations and back again: USB card → SD card = 12 secs; This is a /massive/ improvement on the situation with the standard ROM, where network writes were so glacially slow as to be virtually useless. Many thanks Colin! I’ll do the same tests again with my Pi upclocked to 900MHz in due course. |
Colin (478) 2433 posts |
I note that my changes have now been added to the ROOL sources so the latest ROOL pi rom should have fast writes. I didn’t find a solution to the problem of the plugable adapter (or any ax88772 adapter) not working properly with sharefs – which uses udp so I think the problem is receiving udp packets in general – but I did find a work around. So for anyone who wants to know you need to set
on all machines using sharefs. I found an oddity which may be of interest. When using lanman98 I would get the hourglass appearing every so often. It turned out to be related to the connection to my laptop being wireless. If I plugged my laptop into the router I don’t see the hourglass appearing on my riscos machines. It must be caused by errors in the wireless transmission. |
Steve Pampling (1551) 8170 posts |
Inherent in wireless systems. They are contended media and CSMA comes to the fore. You want a simple connection – use wireless. |
George T. Greenfield (154) 748 posts |
Sadly, I’ve had to revert to the ‘slow’ 2412k Riscos.img; the Isochronous one doesn’t work with my Epson Perfection 1660 scanner, which I use regularly; the machine freezes and requires a Ctrl-Break or a physical switch-off to exit. I tried reducing the number of USB devices to 3 (mouse, keyboard and USB card) on my powered hub, without success. |
Colin (478) 2433 posts |
Could you try the latest pi rom from ROOL that should fix the slow network writes. Does the scanner work with that? |
Doug Webb (190) 1180 posts |
George/Colin I have tried my Espson 1660 with DPlngScan and Twain 0.02 with a Raspberry Pi ROM dated 31st Aug 14 plus same dated hard disc image and it works fine. Hope this helps Doug |
Colin (478) 2433 posts |
Did you try my Isochronous rom? I’m just wondering if you can repeat George’s problem |
Doug Webb (190) 1180 posts |
Colin Tried it with your Isochronous ROM and it does lock up and freeze the Pi. The first time I tried things using the preview option it gave this error: “Internal Error, no stck for trap handler. Divide by Zero, pc = FC19EC98 Registers at 000D3854.” The next time just caused the Pi to lock up. Reset and tried again and got a lock up straight away when using the scan option. Reverting to 31/8/14 ROM restores DPlngScan to working order. Doug |
Colin (478) 2433 posts |
Thanks for trying it. Hmmm…. |
Chris Evans (457) 1614 posts |
Colin: I’m confused by the Hmmm isn’t Doug’s findings good news? |
George T. Greenfield (154) 748 posts |
Well, Doug seems to have established that Colin’s ROM crashes the Epson 1660 scanner, so can’t be said to ‘work’ for anyone needing to use that particular device with their Pi (despite its considerable merits in other respects). Hence the Hmmmm? |
Colin (478) 2433 posts |
The problem is I can’t solve it from here and can’t keep asking people to try things out – they may not want to :-) One problem I do have is the changes I have made require more memory and this can cause failure because ‘PCI shared memory’ – see tasks window – isn’t big enough when I need memory allocated from an interrupt. If that is the problem then Increasing the ‘PCI shared memory’ in the tasks window before using the scanner should make it work. The Pi seems particularly prone to having little free space in PCI memory at startup. I thought the minor change to the bootfile in the readme file was a temporary work around but it isn’t always the case. Note the error quoted is in the sharedCLib so unfortunately doesn’t help. |
George T. Greenfield (154) 748 posts |
Just re-tried the PiIsoc ROM, set PCI shared memory to 25000k (initial size 380k on this system), launched DPingScan, acquired scanner and attempted to Preview, got same error message as Doug but with the registers at 000D247C. For the record I’m running 5.21, 25-Feb-14, Pi at standard clock settings e.g. 700MHz. |
Chris Evans (457) 1614 posts |
AIUI: George and Doug confirmed that the special Isochronous ROM build Colin did and put on the iconbar website had problems with scanners. |
Colin (478) 2433 posts |
ROOL have only incorporated the EtherUSB changes not the USB stack changes I have. |
Chris Evans (457) 1614 posts |
Ahh now I understand. I thought they’d sprinkled fairy dust on your code and made it work even better. |