forked from DGNum/liminix
make mt300a flash-ready
This commit is contained in:
parent
85b5edc39d
commit
f36d8ef1d0
2 changed files with 17 additions and 1 deletions
|
@ -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 = [
|
||||
|
|
|
@ -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 "" {} ''
|
||||
|
|
Loading…
Reference in a new issue