1. 04 Sep, 2019 1 commit
  2. 11 Aug, 2019 2 commits
  3. 18 Jul, 2019 1 commit
    • Heinrich Schuchardt's avatar
      net: unaligned copying of unsigned long · bbfc5627
      Heinrich Schuchardt authored and Joe Hershberger's avatar Joe Hershberger committed
      
      
      The inline functions net_read_u32() and net_copy_u32() have been created to
      copy unaligned u32. But this is not obvious to the compiler. GCC 9.1
      introduces a check -Werror=address-of-packed-member which leads to a build
      error on Travis CI:
      
      net/bootp.c: In function ‘dhcp_send_request_packet’:
      net/bootp.c:1011:27: error: taking address of packed member of
      ‘struct bootp_hdr’ may result in an unaligned pointer value
      [-Werror=address-of-packed-member]
       1011 |  net_copy_u32(&bp->bp_id, &bp_offer->bp_id);
      
      Change the type of the function parameters to void * to avoid the build
      error.
      Reported-by: Ramon Fried's avatarRamon Fried <rfried.dev@gmail.com>
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Acked-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      bbfc5627
  4. 12 Apr, 2019 1 commit
  5. 24 Jan, 2019 2 commits
  6. 10 Oct, 2018 4 commits
  7. 08 Aug, 2018 1 commit
  8. 26 Jul, 2018 2 commits
  9. 02 Jul, 2018 2 commits
    • Alexander Graf's avatar
      net: Prefer command line arguments · 449312c1
      Alexander Graf authored and Joe Hershberger's avatar Joe Hershberger committed
      
      
      We can call commands like dhcp and bootp without arguments or with
      explicit command line arguments that really should tell the code where
      to look for files instead.
      
      Unfortunately, the current code simply overwrites command line arguments
      in the dhcp case with dhcp values.
      
      This patch allows the code to preserve the command line values if they
      were set on the command line. That way the semantics are slightly more
      intuitive.
      
      The reason this patch does that by introducing a new variable is that we
      can not rely on net_boot_file_name[0] being unset, as today it's
      completely legal to call "dhcp" and afterwards run "tftp" and expect the
      latter to repeat the same query as before. I would prefer not to break
      that behavior in case anyone relies on it.
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      Acked-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      449312c1
    • Lothar Felten's avatar
      net: Add new wol command - Wake on LAN · d8970dae
      Lothar Felten authored and Joe Hershberger's avatar Joe Hershberger committed
      
      
      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: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      d8970dae
  10. 30 May, 2018 1 commit
  11. 11 May, 2018 1 commit
  12. 09 Apr, 2018 1 commit
    • Alex Kiernan's avatar
      net: Move enetaddr env access code to env config instead of net config · 9925f1db
      Alex Kiernan authored and Tom Rini's avatar Tom Rini committed
      In order that we can use eth_env_* even when CONFIG_NET isn't set, move
      these functions to environment code from net code.
      
      This fixes failures such as:
      
        board/ti/am335x/built-in.o: In function `board_late_init':
        board/ti/am335x/board.c:752: undefined reference to `eth_env_set_enetaddr'
        u-boot/board/ti/am335x/board.c:766: undefined reference to `eth_env_set_enetaddr'
      
      which caters for use cases such as:
      
      commit f411b5cc
      
       ("board: am335x: Always set eth/eth1addr environment
      variable")
      
      when Ethernet is required in Linux, but not U-Boot.
      Signed-off-by: default avatarAlex Kiernan <alex.kiernan@gmail.com>
      9925f1db
  13. 06 Apr, 2018 1 commit
  14. 16 Aug, 2017 3 commits
  15. 07 Aug, 2017 1 commit
  16. 12 Jun, 2017 1 commit
    • Heiko Schocher's avatar
      powerpc, 8xx: remove support for 8xx · 5b8e76c3
      Heiko Schocher authored and Tom Rini's avatar Tom Rini committed
      
      
      There was for long time no activity in the 8xx area.
      We need to go further and convert to Kconfig, but it
      turned out, nobody is interested anymore in 8xx,
      so remove it (with a heavy heart, knowing that I remove
      here the root of U-Boot).
      Signed-off-by: Heiko Schocher's avatarHeiko Schocher <hs@denx.de>
      5b8e76c3
  17. 07 Feb, 2017 3 commits
  18. 09 Jan, 2017 1 commit
  19. 16 Jul, 2016 1 commit
    • Robert P. J. Day's avatar
      Various, unrelated tree-wide typo fixes. · 62a3b7dd
      Robert P. J. Day authored and Tom Rini's avatar Tom Rini committed
      
      
          Fix a number of typos, including:
      
           * "compatble" -> "compatible"
           * "eanbeld" -> "enabled"
           * "envrionment" -> "environment"
           * "FTD" -> "FDT" (for "flattened device tree")
           * "ommitted" -> "omitted"
           * "overriden" -> "overridden"
           * "partiton" -> "partition"
           * "propogate" -> "propagate"
           * "resourse" -> "resource"
           * "rest in piece" -> "rest in peace"
           * "suport" -> "support"
           * "varible" -> "variable"
      Signed-off-by: default avatarRobert P. J. Day <rpjday@crashcourse.ca>
      62a3b7dd
  20. 27 May, 2016 1 commit
    • Alexander Graf's avatar
      efi_loader: Add network access support · 0efe1bcf
      Alexander Graf authored and Tom Rini's avatar Tom Rini committed
      
      
      We can now successfully boot EFI applications from disk, but users
      may want to also run them from a PXE setup.
      
      This patch implements rudimentary network support, allowing a payload
      to send and receive network packets.
      
      With this patch, I was able to successfully run grub2 with network
      access inside of QEMU's -M xlnx-ep108.
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      0efe1bcf
  21. 03 May, 2016 1 commit
  22. 04 Apr, 2016 1 commit
  23. 27 Mar, 2016 1 commit
  24. 28 Jan, 2016 1 commit
  25. 22 Dec, 2015 1 commit
  26. 29 Oct, 2015 1 commit
  27. 28 Oct, 2015 1 commit
  28. 30 Sep, 2015 1 commit
  29. 07 Sep, 2015 1 commit