alwasy read imagetag with 64K erase block size
authorFlorian Fainelli <florian@openwrt.org>
Thu, 22 Apr 2010 15:27:42 +0000 (15:27 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 22 Apr 2010 15:27:42 +0000 (15:27 +0000)
SVN-Revision: 21085

target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch
target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch

index 117074b994d215b3fadcaa793859f43d7dd876b4..137b08f1592d5f347c2e05d4d7a61f9a1c3ff05b 100644 (file)
@@ -148,7 +148,7 @@ Index: linux-2.6.32.10/drivers/mtd/maps/bcm963xx-flash.c
 +              return -ENOMEM;
 +
 +      /* Get the tag */
-+      ret = master->read(master,master->erasesize,sizeof(struct bcm_tag), &retlen, (void *)buf);
++      ret = master->read(master,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf);
 +      if (retlen != sizeof(struct bcm_tag)){
 +              vfree(buf);
 +              return -EIO;
index cd0ec549d2a13659a40a5dd793031ca0127287c4..b6132eb0788b38824e30afba38fca2df9634da6d 100644 (file)
@@ -189,7 +189,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>
 +              return -ENOMEM;
 +
 +      /* Get the tag */
-+      ret = master->read(master,master->erasesize,sizeof(union bcm_tag), &retlen, (void *)buf);
++      ret = master->read(master,0x10000,sizeof(union bcm_tag), &retlen, (void *)buf);
 +      if (retlen != sizeof(union bcm_tag)){
 +              vfree(buf);
 +              return -EIO;