liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 5a224c89807ade481fd098e315b610166cc4c2a2
parent d0376d41016e0ddbd532b63f7fd3b2f4fcbcdf37
Author: Peter Collingbourne <peter@pcc.me.uk>
Date:   Sun, 26 Apr 2026 20:13:39 -0700

openwrt-one: Move the load address again

U-Boot declares a reserved-memory region at address 0x4fc00000 which makes
0x48000000 problematic for very large images. Move it again to 0x50000000.

Diffstat:
Mdevices/openwrt-one/default.nix | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/devices/openwrt-one/default.nix b/devices/openwrt-one/default.nix @@ -632,8 +632,11 @@ tftp = { # Should be a segment of free RAM, where the tftp artifact # can be stored before unpacking it to the 'hardware.loadAddress' - # This address is after the reserved-memory regions. - loadAddress = lim.parseInt "0x48000000"; + # This address is after the reserved-memory regions in both + # the kernel and OpenWrt's fork of U-Boot. + # https://github.com/torvalds/linux/blob/897d54018cc9aa97fd1529ca08a53b429d05a566/arch/arm64/boot/dts/mediatek/mt7981b.dtsi#L72 + # https://github.com/openwrt/openwrt/blob/14a27ac99d627db519ab3454d98155567c4a8d88/package/boot/uboot-mediatek/patches/052-mt7981-enable-pstore.patch#L30 + loadAddress = lim.parseInt "0x50000000"; }; imageFormat = "fit"; loader.fit.enable = lib.mkDefault true; # override this if you are building tftpboot