[OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

Daniel Golle daniel at makrotopia.org
Wed Jan 22 04:40:51 EST 2020


Hi Bruno,

On Wed, Jan 22, 2020 at 10:22:01AM +0100, Bruno Pena wrote:
> I would also like to take the opportunity to ask if it's worth pursuing
> this patch if it means that all devices (using mtd) will require their
> partitions to be padded to the blocksize?

Please try not to introduce that padding, it's quite a big impact on
all devices while only very few (wifi-only device) really need that
change. Instead of wasting flash space by additional padding I'd rather
want to see an OpenWrt-specific kernel-patch to allow a rw subpartition
sitting inside an ro partition or just flatten the mtd partitioning.
What I mean by flatteing is this:

yout current approach:
+-----------------------------+
|          firmware           |
+--------+--------------------+ 
|        $       rootfs       |
| kernel +------+-------------+
|        $ rom  | rootfs_data |
+--------+------+-------------+

here rootfs_data inherigs the read-only from rootfs not being block-
aligned. a better/flat approach would be:
+-----------------------------+
|          firmware           |
+--------+------+-------------+ 
| kernel $ rom  | rootfs_data |
+--------+------+-------------+

Now this would require major changes to our mtd-splitting subsystem
which is quite a big amount of work...


Cheers


Daniel

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list