Skip to content
Snippets Groups Projects
  1. Dec 15, 2019
  2. Sep 04, 2019
  3. Jul 18, 2019
  4. Jul 15, 2019
  5. Jul 02, 2018
    • Lothar Felten's avatar
      net: Add new wol command - Wake on LAN · d8970dae
      Lothar Felten authored
      
      Add a new command 'wol': Wait for an incoming Wake-on-LAN packet or
      time out if no WoL packed is received.
      If the WoL packet contains a password, it is saved in the environment
      variable 'wolpassword' using the etherwake format (dot or colon
      separated decimals).
      
      Intended use case: a networked device should boot an alternate image.
      It's attached to a network on a client site, modifying the DHCP server
      configuration or setup of a tftp server is not allowed.
      After power on the device waits a few seconds for a WoL packet. If a
      packet is received, the device boots the alternate image. Otherwise
      it boots the default image.
      
      This method is a simple way to interact with a system via network even
      if only the MAC address is known. Tools to send WoL packets are
      available on all common platforms.
      
      Some Ethernet drivers seem to pad the incoming packet. The additional
      padding bytes might be recognized as Wake-on-LAN password bytes.
      
      By default enabled in pengwyn_defconfig.
      
      Signed-off-by: default avatarLothar Felten <lothar.felten@gmail.com>
      Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      d8970dae
  6. May 30, 2018
  7. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  8. Apr 13, 2018
  9. May 12, 2017
    • Tom Rini's avatar
      net: Disable the format-extra-args warning · 94443878
      Tom Rini authored
      
      We will see warnings such as:
      net/eth_common.c:57:61: warning: data argument not used by format string [-Wformat-extra-args]
              sprintf(enetvar, index ? "%s%daddr" : "%saddr", base_name, index);
                                                    ~~~~~~~~             ^
      With clang.  In this case we do not want to re-write our code to be less
      compact as the above is intentional and readable.  Add a comment above
      the disabling so that it's clear why we want that warning off.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      94443878
  10. Jan 28, 2016
  11. Jan 24, 2015
  12. Feb 19, 2014
    • Masahiro Yamada's avatar
      kbuild: use Linux Kernel build scripts · 6825a95b
      Masahiro Yamada authored
      
      Now we are ready to switch over to real Kbuild.
      
      This commit disables temporary scripts:
        scripts/{Makefile.build.tmp, Makefile.host.tmp}
      and enables real Kbuild scripts:
        scripts/{Makefile.build,Makefile.host,Makefile.lib}.
      
      This switch is triggered by the line in scripts/Kbuild.include
        -build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
        +build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
      
      We need to adjust some build scripts for U-Boot.
      But smaller amount of modification is preferable.
      
      Additionally, we need to fix compiler flags which are
      locally added or removed.
      
      In Kbuild, it is not allowed to change CFLAGS locally.
      Instead, ccflags-y, asflags-y, cppflags-y,
      CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
      are prepared for that purpose.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: default avatarGerhard Sittig <gsi@denx.de>
      6825a95b
  13. Oct 31, 2013
  14. Jul 24, 2013
  15. Jul 07, 2012
  16. May 23, 2012
  17. 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
  18. Oct 12, 2010
  19. Dec 14, 2009
  20. Aug 08, 2009
    • Robin Getz's avatar
      minor debug cleanups in ./net · 0ebf04c6
      Robin Getz authored
      
       Minor ./net cleanups - no functional changes
        - change #ifdef DEBUG printf(); #endif to just debug()
        - changed __FUNCTION__ to __func__
        - got rid of extra whitespace between function and opening brace
        - removed unnecessary braces on if statements
      
       gcc dead code elimination should make this functionally/size equivalent
       when DEBUG is not defined. (confirmed on Blackfin, with gcc 4.3.3).
      
      Signed-off-by: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
      
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      0ebf04c6
  21. Jul 23, 2009
    • Robin Getz's avatar
      Add DNS support · 1a32bf41
      Robin Getz authored
      On 04 Oct 2008 Pieter posted a dns implementation for U-Boot.
      
      http://www.mail-archive.com/u-boot-users@lists.sourceforge.net/msg10216.html
      
      
      >
      > DNS can be enabled by setting CFG_CMD_DNS. After performing a query,
      > the serverip environment var is updated.
      >
      > Probably there are some cosmetic issues with the patch. Unfortunatly I
      > do not have the time to correct these. So if anybody else likes DNS
      > support in U-Boot and has the time, feel free to patch it in the main tree.
      
      Here it is again - slightly modified & smaller:
        - update to 2009-06 (Pieter's patch was for U-Boot 1.2.0)
        - README.dns is added
        - syntax is changed (now takes a third option, the env var to store
          the result in)
        - add a random port() function in net.c
        - sort Makefile in ./net/Makefile
        - dns just returns unless a env var is given
        - run through checkpatch, and clean up style issues
        - remove packet from stack
        - cleaned up some comments
        - failure returns much faster (if server responds, don't wait for
          timeout)
        - use built in functions (memcpy) rather than byte copy.
      
      Signed-off-by: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
      Signed-off-by: default avatarPieter Voorthuijsen <pieter.voorthuijsen@prodrive.nl>
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      1a32bf41
  22. Feb 10, 2009
  23. Nov 15, 2007
  24. Oct 08, 2006
  25. Sep 01, 2006
    • Marian Balakowicz's avatar
      Add support for a saving build objects in a separate directory. · f9328639
      Marian Balakowicz authored
      Modifications are based on the linux kernel approach and
      support two use cases:
      
        1) Add O= to the make command line
        'make O=/tmp/build all'
      
        2) Set environement variable BUILD_DIR to point to the desired location
        'export BUILD_DIR=/tmp/build'
        'make'
      
      The second approach can also be used with a MAKEALL script
      'export BUILD_DIR=/tmp/build'
      './MAKEALL'
      
      Command line 'O=' setting overrides BUILD_DIR environent variable.
      
      When none of the above methods is used the local build is performed and
      the object files are placed in the source directory.
      f9328639
  26. Apr 01, 2005
    • Wolfgang Denk's avatar
      * Patch by Masami Komiya, 30 Mar 2005: · ea287deb
      Wolfgang Denk authored
        add SNTP support and expand time server and time offset fields of
        DHCP support. See doc/README.SNTP
      
      * Patch by Steven Scholz, 13 Dec 2004:
        Fix bug in at91rm920 ethernet driver
      ea287deb
  27. Feb 24, 2004
  28. Jun 05, 2003
    • Wolfgang Denk's avatar
      * Add support for RMU board · 73a8b27c
      Wolfgang Denk authored
      * Add support for TQM862L at 100/50 MHz
      
      * Patch by Pantelis Antoniou, 02 Jun 2003:
        major reconstruction of networking code;
        add "ping" support (outgoing only!)
      73a8b27c
  29. Feb 24, 2002
  30. Jul 05, 2001
  31. Apr 28, 2001
  32. Dec 14, 2000
  33. Jul 10, 2000
Loading