03 Jun, 2020

1 commit

  • DSA stands for Distributed Switch Architecture and it covers switches that
    are connected to the CPU through an Ethernet link and generally use frame
    tags to pass information about the source/destination ports to/from CPU.
    Front panel ports are presented as regular ethernet devices in U-Boot and
    they are expected to support the typical networking commands.
    DSA switches may be cascaded, DSA class code does not currently support
    this.

    Signed-off-by: Alex Marginean
    Signed-off-by: Vladimir Oltean
    Signed-off-by: Claudiu Manoil

    Alex Marginean
     

15 Dec, 2019

1 commit

  • These functions are used by code outside the network support, so move them
    to lib/ to be more accessible.

    Without this, the functions are only accessible in SPL/TPL only if
    CONFIG_SPL/TPL_NET are defined. Many boards do not enable those option but
    still want to do checksums in this format.

    Fix up a few code-style nits while we are here.

    Signed-off-by: Simon Glass
    Acked-by: Joe Hershberger
    Reviewed-by: Bin Meng

    Simon Glass
     

05 Sep, 2019

1 commit

  • Add support for capturing ethernet packets and storing
    them in memory in PCAP(2.4) format, later to be analyzed by
    any PCAP viewer software (IE. Wireshark)

    This feature greatly assist debugging network issues such
    as detecting dropped packets, packet corruption etc.

    Signed-off-by: Ramon Fried
    Reviewed-by: Alex Marginean
    Tested-by: Alex Marginean
    Acked-by: Joe Hershberger

    Ramon Fried
     

19 Jul, 2019

1 commit

  • Adds a class for MDIO MUXes, which control access to a series of
    downstream child MDIOs.
    MDIO MUX drivers are required to implement a select function used to switch
    between child buses.
    MUX children are registered as MDIO buses and they can be used just like
    regular MDIOs.

    Signed-off-by: Alex Marginean
    Reviewed-by: Bin Meng
    Acked-by: Joe Hershberger

    Alex Marginean
     

16 Jul, 2019

1 commit

  • Adds UCLASS_MDIO DM class supporting MDIO buses that are probed as
    stand-alone devices. Useful in particular for systems that support
    DM_ETH and have a stand-alone MDIO hardware block shared by multiple
    Ethernet interfaces.

    Signed-off-by: Alex Marginean
    Reviewed-by: Bin Meng
    Acked-by: Joe Hershberger

    Alex Marginean
     

03 Jul, 2018

1 commit

  • 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: Lothar Felten
    Acked-by: Joe Hershberger

    Lothar Felten
     

30 May, 2018

1 commit

  • Merge UDP fastboot support from AOSP:

    https://android.googlesource.com/platform/external/u-boot/+/android-o-mr1-iot-preview-8

    Signed-off-by: Alex Kiernan
    Signed-off-by: Alex Deymo
    Signed-off-by: Jocelyn Bohr
    Reviewed-by: Simon Glass

    Alex Kiernan
     

07 May, 2018

1 commit

  • 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: Tom Rini

    Tom Rini
     

14 Apr, 2018

2 commits


12 May, 2017

1 commit

  • 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: Tom Rini

    Tom Rini
     

29 Jan, 2016

3 commits


24 Jan, 2015

1 commit


20 Feb, 2014

1 commit

  • 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: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     

01 Nov, 2013

1 commit


24 Jul, 2013

1 commit


07 Jul, 2012

1 commit


24 May, 2012

5 commits


18 Nov, 2010

1 commit

  • 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: Sebastien Carlier

    Sebastien Carlier
     

12 Oct, 2010

1 commit


14 Dec, 2009

1 commit


08 Aug, 2009

1 commit

  • 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: Robin Getz

    Signed-off-by: Ben Warren

    Robin Getz
     

23 Jul, 2009

1 commit

  • 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: Robin Getz
    Signed-off-by: Pieter Voorthuijsen
    Signed-off-by: Ben Warren

    Robin Getz
     

10 Feb, 2009

1 commit


16 Nov, 2007

1 commit

  • This change is in preparation for condtitionial compile support in the
    build system. By spliting them all into seperate lines now, subsequent
    patches that change 'COBJS-y += ' into 'COBJS-$(CONFIG_) += ' will
    be less invasive and easier to review

    Signed-off-by: Grant Likely

    Grant Likely
     

09 Oct, 2006

1 commit


02 Sep, 2006

1 commit

  • 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.

    Marian Balakowicz
     

01 Apr, 2005

1 commit


24 Feb, 2004

1 commit


06 Jun, 2003

1 commit


25 Feb, 2002

1 commit