Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial over USB #181

Open
damfle opened this issue Sep 11, 2021 · 1 comment
Open

Serial over USB #181

damfle opened this issue Sep 11, 2021 · 1 comment

Comments

@damfle
Copy link

damfle commented Sep 11, 2021

AFAIK Pi4 can act as some USB device.
It would be nice if the firmware could have the USB C port acting as USB-UART serial port.
This would allow simplify management of clusters of Pi (without PXE boot).

@TheMindVirus
Copy link

I had done this for a Pi4-based OMX Video Player system once, it revolves around the dwc2 module for Firmware and Linux.
Not sure about Windows support for dwc2 but it at least has COM1 for the GPIO UART RX/TX pins (which may have rerouting).

/boot/config.txt

...
dtoverlay=dwc2 #this may have changed a bit
enable_uart=1
uart_2ndstage=1

/boot/cmdline.txt

console=serial0,115200 consoleblank=0 root=PARTUUID=283dc939-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ether quiet splash loglevel=0 logo.nologo vt.global_cursor_default=0 plymouth.enable=0 plymouth.ignore-serial-consoles fastboot
  • root=PARTUUID may have to change to match the actual OS partition. A lot of this isn't available for editing in UEFI and would also be nice if it included a basic text editor for modifying any boot partition file. This would save a lot of adding and removing options later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants