[openwrt/openwrt] ramips: define loadaddr for all UniFi devices

LEDE Commits lede-commits at lists.infradead.org
Wed Dec 7 03:31:13 PST 2022


blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/bc14925f3de510937a5a73598fda481f5c00ee26

commit bc14925f3de510937a5a73598fda481f5c00ee26
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Thu Nov 17 22:48:10 2022 +0100

    ramips: define loadaddr for all UniFi devices
    
    Define the load-address for the DTB of all Ubiquiti UniFi devices using
    FIT images. From the GPL code we can assume these boards are affected by
    the same relocating issue with the vendor bootloader.
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
---
 target/linux/ramips/image/mt7621.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index 18ac8ac136..9d8641352a 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -2064,6 +2064,7 @@ define Device/ubnt_unifi-flexhd
   DEVICE_VENDOR := Ubiquiti
   DEVICE_MODEL := UniFi FlexHD
   DEVICE_DTS_CONFIG := config at 2
+  DEVICE_DTS_LOADADDR := 0x87000000
   KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
   DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware kmod-leds-ubnt-ledbar
   IMAGE_SIZE := 15552k
@@ -2084,6 +2085,7 @@ define Device/ubnt_usw-flex
   DEVICE_VENDOR := Ubiquiti
   DEVICE_MODEL := UniFi Switch Flex
   DEVICE_DTS_CONFIG := config at 1
+  DEVICE_DTS_LOADADDR := 0x87000000
   KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
   IMAGE_SIZE := 7360k
 endef




More information about the lede-commits mailing list