public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v4 0/19] Allow images to work on sandbox
@ 2013-05-07 16:11 Simon Glass
  2013-05-07 16:11 ` [U-Boot] [PATCH v4 01/19] env: Fix minor comment typos in cmd_nvedit Simon Glass
                   ` (20 more replies)
  0 siblings, 21 replies; 24+ messages in thread
From: Simon Glass @ 2013-05-07 16:11 UTC (permalink / raw)
  To: u-boot

This series adjusts the image code to work with sandbox and prepares it for
verified boot to come later.

The primary goal here is to get image loading to work on sandbox, which is
mostly a set of fairly minor changes such as using map_sysmem() instead of
just a cast when converting from a U-Boot address to a pointer. Since
common/image.c runs to over 3000 lines and half of it is FIT-related code
behind an #ifdef, this code is moved into a new image-fit.c file.

Changes in v4:
- Bring in upstream version of fdt_first/next_subnode()
- Use new upstream fdt_first/next_subnode()

Changes in v3:
- Split out image improvements into a separate series
- Update notes to note that generic board support has now landed

Changes in v2:
- Add IMAGE_ENABLE_IGNORE to avoid #ifdef around ignore property handling
- Change hash_block() to use an unsigned int len
- Clarify use of output_size parameter to hash_block()
- Fix checkpatch checks about parenthesis alignment
- Fix line continuation problem
- Put err_msgp strings on a single line
- Put params before description in fit_conf_get_prop_node() comment
- Rebase on previous patches
- Rename commit message to say "function" instead of "function"

Simon Glass (19):
  env: Fix minor comment typos in cmd_nvedit
  Add minor updates to README.fdt-control
  hash: Add a way to calculate a hash for any algortihm
  bootstage: Don't build for HOSTCC
  mkimage: Move ARRAY_SIZE to header file
  libfdt: Add fdt_next_subnode() to permit easy subnode iteration
  image: Move timestamp #ifdefs to header file
  image: Export fit_check_ramdisk()
  image: Split FIT code into new image-fit.c
  image: Move HOSTCC image code to tools/
  image: Split hash node processing into its own function
  image: Convert fit_image_hash_set_value() to static, and rename
  image: Rename fit_image_check_hashes() to fit_image_verify()
  image: Move hash checking into its own function
  image: Move error! string to common place
  image: Export fit_conf_get_prop_node()
  image: Rename fit_add_hashes() to fit_add_verification_data()
  image: Rename hash printing to fit_image_print_verification_data()
  sandbox: image: Add support for booting images in sandbox

 common/Makefile        |    1 +
 common/cmd_bootm.c     |   25 +-
 common/cmd_fpga.c      |    2 +-
 common/cmd_nvedit.c    |    4 +-
 common/cmd_source.c    |    2 +-
 common/cmd_ximg.c      |    2 +-
 common/hash.c          |   23 +
 common/image-fit.c     | 1495 ++++++++++++++++++++++++++++++++++++++++++
 common/image.c         | 1679 ++----------------------------------------------
 common/update.c        |    2 +-
 doc/README.fdt-control |    9 +-
 include/bootstage.h    |    5 +-
 include/hash.h         |   22 +
 include/image.h        |   55 +-
 include/libfdt.h       |   22 +
 lib/libfdt/fdt.c       |   28 +
 tools/Makefile         |    4 +
 tools/aisimage.c       |    1 -
 tools/fit_image.c      |    2 +-
 tools/image-host.c     |  208 ++++++
 tools/mkimage.h        |    2 +
 21 files changed, 1917 insertions(+), 1676 deletions(-)
 create mode 100644 common/image-fit.c
 create mode 100644 tools/image-host.c

-- 
1.8.2.1

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

end of thread, other threads:[~2013-05-15 12:48 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-07 16:11 [U-Boot] [PATCH v4 0/19] Allow images to work on sandbox Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 01/19] env: Fix minor comment typos in cmd_nvedit Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 02/19] Add minor updates to README.fdt-control Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 03/19] hash: Add a way to calculate a hash for any algortihm Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 04/19] bootstage: Don't build for HOSTCC Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 05/19] mkimage: Move ARRAY_SIZE to header file Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 06/19] libfdt: Add fdt_next_subnode() to permit easy subnode iteration Simon Glass
2013-05-07 21:48   ` Jerry Van Baren
2013-05-07 16:11 ` [U-Boot] [PATCH v4 07/19] image: Move timestamp #ifdefs to header file Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 08/19] image: Export fit_check_ramdisk() Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 09/19] image: Split FIT code into new image-fit.c Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 10/19] image: Move HOSTCC image code to tools/ Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 11/19] image: Split hash node processing into its own function Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 12/19] image: Convert fit_image_hash_set_value() to static, and rename Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 13/19] image: Rename fit_image_check_hashes() to fit_image_verify() Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 14/19] image: Move hash checking into its own function Simon Glass
2013-05-07 16:11 ` [U-Boot] [PATCH v4 15/19] image: Move error! string to common place Simon Glass
2013-05-07 16:12 ` [U-Boot] [PATCH v4 16/19] image: Export fit_conf_get_prop_node() Simon Glass
2013-05-07 16:12 ` [U-Boot] [PATCH v4 17/19] image: Rename fit_add_hashes() to fit_add_verification_data() Simon Glass
2013-05-07 16:12 ` [U-Boot] [PATCH v4 18/19] image: Rename hash printing to fit_image_print_verification_data() Simon Glass
2013-05-07 16:12 ` [U-Boot] [PATCH v4 19/19] sandbox: image: Add support for booting images in sandbox Simon Glass
2013-05-09 19:36 ` [U-Boot] [PATCH v4 0/19] Allow images to work on sandbox Tom Rini
2013-05-10  0:17   ` Simon Glass
2013-05-15 12:48 ` Tom Rini

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