* [U-Boot-Users] fsload taking more time
@ 2007-06-29 4:00 Saiful Khan
2007-06-29 15:06 ` Detlev Zundel
0 siblings, 1 reply; 2+ messages in thread
From: Saiful Khan @ 2007-06-29 4:00 UTC (permalink / raw)
To: u-boot
Hello,
I have booted kernel image from the jffs2 file system.
The kernel image "uImage" is located in /boot directoy of jffs2 file
system, to load uImage form /boot to RAM location 0?, "fsload
0? boot/uImage" command is used. Then this kernel image is
booted from 0? using " bootm 0?" command
But there is a issue that it is taking 5-6 sec (approx) more while
doing fsload, comapred to loading uImage from raw flash location and
booting it.
The function jffs2_1pass_build_lists() on
u-boot-1.2.0/fs/jffs2/jffs2_1pass.c is actually taking more time. May
you please suggest me What this function does?? what to do to solve
this isuue??
--
Thanks and regards
Saiful Khan
H/P
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] fsload taking more time
2007-06-29 4:00 [U-Boot-Users] fsload taking more time Saiful Khan
@ 2007-06-29 15:06 ` Detlev Zundel
0 siblings, 0 replies; 2+ messages in thread
From: Detlev Zundel @ 2007-06-29 15:06 UTC (permalink / raw)
To: u-boot
Hi Saiful,
> I have booted kernel image from the jffs2 file system.
> The kernel image "uImage" is located in /boot directoy of jffs2 file
> system, to load uImage form /boot to RAM location 0?, "fsload
> 0? boot/uImage" command is used. Then this kernel image is
> booted from 0? using " bootm 0?" command
>
> But there is a issue that it is taking 5-6 sec (approx) more while
> doing fsload, comapred to loading uImage from raw flash location and
> booting it.
>
> The function jffs2_1pass_build_lists() on
> u-boot-1.2.0/fs/jffs2/jffs2_1pass.c is actually taking more time. May
> you please suggest me What this function does?? what to do to solve
> this isuue??
This behaviour is rooted in how jffs2 works, especially that appends
new data rather than to overwrite in place. So on the first pass it
has to build up a list on what fragments make up the current files on
that partition. This forces jffs2 to scan *the whole* partition
before it can serve a file (just look at the loop in the function you
quoted).
So if you want to get faster, either don't use JFFS2 or shrink the
partition so the scan speeds up.
Cheers
Detlev
--
Less talking -- more hacking
-- Olin Shivers
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-29 15:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-29 4:00 [U-Boot-Users] fsload taking more time Saiful Khan
2007-06-29 15:06 ` Detlev Zundel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox