cp /etc/default/grub /etc/default/grub.bak
vim /etc/default/grub
找到/etc/default/grub,取消注释
如图:
找到GRUB_CMDLINE_LINUX,添加console=tty0 console=ttyS0,115200,改完后为
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200"
如图:
然后grub-update
grub-mkconfig -o /boot/grub/grub.cfg
然后reboot