On Fri, Jun 14, 2013 at 3:21 AM, Wolfgang Denk <w...@denx.de> wrote: > diff --git a/board/freescale/mpc8323erdb/mpc8323erdb.c > b/board/freescale/mpc8323erdb/mpc8323erdb.c > index f29b2f4..533cb08 100644 > --- a/board/freescale/mpc8323erdb/mpc8323erdb.c > +++ b/board/freescale/mpc8323erdb/mpc8323erdb.c > @@ -195,7 +195,11 @@ int mac_read_from_eeprom(void) > printf("\nEEPROM @ 0x%02x read FAILED!!!\n", > CONFIG_SYS_I2C_EEPROM_ADDR); > } else { > - if (crc32(crc, buf, 24) == *(unsigned int *)&buf[24]) { > + unsigned int crc_buf;
This should be a uint32_t, because you specifically want only four bytes. If you fix that, Acked-by: Timur Tabi <ti...@tabi.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot