cat: /dev/ttyS0: Input/output error

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












I am unable to write to or read from /dev/ttyS0



# cat /dev/ttyS0 
cat: /dev/ttyS0: Input/output error


the device exists, and root has permissions.



# ls -lAhF /dev/ttyS0
crw------- 1 root root 4, 64 Nov 18 12:09 /dev/ttyS0

# setserial -g /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

# dmesg | egrep -i 'serial|ttys'
[ 1.243271] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 2703.151301] ttyS0: LSR safety check engaged!

# cat /proc/devices | grep tty
4 tty
4 ttyS
5 /dev/tty


I have serial enabled in my kernel:



# grep SERIAL config
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_NR_UARTS=1
CONFIG_SERIAL_8250_RUNTIME_UARTS=1
CONFIG_SERIAL_CORE=y


What do I have to do to make serial work ?







share|improve this question
























    up vote
    3
    down vote

    favorite












    I am unable to write to or read from /dev/ttyS0



    # cat /dev/ttyS0 
    cat: /dev/ttyS0: Input/output error


    the device exists, and root has permissions.



    # ls -lAhF /dev/ttyS0
    crw------- 1 root root 4, 64 Nov 18 12:09 /dev/ttyS0

    # setserial -g /dev/ttyS0
    /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

    # dmesg | egrep -i 'serial|ttys'
    [ 1.243271] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
    [ 2703.151301] ttyS0: LSR safety check engaged!

    # cat /proc/devices | grep tty
    4 tty
    4 ttyS
    5 /dev/tty


    I have serial enabled in my kernel:



    # grep SERIAL config
    CONFIG_SERIAL_8250=y
    CONFIG_SERIAL_8250_NR_UARTS=1
    CONFIG_SERIAL_8250_RUNTIME_UARTS=1
    CONFIG_SERIAL_CORE=y


    What do I have to do to make serial work ?







    share|improve this question






















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I am unable to write to or read from /dev/ttyS0



      # cat /dev/ttyS0 
      cat: /dev/ttyS0: Input/output error


      the device exists, and root has permissions.



      # ls -lAhF /dev/ttyS0
      crw------- 1 root root 4, 64 Nov 18 12:09 /dev/ttyS0

      # setserial -g /dev/ttyS0
      /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

      # dmesg | egrep -i 'serial|ttys'
      [ 1.243271] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
      [ 2703.151301] ttyS0: LSR safety check engaged!

      # cat /proc/devices | grep tty
      4 tty
      4 ttyS
      5 /dev/tty


      I have serial enabled in my kernel:



      # grep SERIAL config
      CONFIG_SERIAL_8250=y
      CONFIG_SERIAL_8250_NR_UARTS=1
      CONFIG_SERIAL_8250_RUNTIME_UARTS=1
      CONFIG_SERIAL_CORE=y


      What do I have to do to make serial work ?







      share|improve this question












      I am unable to write to or read from /dev/ttyS0



      # cat /dev/ttyS0 
      cat: /dev/ttyS0: Input/output error


      the device exists, and root has permissions.



      # ls -lAhF /dev/ttyS0
      crw------- 1 root root 4, 64 Nov 18 12:09 /dev/ttyS0

      # setserial -g /dev/ttyS0
      /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

      # dmesg | egrep -i 'serial|ttys'
      [ 1.243271] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
      [ 2703.151301] ttyS0: LSR safety check engaged!

      # cat /proc/devices | grep tty
      4 tty
      4 ttyS
      5 /dev/tty


      I have serial enabled in my kernel:



      # grep SERIAL config
      CONFIG_SERIAL_8250=y
      CONFIG_SERIAL_8250_NR_UARTS=1
      CONFIG_SERIAL_8250_RUNTIME_UARTS=1
      CONFIG_SERIAL_CORE=y


      What do I have to do to make serial work ?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 18 '17 at 12:08









      Martin Vegter

      1,00731110218




      1,00731110218

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405428%2fcat-dev-ttys0-input-output-error%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405428%2fcat-dev-ttys0-input-output-error%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?