[U-Boot] JFFS2 duplicate file entries

Fei, Yiyang YiYang.Fei at barco.com
Thu Feb 10 01:49:14 CET 2011


Hi,

 

I'm using the 2010.12 u-boot source code.  I use a JFFS2 partition on a
NAND flash to store the kernel image as well as an FGPA images for my
platform.  I also mount this partition inside the kernel because I need
the ability to overwrite the contents during a field-upgrade of the
embedded software.  When I make changes to this partition from the
kernel, everything looks correct.  But when I reboot and break into
u-boot, the contents of the partition is incorrect.  For example, if I
do the following from the kernel...

 

/mnt/bootfs # ll

-rw-r--r--    1 64105    62004      9232568 Feb 10  2011
netviz_core_fpga.bit

-rw-r--r--    1 64105    62004      2138968 Feb 10  2011 uImage

/mnt/bootfs # touch test

/mnt/bootfs # ll

-rw-r--r--    1 64105    62004      9232568 Feb 10  2011
netviz_core_fpga.bit

-rw-r--r--    1 root     root             0 Jan  1 00:27 test

-rw-r--r--    1 64105    62004      2138968 Feb 10  2011 uImage

/mnt/bootfs # rm test

/mnt/bootfs # ll

-rw-r--r--    1 64105    62004      9232568 Feb 10  2011
netviz_core_fpga.bit

-rw-r--r--    1 64105    62004      2138968 Feb 10  2011 uImage

/mnt/bootfs # echo "some text" > test

/mnt/bootfs # ll

-rw-r--r--    1 64105    62004      9232568 Feb 10  2011
netviz_core_fpga.bit

-rw-r--r--    1 root     root            10 Jan  1 00:27 test

-rw-r--r--    1 64105    62004      2138968 Feb 10  2011 uImage

/mnt/bootfs # reboot

 

During the boot, if I break into u-boot, here is what I see...

 

Hit any key to stop autoboot:  0

NetViz>> ls

 -rw-r--r--  9232568 Thu Feb 10 00:31:27 2011 netviz_core_fpga.bit

 -rw-r--r--  2138968 Thu Feb 10 00:31:03 2011 uImage

 -rw-r--r--        0 Thu Jan 01 00:27:14 1970 test

 -rw-r--r--       10 Thu Jan 01 00:27:42 1970 test

NetViz>>

 

Do you have any suggestions on how I should track down the cause for
this problem?

 

Yiyang Fei



DISCLAIMER:
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.


More information about the U-Boot mailing list