4 ms·
Enabling a USB Serial Console on Linux (2022)
- bantunes 2y agoI'm pretty sure the baud rate default can be 115200, 9600 is very late 80s.
- stefan_ 2y agoAll the Chinese dev boards, knowing that all serial is over USB now anyway, default to 2MBaud nowadays. 115200 or even 9600 gets old very quick when you accidentally put in "dmesg" or cat same huge file...
- HankB99 2y agoRaspberry Pis GPIO pins include a serial port and can run at 115200. I've used that for monitoring the boot process as it can be configured to put out messages before anything goes to the screen. When the boot process halts with nothing on the screen, there may still be useful information put out to the serial port.
- deleted 2y ago[deleted]
- throw0101c 2y agoFor GRUB: GRUB_TERMINAL_INPUT="console serial" GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200" * https://wiki.archlinux.org/title/working_with_the_serial_console https://wiki.archlinux.org/title/working_with_the_serial_con... * https://help.ubuntu.com/community/SerialConsoleHowto https://help.ubuntu.com/community/SerialConsoleHowto In addition / alternatively to systemD, you can also tell the kernel about the serial console (especially for kernel boot output): GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8" Also, perhaps because I'm a bit 'old fashioned', I don't really like that a lot of distros have "splash quiet" in the options: I like seeing the output. Also not have a fan of having a GRUB timeout of zero and not having a GRUB menu.
- T3OU-736 2y agoPSA: The Linux kernel will only have one console at a time during boot. This means that if both VGA and serial are specified, in that order, the last one is used, meaning there will be no output on the VGA until `getty` starts up on other VTYs.
- deleted 2y ago[deleted]