]> Git Repo - u-boot.git/blobdiff - common/cmd_jffs2.c
* Patch by Christian Hohnstaedt, 23 Apr 2004:
[u-boot.git] / common / cmd_jffs2.c
index 3cf00b8e29b4d0db3871f587db19b98fc7448f63..11e3cc663e4732b8064cf44bc3f2692626afb286 100644 (file)
@@ -80,8 +80,14 @@ jffs2_part_info(int part_num)
                        flash_info[CFG_JFFS2_FIRST_BANK].start[0];
 #endif
 
-               /* unused in current jffs2 loader */
-               part.erasesize = 0;
+               /* FIXME: Fast hack to get erase size set */
+
+               /* We assume that our JFFS2 partition has
+                * all erase blocks with the same size
+                * If we have a clue about the erasesize
+                * we can skip empty blocks
+                */
+               part.erasesize = PHYS_FLASH_SECT_SIZE;
 
                /* Mark the struct as ready */
                part.usr_priv=(void*)1;
This page took 0.02501 seconds and 4 git commands to generate.