layerscape: support ubifs rootfs in u-boot env
[openwrt/openwrt.git] / package / boot / uboot-layerscape / patches / 0006-armv8-ls1012afrdm-add-LEDE-boot-support-in-environme.patch
index 45010a2..524b7f4 100644 (file)
@@ -18,12 +18,12 @@ index a3f8824d27..36dff19bdd 100644
                "$kernel_addr $kernel_size && bootm $load_addr#$board\0" \
 +      "lede_setenv=setenv loadaddr 82000000 && " \
 +              "setenv fdtaddr 8f000000 && " \
-+              "setenv bootargs root=/dev/mtdblock8 " \
-+              "rootfstype=ext4 noinitrd " \
++              "setenv bootargs ubi.mtd=8 root=ubi0:rootfs rw " \
++              "rootfstype=ubifs noinitrd " \
 +              "earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 " \
 +              "mtdparts=1550000.quadspi:1M(rcw),2M(u-boot),1M(u-boot-env)," \
 +              "5M(reserved-1),256k(fman),5888k(reserved-2),1M(dtb)," \
-+              "16M(kernel),30M(ext4rfs),2M(user)\0" \
++              "16M(kernel),32M(ubifs)\0" \
 +      "lede_run=pfe stop && sf probe 0:0 && " \
 +              "sf read $fdtaddr f00000 100000 && " \
 +              "sf read $loadaddr 1000000 1000000 && " \