projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e2c38b
)
use boards mac on boards with brn loader, on ifxmips
author
John Crispin
<john@openwrt.org>
Sat, 5 Jul 2008 23:22:21 +0000
(23:22 +0000)
committer
John Crispin
<john@openwrt.org>
Sat, 5 Jul 2008 23:22:21 +0000
(23:22 +0000)
SVN-Revision: 11674
target/linux/ifxmips/files/arch/mips/ifxmips/board.c
patch
|
blob
|
history
diff --git
a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
index e4ef45408fa5febe294689dd564ba6253847f771..f0c2f70321d176bea6e3243f99bc6dafb755f8a9 100644
(file)
--- a/
target/linux/ifxmips/files/arch/mips/ifxmips/board.c
+++ b/
target/linux/ifxmips/files/arch/mips/ifxmips/board.c
@@
-259,12
+259,17
@@
static struct ifxmips_board boards[] =
int
ifxmips_find_brn_block(void){
- unsigned char temp[
0
];
+ unsigned char temp[
8
];
memcpy_fromio(temp, (void*)KSEG1ADDR(IFXMIPS_FLASH_START + 0x800000 - 0x10000), 8);
if(memcmp(temp, "BRN-BOOT", 8) == 0)
+ {
+ if(!cmdline_mac)
+ memcpy_fromio(ifxmips_mii_mac, (void*)KSEG1ADDR(IFXMIPS_FLASH_START + 0x800000 - 0x10000 + 0x16), 6);
+ cmdline_mac = 1;
return 1;
- else
+ } else {
return 0;
+ }
}
int