Jump to content

Recommended Posts

Posted

I am using the latest Armbian Noble image (version 6.6.8) on my Banana Pi CM4. For my application, I am utilizing the Linux UART (/dev/ttyAML0), which is currently printing dmesg logs on this port. Is there a way I can disable dmesg debug logging and exclusively use /dev/ttyAML0 for my application?

 

Thanks.

Posted

The linux kernel has a command line option that sets the device to use as console. I believe it is possible to change the kernel command line by editing /boot/extlinux/extlinux.conf. Mine has 'console=ttyS02,1500000' in it, which is a serial console. Removing that should at least stop the kernel from printing messages to that serial port. There probably is a better way to configure this (I don't even know if editing extlinux.conf will do the trick). I see armbian-config documentation mentions a 'bootenv' option under 'system', but I don't see that when I run armbian-config on my board.

 

Apart from the kernel, there is likely also a login session configured to run on the serial port. You need to disable that separately:

 

When I `systemctl | grep getty` I can see there's a service running with the name 'serial-getty@ttyS2.service', disabling that should stop the serial logon console.

 

systemctl disable serial-getty@ttyS2.service

 

Posted

Btw, there is an option 'Stop low-level messages on console' under 'System' in armbian-config. I don't know what that does exactly, but worth a try?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines