21 Dec, 2011

1 commit

  • Instead of counting the device index everytime a functions needs it, store
    it in the eth_device struct. eth_register() keeps track of the indices and
    updates the device's index number. This simplifies some functions in
    net/eth.c.

    Additionally, a network driver can now query its index, eg. to get the
    correct environment ethaddr name.

    Signed-off-by: Michael Walle
    Cc: Prafulla Wadaskar
    Cc: Mike Frysinger
    Cc: Wolfgang Denk
    Acked-by: Mike Frysinger

    Michael Walle
     

07 Dec, 2011

1 commit

  • When building u-boot as 64 bit application (e.g. sandbox) ulong might be
    64 bits in size. This breaks network code as IPaddr_t is 64 bytes in
    size then and an IPv4 address is 32 bits in size. This patch makes sure
    that IPaddr_t is always 32 bits in size. Also some warnings introduced
    by this patch are fixed.

    Signed-off-by: Matthias Weisser
    Acked-by: Mike Frysinger

    Matthias Weisser
     

23 Nov, 2011

1 commit


08 Nov, 2011

1 commit


28 Oct, 2011

5 commits


27 Oct, 2011

7 commits


24 Oct, 2011

1 commit

  • net/dns.c used endian conversion macros wrongly (shorts in reply
    were put swapped into CPU, and then ntohs() was used to swap it
    back, which broke on big-endian).

    Fix this by using the correct linux conversion macro for reading
    a unaligned short in network byte order: get_unaligned_be16()
    Thanks to Mike Frysinger pointing at the best macro to use.

    Tested on big and little endian qemu boards (mips and versatile)

    Signed-off-by: Bernhard Kaindl
    Cc: Pieter Voorthuijsen
    Cc: Robin Getz
    Acked-by: Mike Frysinger

    Bernhard Kaindl
     

18 Oct, 2011

1 commit

  • These options are required to be present in RFC 4578 compliant DHCP
    requests. They give more information to DHCP servers to allow serving

    different DHCP responses to different systems based on client
    architecture, client capabilities, UUID, or vendor.

    Signed-off-by: Jason Hobbs

    Jason Hobbs
     

06 Oct, 2011

2 commits


02 Oct, 2011

1 commit


22 Sep, 2011

1 commit

  • The new sanity check introduces a printf warning for some systems:
    eth.c:233: warning: format '%zu' expects type 'size_t', but argument 3 has type 'int'

    Rather than tweak the format string, use the new assert() helper instead.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

20 Sep, 2011

1 commit

  • Commit 093498669 (Put common autoload code into auto_load() function)
    broke handling of autoload environment variable not being set.
    The bootp/dhcp code will just keep on requesting IP address forever
    and never start TFTP download.

    Fix it by moving TftpStart() outside the conditional like it was before.

    Signed-off-by: Peter Korsgaard
    Tested-by: Fabio Estevam
    Acked-by: Simon Glass

    Peter Korsgaard
     

10 Sep, 2011

1 commit


05 Sep, 2011

2 commits

  • This fixes "Warning: failed to set MAC address" on platforms which rely on
    an 'ethaddr' environment variable to set the MAC address.

    This bug was introduced by this commit:

    7616e785 Add Ethernet hardware MAC address framework to usbnet

    Signed-off-by: Simon Glass
    Tested-by: Kumar Gala
    Tested-by: Michal Simek
    Tested-by: Heiko Schocher

    Simon Glass
     
  • If name is longer than allocated space NAMESIZE
    mac address is rewritten which show error
    message like:

    Error message:
    Warning: Xlltemac.87000000 MAC addresses don't match:
    Address in SROM is 30:00:00:00:00:00
    Address in environment is 00:0a:35:00:6a:04

    NAMESIZE contains Driver name + zero terminated character.

    Signed-off-by: Michal Simek

    Michal Simek
     

09 Aug, 2011

2 commits


03 Aug, 2011

1 commit


28 Jul, 2011

1 commit


02 Jun, 2011

1 commit

  • At least on ARM the ipaddr is only set in board_init_r function. The
    problem is if ipaddr is not defined in environment importing another
    environment defined don't update the ipaddr value.

    For example, suppose we've a default environment without net variables
    defined and we want to import an uEnv.txt environment from SD-card like
    this:

    ipaddr=192.168.2.240
    netmask=255.255.255.0
    gatewayip=192.168.2.1
    serverip=192.168.2.114

    Then if you try boot from NFS results in:

    Importing environment from mmc ...
    Running uenvcmd ...
    smc911x: detected LAN9221 controller
    smc911x: phy initialized
    smc911x: MAC ac:de:48:00:00:00
    *** ERROR: `ipaddr' not set

    The ipaddr at this point is NULL beacause is only set at board_init_r
    function. This patch updates the ipaddr value if the environment has
    changed.

    Signed-off-by: Enric Balletbo i Serra
    Acked-by: Mike Frysinger

    Enric Balletbo i Serra
     

20 May, 2011

9 commits