Skip to content
Snippets Groups Projects
  1. May 23, 2016
    • Simon Glass's avatar
      image-fit: Don't display an error in fit_set_timestamp() · 8df81e17
      Simon Glass authored
      
      This function returns an error code and its caller may be able to fix the
      error. For example fit_handle_file() expands the device tree to fit if there
      is a lack of space.
      
      In this case the caller does not want an error displayed. It is confusing,
      since it suggests that something is wrong, when it fact everything is fine.
      Drop the error.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      8df81e17
  2. Mar 14, 2016
  3. Feb 26, 2016
    • Simon Glass's avatar
      Revert "image-fit: Fix signature checking" · 2e33e761
      Simon Glass authored
      
      This reverts commit 84ca65aa.
      
      On signature verification failures fit_image_verify() should NOT exit with
      error. Only keys marked 'required' can cause image verification failure.
      This logic is already there and works correctly.
      
      Add a comment to make this clear.
      
      Fixes: 84ca65aa (image-fit: Fix signature checking)
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      2e33e761
    • Simon Glass's avatar
      image: Correct the OS location code to work on sandbox · 7a80de46
      Simon Glass authored
      
      A recent change broke the 'bootm' command on sandbox. The root cause is
      using a pointer as an address. Conversion from pointer to address needs to
      use map_to_sysmem() so that sandbox can do the right thing. The problem was
      pre-existing but uncovered by a recent commit.
      
      Fix this. Also move fit_get_end() to the C file to avoid needing to include
      mapmem.h (and thus asm/io.h) everywhere.
      
      Fixes: 1fec3c5d (common/image.c: Make boot_get_ramdisk() perform a check for Android images)
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      7a80de46
  4. Oct 19, 2015
  5. Jun 06, 2015
    • Hans de Goede's avatar
      image-fit: Fix compiler warning in fit_conf_print() · 5bcec545
      Hans de Goede authored
      
      This fixes the following compiler warning:
      
      In file included from tools/common/image-fit.c:1:0:
      ./tools/../common/image-fit.c: In function ‘fit_conf_print’:
      ./tools/../common/image-fit.c:1470:27: warning: logical not is only applied
       to the left hand side of comparison [-Wlogical-not-parentheses]
          (const char **)&uname) > 0;
      
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      5bcec545
  6. May 28, 2015
  7. Apr 18, 2015
  8. Feb 16, 2015
  9. Jan 29, 2015
    • Guilherme Maciel Ferreira's avatar
      dumpimage: fit: extract FIT images · 39931f96
      Guilherme Maciel Ferreira authored
      
      The dumpimage is able to extract components contained in a FIT image:
      
        $ ./dumpimage -T flat_dt -i CONTAINER.ITB -p INDEX FILE
      
      The CONTAINER.ITB is a regular FIT container file. The INDEX is the poisition
      of the sub-image to be retrieved, and FILE is the file (path+name) to save the
      extracted sub-image.
      
      For example, given the following kernel.its to build a kernel.itb:
      
        /dts-v1/;
        / {
            ...
            images {
              kernel@1 {
                description = "Kernel 2.6.32-34";
                data = /incbin/("/boot/vmlinuz-2.6.32-34-generic");
                type = "kernel";
                arch = "ppc";
                os = "linux";
                compression = "gzip";
                load = <00000000>;
                entry = <00000000>;
                hash@1 {
                  algo = "md5";
                };
              };
              ...
            };
            ...
          };
      
      The dumpimage can extract the 'kernel@1' node through the following command:
      
        $ ./dumpimage -T flat_dt -i kernel.itb -p 0 kernel
        Extracted:
         Image 0 (kernel@1)
          Description:  Kernel 2.6.32-34
          Created:      Wed Oct 22 15:50:26 2014
          Type:         Kernel Image
          Compression:  gzip compressed
          Data Size:    4040128 Bytes = 3945.44 kB = 3.85 MB
          Architecture: PowerPC
          OS:           Linux
          Load Address: 0x00000000
          Entry Point:  0x00000000
          Hash algo:    md5
          Hash value:   22352ad39bdc03e2e50f9cc28c1c3652
      
      Which results in the file 'kernel' being exactly the same as '/boot/vmlinuz-2.6.32-34-generic'.
      
      Signed-off-by: default avatarGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
      39931f96
  10. Jan 14, 2015
  11. Oct 29, 2014
  12. Oct 25, 2014
  13. Oct 22, 2014
  14. Aug 28, 2014
  15. Jun 19, 2014
  16. Jun 11, 2014
  17. Mar 21, 2014
  18. Feb 19, 2014
  19. Sep 20, 2013
  20. Aug 16, 2013
    • Simon Glass's avatar
      image: Display FIT timestamp when booting · 1fd1e2f6
      Simon Glass authored
      
      The timestamp is shown in fit_print_contents() but for some reason not
      in fit_image_print(). This seems to be an oversight, since it is the latter
      which is used by bootm.
      
      Add timestamp printing in this case.
      
      (There is code duplication in these two function, for looking at in a future
      patch).
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      1fd1e2f6
  21. Jul 24, 2013
  22. Jul 12, 2013
    • Simon Glass's avatar
      bootm: Use selected configuration for ramdisk and fdt · f320a4d8
      Simon Glass authored
      
      If a specific configuraion is selected by the bootm command, e.g. with
      'bootm 84000000#recoveryconf' we must honour this for not just the kernel,
      but also the ramdisk and FDT.
      
      In the conversion to using a common fit_image_load() function for loading
      images from FITs (commits a51ec63b and 53f375fa) this feature was lost.
      Reinstate it by passing the selected configuration back from
      fit_image_load() to boot_get_kernel(), then use this configuration
      (which is stored in images->fit_uname_cfg) in both boot_get_ramdisk()
      and boot_get_fdt().
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      f320a4d8
  23. Jun 26, 2013
  24. Jun 17, 2013
  25. Jun 04, 2013
Loading