Quote:
Originally Posted by hardikgohil1988
I want to use same serial port for normal serial communication or console according to option selected while booting.
|
To select serial console, add
console=nameofconsoledevicefile to the kernel options. For example,
see here, and replace tty0 with the appropriate device.
This is for legacy grub; if you use the more recent grub 2, it's a bit more complicated, though the kernel parameter remains the same.
To not select serial console, leave this option out.