Installing OpenBSD on the Pinephone

... with Crystal Kolipe ...

WARNING

The information presented on these pages is NOT intended to be followed as a guide to installing OpenBSD on your own Pinephone device, and must not be used for this purpose.

Unlike most SBCs, the Pinephone contains a rechargeable battery intended to power the device. Correct configuration of the charging circuits, including various safety features such as thermal protection will not be enabled by the current OpenBSD kernel as of the time of writing.

Article navigation

THIS IS PART THREE OF SEVEN (3/7)

=> Series index

Testing voltages on the usb connector

Using a USB analyser we can test the voltage present on the power supply pins of the USB-C connector, which might help to diagnose why connected devices are not detected or responding when running OpenBSD.

=> USB analyser connected to the Pinephone

In the picture linked above, the Pinephone is actually booted into the MP kernel, which we know crashes during boot. There is no measurable power output from the USB port at all.

The USB analyser passes through the power and data signals, allowing us to daisy chain another USB device and monitor the voltage and current that it draws. With the USB dock connected, we still don't see a voltage reading:

=> Still no volatage present on the USB connector

Further testing using the bsd.sp kernel

With the Pinephone booted into the SP kernel, we see that the power supply output on the USB-C connector is now measuring at 3.56 volts. This is clearly not in the expected 5 volts range, and would certainly explain why none of the connected devices work.

Connecting the USB dock, the voltage is virtually unchanged at 3.54 volts, although the current draw almost doubles to 0.1 amps.

Testing using a Linux kernel

Booting a Linux kernel, we measure no power output with just the analyser connected.

However, with the dock connected, we see a power supply output of 5.15 volts, at a current of 0.05 amps, and of course the dock is operational.

Correct voltages were measured with the dock connected and the pinephone booted into a Linux kernel, so we can assume that the previous readings whilst running OpenBSD are genuine and not a mis-calibration or fault with the analyser.

Interpretation of the results

It seems that the USB controller in the Pinephone is not being correctly initialised by the OpenBSD kernel.

Article navigation

=> Part 1 - Building the installation media and installing. | Part 2 - Booting the completed installation and initial information gathering. | Part 4 - Investigating errors from sxirsb. | Part 5 - Controlling the LEDs and vibration motor. | Part 6 - PMIC and battery charging. | Part 7 - External keyboard battery.

=> Home page of the Exotic Silicon gemini capsule. | Your use of this gemini capsule is subject to the terms and conditions of use.

Copyright 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Exotic Silicon. All rights reserved.

Proxy Information
Original URL
gemini://gemini.exoticsilicon.com/series/pinephone_openbsd/part_3
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
380.459283 milliseconds
Gemini-to-HTML Time
1.656895 milliseconds

This content has been proxied by September (3851b).