I wan't to build and flash only the rootfs (squashfs image) ? is there any documentation available to do this?

I was able to generate a openwrt-morse-2.9-dev-halowlink-1-rootfs.squashfs, Can I write this image to the mtdblock6 partition ? If I write this image to mtd6, will this brick the device. Please need assistance in this (I wan’t to flash only the rootfs )

 root@halowlink1-51a7:/# lsblk
NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mtdblock0  31:0    0  448K  1 disk
mtdblock1  31:1    0   64K  0 disk
mtdblock2  31:2    0   64K  1 disk
mtdblock3  31:3    0   64K  1 disk
mtdblock4  31:4    0 31.4M  0 disk
mtdblock5  31:5    0  2.8M  1 disk
mtdblock6  31:6    0 28.5M  1 disk /rom
mtdblock7  31:7    0 11.4M  0 disk /overlay

I don’t see why it wouldn’t work, but I haven’t tried it. You can’t brick your device writing to mtd6, as you can always recover via the uboot web interface (see user guide).

Having said that, I’m puzzled as to why you would want to do this. Why not just write the whole generated image including the kernel/device tree via the normal upgrade procedure?

Found out that is not possible since the block5 and block6 are readonly, so the only safe option is to write mtdblock4 partition with the sysupgrade image(kernel + rootfs)