[PATCH linux dev-5.3 2/2] ARM: dts: aspeed: ast2600evb: Use custom flash layout
Cédric Le Goater
clg at kaod.org
Thu Sep 26 16:41:43 AEST 2019
On 26/09/2019 08:31, Joel Stanley wrote:
> The AST2600 u-boot and kernel images have outgrown the OpenBMC layout.
> While BMC machines use 128MB SPI NOR chips, we only have 64MB on the EVB
> so use a layout that has a smaller region for the ro and rw filesystems.
>
> Signed-off-by: Joel Stanley <joel at jms.id.au>
Perfect. We can move the layout in its own .dtsi file if some other board
needs it one day.
Reviewed-by: Cédric Le Goater <clg at kaod.org>
Thanks,
C.
> ---
> arch/arm/boot/dts/aspeed-ast2600-evb.dts | 32 +++++++++++++++++++++++-
> 1 file changed, 31 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/aspeed-ast2600-evb.dts b/arch/arm/boot/dts/aspeed-ast2600-evb.dts
> index 7bcafb027afa..0b3d3978c4d3 100644
> --- a/arch/arm/boot/dts/aspeed-ast2600-evb.dts
> +++ b/arch/arm/boot/dts/aspeed-ast2600-evb.dts
> @@ -96,7 +96,37 @@
> m25p,fast-read;
> label = "bmc";
> spi-max-frequency = <50000000>;
> -#include "openbmc-flash-layout.dtsi"
> +
> + partitions {
> + compatible = "fixed-partitions";
> + #address-cells = <1>;
> + #size-cells = <1>;
> +
> + u-boot at 0 {
> + reg = <0x0 0xe0000>; // 896KB
> + label = "u-boot";
> + };
> +
> + u-boot-env at e0000 {
> + reg = <0xe0000 0x20000>; // 128KB
> + label = "u-boot-env";
> + };
> +
> + kernel at 100000 {
> + reg = <0x100000 0x900000>; // 9MB
> + label = "kernel";
> + };
> +
> + rofs at a00000 {
> + reg = <0xa00000 0x2000000>; // 32MB
> + label = "rofs";
> + };
> +
> + rwfs at 6000000 {
> + reg = <0x2a00000 0x1600000>; // 22MB
> + label = "rwfs";
> + };
> + };
> };
> };
>
>
More information about the openbmc
mailing list