[U-Boot-Users] [PATCH] jffs2 CFG_CMD_JFFS2

Hi,
Running ./MAKEALL 8xx fails for several (all ?) boards using CFG_CMD_JFFS2. Problem is in defining chpart CMD after its corresponding do_jffs2_chpart() function has not been defined.
CHANGELOG: Patch by Hinko Kocevar, 21 Aug 2004: Fix build failure when CFG_CMD_JFFS2 is used
regards, himba
--- u-boot/common/cmd_jffs2.c 2004-08-03 01:22:59.000000000 +0200 +++ lcd-u-boot/common/cmd_jffs2.c 2004-08-21 10:42:32.000000000 +0200 @@ -282,10 +282,12 @@ " - list files in a directory.\n" );
+#ifndef CFG_JFFS_SINGLE_PART U_BOOT_CMD( chpart, 2, 0, do_jffs2_chpart, "chpart\t- change active partition\n", " - change active partition\n" ); +#endif /* CFG_JFFS_SINGLE_PART */
#endif /* CFG_CMD_JFFS2 */

In message 41271D85.3060007@siol.net you wrote:
CHANGELOG: Patch by Hinko Kocevar, 21 Aug 2004: Fix build failure when CFG_CMD_JFFS2 is used
This was already fixed in the meantime. Thanks anyway.
Best regards,
Wolfgang Denk

Hello README.nand says:
nand write.jffs2 addr ofs size Like `write', but blocks that are marked bad are skipped and the is written to the next block instead. This allows writing writing a JFFS2 image, as long as the image is short enough to fit even after skipping the bad blocks. Compact images, such as those produced by mkfs.jffs2 should work well, but loading an image copied from another flash is going to be trouble if there are any bad blocks.
a) Is ofs+size-1 the maximal address where the NAND is accessed while writing? b) Is add+size-1 the maximal address where the RAM is accessed while reading? c) how does this change if bad blocks are detected?
e.g. in RAM at 200.000 is a 100.000bytes long jffs2 image generated by mkfs.jffs2. I wan't to install a JFFS2 with this content in NAND at 400.000 with 100.000bytes. # nand write.jffs2 200.000 400.000 100.000
what happens if the NAND has some bad blocks, does the write command writes beyond 500.000 to the NAND, or does it abort since there is not enough space available?
thank you for any hints,
participants (3)
-
himba
-
Thomas Kuhlmann
-
Wolfgang Denk