OpenBSD on Pinebook - improving user experience
#1
Hello!

Some time ago I bough A64+, then had a chance to buy Pinebook.
The plan was to run OpenBSD on both and get involved in driver development.

I maintain a few patches to OpenBSD (slowly trying them to be upstreamed).
But the code needs modified device tree, so my second repo is u-boot related (but also it's just an addition to OpenBSD's u-boot port).

Repositiories:
1. u-boot additions: https://github.com/elewarr/openbsd-ports-u-boot
2. OpenBSD src patches: https://github.com/elewarr/openbsd-arm64-src-dev

Please note, these repositories have instructions to help you get involved (with some scripts that are not very reliable but fulfil basic needs).

Status:
1. sxitemp, sxisid
  sxitemp driver relies on sxisid and uses calibration data, providing accurate temperature readings.
2. sxiuphy
  This driver (provided by Patrick Wildt) enables 2nd USB port is disabled by default for now because of unsolved issues on A64+, uncomment sxiuphy in GENERIC config to enable.
3. sxiccmu
  Enables dynamic CPU frequencies.
4. axppmic
  Supports more PMIC sensors. Current battery capacity, voltage, dis/charging current.


Work in progress:
1. sxipwm
  OpenBSD does not have PWM framework but this is needed for
2. pwmbl
  PWM backlight driverThe idea is to provide basic support for wsconsctl brightness property using PWN and generic PWM based backlight driver.Current status: brightness is set to max at boot.

I was eager to get my hands on Pinebook Pro but because of some technical issues I failed to get my voucher in time. Maybe I'll have more luck in the future. I'm aware this work (focused on Pinebook) may not be useful for Rockchip ICs but I want to learn something and this is a lot of fun!

Booting with the full brightness, yay!
https://www.dropbox.com/s/q3v8kqus9obnpn....jpeg?dl=0


And my small test bench. Smile
https://www.dropbox.com/s/qcih55ehoovbff....jpeg?dl=0
  Reply
#2
Good news!
axppmic is now in the official repository, thanks to Mark Kettenis.

It needs device tree to contain (it's not yet in my u-boot repository):
Code:
x-powers,axp803-battery-power-supply

Sample output:
Code:
hw.sensors.axppmic0.temp0=66.56 degC
hw.sensors.axppmic0.volt0=3.64 VDC (battery voltage)
hw.sensors.axppmic0.current0=0.00 A (battery charging current)
hw.sensors.axppmic0.current1=0.24 A (battery discharging current)
hw.sensors.axppmic0.amphour0=0.00 Ah (battery maximum capacity), WARNING
hw.sensors.axppmic0.amphour1=0.00 Ah (battery current capacity), WARNING
hw.sensors.axppmic0.indicator0=On (ACIN), OK
hw.sensors.axppmic0.indicator1=Off (VBUS)
hw.sensors.axppmic0.indicator2=On (battery present), OK
hw.sensors.axppmic0.indicator3=On (battery charging), OK
hw.sensors.axppmic0.percent0=15.00% (battery percent), WARNING
  Reply
#3
PWM backlight in action:
  Reply
#4
Looking forward on the openBSD with desktop OS build soon.
  Reply
#5
@tllim, PM.

News:
- Sent proposal for clock management to OpenBSD @tech:
https://marc.info/?l=openbsd-tech&m=156703718806657&w=2

- Unexpected reboots were reported on "my" kernel (but I was unable to reproduce them):
https://twitter.com/adi3v/status/1167167...62631?s=20
Check your temps chaps!
  Reply
#6
News:
- official sxiccmu driver now handles A64 clocks!
https://marc.info/?l=openbsd-cvs&m=156742973911721&w=2
  Reply
#7
News:
- Sent proposal for thermal zones support to OpenBSD [email protected]:
https://marc.info/?l=openbsd-tech&m=156780452215125&w=2
- u-boot port patching script is now a bit more flexible, patches contain battery (axppmic) and thermal zones (sxitemp) definitions:
https://github.com/elewarr/openbsd-ports...bceaa7ffdc
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  FreeBSD for Pinebook e-minguez 4 1,311 07-15-2019, 09:51 AM
Last Post: abdel
Thumbs Up NetBSD for Pinebook Luke 17 5,732 07-09-2019, 08:11 PM
Last Post: Der Geist der Maschine
  OpenBSD on Pinebook 1080p? binholz 3 1,526 05-30-2019, 06:01 PM
Last Post: ninefathom

Forum Jump:


Users browsing this thread: 1 Guest(s)