Patchbox is a great idea and could save a lot of hassle with using the PI’s for audio, but it hasn’t worked for me so far.
I’m using a PI zero W and when I have a USB keyboard plugged in (through a OTG adapter) the PI hangs and does not finish booting up. The power adapter should have enough power and I’ve tried two different USB keyboards.
I’ve also been unable to use SSH. I add the correctly configured wpa supplicant file and the ssh file to root, but the patchbox will not allow me to log in.
By default, Patchbox OS is configured to host an access point, it may be interfering with the wpa supplicant config, so you should first connect over WiFi and disable the hotspot.
Not sure what’s up with the USB OTG not working, the OS is running a ‘real-time’ config kernel which may have its own issues, we plan to include an updated kernel version in the OS upgrade to ‘buster’, so stay tuned.
Bump. I’m experiencing the same issue with the new build but with a summertime build it boots and runs just fine. If I leave the OTG unplugged then everything is great, but as soon as I plug in the USB Keyboard via OTG it hangs.
Do you get any error messages printed on the display / ssh terminal? Is there any useful information in dmesg log or if the system crashes completely, you may check logs of previous boots.
Also you may try switching to regular Raspbian kernel:
Thanks for the super quick reply! This did solve the problem and I can boot and use the new patchbox with a raspberry pi zero w. With the RT kernel every time I plug in the OTG cable the OS hangs. When I look at kern.log I don’t see anything concerning, should I dump that log somewhere for info?
I’d suggest creating an issue on the Raspberry Pi kernel’s GitHub, and mention that you’ve used the kernel from rpi-4.19.y-rt branch. However, keep in mind that this branch is supported by community effort and it’s not the officially supported one, so it may take a while before it gets resolved.
I found this on a page about using the Zero wit hthe preempt-RT kernel[1]
For the Zero, you also need the options:
~$ sudo nano /boot/cmdline.txt
# Add the following options:
dwc_otg.fiq_enable=0 dwc_otg.fiq_fsm_enable=0 dwc_otg.nak_holdoff=0
if you are using the USB port, otherwise the Raspberry Zero freezes immediately as soon as you connect something to the port (USB drive, Wi-Fi dongle etc.)
I got the zero to work by replacing the realtime OS with the standard OS. The zero has a slightly different chip and that may be the source of the issue. I have not had time to go back and retry the realtime OS to see if I can find a way though.