layerscape: support ubifs rootfs in u-boot env
[openwrt/openwrt.git] / package / boot / uboot-layerscape / patches / 0002-armv8-ls1046ardb-add-LEDE-boot-support-in-environmen.patch
index d7a6e05..f2e7287 100644 (file)
@@ -21,12 +21,12 @@ index d163347..d26147b 100644
 +              " bootm $load_addr#$board\0" \
 +      "lede_setenv=setenv loadaddr 82000000 && " \
 +              "setenv fdtaddr 8f000000 && " \
-+              "setenv bootargs root=/dev/mtdblock9 " \
-+              "rootfstype=ext4 noinitrd " \
++              "setenv bootargs ubi.mtd=9 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=sf probe 0:0 && " \
 +              "sf read $fdtaddr f00000 100000 && " \
 +              "sf read $loadaddr 1000000 1000000 && " \