From d39a9871815405277a760307e58bd29973ef57b6 Mon Sep 17 00:00:00 2001 From: Robert Karszniewicz Date: Mon, 10 Aug 2020 14:20:08 +0200 Subject: bootm: add global.bootm.root_dev env var for booting via PARTUUID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduces a new env var which specifies which device is the rootfs device to be used in Linux, passed to Linux via bootargs, identified by the rootfs partition's PARTUUID. global.bootm.root_dev supplements global.bootm.appendroot, in that it overrides appendroot's naïve default, which picks the partition that the kernel resides on (global.bootm.image). Example: detect mmc2 global.bootm.image='/mnt/mmc2.0/zImage' global.bootm.appendroot=1 global.bootm.root_dev=/dev/mmc2.1 boot mmc Signed-off-by: Robert Karszniewicz Signed-off-by: Sascha Hauer --- include/bootm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/bootm.h b/include/bootm.h index ef5148f31e..51e9b3d71a 100644 --- a/include/bootm.h +++ b/include/bootm.h @@ -18,6 +18,7 @@ struct bootm_data { const char *initrd_file; const char *oftree_file; const char *tee_file; + const char *root_dev; int verbose; enum bootm_verify verify; bool force; @@ -25,6 +26,7 @@ struct bootm_data { /* * appendroot - if true, try to add a suitable root= Kernel option to * mount the rootfs from the same device as the Kernel comes from. + * The default rootfs device can be overridden with root_dev. */ bool appendroot; /* -- cgit v1.2.3