Date: Fri, 12 Jun 2026 22:01:15 -0700 From: Mark Millard <marklmi@yahoo.com> To: Jeremy McMillan <jtmcmillan@pm.me>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: Need testers for ALPHA RPi-5 fan control, GE NIC, WiFi drivers for FreeBSD-CURRENT Message-ID: <09fca447-a505-400a-a891-68de368e9c79@yahoo.com> In-Reply-To: <9YCJYFriU7X2_37aSWQTo5jJSmaf46t827hI4KjmCLaCFNGbgMj4MxRzc4-sUSig2RolfvNOWikCxYuWL3YJfqMgw-5d4FDjG8xtnRGJyMY=@pm.me>
index | next in thread | previous in thread | raw e-mail
On 5/29/26 17:42, Jeremy McMillan wrote: > > > If anyone has a Raspberry Pi 5 that's not dedicated to anything > important, I'd appreciate some help testing this: > > https://github.com/aphor/FreeBSD15-RPi5-modules <https://github.com/ > aphor/FreeBSD15-RPi5-modules> > > The README.md is up to date, but other docs in there might be stale. > > IDK if I should try to implement Bluetooth yet. I haven't tried using > FreeBSD bluetooth with working known-good drivers on supported hardware, > but when this is relatively complete I'm planning to do some bug fixing > and performance improvements where necessary in a BETA phase, then a > rewrite from scratch for maintainability that can be submitted to > FreeBSD-CURRENT. I know the repo says FreeBSD15, but I'm currently > building against FreeBSD-16-CURRENT. I've had feedback that the fan > control works fine on FreeBSD-15. > > I also don't know what I should do about GPIO testing. I'd appreciate > any pointers if other people work with RPi hardware and have any > pointers for testing GPIO stuff. I think there's a few pins that can do > DAC and ADC and others that can do PWM (like the ones used for the fan > header) when programmed to different modes. I have an oscilloscope, but > I'd like to automate testing as much as possible because my spare time > is precious. > > It seems like RPi-5 will be around for a while under the current market > conditions for the semiconductor business, and it is my hope that > FreeBSD can deserve and get more attention and support from Broadcom and > Raspberry Pi. Also, I have my own projects :) > > Thanks in advance for your attention! The INTEGRATION_GUIDE.md reports: QUOTE View Current Configuration sysctl -a hw.rpi5.cooling_fan END QUOTE But there is no such in my experiment with the fan control: # make -f Makefile.rpi5 load /sbin/kldload -v /root/Rbcm2712: AVS thermal sensor mapped at 0x107d542000 bcm2712: RP1 PWM1 controller mapped at 0x1f0009c000 bcm2712: RP1 PWM1 clock enabled (CTRL=0x10000840 DIV_INT=8) bcm2712: GPIO45 CTRL before=0x85 (FUNCSEL=5) bcm2712: GPIO45 CTRL after=0x80 (FUNCSEL=0, pwm1) bcm2712: Thermal sensor initialized Pi5-fbsd-kernel-fan-control/rpi5.ko rpi5: Raspberry Pi 5 board support loading rpi5: Cooling fan thermal management started L/RPi5-fbsd-kernel-fan-control/rpi5.ko, id=3 ("-v /root/Rbcm2712:"? "Pi5-fbsd-kernel-fan-control"? "L/"?) # sysctl -a hw.rpi5.cooling_fan sysctl: unknown oid 'hw.rpi5.cooling_fan' # sysctl hw.rpi5 hw.rpi5.fan.rpm: 7543 hw.rpi5.fan.current_state: 2 hw.rpi5.fan.cpu_temp: 66100 hw.rpi5.fan.speed3: 250 hw.rpi5.fan.speed2: 175 hw.rpi5.fan.speed1: 125 hw.rpi5.fan.speed0: 75 hw.rpi5.fan.temp3_hyst: 5000 hw.rpi5.fan.temp2_hyst: 5000 hw.rpi5.fan.temp1_hyst: 5000 hw.rpi5.fan.temp0_hyst: 5000 hw.rpi5.fan.temp3: 75000 hw.rpi5.fan.temp2: 67500 hw.rpi5.fan.temp1: 60000 hw.rpi5.fan.temp0: 50000 Is hw.rpi5.fan.temp0 being below the hw.rpi5.fan.temp0_hyst (or other such combinations) well supported? I've not checked. I set up: # # Have experimental cooling fan control always use full speed sysctl hw.rpi5.fan.temp0=0 sysctl hw.rpi5.fan.speed0=255 sysctl hw.rpi5.fan.speed1=255 sysctl hw.rpi5.fan.speed2=255 sysctl hw.rpi5.fan.speed3=255 It does have the fan spinning. (I've not checked if loading or use is well protect against being used on non-RPi5 systems.) Note the "machine" line in: # pwd /root/RPi5-fbsd-kernel-fan-control # ls -lodTt * -rwxr-xr-x 1 root wheel - 11760 Jun 12 20:51:30 2026 rpi5.ko -rw-r--r-- 1 root wheel - 0 Jun 12 20:51:30 2026 export_syms -rw-r--r-- 1 root wheel - 13360 Jun 12 20:51:30 2026 rpi5.kld -rw-r--r-- 1 root wheel - 12944 Jun 12 20:51:30 2026 rpi5.o -rwxr-xr-x 1 root wheel - 13856 Jun 12 20:50:37 2026 bcm2712.ko -rw-r--r-- 1 root wheel - 14416 Jun 12 20:50:37 2026 bcm2712.kld -rw-r--r-- 1 root wheel - 14264 Jun 12 20:50:37 2026 bcm2712.o -rw-r--r-- 1 root wheel - 105 Jun 12 20:50:36 2026 opt_global.h -rw-r--r-- 1 root wheel - 0 Jun 12 20:50:36 2026 opt_fdt.h -rw-r--r-- 1 root wheel - 4586 Jun 12 20:50:36 2026 pwmbus_if.h -rw-r--r-- 1 root wheel - 48642 Jun 12 20:50:36 2026 bus_if.h -rw-r--r-- 1 root wheel - 12243 Jun 12 20:50:36 2026 device_if.h lrwxr-xr-x 1 root wheel - 26 Jun 12 20:50:36 2026 machine -> /usr/src/sys/arm64/include -rw-r--r-- 1 root wheel - 395 Jun 12 20:49:50 2026 Makefile.bcm2712 -rw-r--r-- 1 root wheel - 284 Jun 12 20:49:25 2026 Makefile.rpi5 -rw-r--r-- 1 root wheel - 17371 Jun 12 20:46:07 2026 bcm2712.c -rw-r--r-- 1 root wheel - 6947 Jun 12 20:44:18 2026 bcm2712_var.h -rw-r--r-- 1 root wheel - 14810 Jun 12 20:39:42 2026 rpi5.c In my context /usr/src/sys/ is from pkgbase. But . . . # ls -dC1 /usr/*src*/sys/ /usr/main-src/sys/ /usr/official-src/sys/ /usr/release-src/sys/ /usr/src-alt/sys/ /usr/src/sys/ I have the pkgbase kernels --and personal ones based on main-src . A non-technical note: * Copyright (c) 2025 FreeBSD Contributors I'm not sure that "FreeBSD Contributors" can hold a Copyright or be requested to authorize changes to the licensing, etc. (But I'm no lawyer.) -- === Mark Millard marklmi at yahoo.comhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?09fca447-a505-400a-a891-68de368e9c79>
