• Timed out waiting for device dev-ttymxc3.device.


    文件系统制作

    jigdo='http://cdimage.debian.org/cdimage/archive/8.5.0/amd64/jigdo-dvd/debian-8.5.0-armhf-DVD-1.jigdo' debianMirror='http://mirrors.163.com/debian/'
    sudo debootstrap --arch=armhf --foreign buster root https://mirrors.tuna.tsinghua.edu.cn/debian/
    sudo debootstrap --foreign --arch=armhf jessie debian8 http://ftp.debian.org/debian/
    sudo cp -a /usr/bin/qemu-arm-static debian8/usr/bin/ sudo cp -a resolv.conf debian9/etc/resolv.conf
    DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true  LC_ALL=C LANGUAGE=C LANG=C /debootstrap/debootstrap --second-stage
    useradd -s '/bin/bash' -m -G adm,sudo admin passwd admin passwd root echo 'jessie-armhf' > /etc/hostname
    apt-get -y update apt-get -y upgrade
    apt install lxde -y
    #xfce apt install -y xorg xfce4 xfce4-goodies lightdm/slim
    apt-get install sudo vim openssh-server net-tools ethtool network-manager wireless-tools ifupdown htop iputils-ping kmod
    apt-get -y install vim netplan busybox udhcpc sudo ssh net-tools network-manager wireless-tools iputils-ping rsyslog bash-completion htop
    systemctl set-default graphical.target
    apt-get install ntpdate timedatectl set-timezone Asia/Shanghai apt-get install -y rsync
    sudo rsync -avx root@192.168.2.161:/ ./debian8_xfce_sync
    cd debian8 sudo tar jcvf ../debian8.tar.bz2 *
    sudo tar -jxvf debian8-lxde.tar.bz2

    报dev-ttymxc3.device timeout

    A start job is running for dev-ttymxc3.device

    [ TIME ] Timed out waiting for device dev-ttymxc3.device.
    [DEPEND] Dependency failed for Serial Getty on ttymxc3.

    /lib/systemd/system/serial-getty@.service

    Steps

    1. First copy the template:

    # cp /lib/systemd/system/serial-getty@.service /etc/systemd/system/serial-getty@ttymxc3.service

    2. Then edit the file and modify the agetty line:

    [Service]
    ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM    <-- Change this parameter
    Type=idle

    3. Create a symlink:

    # ln -s /etc/systemd/system/serial-getty@ttymxc3.service /etc/systemd/system/getty.target.wants/

    4. Reload the daemon and start the service:

    # systemctl daemon-reload
    # systemctl start serial-getty@ttymxc3.service
    # systemctl enable serial-getty@ttymxc3.service

    5.vim /etc/init.d/rc.local 或者

    vim /etc/init.d/startala.sh

    #start serial-getty@ttymxc3.service
    systemctl daemon-reload

    命令行连接wifi

    /etc/network/interfaces

    auto lo
    iface lo inet loopback

    allow-hotplug wlan0
    iface wlan0 inet dhcp
    wpa-ssid alagroup
    wpa-psk alagroup_dev
        
    sudo nmcli dev wifi connect "alagroup" password "alagroup_dev"
    sudo nmcli dev disconnect wlan0

    自动登录

    /etc/lightdm/lightdm.conf

    [Seat:*]
    autologin-session=xubuntu
    autologin-user=root
    autologin-user-timeout=0

  • 相关阅读:
    六所大学要增加计算机类硕士专业,三所大学将被撤销!2021年学位授权点审核名单公布...
    mysql 查询所有表名,更改字符集
    Base64编码知识记录
    Vue中如何进行网页截图与截屏
    Python丨tkinter开发常用的29种功能用法(建议码住)
    Wi-Fi还可以做什么?柯南解释IOT应用
    【pangolin】【pangolin实践】【pangolin的学习使用记录】
    前端将图片储存table表格中,页面回显
    【Java每日一题】3.船只安排(贪心算法+双指针)
    MySQL 函数
  • 原文地址:https://blog.csdn.net/xzx208/article/details/126543466