File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
189183function 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+
263266function pre_install_distribution_specific__unblock_rfkill() {
264267 # Create a systemd service to unblock rfkill
265268 cat > "${SDCARD}/etc/systemd/system/unblock-rfkill.service" <<- EOT
You can’t perform that action at this time.
0 commit comments