1. 15 5月, 2013 4 次提交
  2. 28 3月, 2013 1 次提交
  3. 08 2月, 2013 1 次提交
  4. 06 1月, 2013 1 次提交
    • F
      tools: imximage: Load a size that is multiple of 512 · 1411fb37
      Fabio Estevam 提交于
      In order to mx53 ROM to properly load the U-boot image, its header size should
      be multiple of 512 bytes.
      
      This issue was observed with gcc 4.6.2/4.7.3, which caused data aborts:
      
      U-Boot 2013.01-rc2-00172-gf8cfcf1b-dirty (Dec 26 2012 - 13:13:28)
      
      Board: MX53 LOCO
      I2C:   ready
      DRAM:  1 GiB
      MMC:   FSL_SDHC: 0, FSL_SDHC: 1
      In:    serial
      Out:   serial
      Err:   serial
      CPU:   Freescale i.MX53 family rev2.1 at 1000 MHz
      Reset cause: WDOG
      Net:   FEC
      Warning: FEC using MAC address from net device
      
      Hit any key to stop autoboot:  0
      data abort
      
          MAYBE you should read doc/README.arm-unaligned-accesses
      
      pc : [<aff72220>]          lr : [<aff721fc>]
      sp : af565e20  ip : af566918     fp : 00000000
      r10: 00000003  r9 : affabb5b     r8 : af565f58
      r7 : 00000000  r6 : 36747fff     r5 : af5668e8  r4 : 36747fff
      r3 : af5668ec  r2 : af5668eb     r1 : 00000000  r0 : af5668e8
      Flags: NzcV  IRQs off  FIQs off  Mode SVC_32
      Resetting CPU ...
      
      resetting ...
      
      ,and this patch fixes it.
      
      Also, even though the ROUND macro is already defined in common.h,
      the reason for redefining it in image.h is explained by Stefano Babic:
      
      "I will remark a previous comment - even if including common.h seems a
      good idea to avoid duplications, it makes tools like mkimage to depend
      on the selected board, because <board>_config must run. Even if this is
      not a problem for us u-boot developers, it becomes an issue when these
      tools are included in distros (like u-boot-tools in Ubuntu) and cannot
      be packaged."
      Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      1411fb37
  5. 14 12月, 2012 1 次提交
  6. 13 11月, 2012 1 次提交
    • G
      fdt: Add option to default to most compatible conf in a fit image · d95f6ec7
      Gabe Black 提交于
      When booting a fit image with multiple configurations, the user either has to
      specify which configuration to use explicitly, or there has to be a default
      defined which is chosen automatically. This change adds an option to change
      that behavior so that a configuration can be selected explicitly, or the
      configuration which has the device tree that claims to be compatible with the
      earliest item in U-Boot's device tree.
      
      In other words, if U-Boot claimed to be compatible with A, B, and then C, and
      the configurations claimed to be compatible with A, D and B, D and D, E, the
      first configuration, A, D, would be chosen. Both the first and second
      configurations match, but the first one matches a more specific entry in
      U-Boot's device tree. The order in the kernel's device tree is ignored.
      Signed-off-by: NGabe Black <gabeblack@google.com>
      
      Commit-Ready: Gabe Black <gabeblack@chromium.org>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      d95f6ec7
  7. 05 11月, 2012 1 次提交
    • K
      include/image.h: sparse fixes · 2f220500
      Kim Phillips 提交于
      include/image.h:378:1: warning: cast to restricted __be32
      include/image.h:381:1: warning: cast to restricted __be32
      include/image.h:382:1: warning: cast to restricted __be32
      include/image.h:383:1: warning: cast to restricted __be32
      
      fix by annotating image header integers big endian.
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      2f220500
  8. 16 10月, 2012 1 次提交
  9. 23 8月, 2012 1 次提交
  10. 30 4月, 2012 1 次提交
  11. 28 3月, 2012 1 次提交
  12. 14 1月, 2012 1 次提交
  13. 01 12月, 2011 1 次提交
    • S
      image: Implement IH_TYPE_KERNEL_NOLOAD · b9b50e89
      Stephen Warren 提交于
      The legacy uImage format includes an absolute load and entry-point
      address. When bootm operates on a kernel uImage in memory that isn't
      loaded at the address in the image's load address, U-Boot will copy
      the image to its address in the header.
      
      Some kernel images can actually be loaded and used at any arbitrary
      address. An example is an ARM Linux kernel zImage file. To represent
      this capability, IH_TYPE_KERNEL_NOLOAD is implemented, which operates
      just like IH_TYPE_KERNEL, except that the load address header is
      ignored, and U-Boot does not copy the image to its load address, but
      rather uses it in-place.
      
      This is useful when sharing a single (uImage-wrapped) zImage across
      multiple boards with different memory layouts; in this case, a specific
      load address need not be picked when creating the uImage, but instead
      is selected by the board-specific U-Boot environment used to load and
      boot that image.
      
      v2: Rename from IH_TYPE_KERNEL_ANYLOAD to IH_TYPE_KERNEL_NOLOAD.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NStefan Roese <sr@denx.de>
      b9b50e89
  14. 23 11月, 2011 1 次提交
  15. 28 10月, 2011 1 次提交
  16. 24 10月, 2011 1 次提交
    • S
      mkimage: adding support for Davinci AIS image · 4962e38e
      Stefano Babic 提交于
      Some Davinci processors supports the Application
      Image Script (AIS) boot process. The patch adds the generation
      of the AIS image inside the mkimage tool to make possible
      to generate a bootable U-boot without external tools
      (TI Davinci AIS Generator).
      Signed-off-by: NStefano Babic <sbabic@denx.de>
      CC: Wolfgang Denk <wd@denx.de>
      4962e38e
  17. 22 10月, 2011 2 次提交
    • S
      checkpatch whitespace cleanups · 712fbcf3
      Stephen Warren 提交于
      This avoids the following checkpatch warning in later patches:
      
      ERROR: "(foo*)" should be "(foo *)"
      ERROR: space required before the open brace '{'
      ERROR: space prohibited before that close parenthesis ')'
      ERROR: spaces required around that '||' (ctx:WxV)
      WARNING: space prohibited between function name and open parenthesis '('
      WARNING: line over 80 characters
      
      This fixes all the white-space warnings/errors in my subsequent patch,
      and within this current patch. A number of other checkpatch warnings
      and errors are still present in this patch itself, but are beyond simple
      whitespace fixes, so are not solved by this patch.
      
      v2: New patch
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Tested-by: NSimon Glass <sjg@chromium.org>
      Tested-by: NSimon Glass <sjg@chromium.org>
      712fbcf3
    • M
      nds32: common bdinfo, bootm, image support · 64d61461
      Macpaul Lin 提交于
      Add support of NDS32 to common commands bdinfo, bootm, and image format.
      Signed-off-by: NMacpaul Lin <macpaul@andestech.com>
      64d61461
  18. 18 10月, 2011 1 次提交
  19. 06 10月, 2011 1 次提交
  20. 03 8月, 2011 1 次提交
  21. 28 7月, 2011 1 次提交
  22. 26 4月, 2011 3 次提交
  23. 29 11月, 2010 1 次提交
  24. 19 10月, 2010 1 次提交
  25. 28 9月, 2010 1 次提交
  26. 05 7月, 2010 1 次提交
    • W
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk 提交于
      The hush shell dynamically allocates (and re-allocates) memory for the
      argument strings in the "char *argv[]" argument vector passed to
      commands.  Any code that modifies these pointers will cause serious
      corruption of the malloc data structures and crash U-Boot, so make
      sure the compiler can check that no such modifications are being done
      by changing the code into "char * const argv[]".
      
      This modification is the result of debugging a strange crash caused
      after adding a new command, which used the following argument
      processing code which has been working perfectly fine in all Unix
      systems since version 6 - but not so in U-Boot:
      
      int main (int argc, char **argv)
      {
      	while (--argc > 0 && **++argv == '-') {
      /* ====> */	while (*++*argv) {
      			switch (**argv) {
      			case 'd':
      				debug++;
      				break;
      			...
      			default:
      				usage ();
      			}
      		}
      	}
      	...
      }
      
      The line marked "====>" will corrupt the malloc data structures and
      usually cause U-Boot to crash when the next command gets executed by
      the shell.  With the modification, the compiler will prevent this with
      an
      	error: increment of read-only location '*argv'
      
      N.B.: The code above can be trivially rewritten like this:
      
      	while (--argc > 0 && **++argv == '-') {
      		char *arg = *argv;
      		while (*++arg) {
      			switch (*arg) {
      			...
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      54841ab5
  27. 30 6月, 2010 1 次提交
  28. 28 5月, 2010 1 次提交
  29. 26 1月, 2010 1 次提交
  30. 22 1月, 2010 3 次提交
  31. 05 12月, 2009 1 次提交
    • P
      add lzop decompression support · 20dde48b
      Peter Korsgaard 提交于
      Add lzop decompression support to the existing lzo bitstream handling
      (think gzip versus zlib), and support it for uImage decompression if
      CONFIG_LZO is enabled.
      
      Lzop doesn't compress as good as gzip (~10% worse), but decompression
      is very fast (~0.7s faster here on a slow ppc). The lzop decompression
      code is based on Albin Tonnerre's recent ARM Linux lzo support patch.
      
      Cc: albin.tonnerre@free-electrons.com
      Signed-off-by: NPeter Korsgaard <jacmet@sunsite.dk>
      20dde48b
  32. 25 11月, 2009 1 次提交