Skip to content

Commit

Permalink
Alter and load device tree overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Cellane committed May 18, 2024
1 parent 574ec4a commit 7ad488b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ dtparam=act_led_trigger=heartbeat
# To turn the LED completely off comment out the previous line and uncomment
# the next.
#dtparam=act_led_trigger=none

dtoverlay=gpio-ir,gpio_pin=18
dtoverlay=gpio-ir-tx,gpio_pin=17
12 changes: 12 additions & 0 deletions config/fwup.conf
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ file-resource dwc2.dtbo {
file-resource miniuart-bt.dtbo {
host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/miniuart-bt.dtbo"
}
file-resource gpio-ir.dtbo {
host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/gpio-ir.dtbo"
}
file-resource gpio-ir-tx.dtbo {
host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/gpio-ir-tx.dtbo"
}
file-resource ramoops.dtbo {
host-path = "${NERVES_SYSTEM}/images/ramoops.dtb"
}
Expand Down Expand Up @@ -233,6 +239,8 @@ task complete {
on-resource w1-gpio-pullup.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/w1-gpio-pullup.dtbo") }
on-resource dwc2.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/dwc2.dtbo") }
on-resource miniuart-bt.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/miniuart-bt.dtbo") }
on-resource gpio-ir.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/gpio-ir.dtbo") }
on-resource gpio-ir-tx.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/gpio-ir-tx.dtbo") }
on-resource ramoops.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ramoops.dtbo") }

on-resource rootfs.img {
Expand Down Expand Up @@ -298,6 +306,8 @@ task upgrade.a {
on-resource w1-gpio-pullup.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/w1-gpio-pullup.dtbo") }
on-resource dwc2.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/dwc2.dtbo") }
on-resource miniuart-bt.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/miniuart-bt.dtbo") }
on-resource gpio-ir.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/gpio-ir.dtbo") }
on-resource gpio-ir-tx.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/gpio-ir-tx.dtbo") }
on-resource ramoops.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ramoops.dtbo") }
on-resource rootfs.img {
delta-source-raw-offset=${ROOTFS_B_PART_OFFSET}
Expand Down Expand Up @@ -370,6 +380,8 @@ task upgrade.b {
on-resource w1-gpio-pullup.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/w1-gpio-pullup.dtbo") }
on-resource dwc2.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/dwc2.dtbo") }
on-resource miniuart-bt.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/miniuart-bt.dtbo") }
on-resource gpio-ir.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/gpio-ir.dtbo") }
on-resource gpio-ir-tx.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/gpio-ir-tx.dtbo") }
on-resource ramoops.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/ramoops.dtbo") }
on-resource rootfs.img {
delta-source-raw-offset=${ROOTFS_A_PART_OFFSET}
Expand Down

0 comments on commit 7ad488b

Please sign in to comment.