1. 06 7月, 2010 1 次提交
  2. 05 7月, 2010 4 次提交
    • W
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      54841ab5
    • W
      Redundant environment: move flag definitions to header file · b218ccb5
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      b218ccb5
    • W
      Make *printf() return "int" instead of "void" · d9c27253
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      d9c27253
    • W
      shannon/INFERNO: fix special handling of environment configuration · 0e70aaa4
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      Cc: Rolf Offermanns <rof@sysgo.de>
      0e70aaa4
  3. 01 7月, 2010 2 次提交
  4. 30 6月, 2010 5 次提交
  5. 24 6月, 2010 2 次提交
    • W
      Remove AmigaOneG3SE board · 953b7e62
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      953b7e62
    • W
      Get rid of bogus CONFIG_SYS_BUS_HZ and CONFIG_SYS_CONFIG_BUS_CLK definitions · ee80fa7b
      Wolfgang Denk 提交于
      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: NWolfgang 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
  6. 22 6月, 2010 1 次提交
    • P
      DaVinci: EMAC: Get EMAC_MDIO_PHY_NUM from config files · e6441c4f
      Prakash PM 提交于
      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: NPrakash PM <prakash.pm@ti.com>
      Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
      e6441c4f
  7. 20 6月, 2010 1 次提交
    • W
      include/compiler.h: remove redundant declaration of errno · 9312bba0
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      Cc: Mike Frysinger <vapier@gentoo.org>
      9312bba0
  8. 18 6月, 2010 1 次提交
  9. 17 6月, 2010 1 次提交
  10. 15 6月, 2010 1 次提交
  11. 14 6月, 2010 1 次提交
  12. 11 6月, 2010 1 次提交
  13. 08 6月, 2010 12 次提交
  14. 06 6月, 2010 1 次提交
    • A
      add new board pm9g45 · b5d289fc
      Asen Dimov 提交于
      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: NAsen Dimov <dimov@ronetix.at>
      b5d289fc
  15. 04 6月, 2010 1 次提交
  16. 28 5月, 2010 3 次提交
  17. 19 5月, 2010 2 次提交