imx: image: ventana: use squashfs rootfs for non NAND devices
authorTim Harvey <tharvey@gateworks.com>
Fri, 17 Feb 2023 22:03:45 +0000 (14:03 -0800)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 18 May 2023 15:11:43 +0000 (17:11 +0200)
In order to support squashfs+ext4 define rootfstype=squashfs and use P2
as P1 is boot filesystem.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
target/linux/imx/image/bootscript-ventana

index 734f74a30c5febb469d04b505fc0df61d9a93a37..44a425d3484f401df6992c5700bc361cac38d5d9 100644 (file)
@@ -44,7 +44,7 @@ if itest.s "x${dtype}" == "xnand" ; then
        setenv root "ubi0:ubi ubi.mtd=2 rootfstype=squashfs,ubifs"
 else
        setenv fsload "${fs}load ${dtype} ${disk}:1"
-       part uuid ${dtype} ${disk}:1 uuid
+       part uuid ${dtype} ${disk}:2 uuid
        if test -z "${uuid}"; then
                # fallback to bootdev
                if test -n "$bootdev" ; then
@@ -60,7 +60,7 @@ else
        else
                setenv root "root=PARTUUID=${uuid}"
        fi
-       setenv root "$root rootfstype=${fs} rootwait rw"
+       setenv root "$root rootfstype=squashfs rootwait"
 fi
 
 setenv bootargs "${bootargs}" "${root}" "${video}" "${extra}"