2
0
forked from Ivasoft/openwrt

This patch is for broadcom 96348GW-11 boards, to get USB and Ethernet working. Also it patches mtd map driver for bcm96xx boards to be sure that CFE1CFE1 code is detected when booting from CFE. (#4201)

SVN-Revision: 13213
This commit is contained in:
Florian Fainelli
2008-11-15 11:30:22 +00:00
parent cb126cd576
commit 0d4286b0b3
3 changed files with 31 additions and 3 deletions

View File

@@ -177,13 +177,14 @@ static int bcm963xx_detect_cfe(struct mtd_info *master)
{
int idoffset = 0x4e0;
static char idstring[8] = "CFE1CFE1";
char buf[8];
char buf[9];
int ret;
size_t retlen;
ret = master->read(master, idoffset, 8, &retlen, (void *)buf);
buf[retlen] = 0;
printk("bcm963xx: Read Signature value of %s\n", buf);
return strcmp(idstring,buf);
return strncmp(idstring,buf,8);
}
static int __init bcm963xx_mtd_init(void)