Serial Console Configuration Question

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Serial Console Configuration Question

Postby mlitke » Wed May 29, 2013 7:49 pm

Anyone know why the service for the serial console on the Raspberry Pi is set up as a regular getty and not a serial getty?

In the Raspberry Pi image, there is a symlink, /etc/systemd/system/getty.target.wants/ ... A0.service, that links to /usr/lib/systemd/system/getty@.service (instead of linking to, /usr/lib/systemd/system/serial-getty@.service). Linking to the regular getty file instead of the serial getty file causes the baud rate to change once the boot process reaches the login service. The baud rate for the boot messages (set by the kernel option: console=ttyAMA0,115200) is 115200, but the baud rate set in the regular getty configuration is 38400, so the baud rate for the boot messages is 115200, but the getty baud rate (which is used once the login service starts) is 38400. If the serial console symlink linked to the serial getty, the baud rate can be 115200, 38400, or 9600.

Prior to implementing systemd, the install images had the serial console baud rate set to 115200 (here is the line from /etc/inittab: c2:2345:respawn:/sbin/agetty -8 -s 115200 ttyAMA0).
mlitke
 
Posts: 55
Joined: Sat Apr 30, 2011 5:27 am

Re: Serial Console Configuration Question

Postby pepedog » Wed May 29, 2013 9:36 pm

You are right, I missed that. All we need is a way to remind me next time. I will forget.
Tell me also exactly what to change too, please.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Serial Console Configuration Question

Postby mlitke » Thu May 30, 2013 3:38 pm

I am not sure what I can do to help remind you, any ideas? Is there a bug tracking/change request system you all use to track issues/requests?

To make the change, remove the current symlink:
$this->bbcode_second_pass_code('', 'prompt> rm /etc/systemd/system/getty.target.wants/getty@ttyAMA0.service')

And then add a new symlink that points to the serial getty:
$this->bbcode_second_pass_code('', 'prompt> ln -s /usr/lib/systemd/system/serial-getty@.service /etc/systemd/system/getty.target.wants/serial-getty@ttyAMA0.service')

That should be it.
mlitke
 
Posts: 55
Joined: Sat Apr 30, 2011 5:27 am

Re: Serial Console Configuration Question

Postby pepedog » Thu May 30, 2013 5:35 pm

My system is a piece of paper on my desk. I already had a note to do this, found paper only today. Sorry, will be done.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Serial Console Configuration Question

Postby mlitke » Thu May 30, 2013 5:38 pm

Cool, thanks.
mlitke
 
Posts: 55
Joined: Sat Apr 30, 2011 5:27 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 8 guests