Skip to content

Commit 56dd57b

Browse files
authored
Merge pull request #92 from s00500/usbconsole
Add usbconsole module
2 parents 333dd9f + ea9bede commit 56dd57b

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

src/modules/usbconsole/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env bash
2+
# USBConsole
3+
# Adds a console (getty) on the Raspberrys USB Port, useful for debugging headless setups without network
4+
# Use minicom or Coolterm to access your PI (Note: This has only been tested on the RPI4)
5+
# Written by Lukas Bachschwell
6+
# GPL V3
7+
########
8+
9+
10+
# Source error handling, leave this in place
11+
set -x
12+
set -e
13+
14+
source /common.sh
15+
install_cleanup_trap
16+
17+
18+
echo "Enter usbconsole"
19+
systemctl enable serial-getty@ttyGS0
20+
21+
22+
# Note on raspberrypi gettys:
23+
# for a serial getty go not use the getty@ services (like getty@ttyGS0)
24+
# as these will hand when no device did connect to them and cause all kinds of funkey behaviour
25+
# like not being able to reboot the device without force
26+
27+
echo "dtoverlay=dwc2" >> /boot/config.txt
28+
echo "dwc2" >> /etc/modules
29+
echo "g_serial" >> /etc/modules
30+

0 commit comments

Comments
 (0)