[PATCH 8/8] state: add support for new backend format

Sascha Hauer sha at pengutronix.de
Wed Oct 19 23:35:57 PDT 2022


On Fri, Oct 14, 2022 at 06:35:34PM +0200, Marco Felsch wrote:
> The backend can now be specified by either:
> 
>   backend = <&of_partition>;
> 
> or by using the path binding:
> 
>   backend = &mmc2, "partname:2";
> 
>   backend = &of_partition;

We discussed this internally and came to the conclusion that we don't
want to spread the usage of this binding that is currently used for the
barebox environment as well.

Instead we want to go into another direction:

The MBR/GPT partitions should be described in a node under the physical
device and then the state node can continue using the phandle only, so
something like:

backend = <&state_part>;

&mmc {
	partitions {
		compatible = "gpr-partitions";

		state_part {
			partuuid = "16367da7-c518-499f-9aad-e1f366692365"
		};
	};
};

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list