doc-exports/docs/bms/image-creation-guide/en-us_topic_0083023007.html
guoyanyan fe8c0cf45c BMS Image Creation Guide 1109
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2022-11-16 08:53:42 +00:00

2.9 KiB

x86: Ubuntu 14.04/Debian

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

    stty -F /dev/ttyS0 speed 115200

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

  3. Create the /etc/init/ttyS0.conf file and use the vi editor to modify the file 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 allow user root to log in to the BMS using a serial port, modify the security configuration file. Add ttyS0 to the end of the /etc/securetty file.