dreamlax007
Posts: 15
Joined: Tue Oct 13, 2020 1:36 pm

Graphics Programming on OpenBSD on Rpi : Is it feasible?

Sun Oct 10, 2021 6:32 am

Hello,

I recently switched to openBSD on Pi4 and found it to be a very responsive and stable. The Fast File system and other os aspects seems to shine very well on RPi4.

I am very curious to know if graphics programming is possible on OpenBSD (or BSD derivatives). Can the graphics drivers be made available on OpenBSD and if not, then what are the hurdles.

Thanks
-Sandeep

User avatar
scruss
Posts: 4381
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Graphics Programming on OpenBSD on Rpi : Is it feasible?

Sun Oct 10, 2021 4:18 pm

Best to ask through their support channels: Raspberry Pi OS is the only OS supported here, and there are no OpenBSD sections in the Other Operating Systems subforum.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

dreamlax007
Posts: 15
Joined: Tue Oct 13, 2020 1:36 pm

Re: Graphics Programming on OpenBSD on Rpi : Is it feasible?

Mon Oct 11, 2021 3:46 am

I guess this is a two part question -- one regarding availabilty of drivers for RPI4 gpus and other how to get to those drivers on openBSD.
I wanted to know about part 1. Are the drivers for RPi4 GPUs (its FKMS, if i am not mistaken) open source, or, are they debian compatiable binary bits.
If they are binary bits then there is no chance of using those with openBSD.

cleverca22
Posts: 4741
Joined: Sat Aug 18, 2012 2:33 pm

Re: Graphics Programming on OpenBSD on Rpi : Is it feasible?

Mon Oct 11, 2021 3:50 am

fkms (firmware kms) is both binary blob and source
https://github.com/raspberrypi/linux/tr ... pu/drm/vc4

fkms is the linux source to present a standard KMS api to userland, but then convert all commands to firmware api calls, and let the blob manage the hw

kms (without the f) is the linux source to present the same api, but manage the hw entirely from linux

in both cases, the 3d core on the pi4 is still entirely managed by linux, since the blob lacks support for the pi4 3d core

User avatar
Gavinmc42
Posts: 6205
Joined: Wed Aug 28, 2013 3:31 am

Re: Graphics Programming on OpenBSD on Rpi : Is it feasible?

Mon Oct 11, 2021 5:18 am

I do more Free Pascal coding than any other method now.
This might be worth a try.
https://wiki.freepascal.org/Portal:FreeBSD

Been years since I tried BSD on a Pi.
No idea if there is a ARM BSD port.
Will a bootstrap ARM BSD version need to be cross compiled first?

Maybe better asking on the BSD forums.
I notice there are KMS And New drm2 Video Drivers since 10.x.
Pi VC6 ARM versions?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “Graphics programming”