[PATCH RFC 2/2] ubi: add support for UBI_EC_FLAG_ERASE_FROM_HERE

Richard Weinberger richard at nod.at
Sat Dec 31 02:03:18 PST 2016


Rafał,

On 30.12.2016 22:44, Rafał Miłecki wrote:
> Some of them do, but that requires serial access to the device. Most
> users use button-triggered tftp server/client or just minimal
> bootloader web interface for flashing an image. In these cases you
> don't have any control over what bootloader does.

So the use case is the initial installation of OpenWRT.
What about using an installer?
i.e. create Kernel with an in-kernel initramfs. This "installer kernel"
will get flashed using that button-triggered mechanism.
All the pre-installed bootloader has to do is flashing and booting the kernel.
This kernel will then boot and provide a fancy webinterface to the user
where she can install the OpenWRT rootfs. That way you can use all the Linux
tools for partitioning, flashing, verification(!), etc.
The installer kernel will be used only once can be get removed after the
installation on OpenWRT.

Thanks,
//richard



More information about the linux-mtd mailing list