Pi4 cooling fan
Chris Johnson (125) 825 posts |
Well, that explains why CPUClock does not control the fan, and the little Basic progs give errors – the GPIO module is inactive. The question is – why has the GPIO module been set dormant? Will a *rmreinit GPIO turn things back on again, or has the OS detected some hardware problem? |
George T. Greenfield (154) 748 posts |
Looks like it: *rmreinit GPIO In an email exchange, Andrew Conroy suggested the PWM configuration of this fan might be an issue, if that was unsupported by CPUClock. |
Stuart Swales (8827) 1349 posts |
You might need to run a newer OS/firmware on your Pi4? Have a look at this thread: https://www.riscosopen.org/forum/forums/11/topics/15958#posts-112470 |
George T. Greenfield (154) 748 posts |
I updated FIXUP4/DAT and CONFIG/TXT fifteen days ago, when I acquired this Pi4B (successor to the one that expired last year), so I don’t think that’s an issue. However, I am still running 5.29 (04-Nov-21). I’ll check the link; thanks. |
Chris Hall (132) 3554 posts |
Run ScreenHelp – that will show the date of the EEPROM as well as firmware and rom. |
Stuart Swales (8827) 1349 posts |
Pi 4B Rev 1.5 support was added on 5th Feb 2022: https://gitlab.riscosopen.org/RiscOS/Sources/HAL/HAL_BCM2835/-/commit/1de3db8c9e0cfc103e0a2698f2a8560db1fbdd02 |
George T. Greenfield (154) 748 posts |
ScreenHelp says: Raspberry Pi Model 4B (4096Mbytes) PCB revision 5 (C03115) RISC OS 5.29H (04 Nov 2021); PROM: 2023/01/11 17:4 |
Chris Hughes (2123) 336 posts |
Just for reference my 4te2 (Pi 4B) has RISC OS 5.29H (26 Jun 2022) PCB revision 5 (C03115) help on GPIO gives GPIO 1.00 (24 Jun 2021) HAL.7 – note it is in ROM. |
Chris Johnson (125) 825 posts |
It looks like Risc OS is not recognising some hardware aspect.
This would be entirely separate – the GPIO module would be active etc, but CPUClock would not be able to control the fan correctly. Not sure how this particular fan does PWM. It is a three wire device, as I understand it. It is possible to do PWM by simply toggling the fan on/off rapidly, and setting the on/off pulse lengths appropriately to change the fan speed. However, I thought that that requires much more processing, which would (a) increase the amount of work done in the call back routines and (b) could also cause the CPU temperature to rise due to more processing. |
George T. Greenfield (154) 748 posts |
Could it be I need to update my OS version from the November 2021 iteration of 5.29? |
Stuart Painting (5389) 712 posts |
According to my notes, you’ll need a RISC OS 5.29 ROM dated 2022-02-06 or later to get GPIO working, and if you want a working Ethernet port you may need a 5.29 ROM dated 2023-09-05 or later. By the looks of things you’ve already got the right firmware.1 1 The Pi 4B rev 1.5 won’t boot if start4.elf is too old, so you may already have updated start4.elf and fixup4.dat. |
George T. Greenfield (154) 748 posts |
Yes, both of those. As you say, it boots!
Is there any reason /not/ to install the latest build? |
Chris Hall (132) 3554 posts |
The latest build, on the CM4 Lite (and perhaps other variants of Pi 4) will not read most SD cards of size 32GB and above. This applies to any build on or after 21 Jan 2023, see bug #611. So you need a build from between these dates 6th Feb 2022 to 11 Jan 2023. If you have a CM4 with eMMc, then you need the latest rom. |
George T. Greenfield (154) 748 posts |
I don’t know where to get such a build – the only option available here AFAICS https://www.riscosopen.org/wiki/documentation/show/Software%20information:%20RaspberryPi:%20Beta%20RPi%20ROM |
Stuart Painting (5389) 712 posts |
If you go to this page on the Wayback Machine and click on the “Beta RPi ROM” link you’ll get a RISC OS 5.29 ROM dated April 2022. This process is rather hit-and-miss: the Wayback Machine only captures a tiny proportion of beta ROMs. |
Stuart Swales (8827) 1349 posts |
My Pi 4B (rev 4) is working fine with a 32GB SD card and 09-Jan-24 5.29 OS. Happily controls fan. |
David Pitt (9872) 362 posts |
My Pi 4B (rev 5) is working fine with a 32GB SD card and 28-Jan-24 5.29 ROM and 09-Jan-25 !Boot. There is no fan, it is passively cooled with an Armour Heatsink case. The GPIO module has initialised. ROM and !Boot should both be updated. The CM4 has card issues AIUI, but the RPI4 is not a CM4. |
George T. Greenfield (154) 748 posts |
Thanks for all the help/advice, chaps. Away now for a couple of weeks, will look into all when I get back. |
David Pitt (9872) 362 posts |
The OS5.28 (10-Feb-22) ROM should be good to go an RPi4 rev5. A quick look here shows the GPIO module to be active. *FX0 RISC OS 5.28 (10 Feb 2022) * *Help GPIO ==> Help on keyword GPIO Module is: GPIO 1.00 (31 Mar 2018) 1.11.2.5 Revision code B03115 Revision no. 5 There is no actual fan on my RPi4 rev5 so this suggestion is not fully tested. |
Alan Adams (2486) 1147 posts |
I have recently bought RPI4B, and Armorlite heatsink and fan working together here. RO5.28 10-Feb-2022. I don’t know how to check the revision of the RPI. |
David Pitt (9872) 362 posts |
Chris Hall’s excellent ScreenHelp from the PlingStore obliges. Revision codes are described here |
Alan Adams (2486) 1147 posts |
Unfortunately it doesn’t here. It gives “Object to big for group”. Increasing wimp slot doesn’t fix it. RO5.28 on rpi-4B. It does function on my ARMX6, and on a pi3B running 5.29 22-Dec-2022. |
Stuart Swales (8827) 1349 posts |
If ScreenHelp isn’t working, you can try this BASIC prog: https://www.riscosopen.org/forum/forums/11/topics/15958#posts-112470 |
David Pitt (9872) 362 posts |
It is OK here everywhere, including on OS5.28 RPi4 rev5. Where ever does that error come from?? |
Alan Adams (2486) 1147 posts |
14:04:43.07 * Error * |