Skip to content

Commit

Permalink
Condition if kernel 5.4.83
Browse files Browse the repository at this point in the history
  • Loading branch information
volumio committed Feb 7, 2022
1 parent 98f907b commit 2e3149f
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions recipes/devices/pi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,45 +193,45 @@ device_chroot_tweaks_pre() {
rm -rf "/lib/modules/${KERNEL_VERSION}-v8+"
fi

### Temporary fix for Rasbperry PI 1.5
### Important: remove this when kernel > 5.10.80
### We use this as kernel 5.10.89 does not work with some USB DACs preventing latest kernel to be used
log "Downloading Firmware to support PI4 v 1.5"
wget -O /boot/bcm2708-rpi-b-plus.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-b-plus.dtb
wget -O /boot/bcm2708-rpi-b-rev1.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-b-rev1.dtb
wget -O /boot/bcm2708-rpi-b.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-b.dtb
wget -O /boot/bcm2708-rpi-cm.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-cm.dtb
wget -O /boot/bcm2708-rpi-zero-w.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-zero-w.dtb
wget -O /boot/bcm2708-rpi-zero.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-zero.dtb
wget -O /boot/bcm2709-rpi-2-b.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2709-rpi-2-b.dtb
wget -O /boot/bcm2710-rpi-2-b.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-2-b.dtb
wget -O /boot/bcm2710-rpi-3-b-plus.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-3-b-plus.dtb
wget -O /boot/bcm2710-rpi-3-b.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-3-b.dtb
wget -O /boot/bcm2710-rpi-cm3.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-cm3.dtb
wget -O /boot/bcm2710-rpi-zero-2-w.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-zero-2-w.dtb
wget -O /boot/bcm2710-rpi-zero-2.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-zero-2.dtb
wget -O /boot/bcm2711-rpi-4-b.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2711-rpi-4-b.dtb
wget -O /boot/bcm2711-rpi-400.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2711-rpi-400.dtb
wget -O /boot/bcm2711-rpi-cm4.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2711-rpi-cm4.dtb
wget -O /boot/bcm2711-rpi-cm4s.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2711-rpi-cm4s.dtb
wget -O /boot/bootcode.bin https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bootcode.bin
wget -O /boot/fixup.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup.dat
wget -O /boot/fixup4.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup4.dat
wget -O /boot/fixup4cd.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup4cd.dat
wget -O /boot/fixup4db.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup4db.dat
wget -O /boot/fixup4x.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup4x.dat
wget -O /boot/fixup_cd.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup_cd.dat
wget -O /boot/fixup_db.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup_db.dat
wget -O /boot/fixup_x.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup_x.dat
wget -O /boot/start.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start.elf
wget -O /boot/start4.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start4.elf
wget -O /boot/start4cd.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start4cd.elf
wget -O /boot/start4db.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start4db.elf
wget -O /boot/start4x.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start4x.elf
wget -O /boot/start_cd.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start_cd.elf
wget -O /boot/start_db.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start_db.elf
wget -O /boot/start_x.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start_x.elf

if [ "$ KERNEL_VERSION" = "5.4.83" ]; then
### Temporary fix for Rasbperry PI 1.5
### We use this as kernel 5.10.89 does not work with some USB DACs preventing latest kernel to be used
log "Downloading Firmware to support PI4 v 1.5"
wget -O /boot/bcm2708-rpi-b-plus.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-b-plus.dtb
wget -O /boot/bcm2708-rpi-b-rev1.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-b-rev1.dtb
wget -O /boot/bcm2708-rpi-b.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-b.dtb
wget -O /boot/bcm2708-rpi-cm.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-cm.dtb
wget -O /boot/bcm2708-rpi-zero-w.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-zero-w.dtb
wget -O /boot/bcm2708-rpi-zero.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2708-rpi-zero.dtb
wget -O /boot/bcm2709-rpi-2-b.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2709-rpi-2-b.dtb
wget -O /boot/bcm2710-rpi-2-b.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-2-b.dtb
wget -O /boot/bcm2710-rpi-3-b-plus.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-3-b-plus.dtb
wget -O /boot/bcm2710-rpi-3-b.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-3-b.dtb
wget -O /boot/bcm2710-rpi-cm3.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-cm3.dtb
wget -O /boot/bcm2710-rpi-zero-2-w.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-zero-2-w.dtb
wget -O /boot/bcm2710-rpi-zero-2.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2710-rpi-zero-2.dtb
wget -O /boot/bcm2711-rpi-4-b.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2711-rpi-4-b.dtb
wget -O /boot/bcm2711-rpi-400.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2711-rpi-400.dtb
wget -O /boot/bcm2711-rpi-cm4.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2711-rpi-cm4.dtb
wget -O /boot/bcm2711-rpi-cm4s.dtb https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bcm2711-rpi-cm4s.dtb
wget -O /boot/bootcode.bin https://github.com/raspberrypi/firmware/raw/9c04ed2c1ad06a615d8e6479806ab252dbbeb95a/boot/bootcode.bin
wget -O /boot/fixup.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup.dat
wget -O /boot/fixup4.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup4.dat
wget -O /boot/fixup4cd.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup4cd.dat
wget -O /boot/fixup4db.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup4db.dat
wget -O /boot/fixup4x.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup4x.dat
wget -O /boot/fixup_cd.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup_cd.dat
wget -O /boot/fixup_db.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup_db.dat
wget -O /boot/fixup_x.dat https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/fixup_x.dat
wget -O /boot/start.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start.elf
wget -O /boot/start4.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start4.elf
wget -O /boot/start4cd.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start4cd.elf
wget -O /boot/start4db.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start4db.elf
wget -O /boot/start4x.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start4x.elf
wget -O /boot/start_cd.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start_cd.elf
wget -O /boot/start_db.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start_db.elf
wget -O /boot/start_x.elf https://github.com/raspberrypi/firmware/raw/165bd7bc5622ee1c721aa5da9af68935075abedd/boot/start_x.elf
fi

log "Finished Kernel installation" "okay"

Expand Down

0 comments on commit 2e3149f

Please sign in to comment.