# Troubleshooting

## Raspberry Pi

### The Wi-Fi module loads but nothing happens

`dmesg` says "loaded at boot, bring-up skipped". The module was loaded from `/boot/loader.conf`, which runs before the SDIO controller is ready. Remove it from `loader.conf` and use `kld_list="cywfm"` in `/etc/rc.conf` instead. Check with `sysctl hw.cywfm.stage`: it should say `net80211`.

### No Wi-Fi at all on a Zero 2 W

Look for `dtoverlay=mmc` in `config.txt` on the FAT partition. It switches the Wi-Fi bus off. Remove the line and reboot.

### The first connection after loading fails, the second works

Known on the Pi 4 and Pi 5. The firmware restarts its frame counter on each load, and some access points ignore the repeated first frame. `wpa_supplicant` retries on its own, so wait a few seconds. Details on the [Wi-Fi page](/rpi/wifi/#what-it-cannot-do-yet).

### A Pi 4 reboots by itself during disk writes while Wi-Fi is busy

That is the [shared SDHCI interrupt bug](/kernel/bcm2711-shared-sdhci-interrupt/). Make sure `hw.cywfm.irq_fix` is 1 (the default on the Pi 4). Do not try `hw.bcm2835.sdhci.pio_mode=1` as a workaround: with it the board does not boot.

### The compiler dies with "illegal instruction" (exit 132)

On a Pi 4 that usually means the power supply sags under load and the firmware has flagged under-voltage. Use a better supply, and build with one job (`make -j1`).

### The Pi 5 fan never spins

Without a driver the bootloader only starts it above 85 °C. Install [rp1fan](/rpi/fan/). If the fan runs at full speed all the time, check `sysctl hw.rp1fan.sensor_ok`: on an invalid temperature reading the driver goes to full speed on purpose.

### Temperature, cpufreq, watchdog or RNG are missing on the Pi 5

FreeBSD's drivers for them only attach from a device tree, and the Pi 5 boots through UEFI with ACPI. See the [SoC drivers](/rpi/soc/).

### A Zero 2 W stops booting after "armv8crypto0: CPU lacks AES instructions"

This happened on every boot after the Bluetooth radio was moved onto the mini UART in `config.txt`. Put the card in another computer and undo the `config.txt` change.

### No serial console on the Pi 5

FreeBSD 15.1 has no driver for the Pi 5's UART. A USB serial adapter works, but `hw.usb.ucom.cons_unit` in `loader.conf` [does not make it a console](/kernel/ucom-cons-unit-tunable/). Run `conscontrol add ucom` after boot.

### Reporting a Wi-Fi problem

```sh
sh tools/board-report.sh -d dump.txt > report.md
sh tools/self-test.sh -m driver/cywfm.ko > test.md
```

Attach both files to an issue on [freebsd-rpi-wifi](https://github.com/spagu/freebsd-rpi-wifi/issues).

## Dell XPS 13 9343

### "could not load firmware image" from the sound driver

On a ZFS root `/boot/firmware` is not readable yet when the driver attaches. Load the firmware module from `loader.conf` first: `acpi_intel_sst_fw_load="YES"` before `acpi_intel_sst_load="YES"`.

### The sound driver does not attach at all

The DSP is hidden by Dell's ACPI table until the patched DSDT is loaded, and the DSDT change only takes effect after a full power-off (`shutdown -p now`), not a reboot. See the [sound page](/laptop/audio/#install).

### No sound after resume

Fixed in acpi_intel_sst 0.69.0. Update to 0.69.3 or newer.

### Volume and mute do nothing

Fixed in 0.69.3. Older versions changed a DSP value that never reached the amplifier.

### `ig4iic1: controller error during attach-1`, no touchpad over I2C

The [ig4 bug](/laptop/touchpad/). Install the patched module, or wait for a release that includes PR 298558. After every `freebsd-update`, run `make install` again: the update puts the old `ig4.ko` back.

### `GPU HANG: ecode 8:1:85dfffff`, frozen desktop, moving mouse

drm-612-kmod 6.12.85 on 15.1. Update the package, or build the [fixed module](/laptop/gpu/).

### `sysctl: unknown oid` for `hw.intel_rapl` at boot

`rc.d/sysctl` ran before `rc.d/kld` loaded the module. Load intel_rapl from `/boot/loader.conf` (`intel_rapl_load="YES"`) instead of `kld_list`.

### `hw.intel_rapl.pl1_watts`: Operation not permitted

The firmware locked the power limit register. Dell does this on the XPS 13 9343. Reading the power draw still works.

### Collecting a sound bug report

```sh
sudo ./scripts/sst_report.sh
```

Attach the output to an issue on [acpi_intel_sst](https://github.com/spagu/acpi_intel_sst/issues).
