* [U-Boot] [PATCH] board/freescale: Move CRC32 offset in NXID v1 data format
@ 2014-04-25 23:38 Ebony Zhu
2014-05-20 15:34 ` York Sun
0 siblings, 1 reply; 2+ messages in thread
From: Ebony Zhu @ 2014-04-25 23:38 UTC (permalink / raw)
To: u-boot
According to AN3638, CRC of NXID v1 is at the end of the
256-byte I2C memory. The wrong CRC32 offset prevents Uboot
from reading system information from EEPROM. No NXID v0 is
being used on Freescale boards.
Signed-off-by: Ebony Zhu <b45385@freescale.com>
---
board/freescale/common/sys_eeprom.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c
index 9c18dd8..1e212ad 100644
--- a/board/freescale/common/sys_eeprom.c
+++ b/board/freescale/common/sys_eeprom.c
@@ -21,7 +21,7 @@
/* some boards with non-256-bytes EEPROM have special define */
/* for MAX_NUM_PORTS in board-specific file */
#ifndef MAX_NUM_PORTS
-#define MAX_NUM_PORTS 23
+#define MAX_NUM_PORTS 16
#endif
#define NXID_VERSION 1
#endif
@@ -58,8 +58,9 @@ static struct __attribute__ ((__packed__)) eeprom {
u8 res_1[21]; /* 0x2b - 0x3f Reserved */
u8 mac_count; /* 0x40 Number of MAC addresses */
u8 mac_flag; /* 0x41 MAC table flags */
- u8 mac[MAX_NUM_PORTS][6]; /* 0x42 - x MAC addresses */
- u32 crc; /* x+1 CRC32 checksum */
+ u8 mac[MAX_NUM_PORTS][6]; /* 0x42 - 0xa1 MAC addresses */
+ u8 res_2[90]; /* 0xa2 - 0xfb Reserved */
+ u32 crc; /* 0xfc - 0xff CRC32 checksum */
#endif
} e;
--
1.8.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] board/freescale: Move CRC32 offset in NXID v1 data format
2014-04-25 23:38 [U-Boot] [PATCH] board/freescale: Move CRC32 offset in NXID v1 data format Ebony Zhu
@ 2014-05-20 15:34 ` York Sun
0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2014-05-20 15:34 UTC (permalink / raw)
To: u-boot
On 04/25/2014 04:38 PM, Ebony Zhu wrote:
> According to AN3638, CRC of NXID v1 is at the end of the
> 256-byte I2C memory. The wrong CRC32 offset prevents Uboot
> from reading system information from EEPROM. No NXID v0 is
> being used on Freescale boards.
>
> Signed-off-by: Ebony Zhu <b45385@freescale.com>
> ---
Applied to u-boot-mpc85xx/master.
York
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-20 15:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-25 23:38 [U-Boot] [PATCH] board/freescale: Move CRC32 offset in NXID v1 data format Ebony Zhu
2014-05-20 15:34 ` York Sun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox