[U-Boot] [PATCH] fsl: update CRC after system EEPROM identifier
Timur Tabi
timur at freescale.com
Wed Feb 9 20:40:51 CET 2011
The "mac id" command is used to initialize the EEPROM data to a specific
format, but it was not updating the CRC. This didn't cause any real
problems, because writing the data to the EEPROM will always update the
CRC anyway, but it did result in a bogus CRC warning.
Signed-off-by: Timur Tabi <timur at freescale.com>
---
board/freescale/common/sys_eeprom.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c
index 11dfd84..3ecfb06 100644
--- a/board/freescale/common/sys_eeprom.c
+++ b/board/freescale/common/sys_eeprom.c
@@ -361,6 +361,7 @@ int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#else
memcpy(e.id, "CCID", sizeof(e.id));
#endif
+ update_crc();
return 0;
}
--
1.7.3.4
More information about the U-Boot
mailing list