diff options
| -rw-r--r-- | target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch | 2 | ||||
| -rw-r--r-- | target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch b/target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch index 4784de7d6..812e008a2 100644 --- a/target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch +++ b/target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch @@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>  +		return -ENOMEM;  +  +	/* Get the tag */ -+	ret = master->read(master,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf); ++	ret = master->read(master,master->erasesize,sizeof(struct bcm_tag), &retlen, (void *)buf);  +	if (retlen != sizeof(struct bcm_tag)){  +		vfree(buf);  +		return -EIO; diff --git a/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch b/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch index 6edb8c787..5f3e0a273 100644 --- a/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch +++ b/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch @@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>  +		return -ENOMEM;  +  +	/* Get the tag */ -+	ret = master->read(master,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf); ++	ret = master->read(master,mater->erasesize,sizeof(struct bcm_tag), &retlen, (void *)buf);  +	if (retlen != sizeof(struct bcm_tag)){  +		vfree(buf);  +		return -EIO; | 
