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
#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
#3
PWM backlight in action:
#4
Looking forward on the openBSD with desktop OS build soon.
#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!
#6
News:
- official sxiccmu driver now handles A64 clocks!
https://marc.info/?l=openbsd-cvs&m=156742973911721&w=2
#7
News:
- Sent proposal for thermal zones support to OpenBSD tech@:
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
#8
News:
- Thermal zones support was accepted upstream!
https://marc.info/?l=openbsd-cvs&m=156908022803778&w=2
#9
And a ready to use image is here!
https://wiki.pine64.org/index.php/1080P_...se#OpenBSD


.jpeg   IMG_1373.jpeg (Size: 152.6 KB / Downloads: 773)
#10
(09-26-2019, 05:42 PM)elewarr Wrote: And a ready to use image is here!
https://wiki.pine64.org/index.php/1080P_...se#OpenBSD

Thanks, I will try out on this weekend :-)


Possibly Related Threads…
Thread Author Replies Views Last Post
Thumbs Up NetBSD for Pinebook Luke 20 39,792 10-21-2020, 03:39 AM
Last Post: rckt
  FreeBSD for Pinebook e-minguez 4 10,439 10-14-2020, 05:12 PM
Last Post: zer0sig
Question OpenBSD 6.7 on Pinebook 1080p SKG 4 8,936 05-25-2020, 08:15 AM
Last Post: SKG
  OpenBSD on Pinebook 1080p? binholz 29 42,748 03-18-2020, 06:42 AM
Last Post: ab1jx

Forum Jump:


Users browsing this thread: 1 Guest(s)