public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Env. vars fix for lite5200
@ 2011-02-25 14:49 Karim Yaghmour
  2011-04-13 21:08 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Karim Yaghmour @ 2011-02-25 14:49 UTC (permalink / raw)
  To: u-boot

I still have a few older lite5200 boards around and when I recently tried
to upgrade U-Boot I ran into weird problems where "saveenv" would fry the
bootloader. Attached is a fix. It seems that somewhere along the way the
image size grew larger than 256K and the address for the env vars
overlapped with the code.

P.S.: Apologies for not putting the patch inline, the email provider I use
has a brain-dead policy of enforcing line-wraps on text emails :/

--
Karim Yaghmour
CEO - Opersys inc. / www.opersys.com
http://twitter.com/karimyaghmour
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-2010.12-fix-lite5200.patch
Type: application/octet-stream
Size: 618 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110225/73134e79/attachment.obj 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] Env. vars fix for lite5200
  2011-02-25 14:49 [U-Boot] [PATCH] Env. vars fix for lite5200 Karim Yaghmour
@ 2011-04-13 21:08 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2011-04-13 21:08 UTC (permalink / raw)
  To: u-boot

Dear Karim Yaghmour,

In message <cce4b6d6c15fe8f412e82dcbacc5d56c@mail.gmail.com> you wrote:
> 
> I still have a few older lite5200 boards around and when I recently tried
> to upgrade U-Boot I ran into weird problems where "saveenv" would fry the
> bootloader. Attached is a fix. It seems that somewhere along the way the
> image size grew larger than 256K and the address for the env vars
> overlapped with the code.
...
> diff -urN u-boot-2010.12/include/configs/IceCube.h u-boot-2010.12-fix-lite5200//include/configs/IceCube.h
> --- u-boot-2010.12/include/configs/IceCube.h	2010-12-22 14:22:14.000000000 -0500
> +++ u-boot-2010.12-fix-lite5200//include/configs/IceCube.h	2011-02-23 16:46:35.751137042 -0500

Proper commit message and Signed-off-by: line missing.

Also, patches should be made using "git format-patch". If you really
have to do it by hand, then please make sure that they can be applied
with "git am", i. e. at least make sure that "patch -p1 works", and
that your attached patch has the full information including From:,
Date: and Subject.

> @@ -234,7 +234,7 @@
>  #define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + 0x00040000 + 0x00800000)
>  #endif
>  #if defined(CONFIG_SYS_LOWBOOT16)
> -#define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + 0x00040000)
> +#define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + 0x00050000)
>  #endif
>  #endif	/* CONFIG_SYS_LOWBOOT */
>  #endif /* CONFIG_LITE5200B */

Hm... This should also be fixed for the highboot case, then.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Quotation, n. The act of repeating erroneously the words of  another.
The  words  erroneously  repeated.
                            - Ambrose Bierce _The Devil's Dictionary_

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-13 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25 14:49 [U-Boot] [PATCH] Env. vars fix for lite5200 Karim Yaghmour
2011-04-13 21:08 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox