1. 13 Jul, 2010 1 commit
  2. 12 Jul, 2010 3 commits
  3. 04 Jul, 2010 4 commits
    • 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
    • Wolfgang Denk's avatar
      Redundant environment: move flag definitions to header file · b218ccb5
      Wolfgang Denk authored
      
      
      Instead of defining the flags sevaral times in different source files
      (which is error prone), move them to a central place in a header file.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      b218ccb5
    • Wolfgang Denk's avatar
      Make *printf() return "int" instead of "void" · d9c27253
      Wolfgang Denk authored
      
      
      Change the return type of the *printf() functions to the standard
      "int"; no changes are needed but returning the already available
      length count.
      
      This will save a few additional strlen() calls later...
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      d9c27253
    • Wolfgang Denk's avatar
      shannon/INFERNO: fix special handling of environment configuration · 0e70aaa4
      Wolfgang Denk authored
      
      
      Remove some INFERNO related #ifdef's from common environment code by
      fixing the board configuration settings (add CONFIG_ENV_SECT_SIZE).
      
      While we are at it, fix comment which incorrectly talks about 4 KB
      environment size, while it's actually 0x4000 = 16 KiB.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Rolf Offermanns <rof@sysgo.de>
      0e70aaa4
  4. 01 Jul, 2010 2 commits
  5. 29 Jun, 2010 5 commits
  6. 23 Jun, 2010 2 commits
    • Wolfgang Denk's avatar
      Remove AmigaOneG3SE board · 953b7e62
      Wolfgang Denk authored
      
      
      The AmigaOneG3SE board has been orphaned or a very long time, and
      broken for more than 12 releases resp. more than 3 years.  As nobody
      seems to be interested any more in this stuff we may as well ged rid
      of it, especially as it clutters many areas of the code so it is a
      continuous pain for all kinds of ongoing work.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      953b7e62
    • Wolfgang Denk's avatar
      Get rid of bogus CONFIG_SYS_BUS_HZ and CONFIG_SYS_CONFIG_BUS_CLK definitions · ee80fa7b
      Wolfgang Denk authored
      
      
      CONFIG_SYS_BUS_HZ has not really been used anywhere except to be
      redined as CONFIG_SYS_BUS_CLK; in addition, the mpc7448hpc2 had the
      bogus CONFIG_SYS_CONFIG_BUS_CLK setting which duplicated the
      funtionality.  Change all this to use CONFIG_SYS_BUS_CLK consistently.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Frank Gottschling <fgottschling@eltec.de>
      Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
      Cc: Eran Man <eran@nbase.co.il>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Nye Liu <nyet@zumanetworks.com>
      Cc: Roy Zang <tie-fei.zang@freescale.com>
      ee80fa7b
  7. 22 Jun, 2010 1 commit
    • Prakash PM's avatar
      DaVinci: EMAC: Get EMAC_MDIO_PHY_NUM from config files · e6441c4f
      Prakash PM authored
      
      
      Currently EMAC_MDIO_PHY_NUM is defined as 1 in emac_defs.h.
      Because of this, EMAC does not work on EVMs which do not have phy
      connected at 1. Moving the macro to board config file makes this
      configurable depending on where the phy is connected on the MDIO bus.
      
      This patch fixes the board reset issue observed during network access
      on DM365EVM. EMAC driver was assuming EMAC_MDIO_PHY_NUM as 1
      but it is 0 on DM365EVM.
      
      This patch is verified on da830/omap-l137, dm365 and dm644x evms.
      Signed-off-by: default avatarPrakash PM <prakash.pm@ti.com>
      Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
      e6441c4f
  8. 20 Jun, 2010 1 commit
    • Wolfgang Denk's avatar
      include/compiler.h: remove redundant declaration of errno · 9312bba0
      Wolfgang Denk authored
      Commit 37566090
      
       "compiler.h: unify system ifdef cruft here" added both
      a "#include <errno.h>" and a "extern int errno;" to include/compiler.h
      which is causing build warnings for some systems, for example for the
      "netstar" board:
      
      	In file included from /home/wd/git/u-boot/work/lib/crc32.c:15:
      	include/compiler.h:28: warning: function declaration isn't a prototype
      
      The declaration of "errno" should be redundant, as <errno.h> is
      supposed to provide a correct declaration, so drop it.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Mike Frysinger <vapier@gentoo.org>
      9312bba0
  9. 17 Jun, 2010 2 commits
  10. 14 Jun, 2010 2 commits
  11. 10 Jun, 2010 1 commit
  12. 08 Jun, 2010 6 commits
  13. 07 Jun, 2010 6 commits
  14. 06 Jun, 2010 1 commit
    • Asen Dimov's avatar
      add new board pm9g45 · b5d289fc
      Asen Dimov authored
      
      
      Add the new board PM9G45 from Ronetix GmbH.
      * AT91SAM9G45 MCU at 400Mhz.
      * 128MB DDR2 SDRAM
      * 256MB NAND
      * 10/100 MBits Ethernet DP83848
      * Serial number chip DS2401
      
      The board is made as SODIMM200 module.
      For more info www.ronatix.at or info@ronetix.at.
      Signed-off-by: default avatarAsen Dimov <dimov@ronetix.at>
      b5d289fc
  15. 04 Jun, 2010 1 commit
  16. 28 May, 2010 2 commits