public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] Protect splashimage from improperly aligned addresses
@ 2013-02-24 16:19 Nikita Kiryanov
  2013-02-24 16:19 ` [U-Boot] [PATCH 1/2] lcd: implement a callback for splashimage Nikita Kiryanov
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Nikita Kiryanov @ 2013-02-24 16:19 UTC (permalink / raw)
  To: u-boot

As discussed in the links below, one needs to be careful about choosing an
address for a splash image BMP file when working on architectures that can't
handle unaligned memory accesses. A bad address may lead to a bricked board,
and the safe addresses are not obvious due to the internal structure of BMP
files.

This patchset documents the problem and implements an optional callback that
prevents the environment variable from being set to a bad value.

Finally, it turns this protection on for cm_t35.

http://lists.denx.de/pipermail/u-boot/2013-January/144666.html
http://lists.denx.de/pipermail/u-boot/2013-February/146021.html

Nikita Kiryanov (2):
  lcd: implement a callback for splashimage
  cm_t35: prevent splashimage from being set to a bad value

 README                     |   11 +++++++++++
 common/lcd.c               |   26 ++++++++++++++++++++++++++
 doc/README.displaying-bmps |   27 +++++++++++++++++++++++++++
 include/configs/cm_t35.h   |    2 ++
 include/env_callback.h     |    7 +++++++
 5 files changed, 73 insertions(+)
 create mode 100644 doc/README.displaying-bmps

-- 
1.7.10.4

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

end of thread, other threads:[~2013-03-10 11:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-24 16:19 [U-Boot] [PATCH 0/2] Protect splashimage from improperly aligned addresses Nikita Kiryanov
2013-02-24 16:19 ` [U-Boot] [PATCH 1/2] lcd: implement a callback for splashimage Nikita Kiryanov
2013-02-24 20:01   ` Wolfgang Denk
2013-02-25  7:28   ` [U-Boot] [PATCH V2 " Nikita Kiryanov
2013-02-24 16:19 ` [U-Boot] [PATCH 2/2] cm_t35: prevent splashimage from being set to a bad value Nikita Kiryanov
2013-02-27 20:06 ` [U-Boot] [PATCH 0/2] Protect splashimage from improperly aligned addresses Tom Rini
2013-02-28  6:11   ` Nikita Kiryanov
2013-03-10 11:22 ` Nikita Kiryanov

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