![]() If you do not want GRUB2 to listen on the serial device, but only want getty listening after boot then follow these steps. Typically, an enterprise with mainframe computers installs a terminal emulation program in all its workstations (or LAN servers). Without GRUB2, systemd only Ignore this entire section if you have configured GRUB2 to listen on the serial interface. Terminal emulation requires installing a special program in the PC or on a local area network (LAN) server to which it is connected. When Arch boots, systemd will automatically start a getty session to listen on the same device with the same settings. ![]() ![]() ![]() GRUBTERMINAL='console serial' would enable both display and serial): # Serial console GRUBTERMINAL=serial GRUBSERIALCOMMAND='serial -speed=38400 -unit=0 -word=8 -parity=no -stop=1' Rebuild the grub.cfg file with following command: # grub-mkconfig -o /boot/grub/grub.cfg After a reboot, getty will be listening on /dev/ttyS0, expecting 38400 baud, 8 data bits, no parity and one stop bit. GRUBCMDLINELINUXDEFAULT='console=tty0 console=ttyS0,38400n8' Now we need to tell grub where is the console and what command to start in order to enable the serial console (Note as above for Linux kernel, one can append multiple input/output terminals in grub e.g.
0 Comments
Leave a Reply. |