Skip to content
Snippets Groups Projects
  1. Jun 16, 2017
  2. Jun 14, 2017
    • Manuel Mendez's avatar
      init: add flow control to getty if present in kernel cmdline · 36da4032
      Manuel Mendez authored and Natanael Copa's avatar Natanael Copa committed
      36da4032
    • Manuel Mendez's avatar
      init: properly parse kernel serial console options · f50d400c
      Manuel Mendez authored and Natanael Copa's avatar Natanael Copa committed
      According to https://www.kernel.org/doc/Documentation/admin-guide/serial-console.rst
      the serial port options is specified as:
      "... BBBBPNF, where BBBB is the speed, P is parity (n/o/e), N is number of bits,
      and F is flow control ('r' for RTS)." Parity and Number of bits are ignored
      since getty does not have any options for them.
      
      I tested the paramater substitution using the following script/snippet:
      
      ```sh
      / # cat /etc/alpine-release; cat kernel2getty.sh; sh kernel2getty.sh
      3.5.2
      consoles="ttyS0 ttyS0,115200 ttyS0,115200n8 ttyS0,115200n8r ttyS0,115200r"
      for console in $consoles; do
             line=-L
             term=vt100
             tty=${console%,*}
             speed=${console#*,}
             flow=${speed##*[^r]}
             speed=${speed%%[^0-9]*}
             echo "console=$console"
             echo "  speed=$speed"
             echo "   flow=$flow"
             echo "  getty=getty ${flow:+-h }$line ${speed:-15200} $tty $term"
             echo "----------"
      done
      console=ttyS0
        speed=
         flow=
        getty=getty -L 15200 ttyS0 vt100
      ----------
      console=ttyS0,115200
        speed=115200
         flow=
        getty=getty -L 115200 ttyS0 vt100
      ----------
      console=ttyS0,115200n8
        speed=115200
         flow=
        getty=getty -L 115200 ttyS0 vt100
      ----------
      console=ttyS0,115200n8r
        speed=115200
         flow=r
        getty=getty -h -L 115200 ttyS0 vt100
      ----------
      console=ttyS0,115200r
        speed=115200
         flow=r
        getty=getty -h -L 115200 ttyS0 vt100
      ----------
      ```
      
      closes #7037
      f50d400c
    • Oliver Smith's avatar
      mkinitfs.in: fix "local" outside of function · 3284ace5
      Oliver Smith authored and Natanael Copa's avatar Natanael Copa committed
      3284ace5
  3. Apr 07, 2017
  4. Apr 05, 2017
  5. Mar 13, 2017
  6. Jan 26, 2017
  7. Jan 18, 2017
  8. Jan 10, 2017
  9. Jan 09, 2017
  10. Dec 26, 2016
  11. Dec 24, 2016
  12. Dec 21, 2016
  13. Nov 28, 2016
Loading