Ubuntu 14.04 and Debian (x86)

  1. Use the vi editor to open the /etc/default/grub file and add console=tty0 console=ttyS0 after GRUB_CMDLINE_LINUX.
  2. Run the following commands to update the configuration:

    stty -F /dev/ttyS0 speed 115200

    grub-mkconfig -o /boot/grub/grub.cfg

  3. Create /etc/init/ttyS0.conf and use the vi editor to modify its content as follows:
    start on stopped rc RUNLEVEL=[12345]
    stop on runlevel [!12345]
    respawn
    exec /sbin/getty -L 115200 ttyS0 vt102
  4. Run the following command to start ttyS0:

    sudo start ttyS0

  5. To enable user root to log in to the BMS through the serial port, add ttyS0 to the end of the security configuration file /etc/securetty.