Hi, i'm wondering if anyone (especially engineers at GL-iNet) has looked at ways to enable and use the enhenced user area. I'm wanting to enable some logs to be stored on the device (and persist over reboot), and I want to contain its impact on the eMMC wearing.
The plan in my mind is to set a portion of the eMMC (ideally at the end) into SLC mode to store logs, and have its wearing separated from the rest. That'd mean even if that part of the eMMC is worn out from logging, it won't affect other area and it won't brick the router.
Since partitioning is one-time writable and would destroy data, plan in my head is to get into uboot to do a full eMMC dump to USB drive, then offline manipulate the dump to resize the user/overlay partition to make room at the end, as well as identifying the ending offset of the entire eMMC data. Manipulate ECSD from uboot to create enhenced UDA after where the reduced dump would end, reset eMMC from uboot (without power cycle) to apply partition, then write this edited eMMC UDA dump back to the eMMC from uboot. (uboot runs in RAM so it doesn't rely on eMMC once jumped into, right?)
My end goal is to have an extra partition (thining in btrfs with block compression on, large block size, and long commit interval) that sits right on the enhenced UDA (SLC) portion of the eMMC.
Any idea how doable this thought is? Thanks!