from Hacker News

Enabling a USB Serial Console on Linux (2022)

by GalaxySnail on 6/8/24, 1:05 PM with 5 comments

  • by throw0101c on 6/8/24, 1:44 PM

    For GRUB:

       GRUB_TERMINAL_INPUT="console serial"
       GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200"
    
    * https://wiki.archlinux.org/title/working_with_the_serial_con...

    * 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.
  • by bantunes on 6/8/24, 1:39 PM

    I'm pretty sure the baud rate default can be 115200, 9600 is very late 80s.