apm821xx: use nested fixed-partitions

This makes it possible to fix Netgear WNDAP620+660 DTS ugliness.
Bring back the dtb and firmware partitions for the WNDR4700.
Thank you, mans0n.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
Christian Lamparter 2022-05-14 10:44:58 +02:00
parent 8f6e2bb178
commit d65bafa34b
2 changed files with 46 additions and 23 deletions

View file

@ -52,23 +52,27 @@
read-only; read-only;
}; };
partition@110000,0 { partition@110000 {
label = "firmware"; label = "firmware";
reg = <0x00110000 0x01ac0000>; reg = <0x00110000 0x01ac0000>;
};
partition@110000,1 { compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
/* /*
* The u-boot bootloader will look at this * The u-boot bootloader will look at this
* offset (0x110000) for an uImage binary. * offset (0x110000) for an uImage binary.
*/ */
label = "kernel"; label = "kernel";
reg = <0x00110000 0x005f0000>; reg = <0x00000000 0x005f0000>;
}; };
partition@700000 { partition@5f0000 {
label = "ubi"; label = "ubi";
reg = <0x00700000 0x014d0000>; reg = <0x005f0000 0x014d0000>;
};
}; };
partition@1bd0000 { partition@1bd0000 {

View file

@ -187,22 +187,41 @@
}; };
partition@180000 { partition@180000 {
label = "firmware";
reg = <0x00180000 0x01860000>;
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "kernel"; label = "kernel";
reg = <0x00180000 0x00380000>; reg = <0x00000000 0x00380000>;
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* /*
* device-tree is @ 0x00180000 - 0x001fffff * device-tree is @ 0x00180000 - 0x0019ffff
* kernel starts from 0x200000. * kernel starts from 0x20000.
* this is coded into netgear's u-boot. * this is coded into netgear's u-boot.
* */
partition@0 {
label = "dtb";
reg = <0x00000000 0x20000>;
};
/*
* this partition will also contain a * this partition will also contain a
* fake/empty rootfs at the end to fool * fake/empty rootfs at the end to fool
* Netgear's uboot rootfs integrety checks. * Netgear's uboot rootfs integrety checks.
*/ */
}; };
partition@500000 { partition@380000 {
label = "ubi"; label = "ubi";
reg = <0x00500000 0x014e0000>; reg = <0x00380000 0x014e0000>;
};
}; };