Linux启动等待串口(dev-ttyS0)问题

Timed out waiting for device dev-ttyS0.device.

  1. 从模板创建一个service:

cp /usr/lib/systemd/system/[email protected] /etc/systemd/system/[email protected]

  1. 修改 /etc/systemd/system/[email protected]内容:
    修改ExecStart这一行
ExecStart=-/sbin/agetty -a root -8 -L 115200 ttyS0 vt100
  1. 创建软链接:
    ln -s /etc/systemd/system/[email protected] /etc/systemd/system/getty.target.wants/

https://www.cnblogs.com/dream397/p/14122290.html

你可能感兴趣的:(Linux启动等待串口(dev-ttyS0)问题)