Serial console - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Pinebook Pro Hardware and Accessories (https://forum.pine64.org/forumdisplay.php?fid=116) +--- Thread: Serial console (/showthread.php?tid=7746) Pages:
1
2
|
Serial console - Thra11 - 07-25-2019 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. RE: Serial console - Luke - 07-25-2019 (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. RE: Serial console - vincele - 08-22-2019 (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 ;-) RE: Serial console - hmuller - 11-01-2019 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. RE: Serial console - belfastraven - 11-03-2019 (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? RE: Serial console - hmuller - 11-03-2019 (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]. RE: Serial console - danielt - 11-05-2019 (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... RE: Serial console - danielt - 11-05-2019 (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. RE: Serial console - hmuller - 11-05-2019 (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. RE: Serial console - danielt - 11-06-2019 (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. |