[OpenWrt-Devel] [PATCH v2 0/2] kernel: add kmod-ubi and kmod-fs-ubifs
ralph.sennhauser at gmail.com
Thu Aug 25 07:43:24 EDT 2016
On Thu, 25 Aug 2016 13:07:43 +0200
Daniel Golle <daniel at makrotopia.org> wrote:
> On Thu, Aug 25, 2016 at 12:50:59PM +0200, Ralph Sennhauser wrote:
> > Hi Daniel,
> > On Thu, 25 Aug 2016 10:53:34 +0200
> > Daniel Golle <daniel at makrotopia.org> wrote:
> > [snip]
> > > Are you planning to switch to initramfs and then load the ubi and
> > > ubifs modules in order to get a persistent rootfs?!
> > > Remember that otherwise, these modules are needed to be built-in
> > > to the kernel in order to mount the rootfs during boot.
> > I use an initramfs to mount root indeed. This is just an
> > alternative to 7 patches in generic and mvebu to do the same.
> > The kernel partition is 6MB, so there is plenty space and using
> > busybox works fine except there is no ubiblock applet. To work
> > around this I build ubi as a module instead of built-in and use
> > module parameter to create a blockdevice from the squashfs volume
> > for use by the overlayfs.
> Does the memory used for the initramfs get freed once you switched to
> the 'real' rootfs? If so, this would indeed be a quite good
> alternative to the current way and also provide other pre-init
> features such as failsafe-mode.
If you clean up properly before switch_root it won't take up any space,
that's a property of tmpfs, but you might find use for keeping it
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel