1. 26 7月, 2016 4 次提交
    • A
      efi_loader: Make exposed image loader path absolute · 49271666
      Alexander Graf 提交于
      When loading an efi image, we pass it the location it was loaded from.
      
      On file system backends, there are no relative paths, so we should always
      pass in absolute ones. For network paths, we may be relative.
      
      This fixes distro booting with grub2 for me when it fetches the grub2 config
      file from the loader partition.
      Reported-by: Nyork sun <york.sun@nxp.com>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      49271666
    • M
      common: fit: Allow U-Boot images to be booted · e8fb4358
      mario.six@gdsys.cc 提交于
      In certain circumstances it comes in handy to be able to boot into a second
      U-Boot. But as of now it is not possible to boot a U-Boot binary that is inside
      a FIT image, which is problematic for projects that e.g. need to guarantee a
      unbroken chain of trust from SOC all the way into the OS, since the FIT signing
      mechanism cannot be used.
      
      This patch adds the capability to load such FIT images.
      
      An example .its snippet (utilizing signature verification) might look
      like the following:
      
      images {
      	firmware@1 {
      		description = "2nd stage U-Boot image";
      		data = /incbin/("u-boot-dtb.img.gz");
      		type = "firmware";
      		arch = "arm";
      		os = "u-boot";
      		compression = "gzip";
      		load = <0x8FFFC0>;
      		entry = <0x900000>;
      		signature@1 {
      			algo = "sha256,rsa4096";
      			key-name-hint = "key";
      		};
      	};
      };
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      e8fb4358
    • K
      keystone: k2h/e/l: Fix DMA coherency for QM PDSP · bcdc1c83
      Karicheri, Muralidharan 提交于
      commit 1f807a9f ("ARM: keystone2: Refactor MSMC macros to avoid
      left under a macro KS2_MSMC_SEGMENT_QM_PDSP which is no longer valid.
      This, in effect disabled DMA coherency for QM PDSP.
      
      Given that msmc_k2hkle_common_setup is valid for all K2H/K/L/E SoCs,
      the #ifdef should been removed in the first place. Do the same.
      
      Fixes: 1f807a9f ("ARM: keystone2: Refactor MSMC macros to avoid #ifdeffery")
      Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
      Acked-by: NNishanth Menon <nm@ti.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      bcdc1c83
    • M
      cmd: misc: Add support for fractions in sleep · c4974632
      mario.six@gdsys.cc 提交于
      A feasible way to communicate certain errors for devices that have no
      other way of signalling besides LEDs is to flash these LEDs. For errors
      in U-Boot, a script that utilizes the led and sleep commands would be a
      practicable way, but currently the sleep command can only delay for an
      integral amount of seconds, which is too slow to create an easily
      noticeable pattern for flashing LEDs.
      
      Therefore, this patch adds support for fractions (down to .001 seconds)
      to the sleep command.
      
      The parsing is kept minimal, simplistic and as robust as possible: After
      converting the passed string using simple_strtoul and multiplying it
      with 1000, we search for the first dot, convert the three characters
      after that into a number (if they are not numbers, we ignore the
      fractional part and just use the delay we got from simple_strtoul), and
      add this number to the delay.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      c4974632
  2. 23 7月, 2016 36 次提交