Skip to contentSkip to conversation

ls command problem

U-Boot-Users Srinivas rao 2 participants 2 messages Sep 7, 2006

lore
Share & tools
lore
#0 lore raw

I have some doubts about jffs2

I loaded my jffs2 filesystem in flash 11-63 sectors.

when I used ls command 1st time in u-boot in gives error like below

USCP# ls
Scanning JFFS2 FS: .... add_node: malloc failed
add_node failed!
ls: Failed to scan JFFSv2 file structure

but from 2nd time onwards it giving the list of my filesystem. 1)Why 1st time it's not working ?

2) Is possible to add new file in jffs2 from u-boot?

Thanks & Regards
Srinivas Rao.Ch

---------------------------------
Here's a new way to find what you're looking for - Yahoo! Answers
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060907/f1bab098/attachment.htm

#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

I have some doubts about jffs2

You gotta learn to read error messages.

Quoted 5 lines

I loaded my jffs2 filesystem in flash 11-63 sectors.
when I used ls command 1st time in u-boot in gives error like below

USCP# ls
Scanning JFFS2 FS: .... add_node: malloc failed

-------------------------------------^^^^^^^^^^^^^

Quoted 2 lines

add_node failed!
ls: Failed to scan JFFSv2 file structure

malloc failed is a pretty clear message: U-Boot ran out of memory. Please increase the size of the malloc areane in your board config file and try again.

Quoted 2 lines

but from 2nd time onwards it giving the list of my filesystem. 1)Why 1st time it's not working ?

You only think it's working, but actually it shows you only part of the file system.

Quoted 1 line

2) Is possible to add new file in jffs2 from u-boot?

No, there is no write support. The fie system is strictly read-only.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Intuition, however illogical, is recognized as a command prerogative.
	-- Kirk, "Obsession", stardate 3620.7