liminix

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

commit f36d8ef1d0fd1457e947f3f9786122bcab531326
parent 85b5edc39dd88ae50f13e76fc69990c86af6dbe0
Author: Daniel Barlow <dan@telent.net>
Date:   Wed,  8 Mar 2023 20:35:41 +0000

make mt300a flash-ready

Diffstat:
Mdevices/gl-mt300a/default.nix | 17+++++++++++++++++
Mmodules/flashable.nix | 1-
2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/devices/gl-mt300a/default.nix b/devices/gl-mt300a/default.nix @@ -37,6 +37,23 @@ defaultOutput = "tftproot"; loadAddress = "0x80000000"; entryPoint = "0x80000000"; + + # Creating 5 MTD partitions on "spi0.0": + # 0x000000000000-0x000000030000 : "u-boot" + # 0x000000030000-0x000000040000 : "u-boot-env" + # 0x000000040000-0x000000050000 : "factory" + # 0x000000050000-0x000000fd0000 : "firmware" + # 2 uimage-fw partitions found on MTD device firmware + # Creating 2 MTD partitions on "firmware": + # 0x000000000000-0x000000260000 : "kernel" + # 0x000000260000-0x000000f80000 : "rootfs" + + flash = { + address = "0xbc050000"; + size ="0xf80000"; + }; + rootDevice = "1f05"; + dts = { src = "${openwrt}/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts"; includes = [ diff --git a/modules/flashable.nix b/modules/flashable.nix @@ -48,7 +48,6 @@ in { outputs.flash-scr = let inherit (pkgs.lib.trivial) toHexString; - inherit (pkgs.lib.lists) concatStringsSep; inherit (config.hardware) flash; in pkgs.buildPackages.runCommand "" {} ''