-
Notifications
You must be signed in to change notification settings - Fork 424
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
UART1 not available in 4.19.66 built in master, but works fine in 4.14.112 #492
Comments
config.txt and cmdline.txt identical for both 4.14.112 and 4.19.66 builds: |
Here are the pertinent lines from config.txt:
|
These settings along with 8250 NR UARTS 1 should be sufficient for uart1 to be functional. I would like it if someone involved in the meta-raspberrypi project would please build/run 4.19.66 or very close version in master branch when time permits, and see that the uart1 can not be made available using the reasonable documented settings as shown. |
A filesystem comparison which may be helpful. |
The kernel configs: |
@stevep-korg Just a heads up that you can actually edit the description so you shouldn't have to follow up with comments when you report an issue. Have you tried this in Raspbian? |
@agherzan Thanks for the tip. I am aware I can do that, and actually edited some of those last night. I thought it would help to put the information in chunks in different entries, but now that I think more about it, maybe it generated a bunch of emails for people, and if so, sorry for the extra noise. I haven't tried Raspbian, but I can try today to see if it registers it OK. |
@agherzan I tried Raspbian Buster Lite (4.19) for starters, which it appears by default does not initialize uart1 at all. If you search for "uart" and also "serial" in the messages file, you will notice only the PL011 uart, which is uart0, is initialized. I did not try tweaking the system. |
@agherzan I also tried Raspbian Buster Full (4.19), which it appears by default also does not initialize uart1 at all. If you search for "uart" and also "serial" in the messages file, you will notice only the PL011 uart, which is uart0, is initialized. I did not try tweaking the system. messages.zip Please let me know if you'd like me to tweak either of these systems to try to initialize uart1, or please let me know if you have a different idea. |
It sounds like an issue on the kernel that's why I recommended you to try Raspbian. I would go and raise it in the kernel repo or on forums. |
@agherzan A few months ago, I took your advice and tested with Raspbian Buster. The problem occurred there too, so your hunch was correct. I entered this issue in the kernel repo : raspberrypi/linux#3312 One of the commenters there noted the -22 error during initialization was significant, and posited that the problem appeared to be caused by the use of the uart1-midi overlay. He asked me to retest without loading that overlay, and if UART1 did not have an initialization error, that I close the bug and write it up differently, in relation to it be a uart1-midi overlay-related problem. I am no longer at my previous organization, so I don't have a CM3 on which to continue this testing. I will try to see if I can recreate it on a Raspberry Pi 3 when time permits. I'd like to see this issue resolved for the whole Raspberry Pi community, but I don't have the right test platform anymore. Being able to use MIDI on uart1 seems like an essential feature, and the capability to do it in 4.19.66+ should be ensured. Thanks for your input so far. |
Please see raspberrypi/linux#3312 |
Thanks @stevep-st for the feedback. |
This is a different issue than #400, although it also happens on CM3 and CM3+. Please follow, I'll provide documentation.
Description:
Result: uart1 is functional on ttyS0. Observed:
Result: uart1 fails to register. Observed:
I expected that uart1 would work in 4.19.66 as well as it did in 4.14.112 with the same proper settings and overlays as specified in config.txt and cmdline.txt
I'll attach some documentation soon, including the config.txt, cmdline.txt used in both cases, and some other comparisons of the two filesystems. We are using the default uart1 overlay in both cases.
The text was updated successfully, but these errors were encountered: