1 Star 0 Fork 0

huryer / RaspberryPi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0004_Debug串口.md 763 Bytes
一键复制 编辑 原始数据 按行查看 历史
zengjf 提交于 2021-02-10 15:56 . debug port

Debug串口

看内核启动log信息,当机器无法启动可以判定问题

开启串口登陆

  • sudo raspi-config

开启内核log

  • cat /boot/cmdline.txt
    console=serial0,115200 console=tty1 root=PARTUUID=d3269df4-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles modules-load=dwc2,g_ether dwc_otg.lpm_enable=1
  • 修改第一个console:console=ttyS0,115200
  • 移除第二个console:console=tty1
  • 移除quiet字段
  • cat /boot/cmdline.txt
    console=ttyS0,115200 root=PARTUUID=d3269df4-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait splash plymouth.ignore-serial-consoles modules-load=dwc2,g_ether dwc_otg.lpm_enable=1
1
https://gitee.com/huryer/RaspberryPi.git
git@gitee.com:huryer/RaspberryPi.git
huryer
RaspberryPi
RaspberryPi
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891