-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Opening /dev/ttyS0 with minicom hangs on 4.4.x #1635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you report the output of |
Here you go : |
So those logs show that the pins are configured correctly in both cases, so the fault must lie elsewhere.
|
Hi, I'm getting better (slowly) at this "hunt the patch" stuff (popcornmix is slowly teaching me!) Will do it in reverse, do you want anything else like device tree stuff or anything from /proc ? |
Ok, for completeness, the output of |
OK, this is strange I'll eat humble pie a bit here in the sense that 4.4.15 (6ab8282964b77388e12cc7f5de7c3d7b72cdcf4c) is now working, so long as I comment out the CAN Bus overlay in config.txt (see pastebin link below) On my system I can't fit both the comms card (that uses the ttyS0 pins) and the CAN BUS card so I guess that's OK. But for what it's worth if I have the CAN BUS card installed and the overlay enabled, the CAN card gets detected AOK, but running : root@raspberrypi:~# minicom -D /dev/ttyS0 hangs the board totally |
root@raspberrypi:~# stty -F /dev/ttyS0 -a also hangs the board when CAN overlay enabled |
When CAN overlay installed : dmesg: raspi-gpio get: devicetree : |
Interestingly, if I back off to 4.1.21 (dea25fa62132365c11087e51e416df656db28bf3) I can have the CAN overlay enabled and all works as expected with ttyS0 Does this help at all? |
Yes, that helps a lot. The fact that you are using SPI as well is a vital bit of information, but you weren't to know that. I think you are seeing the problem reported in #1484 (Aux SPI (SPI1) + Console on Aux UART (ttyS0) = Lockup). All the Aux peripherals share an interrupt, and that is thought to be the root of the lockups. Confirmation that the problem definitely didn't exist in the 4.1 tree and that somebody else is affected raises the priority of that issue. I'm going to close this issue as a duplicate, but feel free to follow and contribute to #1484. |
Oh wow, I'm not alone ;) |
This relates to a custom compute module board, but I expect it could be reproduced on a standard Pi board
in /boot/config.txt I have ttyS0 setup as follows
However doing the below hangs when opening ttyS0 via minicom
'# minicom -D /dev/ttyS0`
The 4.4.15/16/17/20 commits/kernels all have this problem
The earliest 4.4.x commit I tried was 4.4.12+ (which still had the problem)
Going back to the below fixed the issue :
4.1.21+ (dea25fa62132365c11087e51e416df656db28bf3)
If you need me to try and isolate this further let me know
The text was updated successfully, but these errors were encountered: