linux 串口输出

linux 串口输出 ———-

/etc/grub.d/10_linux

cat << EOF
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal_input console serial; terminal_output console serial

EOF

/etc/init/ttyS0.conf

start on stopped rc RUNLEVEL=[2345] and (
      not-container or
      container CONTAINER=lxc or
      container CONTAINER=lxc-libvirt)
stop on runlevel [!2345]
respawn
exec /sbin/getty -L 115200 ttyS0 vt100