How to set the serial output of Ubuntu system (i)

Source: Internet
Author: User

1. Platform: Intel X86 Baytrail Platform

2. Since the development mode needs to look at the core serial output, so the Linux system needs to boot from the booting to the part of the system is directed to the serial port, then how to set it?

After installing the Ubuntu system (this is the 14.10 version of Ubuntu system)

(1) First set GRUB parameters:

To modify the/etc/default/grub file:

Modify the following to read:

grub_cmdline_linux_default= "Text Console=tty0 console=ttys0,115200n8"

Then add a line:

grub_serial_command= "SERIAL--unit=0--speed=115200--word=8--parity=no--stop=1"

Then execute the Update-grub to make the configuration effective

(2) Then create the ttys0.conf in the/etc/init/directory with the following contents:

#ttyS0-getty

Start on RC runlevel=[2345]

Stop on RunLevel [!2345]

Respawn

Exec/sbin/getty-l 115200 ttyS0 vt100


Legacy issues:

After the system up, in the Serial port section only displays to:



* Starting regular background program processing daemon[OK]
* Starting Signal sysvinit that alsa-utils tasks is complete[OK]
* Starting CPU interrupts balancing daemon[OK]
* Stopping save kernel messages[OK]
* Stopping Restore sound Card state[OK]
* Starting Cups-browsed-bonjour Remote printer browsing daemon[OK]
* Starting automatic crash report generation[OK]
* Starting Configure virtual network devices[OK]
[OK]toring Resolver State ...
[OK]rting uuid Generator Uuidd
* Speech-dispatcher Disabled; Edit/etc/default/speech-dispatcher
saned Disabled; edit/etc/default/saned
* Stopping System V runlevel compatibility[OK]
* Stopping cold plug devices[OK]
* Stopping log initial device creation[OK]
* Starting save Udev log and update rules[OK]
[150.593006] systemd-logind[947]: Failed to start unit [email protected]: Unknown unit: [Email protected]
[150.602779] systemd-logind[947]: Failed to start User service:unknown unit: [Email protected]

Then there is a display login on the VGA, but the serial port does not display

Further research is needed here

But finally this step is made, the problem behind is the boot script configuration problem

Also explained that, before the purchase of the Baytrail motherboard does not have a serial port hardware problems, small factory do its own motherboard than the brand motherboard to force

How to set the serial output of Ubuntu system (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.