Re: [U-Boot] ubifsmount reports "Error reading superblock", but linux can mount FS

2012-03-09 Thread Alex Zeffertt
On 9 March 2012 14:02, Wolfgang Denk wrote: > In message > you > wrote: >>                                                ...  How do you know >> how big this might need to be in order to mount a filesystem that >> "needs recovery"? > > I don't know of ways to determine this in advance.  Eventu

Re: [U-Boot] ubifsmount reports "Error reading superblock", but linux can mount FS

2012-03-09 Thread Wolfgang Denk
Dear Alex, In message you wrote: > > > 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 Wol

Re: [U-Boot] ubifsmount reports "Error reading superblock", but linux can mount FS

2012-03-09 Thread Alex Zeffertt
On 8 March 2012 18:18, Wolfgang Denk wrote: > In message > 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 >> partit

Re: [U-Boot] ubifsmount reports "Error reading superblock", but linux can mount FS

2012-03-08 Thread Wolfgang Denk
Dear Alex, In message 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 4

Re: [U-Boot] ubifsmount reports "Error reading superblock", but linux can mount FS

2012-03-08 Thread Alex Zeffertt
On 7 March 2012 14:42, Alex Zeffertt wrote: > Hi u-booters, > > I have a short script in my u-boot environment which chooses which of > two ubifs partitions to boot > by attempting to read a release file in each one. > > Unfortunately, after an unclean shutdown sometimes the ubifsmount > fails.  (

Re: [U-Boot] ubifsmount reports "Error reading superblock", but linux can mount FS

2012-03-08 Thread Stefan Roese
Hi Alex, On Thursday 08 March 2012 10:49:33 Alex Zeffertt wrote: > >> I've been comparing the linux and u-boot implementations, and it looks > >> like the following fix is in the kernel > >> but not in u-boot. I don't really understand it, but it looks like a > >> candidate. Might porting this c

Re: [U-Boot] ubifsmount reports "Error reading superblock", but linux can mount FS

2012-03-08 Thread Alex Zeffertt
>> I've been comparing the linux and u-boot implementations, and it looks >> like the following fix is in the kernel >> but not in u-boot.  I don't really understand it, but it looks like a >> candidate.  Might porting this change to >> u-boot fix the issue? > > Hard to tell. Might be worth a try,

Re: [U-Boot] ubifsmount reports "Error reading superblock", but linux can mount FS

2012-03-07 Thread Stefan Roese
Hi Alex, On Wednesday 07 March 2012 16:14:28 Alex Zeffertt wrote: > On 7 March 2012 14:42, Alex Zeffertt wrote: > > Hi u-booters, > > > > I have a short script in my u-boot environment which chooses which of > > two ubifs partitions to boot > > by attempting to read a release file in each one. >

Re: [U-Boot] ubifsmount reports "Error reading superblock", but linux can mount FS

2012-03-07 Thread Alex Zeffertt
On 7 March 2012 14:42, Alex Zeffertt wrote: > Hi u-booters, > > I have a short script in my u-boot environment which chooses which of > two ubifs partitions to boot > by attempting to read a release file in each one. > > Unfortunately, after an unclean shutdown sometimes the ubifsmount > fails.  (

[U-Boot] ubifsmount reports "Error reading superblock", but linux can mount FS

2012-03-07 Thread Alex Zeffertt
Hi u-booters, I have a short script in my u-boot environment which chooses which of two ubifs partitions to boot by attempting to read a release file in each one. Unfortunately, after an unclean shutdown sometimes the ubifsmount fails.  (By "unclean shutdown" I mean that the board was power cycle