layerscape: support ubifs rootfs in u-boot env
[openwrt/openwrt.git] / package / boot / uboot-layerscape / patches / 0004-armv8-ls1088ardb-add-LEDE-boot-support-in-environmen.patch
index eaf0da2..6ce71f2 100644 (file)
@@ -20,12 +20,12 @@ index 7bd152d..4cefa40 100644
 +              "bootm $load_addr#$BOARD\0"                     \
 +      "lede_setenv=setenv loadaddr 82000000 && " \
 +              "setenv fdtaddr 8f000000 && " \
-+              "setenv bootargs root=/dev/mtdblock10 " \
-+              "rootfstype=ext4 noinitrd " \
++              "setenv bootargs ubi.mtd=10 root=ubi0:rootfs rw " \
++              "rootfstype=ubifs noinitrd " \
 +              "earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 " \
 +              "mtdparts=20c0000.quadspi:1M(rcw),2M(u-boot),1M(u-boot-env)," \
 +              "6M(reserved-1),3M(mc),1M(dpl),1M(dpc),1M(dtb)," \
-+              "16M(kernel),30M(ext4rfs),2M(user)\0" \
++              "16M(kernel),32M(ubifs)\0" \
 +      "lede_run=sf probe 0:0 && " \
 +              "sf read $fdtaddr f00000 100000 && " \
 +              "sf read $loadaddr 1000000 1000000 && " \