diff options
author | David Bauer <mail@david-bauer.net> | 2020-07-22 00:00:36 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2020-07-22 17:18:55 +0200 |
commit | 9a9cdc65c4fd3b25d04e8f08efd5ec6fc7903988 (patch) | |
tree | ca7e73b6f59329758bd8959e84891b00a81388c6 /target/linux/ath79/dts | |
parent | 9b9726aeb4c96b1c6dc1fa75b5b6ba56dd3c7755 (diff) | |
download | upstream-9a9cdc65c4fd3b25d04e8f08efd5ec6fc7903988.tar.gz upstream-9a9cdc65c4fd3b25d04e8f08efd5ec6fc7903988.tar.bz2 upstream-9a9cdc65c4fd3b25d04e8f08efd5ec6fc7903988.zip |
ath79: re-enable image generation for GL-AR750S
The bootloader only writes the first 2MB of the image to the NOR flash
when installing the NAND factory image. The bootloader is capable of
booting larger kernels as it boots from the memory mapped SPI flash.
Disable the NAND factory image. The NAND can be bootstrapped by writing
the NAND initramfs image using the NOR upgrade method in the bootloader
web-recovery and sysupgrading from there. The NOR variant is not
affected.
Also refactor the partition definitions in the DTS to make them less
annoying to read.
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ath79/dts')
3 files changed, 22 insertions, 22 deletions
diff --git a/target/linux/ath79/dts/qca9563_glinet_gl-ar750s-nor-nand.dts b/target/linux/ath79/dts/qca9563_glinet_gl-ar750s-nor-nand.dts index 92d1fb9ba2..3fe8a35b98 100644 --- a/target/linux/ath79/dts/qca9563_glinet_gl-ar750s-nor-nand.dts +++ b/target/linux/ath79/dts/qca9563_glinet_gl-ar750s-nor-nand.dts @@ -9,8 +9,21 @@ model = "GL.iNet GL-AR750S (NOR/NAND)"; }; -&nor_kernel { - label = "kernel"; +&nor_partitions { + partition@60000 { + label = "kernel"; + reg = <0x060000 0x400000>; + + /* + * U-Boot bootcmd is "bootm 0x9f060000". + * So this might be possible to resize in the future. + */ + }; + + partition@460000 { + label = "nor_reserved"; + reg = <0x460000 0xba0000>; + }; }; &nand_ubi { diff --git a/target/linux/ath79/dts/qca9563_glinet_gl-ar750s-nor.dts b/target/linux/ath79/dts/qca9563_glinet_gl-ar750s-nor.dts index bb33abd630..271cef516e 100644 --- a/target/linux/ath79/dts/qca9563_glinet_gl-ar750s-nor.dts +++ b/target/linux/ath79/dts/qca9563_glinet_gl-ar750s-nor.dts @@ -9,10 +9,10 @@ model = "GL.iNet GL-AR750S (NOR)"; }; -/delete-node/ &nor_kernel; -/delete-node/ &nor_reserved; - -&nor_firmware { - compatible = "denx,uimage"; - label = "firmware"; +&nor_partitions { + partition@60000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x060000 0xfa0000>; + }; }; diff --git a/target/linux/ath79/dts/qca9563_glinet_gl-ar750s.dtsi b/target/linux/ath79/dts/qca9563_glinet_gl-ar750s.dtsi index 6111b968a2..f5c64c07eb 100644 --- a/target/linux/ath79/dts/qca9563_glinet_gl-ar750s.dtsi +++ b/target/linux/ath79/dts/qca9563_glinet_gl-ar750s.dtsi @@ -99,20 +99,7 @@ read-only; }; - nor_firmware: partition@60000 { - label = "nor_firmware"; - reg = <0x060000 0xfa0000>; - }; - - nor_kernel: partition_alt@60000 { - label = "nor_kernel"; - reg = <0x060000 0x400000>; - }; - - nor_reserved: parition_alt@460000 { - label = "nor_reserved"; - reg = <0x460000 0xba0000>; - }; + /* Firmware / Kernel flash type specific */ }; }; |