2021年3月20日 星期六

Raspberry pi zero Serial Gadget

 編輯 /boot/config.txt 加入
dtoverlay=dwc2

編輯 /boot/cmdline 加入
modules-load=dwc2,g_serial

console=serial0,115200 console=tty1 root=PARTUUID=738a4d67-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_serial

執行
sudo systemctl enable getty@ttyGS0.service

Linux 登入方式
screen /dev/ttyACM0 115200

沒有留言: