Installing and running Devuan over serial console

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











up vote
3
down vote

favorite
1












I have a laptop with a broken screen and I am using it as a home server. So I would like to install Devuan GNU/Linux on it by using a serial console.



I have a null-modem serial cable and I have successfully used it to connect to the serial console of a raspberry-pi (running FreeBSD) from another Linux laptop by using the screen command.



So, now I was hoping that the Devuan installation DVD would automatically set up a serial console and that I could access it from the other laptop as I did with the rpi. Unfortunately this is not the case: on the other laptop I have a black screen.



On the rpi I have a serial adapter card. On the screenless laptop I have a USB/serial adapter.



So: is it possible to run a Devuan installation over a serial console? Do I need to modify the installation image or pass it any special parameters to tell it that it should use the serial console?



EDIT



I have made some progress but have not solved the problem yet. I have been testing on a desktop that has a serial port, so I can use it without USB adapter. My plan is to get the console working on a running system and then try and apply the needed changes to the installation image.



I got the kernel logging on the serial console by using the kernel parameter console=ttyS0,115200. I have managed to have the grub menu on the serial console by adding



serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
terminal_input --append serial
terminal_output --append serial


at the end of /etc/grub.d/40_custom



I also got a login console by editing /etc/inittab and adding an entry for ttyS0.



Now I am stuck at the next step. The computer I want to use as a server does not have a serial port so I have to use a USB serial adapter. The USB adapter shows up as /dev/ttyUSB0 on a running system.



If I define a console in /etc/inittab for ttyUSB0 I get a serial console.



If I change the kernel parameter to console=ttyUSB0,115200 I get no kernel logging on the serial console. I suppose this is because the kernel does not have the module usbserial which is needed by the USB/serial adapter. My next attempt will be to compile a kernel with the module built-in.



Regarding the GRUB2 menu, I still have open issues:



  1. What value should I specify for the --unit= parameter: ttyS0 gets mapped to --unit=0, what about ttyUSB0?

  2. Does grub need to load some kind of module in order to use the USB adapter properly?

EDIT 2



I found some interesting help here. In particular, I did the following:




when you get the initial boot menu, just press "TAB" to edit the boot command and simply add "console=ttyS0,115200u8" to the end of the default boot command.




This brought me to an installer running on the serial console on a PC that has a serial port. So it seems I am almost there.



I then tried using the serial adapter on USB on the same PC and the option
console=ttyUSB0,115200u8 on the kernel line. This leads to a black screen and no serial console.







share|improve this question


























    up vote
    3
    down vote

    favorite
    1












    I have a laptop with a broken screen and I am using it as a home server. So I would like to install Devuan GNU/Linux on it by using a serial console.



    I have a null-modem serial cable and I have successfully used it to connect to the serial console of a raspberry-pi (running FreeBSD) from another Linux laptop by using the screen command.



    So, now I was hoping that the Devuan installation DVD would automatically set up a serial console and that I could access it from the other laptop as I did with the rpi. Unfortunately this is not the case: on the other laptop I have a black screen.



    On the rpi I have a serial adapter card. On the screenless laptop I have a USB/serial adapter.



    So: is it possible to run a Devuan installation over a serial console? Do I need to modify the installation image or pass it any special parameters to tell it that it should use the serial console?



    EDIT



    I have made some progress but have not solved the problem yet. I have been testing on a desktop that has a serial port, so I can use it without USB adapter. My plan is to get the console working on a running system and then try and apply the needed changes to the installation image.



    I got the kernel logging on the serial console by using the kernel parameter console=ttyS0,115200. I have managed to have the grub menu on the serial console by adding



    serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
    terminal_input --append serial
    terminal_output --append serial


    at the end of /etc/grub.d/40_custom



    I also got a login console by editing /etc/inittab and adding an entry for ttyS0.



    Now I am stuck at the next step. The computer I want to use as a server does not have a serial port so I have to use a USB serial adapter. The USB adapter shows up as /dev/ttyUSB0 on a running system.



    If I define a console in /etc/inittab for ttyUSB0 I get a serial console.



    If I change the kernel parameter to console=ttyUSB0,115200 I get no kernel logging on the serial console. I suppose this is because the kernel does not have the module usbserial which is needed by the USB/serial adapter. My next attempt will be to compile a kernel with the module built-in.



    Regarding the GRUB2 menu, I still have open issues:



    1. What value should I specify for the --unit= parameter: ttyS0 gets mapped to --unit=0, what about ttyUSB0?

    2. Does grub need to load some kind of module in order to use the USB adapter properly?

    EDIT 2



    I found some interesting help here. In particular, I did the following:




    when you get the initial boot menu, just press "TAB" to edit the boot command and simply add "console=ttyS0,115200u8" to the end of the default boot command.




    This brought me to an installer running on the serial console on a PC that has a serial port. So it seems I am almost there.



    I then tried using the serial adapter on USB on the same PC and the option
    console=ttyUSB0,115200u8 on the kernel line. This leads to a black screen and no serial console.







    share|improve this question
























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      I have a laptop with a broken screen and I am using it as a home server. So I would like to install Devuan GNU/Linux on it by using a serial console.



      I have a null-modem serial cable and I have successfully used it to connect to the serial console of a raspberry-pi (running FreeBSD) from another Linux laptop by using the screen command.



      So, now I was hoping that the Devuan installation DVD would automatically set up a serial console and that I could access it from the other laptop as I did with the rpi. Unfortunately this is not the case: on the other laptop I have a black screen.



      On the rpi I have a serial adapter card. On the screenless laptop I have a USB/serial adapter.



      So: is it possible to run a Devuan installation over a serial console? Do I need to modify the installation image or pass it any special parameters to tell it that it should use the serial console?



      EDIT



      I have made some progress but have not solved the problem yet. I have been testing on a desktop that has a serial port, so I can use it without USB adapter. My plan is to get the console working on a running system and then try and apply the needed changes to the installation image.



      I got the kernel logging on the serial console by using the kernel parameter console=ttyS0,115200. I have managed to have the grub menu on the serial console by adding



      serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
      terminal_input --append serial
      terminal_output --append serial


      at the end of /etc/grub.d/40_custom



      I also got a login console by editing /etc/inittab and adding an entry for ttyS0.



      Now I am stuck at the next step. The computer I want to use as a server does not have a serial port so I have to use a USB serial adapter. The USB adapter shows up as /dev/ttyUSB0 on a running system.



      If I define a console in /etc/inittab for ttyUSB0 I get a serial console.



      If I change the kernel parameter to console=ttyUSB0,115200 I get no kernel logging on the serial console. I suppose this is because the kernel does not have the module usbserial which is needed by the USB/serial adapter. My next attempt will be to compile a kernel with the module built-in.



      Regarding the GRUB2 menu, I still have open issues:



      1. What value should I specify for the --unit= parameter: ttyS0 gets mapped to --unit=0, what about ttyUSB0?

      2. Does grub need to load some kind of module in order to use the USB adapter properly?

      EDIT 2



      I found some interesting help here. In particular, I did the following:




      when you get the initial boot menu, just press "TAB" to edit the boot command and simply add "console=ttyS0,115200u8" to the end of the default boot command.




      This brought me to an installer running on the serial console on a PC that has a serial port. So it seems I am almost there.



      I then tried using the serial adapter on USB on the same PC and the option
      console=ttyUSB0,115200u8 on the kernel line. This leads to a black screen and no serial console.







      share|improve this question














      I have a laptop with a broken screen and I am using it as a home server. So I would like to install Devuan GNU/Linux on it by using a serial console.



      I have a null-modem serial cable and I have successfully used it to connect to the serial console of a raspberry-pi (running FreeBSD) from another Linux laptop by using the screen command.



      So, now I was hoping that the Devuan installation DVD would automatically set up a serial console and that I could access it from the other laptop as I did with the rpi. Unfortunately this is not the case: on the other laptop I have a black screen.



      On the rpi I have a serial adapter card. On the screenless laptop I have a USB/serial adapter.



      So: is it possible to run a Devuan installation over a serial console? Do I need to modify the installation image or pass it any special parameters to tell it that it should use the serial console?



      EDIT



      I have made some progress but have not solved the problem yet. I have been testing on a desktop that has a serial port, so I can use it without USB adapter. My plan is to get the console working on a running system and then try and apply the needed changes to the installation image.



      I got the kernel logging on the serial console by using the kernel parameter console=ttyS0,115200. I have managed to have the grub menu on the serial console by adding



      serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
      terminal_input --append serial
      terminal_output --append serial


      at the end of /etc/grub.d/40_custom



      I also got a login console by editing /etc/inittab and adding an entry for ttyS0.



      Now I am stuck at the next step. The computer I want to use as a server does not have a serial port so I have to use a USB serial adapter. The USB adapter shows up as /dev/ttyUSB0 on a running system.



      If I define a console in /etc/inittab for ttyUSB0 I get a serial console.



      If I change the kernel parameter to console=ttyUSB0,115200 I get no kernel logging on the serial console. I suppose this is because the kernel does not have the module usbserial which is needed by the USB/serial adapter. My next attempt will be to compile a kernel with the module built-in.



      Regarding the GRUB2 menu, I still have open issues:



      1. What value should I specify for the --unit= parameter: ttyS0 gets mapped to --unit=0, what about ttyUSB0?

      2. Does grub need to load some kind of module in order to use the USB adapter properly?

      EDIT 2



      I found some interesting help here. In particular, I did the following:




      when you get the initial boot menu, just press "TAB" to edit the boot command and simply add "console=ttyS0,115200u8" to the end of the default boot command.




      This brought me to an installer running on the serial console on a PC that has a serial port. So it seems I am almost there.



      I then tried using the serial adapter on USB on the same PC and the option
      console=ttyUSB0,115200u8 on the kernel line. This leads to a black screen and no serial console.









      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 25 '17 at 13:59

























      asked Oct 28 '17 at 15:58









      Giorgio

      3701522




      3701522

























          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%2f401088%2finstalling-and-running-devuan-over-serial-console%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%2f401088%2finstalling-and-running-devuan-over-serial-console%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?