07-25-2019, 08:19 AM
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.
Serial console
|
07-25-2019, 08:19 AM
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.
07-25-2019, 01:23 PM
(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.
08-22-2019, 03:32 AM
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.
11-03-2019, 04:02 PM
(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.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?
11-03-2019, 10:21 PM
(This post was last modified: 11-05-2019, 05:45 PM by hmuller.
Edit Reason: New data
)
(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.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].
11-05-2019, 09:36 AM
(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... (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. 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.
11-05-2019, 05:40 PM
(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 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.
11-06-2019, 03:40 AM
(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'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. |
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Serial cable voltage | rossk | 1 | 3,009 |
12-13-2019, 02:36 PM Last Post: zaius |
|
"Pinebook Serial Console" unreliable, inhibits boot, kills WiFi and SD | Solra Bizna | 9 | 13,946 |
12-06-2019, 09:53 PM Last Post: Solra Bizna |
|
Pinebook serial console usage | nemunaire | 1 | 3,700 |
11-08-2019, 01:34 PM Last Post: zaius |