[PATCH/RFC 0/3] UBI: unify mouting rootfs based on cmdline parameter

Richard Weinberger richard at nod.at
Sun Aug 28 02:28:18 PDT 2016


Ralph,

On 28.08.2016 11:19, Ralph Sennhauser wrote:
>>> On the other hand an initramfs can carry the logic to figure out
>>> which to mount and is what I use for my self. The busybox based
>>> implementation I use adds a tad over 300Kb to the uImage, perfectly
>>> acceptable in my case.  
>>
>> When your minimal initramfs consumes 300KiB you're doing something
>> wrong. As I said in another thread, for your special purpose you'd
>> need to create a minitmal userspace for initramfs, no fancy (eg)libc,
>> just a bare minimum /init program which does the mount probing.
>> Shouldn’t be more than a few system calls.
>>
>> Thanks,
>> //richard
> 
> Well, I use busybox because I'm lazy and still get away with only 300Kb.
> And as I said there is plenty space on my device. (6M per uImage OEM
> firmware configuration)

So, problem solved. Use an initramfs. :-)

</discussion>,
//richard



More information about the linux-mtd mailing list