Hi guys,
I'm trying to improve boot time of my system (booting on yaffs), I've
noticed some strange behavior, I wonder if one of you could tell me what's
going on:
Here it is: On a running system, I mount a checkpointed yaffs2 partition in
0.13 seconds (good), but if I try to BOOT DIRECTLY on it, it takes like 2
seconds before the mount is completely finished (even though I get the "VFS:
Mounted root" message after just .10 seconds, the system hangs for an
additional 2 seconds before continuing)
Yaffs boot time:
When the system is booted (from CF) and I mount the yaffs2 partition, I get
very interesting mount time: 0.13sec
# df
Filesystem Size Used Available Use% Mounted on
/dev/hda1 962.6M 203.1M 710.5M 22% /
# time mount /dev/mtdblock1 /mnt
[4294686.171000] yaffs: dev is 32505857 name is "mtdblock1"
[4294686.177000] yaffs: Attempting MTD mount on 31.1, "mtdblock1"
[4294686.183000] yaffs: auto selecting yaffs2
[4294686.187000] restore entry: isCheckpointed 0
[4294686.210000] found checkpt block 201
[4294686.276000] checkpoint byte count 60856
[4294686.280000] restore exit: isCheckpointed 1
[4294686.284000] yaffs: restored from checkpoint
real 0m 0.13s
user 0m 0.00s
sys 0m 0.13s
But When I boot DIRECTLY on the same yaffs partition it takes a good 2
seconds to mount !! What's going on here??
[4294668.443000] yaffs: dev is 32505857 name is "mtdblock1"
[4294668.448000] yaffs: Attempting MTD mount on 31.1, "mtdblock1"
[4294668.454000] yaffs: auto selecting yaffs2
[4294668.458000] restore entry: isCheckpointed 0
[4294668.481000] found checkpt block 201
[4294668.546000] checkpoint byte count 60856
[4294668.550000] restore exit: isCheckpointed 1
[4294668.555000] yaffs: restored from checkpoint
[4294668.560000] VFS: Mounted root (yaffs filesystem) readonly. <
here it says it's mounted but there's an additional 2 seconds
[4294670.606000] watchdog de-activated
< this is the first userland execution
Any advice is greatly appreciated
Boris