Serial console
#1
Does the Pinebook Pro have a way to access a serial console for debugging? I see this in the pinebook section of the store, but it doesn't say whether the same cable also works with the Pinebook Pro.
#2
(07-25-2019, 08:19 AM)Thra11 Wrote: Does the Pinebook Pro have a way to access a serial console for debugging? I see this in the pinebook section of the store, but it doesn't say whether the same cable also works with the Pinebook Pro.

Yep! Very much the same.
You can find me on IRC, Discord and Twitter


#3
(07-25-2019, 01:23 PM)Luke Wrote: Yep! Very much the same.

You should update the pinebook pro & serial cable pages to add this info, I almost asked the same question, hopefully I searched first ;-)
#4
I have the PBP and the serial cable sold in the store. The serial console developer guide referenced in the store gives instructions for use with the original Pinebook, which uses a different SoC.

The file /sys/class/sunxi_dump/write is not present on the PBP rk3399 based system.

So it is not yet clear how to use the serial cable with the PBP.

UPDATE

The wiki defines how the serial cable is to be used. The bottom of the PBP must be removed, and a switch must be toggled. See the wiki for further guidance.
#5
(11-01-2019, 09:53 PM)hmuller Wrote: I have the PBP and the serial cable sold in the store. The serial console developer guide referenced in the store gives instructions for use with the original Pinebook, which uses a different SoC.

The file /sys/class/sunxi_dump/write is not present on the PBP rk3399 based system.

So it is not yet clear how to use the serial cable with the PBP.

UPDATE

The wiki defines how the serial cable is to be used. The bottom of the PBP must be removed, and a switch must be toggled. See the wiki for further guidance.
I have found that once the switch is flippedd, in the default build I can use serial condole to see u-boot messages.  I get as far as the login prompt,  and then don't seem to be getting any response .  On Ayufans' bionic lxde running from the sd card,  I can't get any response at all on the serial console.  Are their some progs/services that need to be enabled or disabled?
#6
(11-03-2019, 04:02 PM)belfastraven Wrote:
(11-01-2019, 09:53 PM)hmuller Wrote: I have the PBP and the serial cable sold in the store. The serial console developer guide referenced in the store gives instructions for use with the original Pinebook, which uses a different SoC.

The file /sys/class/sunxi_dump/write is not present on the PBP rk3399 based system.

So it is not yet clear how to use the serial cable with the PBP.

UPDATE

The wiki defines how the serial cable is to be used. The bottom of the PBP must be removed, and a switch must be toggled. See the wiki for further guidance.
I have found that once the switch is flippedd, in the default build I can use serial condole to see u-boot messages.  I get as far as the login prompt,  and then don't seem to be getting any response .  On Ayufans' bionic lxde running from the sd card,  I can't get any response at all on the serial console.  Are their some progs/services that need to be enabled or disabled?

Unclear at this point. I tested cable on the Debian desktop installed on microSD. Tomorrow I will look at the default installation on eMMC, and then at ayufan's bionic on microSD. Will let you know the results.

UPDATE: The default installation on eMMC emits data properly on the serial cable. Ayufan's bionic on microSD also emits data properly, but it stops at a certain point as Ayufan has disabled bootconsole [uart0].
#7
(11-03-2019, 10:21 PM).hmuller Wrote: Unclear at this point. I tested cable on the Debian desktop installed on microSD. Tomorrow I will look at the default installation on eMMC, and then at ayufan's bionic on microSD. Will let you know the results.

I've also been struggling to use the UART cable.

It appears that the PBP is detecting that the cable is attached and behaving differently when the cable is attached. In my case "differently" means the system won't boot correctly and locks up instead

It is not the presence of the jack that causes the system to hang. It only hangs when the adapter is attached to the USB host. I'm thinking of hacking together a custom cable try and stop the PBP detecting that someone is listening to the UART messages...
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#8
(11-05-2019, 09:36 AM)danielt Wrote:
(11-03-2019, 10:21 PM).hmuller Wrote: Unclear at this point. I tested cable on the Debian desktop installed on microSD. Tomorrow I will look at the default installation on eMMC, and then at ayufan's bionic on microSD. Will let you know the results.

I've also been struggling to use the UART cable.

It appears that the PBP is detecting that the cable is attached and behaving differently when the cable is attached. In my case "differently" means the system won't boot correctly and locks up instead

It is not the presence of the jack that causes the system to hang. It only hangs when the adapter is attached to the USB host. I'm thinking of hacking together a custom cable try and stop the PBP detecting that someone is listening to the UART messages...

So... after a bit of experimenting I gave up on my official pine64 UART cable and soldered together something of my own instead (which sounds grander than it is... in reality it is just a stereo jack soldered to jumper cables). It looks like my official cable doesn't work with the PBP but the UART is working just fine using my breakout cable and an off-the-shelf (3.3v) TTL UART I had lying around.

If you are running the factory image (and have opened up the case and set the selector switch to UART mode) then you should see something on the UART as the image boots. The kernel is configured with a very high logging threshold so you won't see any kernel messages... but there are a few messages as systemd boots then then a getty (login prompt) comes up.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#9
(11-05-2019, 03:01 PM)danielt Wrote:
(11-05-2019, 09:36 AM)danielt Wrote:
(11-03-2019, 10:21 PM).hmuller Wrote: Unclear at this point. I tested cable on the Debian desktop installed on microSD. Tomorrow I will look at the default installation on eMMC, and then at ayufan's bionic on microSD. Will let you know the results.

I've also been struggling to use the UART cable.

It appears that the PBP is detecting that the cable is attached and behaving differently when the cable is attached. In my case "differently" means the system won't boot correctly and locks up instead

It is not the presence of the jack that causes the system to hang. It only hangs when the adapter is attached to the USB host. I'm thinking of hacking together a custom cable try and stop the PBP detecting that someone is listening to the UART messages...

So... after a bit of experimenting I gave up on my official pine64 UART cable and soldered together something of my own instead (which sounds grander than it is... in reality it is just a stereo jack soldered to jumper cables). It looks like my official cable doesn't work with the PBP but the UART is working just fine using my breakout cable and an off-the-shelf (3.3v) TTL UART I had lying around.

If you are running the factory image (and have opened up the case and set the selector switch to UART mode) then you should see something on the UART as the image boots. The kernel is configured with a very high logging threshold so you won't see any kernel messages... but there are a few messages as systemd boots then then a getty (login prompt) comes up.

I had issues with my serial cable in the beginning too. It wasn't being recognized by the USB subsystem. I later determined that it was the USB connector on the cable, it either wasn't seating properly, or the contacts were not clean. It had since been operating normally.

I have added this information to the wiki.
#10
(11-05-2019, 05:40 PM)hmuller Wrote:
(11-05-2019, 03:01 PM)danielt Wrote: So... after a bit of experimenting I gave up on my official pine64 UART cable and soldered together something of my own instead (which sounds grander than it is... in reality it is just a stereo jack soldered to jumper cables). It looks like my official cable doesn't work with the PBP but the UART is working just fine using my breakout cable and an off-the-shelf (3.3v) TTL UART I had lying around.

I had issues with my serial cable in the beginning too. It wasn't being recognized by the USB subsystem. I later determined that it was the USB connector on the cable, it either wasn't seating properly, or the contacts were not clean. It had since been operating normally.

I've have no problems with USB enumeration and the adapter works fine with u-boot but shortly after the kernel starts the display and serial port stop working if the adapter is left plugged in. This does not happen with my handmade adapter.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye


Possibly Related Threads…
Thread Author Replies Views Last Post
  Serial cable voltage rossk 1 3,017 12-13-2019, 02:36 PM
Last Post: zaius
  "Pinebook Serial Console" unreliable, inhibits boot, kills WiFi and SD Solra Bizna 9 14,002 12-06-2019, 09:53 PM
Last Post: Solra Bizna
  Pinebook serial console usage nemunaire 1 3,707 11-08-2019, 01:34 PM
Last Post: zaius

Forum Jump:


Users browsing this thread: 1 Guest(s)