Skip to content

Commit 791ccaf

Browse files
committed
Raspberry Pi: Add uncompressed wireless FW to Ubuntu releases
Ubuntu uses compressed "*.zst" firmware of which the kernel has issue. Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
1 parent 078dde1 commit 791ccaf

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

config/sources/families/bcm2711.conf

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,6 @@ function post_family_tweaks_bsp__add_hooks_to_move_kernel_initrd_and_dtb() {
180180
run_host_command_logged chmod a+x "${destination}"/etc/initramfs/post-update.d/zzz-update-initramfs
181181
}
182182

183-
function post_family_tweaks_bsp__rpi_firmware() {
184-
display_alert "$BOARD" "Installing firmware" "info"
185-
git clone https://github.com/pyavitz/firmware.git --depth=1 -q "${destination}"/lib/firmware/updates/brcm
186-
rm -fdr "${destination}"/lib/firmware/updates/brcm/{.git,README.md}
187-
}
188-
189183
function post_family_tweaks_bsp__add_x11_config() {
190184
display_alert "rpi5b" "Adding X11 configuration" "info"
191185
run_host_command_logged mkdir -p "${destination}"/etc/X11/xorg.conf.d/
@@ -260,6 +254,15 @@ function pre_install_distribution_specific__add_rpi_packages() {
260254
fi
261255
}
262256

257+
function pre_install_distribution_specific__ubuntu_raspi_firmware() {
258+
# Ubuntu uses compressed "*.zst" firmware of which the kernel has issue.
259+
if [[ "${DISTRIBUTION}" == "Ubuntu" ]]; then
260+
display_alert "$DISTRIBUTION" "Adding uncompressed raspi-firmware" "info"
261+
chroot_sdcard git clone --depth=1 -q https://github.com/pyavitz/firmware.git -b brcm lib/firmware/updates
262+
rm -fdr "${SDCARD}"/lib/firmware/updates/.git
263+
fi
264+
}
265+
263266
function pre_install_distribution_specific__unblock_rfkill() {
264267
# Create a systemd service to unblock rfkill
265268
cat > "${SDCARD}/etc/systemd/system/unblock-rfkill.service" <<- EOT

0 commit comments

Comments
 (0)