Revpi Compact freezes with USB devices
Revpi Compact freezes with USB devices
Hello, we have a few revpi compact devices in house and they all exhibit the same problem
The revpi always hangs after a while when USB devices are hooked, we only hook USB-RS232 (FTDI) cables
kernel.log doesn't show much (I'll attach one later)
I looked at viewtopic.php?f=17&t=1841, ran apt update, after update the problem persists
kernel is 4.19
anything else we can do to try to solve the problem?
thanks
The revpi always hangs after a while when USB devices are hooked, we only hook USB-RS232 (FTDI) cables
kernel.log doesn't show much (I'll attach one later)
I looked at viewtopic.php?f=17&t=1841, ran apt update, after update the problem persists
kernel is 4.19
anything else we can do to try to solve the problem?
thanks
Re: Revpi Compact freezes with USB devices
Hi sherifeid,
please share the kernel log of the affected system. Which image version do you use?
Nicolai
please share the kernel log of the affected system. Which image version do you use?
Nicolai
Re: Revpi Compact freezes with USB devices
Thanks Nicolai, for some reason I can't attach files to this to this message
you can access the kern log files
https://drive.google.com/drive/folders/ ... sp=sharing
the devices came flashed with Buster, we didn't do any flashing
here's the output of
you can access the kern log files
https://drive.google.com/drive/folders/ ... sp=sharing
the devices came flashed with Buster, we didn't do any flashing
here's the output of
Code: Select all
uname -a
Code: Select all
Linux mp-pvs1-B4 4.19.95-rt38-v7 #1 SMP PREEMPT RT Tue, 22 Jun 2021 14:13:31 +0000 armv7l GNU/Linux
Last edited by sherifeid on 06 Dec 2021, 18:16, edited 1 time in total.
Re: Revpi Compact freezes with USB devices
I seem to have the same problem, with a LucidControl DI4 digital IO module (https://www.lucid-control.com/product/l ... sb-module/) connected through USB. If I don't interact with the module, the revpi compact works fine, but when communicating with that particular USB device, the system hangs within ~30 mins. I did not find any problems in log files and I also have an FTDI device and a ch341-uart converter which give no problems at all. I am on the buster image:
I think it would be worthwhile to try a more recent kernel/driver version. Would it be possible to build an image with a more recent kernel? (or provide a package with a more recent kernel). I see that Raspberry Pi OS 2021-05-07, on which this image is based, comes with 5.10.17, but I assume the 4.19.95-rt38 kernel has some specifics for the RevPi.
Other suggestions are of course also welcome!
Thanks and regards
Snip of the dmesg log with connected usb devices:root@RevPi11079:/home/pi# cat /etc/debian_version
10.11
root@RevPi11079:/home/pi# uname -a
Linux RevPi11079 4.19.95-rt38-v7 #1 SMP PREEMPT RT Tue, 09 Nov 2021 08:04:06 +0000 armv7l GNU/Linux]
The problematic device is on ttyACM0. I suspect a bug in the cdc_acm driver might be to blame, though I'm not sure where (I see no obvious candidate in https://github.com/torvalds/linux/commi ... /cdc-acm.c).[ 12.215299] usbcore: registered new interface driver usbserial_generic
[ 12.221703] usbserial: USB Serial support registered for generic
[ 12.247730] usbcore: registered new interface driver ftdi_sio
[ 12.247830] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 12.248051] ftdi_sio 1-1.3:1.0: FTDI USB Serial Device converter detected
[ 12.248263] usb 1-1.3: Detected FT232RL
[ 12.249359] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0
[ 12.401413] cdc_acm 1-1.5:1.0: ttyACM0: USB ACM device
[ 12.415027] usbcore: registered new interface driver cdc_acm
[ 12.415038] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 12.966423] usbcore: registered new interface driver ch341
[ 12.971211] usbserial: USB Serial support registered for ch341-uart
[ 12.975475] ch341 1-1.4:1.0: ch341-uart converter detected
[ 13.005596] usb 1-1.4: ch341-uart converter now attached to ttyUSB1
I think it would be worthwhile to try a more recent kernel/driver version. Would it be possible to build an image with a more recent kernel? (or provide a package with a more recent kernel). I see that Raspberry Pi OS 2021-05-07, on which this image is based, comes with 5.10.17, but I assume the 4.19.95-rt38 kernel has some specifics for the RevPi.
Other suggestions are of course also welcome!
Thanks and regards
-
- Posts: 4
- Joined: 11 Jan 2022, 09:24
Re: Revpi Compact freezes with USB devices
Hi,
I think that we have the same problem. Our Compact was running for about 80 days and suddenly it stopped working .
@ nicolaiB is there a fix in work?
I think that we have the same problem. Our Compact was running for about 80 days and suddenly it stopped working .
@ nicolaiB is there a fix in work?
Re: Revpi Compact freezes with USB devices
Hi rheeres
Nicolai
I don't know the LucidControl devices, but this sounds like an issue with the LucidControl device / drivers, especially when the FTDI and CH341 are working. Have you already asked the manufacturer about known issues with kernel 4.19?rheeres wrote: ↑08 Jan 2022, 21:25 I seem to have the same problem, with a LucidControl DI4 digital IO module (https://www.lucid-control.com/product/l ... sb-module/) connected through USB. If I don't interact with the module, the revpi compact works fine, but when communicating with that particular USB device, the system hangs within ~30 mins. I did not find any problems in log files and I also have an FTDI device and a ch341-uart converter which give no problems at all. I am on the buster image:
Yes, the 4.19.95-rt39 Kernel contains some RevPi specific patches, so the stock raspberry Kernel won't work. We are currently working on a Kernel 5.10 which contains all patches, but don't have any release date yet. You can try to build the kernel at your own risk with our kernelbakery (https://github.com/RevolutionPi/kernelb ... .10/README).rheeres wrote: ↑08 Jan 2022, 21:25 I think it would be worthwhile to try a more recent kernel/driver version. Would it be possible to build an image with a more recent kernel? (or provide a package with a more recent kernel). I see that Raspberry Pi OS 2021-05-07, on which this image is based, comes with 5.10.17, but I assume the 4.19.95-rt38 kernel has some specifics for the RevPi.
Nicolai
Re: Revpi Compact freezes with USB devices
Hi Christoph
Nicolai
Without any logs or error messages this can be caused by a lot of different things. Do you have more details?Christoph.b wrote: ↑11 Jan 2022, 09:29 I think that we have the same problem. Our Compact was running for about 80 days and suddenly it stopped working .
Nicolai
-
- Posts: 4
- Joined: 11 Jan 2022, 09:24
Re: Revpi Compact freezes with USB devices
the part of the kern.log file.
Jan 1 19:10:25 RevPi6511 kernel: [6913652.581365] piControl: piControl i/o: missed 1 cycles
Jan 1 19:10:51 RevPi6511 kernel: [6913678.074307] piControl: piControl i/o: missed 2 cycles
Jan 1 19:11:52 RevPi6511 kernel: [6913739.621837] piControl: piControl i/o: missed 1 cycles
Jan 1 19:12:16 RevPi6511 kernel: [6913763.074822] piControl: piControl i/o: missed 2 cycles
Jan 1 19:13:41 RevPi6511 kernel: [6913848.075335] piControl: piControl i/o: missed 2 cycles
Jan 1 19:14:39 RevPi6511 kernel: [6913905.962490] piControl: piControl i/o: missed 8 cycles
Jan 1 19:15:02 RevPi6511 kernel: [6913929.062899] piControl: piControl i/o: missed 1 cycles
Jan 1 19:15:06 RevPi6511 kernel: [6913933.075893] piControl: piControl i/o: missed 3 cycles
Jan 1 19:18:32 RevPi6511 kernel: [6914138.984188] piControl: piControl i/o: missed 1 cycles
Jan 1 19:19:21 RevPi6511 kernel: [6914188.077496] piControl: piControl i/o: missed 3 cycles
Jan 1 19:20:40 RevPi6511 kernel: [6914266.985029] piControl: piControl i/o: missed 1 cycles
Jan 1 19:20:46 RevPi6511 kernel: [6914273.078052] piControl: piControl i/o: missed 2 cycles
Jan 1 19:21:24 RevPi6511 kernel: [6914311.825084] piControl: piControl i/o: missed 17 cycles
Jan 1 19:22:11 RevPi6511 kernel: [6914358.078563] piControl: piControl i/o: missed 2 cycles
Jan 1 19:23:36 RevPi6511 kernel: [6914443.079078] piControl: piControl i/o: missed 2 cycles
Jan 1 19:25:01 RevPi6511 kernel: [6914528.079616] piControl: piControl i/o: missed 2 cycles
Jan 1 19:26:26 RevPi6511 kernel: [6914613.080138] piControl: piControl i/o: missed 1 cycles
Jan 1 19:27:51 RevPi6511 kernel: [6914698.080629] piControl: piControl i/o: missed 1 cycles
Jan 1 19:30:58 RevPi6511 kernel: [6914885.639245] piControl: piControl i/o: missed 6 cycles
Jan 1 19:32:47 RevPi6511 kernel: [6914994.030298] piControl: piControl i/o: missed 1 cycles
Jan 11 08:22:44 RevPi6511 kernel: [ 0.000000] Booting Linux on physical CPU 0x0
Jan 11 08:22:44 RevPi6511 kernel: [ 0.000000] Linux version 4.19.95-rt38-v7 (admin@kunbus.de) (gcc version 8.3.0 (Debian 8.3.0-2)) #1 SMP PREEMPT RT Tue, 22 Jun 2021 14:13:31 +0000
Jan 11 08:22:44 RevPi6511 kernel: [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
Jan 11 08:22:44 RevPi6511 kernel: [ 0.000000] CPU: div instructions available: patching division code
Jan 11 08:22:44 RevPi6511 kernel: [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Jan 11 08:22:44 RevPi6511 kernel: [ 0.000000] OF: fdt: Machine model: Raspberry Pi Compute Module 3 Plus Rev 1.0
-
- Posts: 4
- Joined: 11 Jan 2022, 09:24
Re: Revpi Compact freezes with USB devices
@ nicolaiB could you see anything in the log
Re: Revpi Compact freezes with USB devices
No, the snippet looks really short. Could you please share the full log file?
Nicolai
Nicolai