2 Replies Latest reply on Jul 7, 2015 6:12 PM by Steven Moy

    Is it possible to do serial console via the OTG port from the spark fun base board?

    Steven Moy

      We are developing companion hardware connected via the hirose connector. We need to reuse tty2 for some other serial device. But we need to continue to use spark fun base board to log into serial console of the edison. is this possible to use the OTG port of the spark fun port to do so?

       

      Thanks,

      Steven

        • 1. Re: Is it possible to do serial console via the OTG port from the spark fun base board?
          SergeyK

          Yes, you can. The serial port's device name in Linux is /dev/ttyGS0, and it shows up as "Intel Edison Virtual Com Port" on a Windows host. By default it has an Arduino sketch loader running on it, so you'll need to disable that first. Here is the list of commands to disable the sketch loader and enable agetty on that port:

           

          # stop clloader.service and sketch_reset.service

          systemctl stop clloader.service

          systemctl stop sketch_reset.service

          # (optional) disable clloader.service and sketch_reset.service

          systemctl disable clloader.service

          systemctl disable sketch_reset.service

          # configure getty on ttyGS0:

          ln -sf /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyGS0.service

          # start getty on ttyGS0:

          systemctl start getty@ttyGS0.service

           

          Edit: sketch_reset.service also needs to be disabled, as it depends on clloader, and apparently systemd starts clloader even if it is disabled

          2 of 2 people found this helpful
          • 2. Re: Is it possible to do serial console via the OTG port from the spark fun base board?
            Steven Moy

            Thank you very much. That was it. You guys are awesome.