Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    UNSOLVED Can I get a serial console (like ttyS0) on the Pinephone using the "PINEBOOK SERIAL CONSOLE" cable with the CH340 chipset?

    Support
    3
    5
    144
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      llzzrrdd last edited by

      Can I get a serial console (like ttyS0) on the Pinephone using the "PINEBOOK SERIAL CONSOLE" cable with the CH340 chipset?

      Specifically, I would like to have access to the bash shell, like when using adb shell with a Nexus 5 running UBports.

      AppLee 1 Reply Last reply Reply Quote 0
      • AppLee
        AppLee @llzzrrdd last edited by

        @llzzrrdd
        You can use the serial cable to access the debug information before the OS is launched.

        To access the shell, I'd recommend to use SSH.

        1 Reply Last reply Reply Quote 0
        • L
          llzzrrdd last edited by

          I never had to use SSH on the UBports; adb shell was adequate. Of course I can try SSH, but is it possible to get more than debug (to get bash shell actually) from the serial cable?

          Like the classic following example from a line at /etc/inittab ?

          T0:123:respawn:/sbin/getty -L ttyS0 115200 vt100

          Source::
          https://help.ubuntu.com/community/SerialConsoleHowto

          Flohack 1 Reply Last reply Reply Quote 0
          • Flohack
            Flohack @llzzrrdd last edited by

            @llzzrrdd The Pinephone is a Non-Android phone so we do not have adb there. Thats why we go for ssh, and also on the Android phones ssh will become the de-facto standard. Its much easier to integrate.

            My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

            1 Reply Last reply Reply Quote 0
            • L
              llzzrrdd last edited by

              @Flohack thanks for all your responses! much appreciated!!!

              Sure, I agree let's not use google's adb, one thing less from google the better!

              What I am asking, is if there is any chance except from debug messages to get an actual shell via that serial cable of pinephone?

              What are the chance I can get it working by just editing the inittab like with the previous classic example?

              Has anybody tried it already?

              1 Reply Last reply Reply Quote 0
              • First post
                Last post