Skip to content
Snippets Groups Projects
  1. Jul 10, 2013
  2. Jul 08, 2013
  3. Jul 04, 2013
  4. Jul 03, 2013
  5. Jul 02, 2013
  6. Jul 01, 2013
  7. Jun 30, 2013
  8. Jun 28, 2013
    • Tom Rini's avatar
    • Stefan Roese's avatar
      Fix bootm to work on powerpc again (compressed uImage) · ed12b5b9
      Stefan Roese authored
      
      Patch 35fc84fa [Refactor the bootm command to reduce code duplication]
      breaks booting Linux (compressed uImage with fdt) on powerpc.
      
      boot_jump_linux() mustn't be called before boot_prep_linux() and
      boot_body_linux() have been called. So remove the superfluous call
      to boot_jump_linux() in arch/powerpc/lib/bootm.c as its called later on
      in this function.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Tom Rini <trini@ti.com>
      ed12b5b9
    • Simon Glass's avatar
      mkimage: Build signing only if board has CONFIG_FIT_SIGNATURE · 29ce737d
      Simon Glass authored
      
      At present mkimage is set up to always build with image signing support.
      This means that the SSL libraries (e.g. libssl-dev) are always required.
      
      Adjust things so that mkimage can be built with and without image signing,
      controlled by the presence of CONFIG_FIT_SIGNATURE in the board config file.
      
      If CONFIG_FIT_SIGNATURE is not enabled, then mkimage will report a warning
      that signing is not supported. If the option is enabled, but libraries are
      not available, then a build error similar to this will be shown:
      
      lib/rsa/rsa-sign.c:26:25: fatal error: openssl/rsa.h: No such file or directory
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      29ce737d
    • Simon Glass's avatar
      bootm: Disable interrupts before loading OS · 5ff0d083
      Simon Glass authored
      
      This restores the ordering of interrupt disable to what it what before
      commit 35fc84fa. It seems that on some archiectures (e.g. PowerPC) the
      OS is loaded into an interrupt region, which can cause problems if
      interrupts are still running.
      
      Tested-by: default avatarStefan Roese <sr@denx.de>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      5ff0d083
    • Tom Rini's avatar
      cmd_bootm.c: Correct BOOTM_ERR_OVERLAP handling · d366438d
      Tom Rini authored
      
      With 35fc84fa [Refactor the bootm command to reduce code duplication]
      we stopped checking the return value of bootm_load_os (unintentionally!)
      and simply returned if we had a non-zero return value from the function.
      This broke the valid case of a legacy image file of a single kernel
      loaded into an overlapping memory area (the default way of booting
      nearly all TI platforms).
      
      The best way to fix this problem in the new code is to make
      bootm_load_os be the one to see if we have a problem with this, and if
      it's fatal return BOOTM_ERR_RESET and if it's not BOOTM_ERR_OVERLAP, so
      that we can avoid calling lmb_reserve() but continue with booting.  We
      however still need to handle the other BOOTM_ERR values so re-work
      do_bootm_states so that we have an error handler at the bottom we can
      goto for problems from bootm_load_os, or problems from the other callers
      (as the code was before).  Add a comment to do_bootm_states noting the
      existing restriction on negative return values.
      
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      
      ---
      Changes in v2:
      - Rework so that only bootm_load_os and boot_selected_os head down into
        the err case code, and other errors simply return back to the caller.
        Fixes 'spl export'.
      d366438d
  9. Jun 27, 2013
Loading