Skip to content
Snippets Groups Projects
  1. Oct 17, 2011
  2. Oct 05, 2011
  3. Aug 03, 2011
  4. Jul 28, 2011
  5. Apr 26, 2011
  6. Nov 28, 2010
  7. Oct 18, 2010
  8. Sep 28, 2010
  9. 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
  10. Jun 29, 2010
  11. May 28, 2010
  12. Jan 25, 2010
  13. Jan 21, 2010
  14. Dec 05, 2009
    • Peter Korsgaard's avatar
      add lzop decompression support · 20dde48b
      Peter Korsgaard authored
      
      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: default avatarPeter Korsgaard <jacmet@sunsite.dk>
      20dde48b
  15. Nov 24, 2009
  16. Oct 03, 2009
  17. Sep 10, 2009
  18. Jul 19, 2009
    • Mike Frysinger's avatar
      compiler.h: unify system ifdef cruft here · 37566090
      Mike Frysinger authored
      
      Shove a lot of the HOSTCC and related #ifdef checking crap into the new
      compiler.h header so that we can keep all other headers nice and clean.
      
      Also introduce custom uswap functions so we don't have to rely on the non
      standard implementations that a host may (or may not in the case of OS X)
      provide.  This allows mkimage to finally build cleanly on an OS X system.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      37566090
  19. Apr 03, 2009
    • Peter Tyser's avatar
      Add support for building native win32 tools · 2f8d396b
      Peter Tyser authored
      
      Add support for compiling the host tools in the tools directory using
      the MinGW toolchain.  This produces executables which can be used on
      standard Windows computers without requiring cygwin.
      
      One must specify the MinGW compiler and strip utilities as if they
      were the host toolchain in order to build win32 executables, eg:
      
      make HOSTCC=i586-mingw32msvc-gcc HOSTSTRIP=i586-mingw32msvc-strip tools
      
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      2f8d396b
  20. Feb 17, 2009
  21. Dec 13, 2008
  22. 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
  23. Oct 21, 2008
    • Wolfgang Denk's avatar
      FDT: don't use private kernel header files · def0819e
      Wolfgang Denk authored
      
      On some systems (for example Fedora Core 4) U-Boot builds with the
      following wanrings only:
      
      ...
      In file included from /home/wd/git/u-boot/include/libfdt_env.h:33,
                       from fdt.c:51:
      		 /usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header; include <endian.h> instead!
      
      This patch fixes this problem.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      def0819e
  24. Sep 12, 2008
  25. Sep 09, 2008
  26. Aug 26, 2008
Loading