liminix

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

commit 80a09a9a9bafe7e36cf8c742c1eb951197f71b14
parent 3518e2ecca7db89d3f25b0a3dc21e999239c3e44
Author: Daniel Barlow <dan@telent.net>
Date:   Tue, 10 Oct 2023 20:25:42 +0100

rt3200: move the entryPoint

Diffstat:
Mdevices/belkin-rt3200/default.nix | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/devices/belkin-rt3200/default.nix b/devices/belkin-rt3200/default.nix @@ -159,11 +159,16 @@ }; in { defaultOutput = "flashimage"; - loadAddress = "0x41080000"; - entryPoint = "0x41080000"; + # the kernel expects this to be on a 2MB boundary. U-Boot + # (I don't know why) has a default of 0x41080000, which isn't. + # We put it at the 32MB mark so that tftpboot can put its rootfs + # image and DTB underneath, but maybe this is a terrible waste of + # RAM unless the kernel is able to reuse it later. Oh well + loadAddress = "0x42000000"; + entryPoint = "0x42000000"; rootDevice = "/dev/mtdblock0"; dts = { - src = "${openwrt.src}/target/linux/mediatek/dts/mt7622-linksys-e8450.dts"; + src = "${openwrt.src}/target/linux/mediatek/dts/mt7622-linksys-e8450-ubi.dts"; includes = [ "${openwrt.src}/target/linux/mediatek/dts" "${config.system.outputs.kernel.modulesupport}/arch/arm64/boot/dts/mediatek/"