Skip to content
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

Support option to disable serial console output #8

Open
ruifung opened this issue May 4, 2024 · 9 comments
Open

Support option to disable serial console output #8

ruifung opened this issue May 4, 2024 · 9 comments

Comments

@ruifung
Copy link

ruifung commented May 4, 2024

Having the kernel output to ttyAMA0 prevents usage of the UART interface.

Would be good to have an option to disable that, if the Pi in question has some device attached to ttyAMA0, for example a conbee2 zigbee adapter.

@ruifung
Copy link
Author

ruifung commented May 4, 2024

Also to note: U-boot by default also outputs to serial console, I suspect this is what is causing issues when you have devices attached on the pi4's primary serial output.

@ruifung ruifung changed the title Support option to disable console output for kernel Support option to disable serial console output May 5, 2024
@ruifung
Copy link
Author

ruifung commented May 5, 2024

image
I've been trying to patch u-boot to stop it writing output to serial, but all the instructions I find online can't seem to deal with this

@frezbo
Copy link
Member

frezbo commented May 6, 2024

I think its disabled using the bt overlay in congix.txt and passing -console args when generating the image

@ruifung
Copy link
Author

ruifung commented May 6, 2024

what about the u-boot output? I've managed to disable everything except the output from the initial u-boot loading, and I believe this overlay sets the bt overlay by default?

@frezbo
Copy link
Member

frezbo commented May 6, 2024

@ruifung
Copy link
Author

ruifung commented May 6, 2024

I'll give that a try later then, but I was under the understanding that doing that would disable UART functionality from being accessible inside the OS...?

@frezbo
Copy link
Member

frezbo commented May 6, 2024

I'll give that a try later then, but I was under the understanding that doing that would disable UART functionality from being accessible inside the OS...?

maybe try this https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README#L3279, seems there's no overlay to completely disable serial, otherwise have to compile a custom u-boot

@frezbo
Copy link
Member

frezbo commented May 6, 2024

@ruifung
Copy link
Author

ruifung commented May 6, 2024

I'm not trying to disable serial completely, just suppress all bootup output. But yeah. I guess I need to look into u-boot patches to try to suppress it's output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants