PinePhone UART
#2
(02-13-2020, 06:59 PM)bobbbob Wrote: How would I connect to the PinePhone's serial console from linux? I have the USB to headphone jack converter, and killswitch 6 is flipped off, but I'm a bit lost on where to go from there.

Personally, I use minicom, a pretty easy to use serial communication program. The steps I went through are as follows.
  1. Install minicom. On Debian it looks like this:

    Code:
    sudo apt install minicom

    If you're on another distro it should be a very similar command

  2. Add your user to the dialout group
    This step is so that you have access to the serial console without root, run
    Code:
    sudo usermod -a -G dialout $USER
    Then logout and log back in for this to take effect

  3. Plug in your serial cable

    Plug in both ends and then run
    Code:
    sudo dmesg
    it should say something similar to
    Code:
    ch341-uart converter now attached to ttyUSB0
    near the bottom of the output. This means that the adapter was recognized and assigned to a tty. pay attention to the ttyUSB0 part, you use it next.

  4. Start minicom
    Start minicom with
    Code:
    minicom -s -D /dev/ttyUSBx
    but replace the x with whatever you got in the last step. (if you got 'ttyUSB0' then enter that, 'ttyUSB1' enter that etc...)
    You should be greeted with minicom's main menu. From here navigate to 'Serial port setup' and hit enter. Next press E and make sure that you set the speed to 115200, parity to none, and data to 8. Once that's set, hit enter to save it and then change 'Hardware Flow Control' to No. Now you can leave that menu and go to 'Exit'. It should take you to the terminal screen that you'll use to interact with the adapter.

  5. Enjoy!
    Now would be a good time to turn on the phone and you should see a bunch of text come up in minicom, that's the pinephone's boot process!. Depending on what OS you have installed (ie postmarketOS) it may drop you into a login screen where you can login and get access to a shell on the phone.


If any of this was confusing or isn't working let me know and I'll try my best to help you out.


Messages In This Thread
PinePhone UART - by bobbbob - 02-13-2020, 06:59 PM
RE: PinePhone UART - by hnaguski - 02-13-2020, 09:54 PM
RE: PinePhone UART - by bobbbob - 02-14-2020, 12:40 AM
RE: PinePhone UART - by hnaguski - 02-14-2020, 01:41 AM
RE: PinePhone UART - by wibble - 02-13-2020, 10:31 PM
RE: PinePhone UART - by z4v4l - 02-13-2020, 11:37 PM
RE: PinePhone UART - by ksmithaz1 - 02-13-2020, 11:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Third-party cheap touchscreen/LCD for the Pinephone - lost knowledge? mikeb 0 305 02-05-2025, 01:39 PM
Last Post: mikeb
  Pinephone + Keyboard for sale, little use ruemoo 5 996 01-15-2025, 07:59 PM
Last Post: elonnmusk
  Pinephone - broken power button rorus 13 12,343 12-16-2024, 08:32 PM
Last Post: tllim
  Modem Issues with the Pinephone Temmie19 2 585 10-16-2024, 07:54 AM
Last Post: Temmie19
  various tricks to open the pinephone shengchieh 3 1,678 09-16-2024, 03:42 AM
Last Post: biketool
  my pinephone melted norayr 6 2,568 04-04-2024, 07:22 PM
Last Post: Zebulon Walton
  Pinephone refusing to charge while suspended tiol 1 1,811 04-02-2024, 10:54 AM
Last Post: joH_N_Doe64
  pinephone can provide more than 500mA to a usb-c displayport device? unrznbl 2 1,224 03-21-2024, 08:52 AM
Last Post: unrznbl
  pinephone keyboard + dock question tuxcall 7 4,869 02-05-2024, 03:17 PM
Last Post: wigan
  Unsatisfactory GPS reception on PinePhone? LinAdmin2 53 71,407 12-17-2023, 11:42 AM
Last Post: robin.com.au

Forum Jump:


Users browsing this thread: 1 Guest(s)