[Elinux-discuss] huge rootfs mount time at boot
david at sdt.be
Tue Nov 6 15:03:46 UTC 2012
Our embedded linux is using a NOR flash.
Recently I have noticed the following:
1) I erase the root fs partition from uboot
2) I tftp the root fs image from uboot
3) I boot up on 25 sec
4) I SCP 2 files of 14 Mb each to /home
5) I boot up on 45 sec
6) I delete those 2 files
7) I still boot up on 45 sec!
8) To boot up on 25 sec again, I have to erase root fs from uboot
Since I have noticed that behavior, I have searched and learnt a lot, so I have now selected the "End block Summary"
For JFFS2 into menu config, have rebuilt everything and remake the jffs2 images.
After having modified a small program<http://www.embedded-linux.co.uk/downloads/nand_check.tar.gz> found here<http://www.embedded-linux.co.uk/tutorial/jffs2-summary> to make it works for NOR flash; I can see that blocks of my root fs
Image correctly end with EBS; but next blocks don't (like the ones about the 2 files I've added).
Then I have tried the "pad" option from the menu config, to pad the root fs image with 0xff to the size of my root fs partition; but the result is that my root fs jffs2 image size remain the same as before having checked the "pad(size)" option.
Could you please tell me why it acts like that (slow mount even after having deleted the 2 files) and how to fix it?
Thanks in advance,
[HEAR MORE]<http://www.sdt.eu> David MONTICELLI Developer & IT Administrator
SDT International sa-nv [linkedIn group] <http://www.linkedin.com/groups/Ultrasonic-Power-Users-4546068> [linkedIn] <http://www.linkedin.com/company/sdt-international-sa-nv> [Twitter] <https://twitter.com/HearMore>
Boulevard de l'Humanit? 415 - 1190 Brussels - Belgium | Tel: +32 2 332 32 25 | www.sdt.eu<http://www.sdt.eu>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Elinux-discuss