
21 Sep
2005
21 Sep
'05
3:33 p.m.
In message 47F3F98010FF784EBEE6526EAAB078D1C05D5F@tq-mailsrv.tq-net.de you wrote:
- Fix bug in auto_update (trab board)
Patch by Martin Krause, 16 Sep 2005
Added, but:
--- a/board/trab/auto_update.c +++ b/board/trab/auto_update.c @@ -296,7 +296,7 @@ au_check_header_valid(int idx, long nbyt /* recycle checksum */ checksum =3D ntohl(hdr->ih_size); /* for kernel and app the image header must also fit into flash */
- if (idx !=3D IDX_DISK)
- if ((idx !=3D IDX_DISK) && (idx !=3D IDX_FIRMWARE)) checksum +=3D sizeof(*hdr); /* check the size does not exceed space in flash. HUSH scripts */ /* all have ausize[] set to 0 */
Note that the patch comes corrupted (quoted-printable encoded).
Please make sure to send plain, unencoded text.
Added.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"Summit meetings tend to be like panda matings. The expectations are
always high, and the results usually disappointing." - Robert Orben