Serial output

Z wiki
Verze z 19. 2. 2026, 09:24, kterou vytvořil Chalro (diskuse | příspěvky) (založena nová stránka s textem „Serial port can be used like "vga output" instead of vga/monitor .. * edit grub <pre> vim /etc/default/grub </pre> * add/edit follow <pre> # set terminal for output/input GRUB_TERMINAL="serial console" # set params -> unit 0 = ttyS0 GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" # add params for kernel to set ttyS0 output GRUB_CMDLINE_LINUX_DEFAULT="quiet splash console=tty0 console=ttyS0,115200n8" </pre> * upda…“)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)
Skočit na navigaci Skočit na vyhledávání

Serial port can be used like "vga output" instead of vga/monitor ..

  • edit grub
vim /etc/default/grub
  • add/edit follow
# set terminal for output/input
GRUB_TERMINAL="serial console"

# set params -> unit 0 = ttyS0
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"

# add params for kernel to set ttyS0 output
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash console=tty0 console=ttyS0,115200n8"
  • update-grub
  • in case of trouble, perform force enable
systemctl enable --now serial-getty@ttyS0.service
  • thats all