[U-Boot-Users] [PATCH] Fix bug in auto_update (trab board)
Wolfgang Denk
wd at denx.de
Wed Sep 21 15:33:00 CEST 2005
In message <47F3F98010FF784EBEE6526EAAB078D1C05D5F at 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 at denx.de
"Summit meetings tend to be like panda matings. The expectations are
always high, and the results usually disappointing." - Robert Orben
More information about the U-Boot
mailing list