-
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
Can't enable UART1 on CM3 #400
Comments
Add |
Hi @kraj, thank you for the suggestion. I tested this on head of master, but no luck, I'm still getting the same errors. |
I've never tested uart1 on cm3. Can you try without |
@agherzan , just tried that again without
I have also tried uart1 on pins 32 and 33, but the same issue. Any further suggestions? My additions to config.txt now looks like the following:
|
My current suspicion is that this is a kernel configuration issue. Tracing the issue through |
That is interesting @DonMorr . Keep us updated. |
@agherzan What's the best way to test a kernel configuration? I'd like to try to narrow the issue down to either the kernel configuration or something in userland. But can't seem to get the yocto build to use the kernel config from the Raspian image (which uart1 works correctly on).
|
If it's just temporary I would probably use a devshell or copy something over just before compile. |
@DonMorr can you try without |
@agherzan Thanks for your suggestion. Just tried without that, but getting the same result. My config.txt now only has the following related to uart1:
Getting the same error:
|
@DonMorr What I actually meant but didn't come out right was to use |
I use both UARTs in my yocto build for the CM3. I had to use the following overlay: /*
*/ /dts-v1/; /{
}; I'm obviously on different pins, but you can modify that and recreate your dtb then load like this (in your config.txt): Enable UARTsenable_uart=1 |
@agherzan @s-maynard Cheers guys, will give both of those a go. |
@agherzan Setting @s-maynard That worked a treat, thank you very much for sharing. I had missed that there is an overlay for uart1 in the repo here: Thanks to everyone for their help, very much appreciated. |
@DonMorr That is definitely something to push in the docs. Do you want to have a PR for it? |
@agherzan yes, happy to do this over the next few days. |
Appreciated. |
@DonMorr Any updates on this? |
My organization has what seems to be the same problem using uart1 on a CM3/CM3+. We only have observed the problem since we switched over to testing 4.19.66. The 4.14.112 code we were previously using does not exhibit the problem. @s-maynard Thanks for posting what may be a possible workaround. What is the meaning of the d600 in the name of your overlay file? - Does it have some specific meaning to your work or your environment, or is this something related to the Raspberry Pi with which I am unfamiliar? |
By the way, the following entries in config.txt were sufficient for 4.14.112 kernels running on CM3/CM3+ for allowing use of both uart0 and uart1: # Tell Linux to not drive serial Console on GPIO pins 14 & 15 This is evidently not sufficient in 4.19 flavors. It sure would be good to understand why. |
apologies - the d600 is a product name for my company; I should have generalized the comment for all to consume... |
PS. I am still on 4.14.112 |
@s-maynard Thanks much for the clarification about d600 potential meaning, and also for reporting that you are using 4.14.112. It seems that my issue of losing the ability to use uart1 in 4.19.66 as compared to 4.14.112 is a different problem than this issue 400, which is just related to having combined acceptable settings for uart1 in the overlays and config.txt, which does seem to be more of a doc issue. I may have to consider opening a separate issue. Thanks much again. |
@DonMorr Were you able to get uart0 and uart1 to work in 4.19? (I noticed above your comments contained "linux-raspberrypi/1_4.19.27+gitAUTOINC+c0e09b3420-r0/"). Can anyone get it to work on 4.19.66? We can not, yet both work beautifully on 4.14.112. |
The original issue seems to be resolved and there's a new issue open for the problem with the more recent kernel. Closing this. |
Description
If I try to enable uart1 in the config.txt on my Compute Module 3, the device is not enabled and the kernel log reports an error. uart0 works as expected on pins GPIO_14 and GPIO_15.
I've reproduced this issue on the heads of sumo, thud and master branches.
This is not an issue on the official Raspian Image, when using this, both uarts can be enabled simultaneously on different sets of GPIO pins..
Steps to reproduce the issue:
Also set the MACHINE to "raspberrypi-cm3".
This should enable uart1 to operate on pins 40 and 41.
5. Boot the target.
Describe the results you received:
When the target boots, the following is currently observed:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: