Skip to content
Snippets Groups Projects
  1. Oct 24, 2019
  2. Oct 08, 2019
  3. Aug 11, 2019
  4. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  5. Apr 27, 2018
  6. Feb 18, 2018
    • Alexey Brodkin's avatar
      fdt: Implement weak arch_fixup_fdt() · 4280342a
      Alexey Brodkin authored
      
      Only ARM and in some configs MIPS really implement arch_fixup_fdt().
      Others just use the same boilerplate which is not good by itself,
      but what's worse if we try to build with disabled CONFIG_CMD_BOOTM
      and enabled CONFIG_OF_LIBFDT we'll hit an unknown symbol which was
      apparently implemented in arch/xxx/lib/bootm.c.
      
      Now with weak arch_fixup_fdt() right in image-fdt.c where it is
      used we get both items highlighted above fixed.
      
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: York Sun <york.sun@nxp.com>
      Cc: Stefan Roese <sr@denx.de>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      4280342a
  7. Feb 14, 2018
  8. Aug 16, 2017
  9. Dec 03, 2016
  10. Mar 14, 2016
    • Simon Glass's avatar
      Kconfig: Move CONFIG_FIT and related options to Kconfig · 73223f0e
      Simon Glass authored
      
      There are already two FIT options in Kconfig but the CONFIG options are
      still in the header files. We need to do a proper move to fix this.
      
      Move these options to Kconfig and tidy up board configuration:
      
         CONFIG_FIT
         CONFIG_OF_BOARD_SETUP
         CONFIG_OF_SYSTEM_SETUP
         CONFIG_FIT_SIGNATURE
         CONFIG_FIT_BEST_MATCH
         CONFIG_FIT_VERBOSE
         CONFIG_OF_STDOUT_VIA_ALIAS
         CONFIG_RSA
      
      Unfortunately the first one is a little complicated. We need to make sure
      this option is not enabled in SPL by this change. Also this option is
      enabled automatically in the host builds by defining CONFIG_FIT in the
      image.h file. To solve this, add a new IMAGE_USE_FIT #define which can
      be used in files that are built on the host but must also build for U-Boot
      and SPL.
      
      Note: Masahiro's moveconfig.py script is amazing.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      [trini: Add microblaze change, various configs/ re-applies]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      73223f0e
  11. Jun 19, 2014
  12. Oct 14, 2013
  13. Jul 24, 2013
  14. Jul 02, 2013
  15. Jun 26, 2013
    • Simon Glass's avatar
      Clarify bootm OS arguments · 983c72f4
      Simon Glass authored
      
      At present the arguments to bootm are processed in a somewhat confusing
      way. Sub-functions must know how many arguments their calling functions
      have processed, and the OS boot function must also have this information.
      Also it isn't obvious that 'bootm' and 'bootm start' provide arguments in
      the same way.
      
      Adjust the code so that arguments are removed from the list before calling
      a sub-function. This means that all functions can know that argv[0] is the
      first argument of which they need to take notice.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      983c72f4
  16. May 09, 2013
  17. Nov 07, 2012
  18. Mar 18, 2012
  19. Oct 18, 2010
    • John Rigby's avatar
      FDT: only call boot_get_fdt from generic code · 5a75e121
      John Rigby authored
      
      All arches except nios2 and microblaze call boot_get_fdt
      from bootm_start in common/cmd_bootm.c.
      
      Having nios2 and microblaze do so as well removes code from
      their respective do_bootm_linux routines and allows removal of
      a nasty ifdef from bootm_start.
      
      In the case where boot_get_fdt returns an error bootm_start
      returns and the platform specific do_bootm_linux routines
      will never get called.
      
      Also only check argv[3] for an fdt addr if argc > 3 first.
      This is already the case for nios2.
      
      Signed-off-by: default avatarJohn Rigby <john.rigby@linaro.org>
      CC: Scott McNutt <smcnutt@psyent.com>
      CC: Michal Simek <monstr@monstr.eu>
      CC: Thomas Chou <thomas@wytron.com.tw>
      Acked-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarMichal Simek <monstr@monstr.eu>
      Tested-by: default avatarThomas Chou <thomas@wytron.com.tw>
      5a75e121
  20. Jul 04, 2010
    • Wolfgang Denk's avatar
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk authored
      
      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: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      54841ab5
  21. Apr 16, 2010
  22. Apr 13, 2010
  23. Apr 04, 2009
  24. Oct 28, 2008
    • Kumar Gala's avatar
      bootm: Add subcommands · 49c3a861
      Kumar Gala authored
      
      Add the ability to break the steps of the bootm command into several
      subcommands: start, loados, ramdisk, fdt, bdt, cmdline, prep, go.
      
      This allows us to do things like manipulate device trees before
      they are passed to a booting kernel or setup memory for a secondary
      core in multicore situations.
      
      Not all OS types support all subcommands (currently only start, loados,
      ramdisk, fdt, and go are supported).
      
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      49c3a861
  25. Sep 10, 2008
  26. Aug 26, 2008
  27. Aug 11, 2008
  28. Apr 18, 2008
  29. Mar 12, 2008
  30. Feb 29, 2008
  31. Feb 27, 2008
  32. Feb 25, 2008
    • Marian Balakowicz's avatar
      [new uImage] Add dual format uImage support framework · d5934ad7
      Marian Balakowicz authored
      
      This patch adds framework for dual format images. Format detection is added
      and the bootm controll flow is updated to include cases for new FIT format
      uImages.
      
      When the legacy (image_header based) format is detected appropriate
      legacy specific handling is invoked. For the new (FIT based) format uImages
      dual boot framework has a minial support, that will only print out a
      corresponding debug messages. Implementation of the FIT specific handling will
      be added in following patches.
      
      Signed-off-by: default avatarMarian Balakowicz <m8@semihalf.com>
      d5934ad7
  33. Feb 07, 2008
Loading