sudo cp ../../files/wpa.conf etc/wpa_supplicant/wpa_supplicant.conf
sudo cp ../../files/rc.local etc/rc.local
sudo cp ../../files/30-modeset.conf etc/X11/xorg.conf.d/30-modeset.conf
+ sudo cp ../../files/blacklist.conf etc/modprobe.d/
sudo bash -c 'chroot . apt update'
sudo bash -c 'chroot . apt install -y firmware-linux'
system("sha256sum $firmware_tarball > $firmware_manifest");
system("tar -C /lib/firmware/ -xf $firmware_tarball");
- system('rmmod brcmfmac');
- system('rmmod brcmutil');
- sleep(1);
- system('modprobe brcmfmac');
- sleep(1);
- system('rmmod brcmfmac');
- sleep(1);
+ unlink('/etc/modprobe.d/blacklist.conf');
system('modprobe brcmfmac');
}
system("mount -o ro $dev /mnt");
if (-f $firmware_tarball) {
system("tar -C /lib/firmware/ -xf $firmware_tarball");
- system('rmmod brcmfmac');
- system('rmmod brcmutil');
- sleep(1);
- system('modprobe brcmfmac');
- sleep(1);
- system('rmmod brcmfmac');
- sleep(1);
+ unlink('/etc/modprobe.d/blacklist.conf');
system('modprobe brcmfmac');
}
system('umount /mnt');
-
}
+++ /dev/null
-#!/bin/sh
-
-FIRMWARE=/mnt/vendorfw/firmware.tar
-
-for DEVICE in /dev/nvme0n1p4 /dev/nvme0n1p5 /dev/nvme0n1p6; do
- mount -o ro -t vfat $DEVICE /mnt;
- if test -f ${FIRMWARE}; then
- tar -C /lib/firmware -xf ${FIRMWARE}
- rmmod brcmfmac
- rmmod brcmutil
- sleep 1
- modprobe brcmfmac
- sleep 1
- rmmod brcmfmac
- sleep 1
- modprobe brcmfmac
- umount /mnt
- exit
- fi
- umount /mnt
-done