mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
km/common: fix bug in IVM mac address access
The MAC address stored in the inventory eeprom begins at offset 1. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
3f96ee3347
commit
6478021f12
@ -206,8 +206,8 @@ static int ivm_analyze_block2(unsigned char *buf, int len)
|
|||||||
unsigned char valbuf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN];
|
unsigned char valbuf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN];
|
||||||
unsigned long count;
|
unsigned long count;
|
||||||
|
|
||||||
/* IVM_MacAddress */
|
/* IVM_MAC Adress begins at offset 1 */
|
||||||
sprintf((char *)valbuf, "%pM", buf);
|
sprintf((char *)valbuf, "%pM", buf + 1);
|
||||||
ivm_set_value("IVM_MacAddress", (char *)valbuf);
|
ivm_set_value("IVM_MacAddress", (char *)valbuf);
|
||||||
/* if an offset is defined, add it */
|
/* if an offset is defined, add it */
|
||||||
#if defined(CONFIG_PIGGY_MAC_ADRESS_OFFSET)
|
#if defined(CONFIG_PIGGY_MAC_ADRESS_OFFSET)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user