[ARM] 4886/1: Orion: grab ts209 ethernet MAC address from flash
authorLennert Buytenhek <buytenh@wantstofly.org>
Tue, 1 Apr 2008 15:21:49 +0000 (16:21 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 4 Apr 2008 09:04:30 +0000 (10:04 +0100)
commitbee036b503214dd65f62af6599d2bebdf156467c
tree62884307ee3a51783c9a1573667ba288773813b1
parent9dd0b194bf6804b1998f0fe261b2606ec7b58d72
[ARM] 4886/1: Orion: grab ts209 ethernet MAC address from flash

The bootloader on ts209 Orion boards doesn't configure the right
ethernet MAC address into the GigE unit on boot.  The only way to
get the MAC address is by parsing it from the 'NAS Config' flash
partition, which is an ext2 partition that contains a file which
holds the MAC address in plain text (format "xx:xx:xx:xx:xx:xx\n")
-- this patch does that.

Tested-by: Martin Michlmayr <tbm@cyrius.com>
Cc: Byron Bradley <byron.bbradley@gmail.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-orion5x/ts209-setup.c