Skip to content
Snippets Groups Projects
  1. Mar 18, 2012
  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 13, 2010
  4. Apr 04, 2009
  5. 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
  6. Sep 09, 2008
  7. Aug 26, 2008
  8. Aug 11, 2008
  9. Jul 13, 2008
  10. Jul 08, 2008
  11. Apr 18, 2008
  12. Mar 12, 2008
  13. Feb 29, 2008
  14. Feb 27, 2008
  15. 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
  16. Feb 07, 2008
  17. Jul 13, 2007
  18. Mar 31, 2006
  19. Dec 03, 2005
  20. Dec 07, 2003
    • Wolfgang Denk's avatar
      * Patches by David Mller, 14 Nov 2003: · a2663ea4
      Wolfgang Denk authored
        - board/mpl/common/common_util.c
          * implement support for BZIP2 compressed images
          * various cleanups (printf -> puts, ...)
        - board/mpl/common/flash.c
          * report correct errors to upper layers
          * check the erase fail and VPP low bits in status reg
        - board/mpl/vcma9/cmd_vcma9.c
        - board/mpl/vcma9/flash.c
          * various cleanups (printf -> puts, ...)
        - common/cmd_usb.c
          * fix typo in comment
        - cpu/arm920t/usb_ohci.c
          * support for S3C2410 is missing in #if line
        - drivers/cs8900.c
          * reinit some registers in case of error (cable missing, ...)
        - fs/fat/fat.c
          * support for USB/MMC devices is missing in #if line
        - include/configs/MIP405.h
        - include/configs/PIP405.h
          * enable BZIP2 support
          * enlarge malloc space to 1MiB because of BZIP2 support
        - include/configs/VCMA9.h
          * enable BZIP2 support
          * enlarge malloc space to 1MiB because of BZIP2 support
          * enable USB support
        - lib_arm/armlinux.c
          * change calling convention of ARM Linux kernel as
            described on http://www.arm.linux.org.uk/developer/booting.php
      
      * Patch by Thomas Lange, 14 Nov 2003:
        Split dbau1x00 into dbau1000, dbau1100 and dbau1500 configs to
        support all these AMD boards.
      
      * Patch by Thomas Lange, 14 Nov 2003:
        Workaround for mips au1x00 physical memory accesses (the au1x00
        uses a 36 bit bus internally and cannot access physical memory
        directly. Use the uncached SDRAM address instead of the physical
        one.)
      a2663ea4
  21. Oct 09, 2003
    • Wolfgang Denk's avatar
      * Patch by Steven Scholz, 10 Oct 2003 · 5da627a4
      Wolfgang Denk authored
        - Add support for Altera FPGA ACEX1K
      
      * Patches by Thomas Lange, 09 Oct 2003:
        - Endian swap ATA identity for all big endian CPUs, not just PPC
        - MIPS only: New option CONFIG_MEMSIZE_IN_BYTES for passing memsize
          args to linux
        - add support for dbau1x00 board (MIPS32)
      5da627a4
  22. Jun 27, 2003
    • Wolfgang Denk's avatar
      * Code cleanup: · 8bde7f77
      Wolfgang Denk authored
        - remove trailing white space, trailing empty lines, C++ comments, etc.
        - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
      
      * Patches by Kenneth Johansson, 25 Jun 2003:
        - major rework of command structure
          (work done mostly by Michal Cendrowski and Joakim Kristiansen)
      8bde7f77
  23. Mar 27, 2003
Loading