Closed blazp7 closed 6 months ago
Hey blazp7. Sure, I can try to help.
This repo and nixpkgs both use uboot as the bootloader, and uboot has a serial interface outputting the same information you posted in your screenshot and listening for input, so I would expect a loopback to cause uboot to fail.
Raspbian does not boot with uboot, so it wouldn't have this issue with a loopback.
I'm not sure why connecting the hat is causing issues though. Can you paste your /boot/firmware/config.txt
?
Thankfully I have mostly solved the issue. It was a non-problem, i only needed to connect the wires from the serial extension hat to my device. It seems that just letting the rs485 connector/wires dangle in the air is picking up some interference? If i connect the rs485 connector/wires to my device it boots successfully. I can even just pinch the wires together, it still goes through successfully with the boot process.
I was trying to nix overlay uboot with the silent boot flags (links below) but i was unsuccessful. Maybe it is worth consideration still but for now it works! https://raspberrypi.stackexchange.com/questions/116074/how-can-i-disable-the-serial-console-on-distributions-that-use-u-boot https://stackoverflow.com/questions/34356844/how-to-disable-serial-consolenon-kernel-in-u-boot
Hello ive tried to use your module to fix this error on Raspberry 3b, but it doesnt help. Do you have any advice why nixos get stuck on a jumbled boot screen when i connect this hat https://abelectronics.co.uk/p/77/rs485-pi but works fine without? I need to read data from /dev/serial device but have been unsuccessful using Nixos. This serial interface hat works out of the box with RaspberianOS though.
This is my config, i basically just cloned your rpi-example and flashed the sd-image with dd.
Help much appreciated, thanks.
Edit: seems like just creating loopback with RX and TX on the GPIO results in the same error