Unibone serial port settings

51 views
Skip to first unread message

roelof...@yahoo.com

unread,
May 5, 2022, 4:47:19 AM5/5/22
to UniBone
A little question,

Where do I change the serial BBB port settings like speed and start/stop bits?
Thanks in advance!

Regards, Roland

Joerg Hoppe

unread,
May 5, 2022, 4:55:26 AM5/5/22
to uni...@googlegroups.com
Am 05.05.2022 um 10:47 schrieb 'roelof...@yahoo.com' via UniBone:
> A little question,
>
> Where do I change the serial BBB port settings like speed and
> start/stop bits?

Which use: for serial login to root?

Jörg

roelof...@yahoo.com

unread,
May 5, 2022, 5:05:59 AM5/5/22
to UniBone
Which use: for serial login to root?

Hi Joerg,

Yes, to access Linux trough the serial port.

Regards, Roland
 

Joerg Hoppe

unread,
May 6, 2022, 2:01:22 AM5/6/22
to uni...@googlegroups.com
Hi,

This was quite some home work!
I had to re-explored Debians "systemd" logic ... wish back the days of "System V init".

From my old notes and current understanding:

- For each serial port enabled for login, there must exist an special entry for the UART in
    /etc/systemd/system/getty.target.wants
It is normally a link to the generic
    /lib/systemd/system/getty@.service

It is generated with
    ln -sf /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/ge...@ttyS1.service

To enable UART2 it would be     
        ln -sf /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/ge...@ttyS2.service

    
The key command in this rule-file is
    ExecStart=-/sbin/agetty -a root --noclear %I $TERM
See man page of "agetty" for options, the baud rate goes there.
For example the"-a root" comamndline option does the "auto login".

It may be wise not to link but to copy "getty@.service" to  "ge...@ttyS1.service",
and operate on the copy only.

    cp -sf /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/ge...@ttyS1.service


Joerg
--
You received this message because you are subscribed to the Google Groups "UniBone" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unibone+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unibone/eabad6da-906a-4524-a391-08db75402868n%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages