From c773a2c46e043b8426a023d355aa74b538f4a9b4 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sun, 4 Sep 2016 03:11:45 +0200 Subject: oxnas: kd20: generate image compatible with stock firmware * adjust MTD partitions to match vendor's scheme * generate *factory.tar.gz image compatible with stock web-if firmware upgrade interface Signed-off-by: Daniel Golle --- .../oxnas/files/arch/arm/boot/dts/ox820-kd20.dts | 26 +++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'target/linux/oxnas/files/arch') diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts index 217d812b96..b5c79dede3 100644 --- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts +++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts @@ -13,7 +13,7 @@ model = "Shuttle KD20"; chosen { - bootargs = "console=ttyS0,115200n8 earlyprintk=serial"; + bootargs = "console=ttyS0,115200n8 earlyprintk=serial mem=256M"; }; pcie-controller@47C00000 { @@ -33,14 +33,30 @@ status = "okay"; partition@0 { - label = "boot"; - reg = <0x00000000 0x00e00000>; - /*read-only;*/ + label = "stage1"; + reg = <0x00000000 0x00040000>; + read-only; + }; + + partition@40000 { + label = "u-boot"; + reg = <0x00040000 0x00200000>; + read-only; + }; + + partition@240000 { + label = "initrd"; + reg = <0x00240000 0x00600000>; + }; + + partition@840000 { + label = "kernel"; + reg = <0x00840000 0x007C0000>; }; partition@e00000 { label = "ubi"; - reg = <0x00e00000 0x07200000>; + reg = <0x01000000 0x07000000>; }; }; -- cgit v1.2.3