Skip to content
Snippets Groups Projects
  1. 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
  2. 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
  3. Apr 16, 2010
  4. Apr 13, 2010
  5. Apr 04, 2009
  6. 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
  7. Sep 10, 2008
  8. Aug 26, 2008
  9. Aug 11, 2008
  10. Apr 18, 2008
  11. Mar 12, 2008
  12. Feb 29, 2008
  13. Feb 27, 2008
  14. 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
  15. Feb 07, 2008
  16. Jul 13, 2007
  17. Mar 11, 2007
    • Michal Simek's avatar
      [Microblaze][PATCH] part 2 · cfc67116
      Michal Simek authored
      timer support
      interrupt controller support
      flash support
      ethernet support
      cache support
      board information support
      env support
      booting image support
      
      adding support for Xilinx ML401
      cfc67116
  18. Apr 18, 2004
  19. Oct 08, 2003
    • Wolfgang Denk's avatar
      * Patch by Scott McNutt, 04 Oct 2003: · 4a551709
      Wolfgang Denk authored
        - add support for Altera Nios-32 CPU
        - add support for Nios Cyclone Development Kit (DK-1C20)
      
      * Patch by Steven Scholz, 29 Sep 2003:
        - A second parameter for bootm overwrites the load address for
          "Standalone Application" images.
        - bootm sets environment variable "filesize" to the resulting
          (uncompressed) data length for "Standalone Application" images
          when autostart is set to "no". Now you can do something like
             if bootm $fpgadata $some_free_ram ; then
                     fpga load 0 $some_free_ram $filesize
             fi
      
      * Patch by Denis Peter, 25 Sept 2003:
        add support for the MIP405 Rev. C board
      4a551709
  20. Aug 27, 2002
  21. Nov 12, 2000
Loading