On Apr 16, 2007, at 6:30 AM, Chris Jack wrote:
> I have a strange problem that I am struggling to solve:
> When I boot my connex200xm with serial console (which has been
> as a data logger attached to a robostix for a few months) it boots to
> U-Boot but fails with the following error:
> ### JFFS2 loading 'boot/uImage' to 0xa2000000
> Scanning JFFS2 FS: ............................/ add_node: malloc
> add_node failed!
> load: Failed to scan JFFSv2 file structure
> ### JFFS2 LOAD ERROR<0> for boot/uImage!
> But then from the GUM prompt I can enter the "boot" command and U-Boot
> then scans the JFFS2 filesystem fine, loads the kernel and boots quite
> happily! It seems like it is only the first time it tries to read the
> filesystem it fails, the second time it works. So I can only boot
> it by
> manually entering the boot command. Short of reflashing the whole
> filesystem can anyone suggest a way to fix this?
I think that error is due to the gumstix running out of RAM for
building its in-RAM cached version of the JFFS2 filesystem in u-
boot. This used to happen (with older u-boot revisions) when the
JFFS2 had been in use for a while and blocks had migrated around
enough that the JFFS2 headers got sufficiently complex to overflow
the reserved RAM heap in u-boot. At some point, I increased the heap
size in u-boot to fix this -- try upgrading to the latest u-boot and
that should resolve the problem.