Skip to content
Snippets Groups Projects
  1. Oct 24, 2011
  2. Oct 23, 2011
  3. Oct 05, 2011
    • Mike Frysinger's avatar
      net: drop !NET_MULTI code · e2a53458
      Mike Frysinger authored
      
      This is long over due.  All but two net drivers have been converted, but
      those have now been dropped.
      
      The only thing left to do is actually delete all references to NET_MULTI
      and code that is compiled when that is not defined.  So here we scrub the
      core code.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      e2a53458
  4. Sep 05, 2011
  5. Aug 04, 2011
    • Heiko Schocher's avatar
      hwmon: do not init sensors on startup · 780f13a9
      Heiko Schocher authored
      
      The U-Boot Design Principles[1] clearly say:
      
        Initialize devices only when they are needed within U-Boot, i.e. don't
        initialize the Ethernet interface(s) unless U-Boot performs a download
        over Ethernet; don't initialize any IDE or USB devices unless U-Boot
        actually tries to load files from these, etc. (and don't forget to
        shut down these devices after using them - otherwise nasty things may
        happen when you try to boot your OS).
      
      So, do not initialize and read the sensors on startup.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      cc: Wolfgang Denk <wd@denx.de>
      cc: Holger Brunck <holger.brunck@keymile.com>
      780f13a9
  6. Jul 29, 2011
  7. Jul 26, 2011
  8. Apr 29, 2011
  9. Apr 27, 2011
  10. Apr 26, 2011
  11. Apr 04, 2011
  12. Mar 27, 2011
  13. Jan 18, 2011
  14. Dec 17, 2010
  15. Nov 30, 2010
    • Kumar Gala's avatar
      powerpc/85xx: Introduce CONFIG_SYS_EXTRA_ENV_RELOC · a55bb834
      Kumar Gala authored
      
      Some systems need to relocate the env_addr pointer early because the
      location it points to will get invalidated before env_relocate is
      called.  One example is on systems that might use a L2 or L3 cache
      in SRAM mode and initialize that cache from SRAM mode back to being
      a cache in cpu_init_r.
      
      We set this on the 85xx boards that have support for NAND, SPI, or
      SDHC/MMC boot support as they use a secondary cache in SRAM mode and
      need the env_addr pointer relocated since we change from SRAM to normal
      cache mode in cpu_init_r.
      
      Also removed CONFIG_SYS_SPL as its not used anywhere.
      
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      a55bb834
  16. Nov 28, 2010
  17. Nov 26, 2010
    • Wolfgang Denk's avatar
      WINBOND_83C553: enable only on boards that actually use it. · 57d6c589
      Wolfgang Denk authored
      
      So far, only the BAB7xx board would call the initialise_w83c553f()
      function for the WINBOND 83C553 chip, even though some other boards
      (HIDDEN_DRAGON, Sandpoint8240, Sandpoint8245) enabled it in their
      board configuration.  These boards were also missing other config
      settings needed for that, which resulted in build errors like this:
      
      drivers/pci/libpci.o:(.got2+0x84): undefined reference to `ide_bus_offset'
      
      Switch arch/powerpc/lib/board.c to call initialise_w83c553f() not on a
      per-board base, but when a WINBOND_83C553 in enabled in a
      configuration (like BAB7xx), and disable it in the boards that had
      this set so far.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Yusdi Santoso <yusdi_santoso@adaptec.com>
      Cc: Jim Thompson <jim@musenki.com>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      57d6c589
  18. Nov 17, 2010
    • Sebastien Carlier's avatar
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier authored
      
      Before this commit, weak symbols were not overridden by non-weak symbols
      found in archive libraries when linking with recent versions of
      binutils.  As stated in the System V ABI, "the link editor does not
      extract archive members to resolve undefined weak symbols".
      
      This commit changes all Makefiles to use partial linking (ld -r) instead
      of creating library archives, which forces all symbols to participate in
      linking, allowing non-weak symbols to override weak symbols as intended.
      This approach is also used by Linux, from which the gmake function
      cmd_link_o_target (defined in config.mk and used in all Makefiles) is
      inspired.
      
      The name of each former library archive is preserved except for
      extensions which change from ".a" to ".o".  This commit updates
      references accordingly where needed, in particular in some linker
      scripts.
      
      This commit reveals board configurations that exclude some features but
      include source files that depend these disabled features in the build,
      resulting in undefined symbols.  Known such cases include:
      - disabling CMD_NET but not CMD_NFS;
      - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.
      
      Signed-off-by: default avatarSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  19. Oct 20, 2010
  20. Oct 18, 2010
    • Peter Tyser's avatar
      powerpc: Cleanup BOOTFLAG_* references · d98b0523
      Peter Tyser authored
      
      Now that warm booting is not supported, there isn't a need for the
      BOOTFLAG_COLD and BOOTFLAG_WARM defines, so remove them.
      
      Note that this change makes the board info bd_bootflags field useless.
      It will always be set to 0, but we leave it around so that we don't
      break the board info structure that some OSes are expecting to be passed
      from U-Boot.
      
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      d98b0523
    • Wolfgang Denk's avatar
      Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE · 14d0a02a
      Wolfgang Denk authored
      
      The change is currently needed to be able to remove the board
      configuration scripting from the top level Makefile and replace it by
      a simple, table driven script.
      
      Moving this configuration setting into the "CONFIG_*" name space is
      also desirable because it is needed if we ever should move forward to
      a Kconfig driven configuration system.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      14d0a02a
  21. Oct 13, 2010
  22. Oct 12, 2010
  23. Oct 06, 2010
  24. Sep 23, 2010
  25. Sep 19, 2010
    • Heiko Schocher's avatar
      common: move TOTAL_MALLOC_LEN to include/common.h · 3fbeeea6
      Heiko Schocher authored
      
      Portions of this work were supported by funding from
      the CE Linux Forum.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      3fbeeea6
    • Wolfgang Denk's avatar
      Cleanup use of CONFIG_SYS_SRAM_BASE and CONFIG_SYS_SRAM_SIZE · 36116650
      Wolfgang Denk authored
      
      Traditionally many boards used local definitions for SRAM base address
      and size (like SRAM_BASE, SRAM_LEN and/or SRAM_SIZE), while the (now)
      "official" names are CONFIG_SYS_SRAM_BASE and CONFIG_SYS_SRAM_SIZE.
      
      The corresponding code in arch/powerpc/lib/board.c was board specific,
      and has never actually been maintained well. Replace this by feature-
      specific code and adapt the boards that actually use this.
      
      NOTE: there is still a ton of boards using the old #defines, which
      therefor contain incorrect values in bi_sramstart and bi_sramsize.
      
      All respective board maintainers are requested to clean up their
      respective configurations.  Thanks.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Josef Wagner <Wagner@Microsys.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      36116650
    • Terry Lv's avatar
      Save environment data to mmc. · a8060359
      Terry Lv authored
      
      This patch is to save environment data to mmc card.
      It uses interfaces defined in generic mmc.
      
      Signed-off-by: default avatarTerry Lv <r65388@freescale.com>
      Acked-by: default avatarStefano Babic <sbabic@denx.de>
      a8060359
  26. Aug 08, 2010
    • Stephan Linz's avatar
      fdt relocate: have more attention to use a bootmap or not · 958e1206
      Stephan Linz authored
      
      Platforms with flat device tree support can use a bootmap to relocate
      the fdt_blob. This is not a must. That's why the relocation function
      boot_relocate_fdt() should be use only if CONFIG_OF_LIBFDT was defined
      together with CONFIG_SYS_BOOTMAPSZ (see common/cmd_bootm.c).
      
      On MicroBlaze platforms there is no need to use a bootmap to relocate
      a fdt blob. So we need a more precise focus on the compilation and usage
      of boot_relocate_fdt().
      
      In general it is valid to exclude the function boot_relocate_fdt() if
      the bootmap size CONFIG_SYS_BOOTMAPSZ is not defined.
      
      Signed-off-by: default avatarStephan Linz <linz@li-pro.net>
      958e1206
  27. Aug 03, 2010
    • Wolfgang Denk's avatar
      Rename getenv_r() into getenv_f() · cdb74977
      Wolfgang Denk authored
      
      While running from flash, i. e. before relocation, we have only a
      limited C runtime environment without writable data segment. In this
      phase, some configurations (for example with environment in EEPROM)
      must not use the normal getenv(), but a special function.  This
      function had been called getenv_r(), with the idea that the "_r"
      suffix would mean the same as in the _r_eentrant versions of some of
      the C library functions (for example getdate vs. getdate_r, getgrent
      vs. getgrent_r, etc.).
      
      Unfortunately this was a misleading name, as in U-Boot the "_r"
      generally means "running from RAM", i. e. _after_ relocation.
      
      To avoid confusion, rename into getenv_f() [as "running from flash"]
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      cdb74977
  28. 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
Loading