From 0b8fa03b6df4130b2c8b215b85f36ab96eaa21f9 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sun, 25 Apr 2004 14:37:29 +0000 Subject: * Patch by Christian Hohnstaedt, 23 Apr 2004: JFFS2 speed enhancements: - repair header CRC calculation in jffs2_1pass.c - add eraseblock size to the partition information to skip empty eraseblocks if we find more then 4k of free space. - The JFFS2 scanner is now fast enough to remove the spinning wheel so #ifdef-ed out. - add watchdog calls in long running loops * Patch by Philippe Robin, 22 Apr 2004: Fix ethernet configuration for "versatile" board * Patch by Kshitij Gupta, 21 Apr 2004: Remove busy loop and use MPU timer fr usleep() on OMAP1510/1610 boards * Patch by Steven Scholz, 24 Feb 2004: Fix a bug in AT91RM9200 ethernet driver: The MII interface is now initialized before accessing the PHY. * Cleanup PCI ID's --- common/cmd_jffs2.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c index 3cf00b8..11e3cc6 100644 --- a/common/cmd_jffs2.c +++ b/common/cmd_jffs2.c @@ -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; -- cgit v1.1