kernel: backport support for "linux,rootfs" in DT

This DT property allows marking flash partition that Linux should use as
a root device. It's useful for devices that don't use U-Boot and cmdline
parser for partitioning. It may be used with "fixed-partitions" or some
dynamic partitioning based on flash content.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
Rafał Miłecki
2022-11-07 19:24:48 +01:00
parent 6a64eb2664
commit d33e49857e
14 changed files with 170 additions and 94 deletions

View File

@@ -34,7 +34,7 @@ Signed-off-by: Abhimanyu Vishwakarma <Abhimanyu.Vishwakarma@imgtec.com>
mtd->type = MTD_NORFLASH;
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -843,6 +843,17 @@ out_error:
@@ -848,6 +848,17 @@ out_error:
*/
static void mtd_set_dev_defaults(struct mtd_info *mtd)
{