ARMX6 and USB issues
Matthew Thompson (1448) 13 posts |
I am experiencing a problem with my ARMX6 and USB, and was hoping somebody on here might of experienced this problem and has a solution to it. I have reported the problem to RComp and they are looking at it as well. The problem is that on boot up the machine does not detect any USB devices, the machine boots up correctly and the desktop appears and the computer is active and working but USB just does not work. When I first got the machine it was fine, and it still is when I run RISC OS 5.23 (18-08-17) but if I update to any later versions then then the USB problem appears, if I stay on the version of the OS that came with the machine (5.23. 18-08-17) then the machine works 100% and never fails on start up. If I try a new version of the OS and USB fails, then the only solution is to switch it off, start again, and hope it will work, sometimes it will, other times it takes a lot of restarts before it works. It is all very confusing, and can’t really work out what the problem is, if the hardware was faulty it should surely fail every time, but if OS 5.23 (18-08-17) is running it never fails, only if I use later versions of the OS. To me it would suggest something in the code has changed after the release that worked perfectly, other than that I can’t think of anything that is causing this, i’ve tried the machine running with no USB hubs connected at all or any other devices and USB still fails to work. Does anyone know what is causing this and is there a solution to this as? it is very annoying and do not expect this in a new machine, and as it stands I cannot update the OS to any future updates (including the new big release) as USB will fail and not work. Matthew |
Colin (478) 2433 posts |
That looks to be around the time of the usb bounty where the USBDriver initialisation was changed so that it wasn’t initialised twice. Prior to that there was a cut down version in HAL to detect key presses during boot then the full driver was initialised later. |
Colin (478) 2433 posts |
Does putting It should kick dead Armx6 USB back to life. |
Matthew Thompson (1448) 13 posts |
Thanks for your replies to my postings. It was my thoughts too that it is something to do with the USBdriver changes in later releases of the OS, certainly all points to it. I will add that program into !boot and see if it works, need to update OS and leave machine off for a while before switching back on. Thanks again |
Matthew Thompson (1448) 13 posts |
Unfortunately running that program in !boot made no difference at all, USB was still frozen on boot up. So i deleted it, reverted back the OS version from last year and it started up first time, there is definitely something in the code for the release after 18-08-17 which is causing this, but how can it be fixed? as it stands iv’e got a brand new machine but have to use old versions of the OS, be interesting to see if it works on my Iyonix , not tried it yet. |
Colin (478) 2433 posts |
You are probably right but is anyone else having problems? It implies that there is something different about your machine. Have you tried just plugging a mouse directly into the motherboard – unplugging the hub – and seeing if that starts up more reliably? I can’t see that anything has changed regarding device detection so it maybe the timing of the initialisation after switch on that is the problem.
You could try adding
as the first line of the program. |
Steve Pampling (1551) 7932 posts |
From comments in another thread R-Comp are actively testing/amending the build so that a stable RO5.24 can be released for the iMX6 hardware. Meantime, do bear in mind that the odd number releases are beta test and that if people have problems then the advice would always be to use the known stable build – which for iMX6 is the 5.22 release. |
Matthew Thompson (1448) 13 posts |
OK I will add that line to the program and see what happens. I have tried booting up with no USB devices connected at all, and it still recogises no keyboard is present, but there is still no USB activity, the machine is fully working properly, it is just the USB which isn’t active. I will try the motherboard option to see if it makes any difference but I suspect it probably won’t. I think there have been a few ARMX6 users with the same problem, but not that many. It’s probably a very small and minor problem, but proving to be a real headache. Thanks again for your input on this , much appreciated. Matthew |
Matthew Thompson (1448) 13 posts |
One other thing, i’ve noticed that in the code for the USB program it mentioned ARMX6 hub 1 port 1 , how do you know which port is which ? maybe it’s a different port which is causing this. |
Sprow (202) 1113 posts |
That assertion doesn’t hold water for the iMX6 port though, since its HAL didn’t detect any key presses because the code was commented out and always declared there to be no keys pressed, though curiously did link against EHCIHALLib to no effect. Or, in less words, any USB peripherals would be initialised only once in both cases. |
Colin (478) 2433 posts |
Good that eliminates that.
There are only 2 root ports on the Armx6 motherboard the code is what I use in my Isochronous rom distribution to revive and Armx6 after replacing the drivers. The ArmX6 doesn’t like the drivers being replaced – it doesn’t like unpluging and reinserting a USB2 device into the motherboard sockets after it is switched on either (not usually a problem if a hub is permanently plugged in). If there is something intermittant which causes a USB2 device plugged into the motherboard do disconnect and reconnect then the device won’t reconnect. I can’t see this being the problem as the old rom works. I take it that the mouse is intermittant on every USB port on the ArmX6? |
Alan Adams (2486) 1125 posts |
it doesn’t like unpluging and reinserting a USB2 device into the motherboard sockets after it is switched on either I wonder whether this explains a long-standing problem here – I use a USB KVM to connect to computers including an aRMX6. If I move the mouse around immediately after switching to the ARMX6, the mouse and keyboard become unresponsive. Sometimes switching backwards and forwards fixes it. If not, sometimes using VNC to run USBkick fixes it – mostly VNC is also unresponsive. Interestingly I upgraded to 5.25 from 5.23 (OS update 12 from R-Comp) a couple of days ago, and now I can’t cause the problem. Hooray! Spoke too soon. It still happens, although it does seem to recover more often when switching away and back. |