X735-script: Difference between revisions
| Line 318: | Line 318: | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="toccolours mw-collapsible mw-collapsed"> | |||
<div style="font-weight:bold;line-height:1.0;"> | |||
Q7: Fan control fails on FreedomBox OS or Pure Debian (Missing dtbo files) | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
A: | |||
**Issue:** | |||
When using FreedomBox OS (or some minimal Debian installations), even after following the installation guide, the fan does not spin. Running `dmesg | grep pwm` returns nothing, and the `/boot/firmware/overlays/` directory is missing the required `pwm-2chan.dtbo` file. | |||
**Cause:** | |||
FreedomBox and some minimal Linux distributions do not include the Raspberry Pi specific Device Tree Overlays by default. The line `dtoverlay=pwm-2chan` in `config.txt` fails to load because the underlying driver file is missing from the system. | |||
**Solution:** | |||
You need to manually download the missing overlay files from the Raspberry Pi firmware repository. | |||
1. **Check for Missing Files:** | |||
First, verify that the files are missing: | |||
```bash | |||
ls /boot/firmware/overlays/ | grep pwm | |||
``` | |||
*(If no results are shown, the files are missing)* | |||
2. **Download the Required Overlays:** | |||
Manually download the necessary `.dtbo` files directly to your overlays directory. You can use `wget` for this: | |||
```bash | |||
cd /tmp | |||
wget https://raw.githubusercontent.com/raspberrypi/firmware/master/boot/overlays/pwm-2chan.dtbo | |||
wget https://raw.githubusercontent.com/raspberrypi/firmware/master/boot/overlays/pwm-gpio-fan.dtbo | |||
# ... (Download other pwm*.dtbo files if needed) | |||
# Move them to the correct directory | |||
sudo mv pwm*.dtbo /boot/firmware/overlays/ | |||
``` | |||
3. **Configure and Reboot:** | |||
Ensure your `/boot/firmware/config.txt` contains the correct overlay line (usually handled by our script), then reboot: | |||
```bash | |||
sudo reboot | |||
``` | |||
4. **Verification:** | |||
After rebooting, check if the overlay loaded successfully: | |||
```bash | |||
dmesg | grep -i pwm | |||
``` | |||
You should now see logs indicating the PWM overlay has been loaded, and the fan script should function correctly. | |||
</div> | |||
</div> | |||
<div class="toccolours mw-collapsible mw-collapsed"> | |||
<div style="font-weight:bold;line-height:1.0;"> | |||