Skip to content
Snippets Groups Projects
  1. Oct 24, 2016
  2. Jul 22, 2016
    • Michal Simek's avatar
      api: Disable api_net when DM is used · 21181578
      Michal Simek authored
      
      When CONFIG_API is selected with DM_ETH this
      error is present:
      api/api_net.c: In function 'dev_enum_net':
      api/api_net.c:61:35: warning: initialization from incompatible pointer
      type
        struct eth_device *eth_current = eth_get_dev();
                                         ^
      api/api_net.c:68:39: error: dereferencing pointer to incomplete type
        memcpy(di->di_net.hwaddr, eth_current->enetaddr, 6);
                                             ^
      Disable api_net functions when ETH_DM is selected.
      
      Signed-off-by: default avatarChris Johns <chrisj@rtems.org>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      21181578
  3. May 20, 2016
  4. May 17, 2016
  5. Mar 14, 2016
  6. Mar 08, 2016
  7. Feb 08, 2016
  8. Jan 14, 2016
  9. Sep 15, 2015
    • Andreas Färber's avatar
      api_storage: Fix non-first storage device enumeration · ce2a07b7
      Andreas Färber authored
      
      When enabling CONFIG_API and chain-loading GRUB2 on jetson-tk1, only the
      eMMC would show up as (hd0), but not the SD card, leading to GRUB not
      finding its configuration and modules, falling back to a rescue shell.
      
      This is because enum_ended would get set for !more after returning a
      cookie for the first MMC device in group 3.
      
      Fix this by properly setting the "more" argument also in the case of the
      first storage device of a group.
      
      Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
      ce2a07b7
  10. Apr 18, 2015
  11. Aug 21, 2014
  12. Mar 07, 2014
    • Masahiro Yamada's avatar
      powerpc: mpc8260: consolidate CONFIG_MPC8260 and CONFIG_8260 · 58dac327
      Masahiro Yamada authored
      
      Before this commit, CONFIG_MPC8260 and CONFIG_8260
      were used mixed-up.
      
      All boards with mpc8260 cpu defined both of them:
        - CONFIG_MPC8260 was defined in board config headers
            and include/common.h
        - CONFIG_8260 was defined arch/powerpc/cpu/mpc8260/config.mk
      
      We do not need to have both of them.
      This commit keeps only CONFIG_MPC8260.
      
      This commit does:
       - Delete CONFIG_8260 and CONFIG_MPC8260 definition
         in config headers and include/common.h
       - Rename CONFIG_8260 to CONFIG_MPC8260
          in arch/powerpc/cpu/mpc8260/config.mk.
       - Rename #ifdef CONFIG_8260 to #ifdef CONFIG_MPC8260
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Wolfgang Denk <wd@denx.de>
      58dac327
  13. Nov 25, 2013
  14. Nov 01, 2013
  15. Jul 24, 2013
  16. May 15, 2013
  17. Mar 21, 2013
  18. Nov 15, 2011
  19. 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
  20. Nov 28, 2010
  21. 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
  22. 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
  23. Apr 21, 2010
  24. Jul 22, 2009
  25. Jun 12, 2009
  26. May 15, 2009
  27. Oct 18, 2008
  28. Oct 14, 2008
  29. Sep 10, 2008
  30. Aug 06, 2008
  31. Jul 29, 2008
  32. May 14, 2008
  33. May 11, 2008
  34. Apr 17, 2008
  35. Feb 14, 2008
Loading