[U-Boot] ubifsmount reports "Error reading superblock", but linux can mount FS
Alex Zeffertt
azeffertt at cambridgesys.com
Fri Mar 9 10:39:51 CET 2012
On 8 March 2012 18:18, Wolfgang Denk <wd at denx.de> wrote:
> In message <CANNiwJ+91o+A5Ef6w9V0g=rvj1yA939+ZzTSnKA4DmR67oFe0w at mail.gmail.com> you wrote:
>>
>> I've now managed to repro this problem and add some debug. It looks
>> like u-boot is simply running out of memory whilst trying to mount a
>> filesystem that "needs recovery". (Error -12 is -ENOMEM.) The
>> partition it is mounting is 240MB, but only about 40MB full.
>
> Can you please try out and test what happens when you increase the
> size of the malloc arena? "include/configs/openrd.h" includes
> "include/configs/mv-common.h" which sets CONFIG_SYS_MALLOC_LEN to
> 1 MiB - try changing it to 4 MiB.
Thanks Wolfgang, that worked! Is there any reason why you would not
set this variable to the maximum possible. For example, is this
memory available to the kernel after it is booted? How do you know
how big this might need to be in order to mount a filesystem that
"needs recovery"?
Regards,
Alex
More information about the U-Boot
mailing list