UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved Unsolved Support
    5 Posts 3 Posters 780 Views 2 Watching
    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 Offline
        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.

        AppLeeA 1 Reply Last reply Reply Quote 0
        • AppLeeA Offline
          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 Offline
            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

            flohackF 1 Reply Last reply Reply Quote 0
            • flohackF Offline
              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 Offline
                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better πŸ’—

                Register Login
                • First post
                  Last post