Skip to content
Snippets Groups Projects
  1. May 12, 2014
  2. Apr 02, 2014
    • Przemyslaw Marczak's avatar
      lib: uuid: code refactor for proper maintain between uuid bin and string · d718ded0
      Przemyslaw Marczak authored
      
      Changes in lib/uuid.c to:
      - uuid_str_to_bin()
      - uuid_bin_to_str()
      
      New parameter is added to specify input/output string format in listed functions
      This change allows easy recognize which UUID type is or should be stored in given
      string array. Binary data of UUID and GUID is always stored in big endian, only
      string representations are different as follows.
      
      String byte: 0                                  36
      String char: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
      string UUID:    be     be   be   be       be
      string GUID:    le     le   le   be       be
      
      This patch also updates functions calls and declarations in a whole code.
      
      Signed-off-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Cc: Stephen Warren <swarren@nvidia.com>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: trini@ti.com
      d718ded0
  3. Feb 19, 2014
    • Masahiro Yamada's avatar
      kbuild: use Linux Kernel build scripts · 6825a95b
      Masahiro Yamada authored and Tom Rini's avatar Tom Rini committed
      
      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
  4. Feb 07, 2014
    • Alexey Brodkin's avatar
      net: execute "miiphy_init" if CONFIG_PHYLIB defined · 27ee59af
      Alexey Brodkin authored
      
      In "common/Makefile" "miiphyutil.o" gets built if any of the following
      items enabled:
       * CONFIG_PHYLIB
       * CONFIG_MII
       * CONFIG_CMD_MII
      
      So it's possible to not define CONFIG_MII or CONFIG_CMD_MII and still
      use functions like "miiphy_get_dev_by_name".
      
      In its turn "miiphy_get_dev_by_name" traverses "mii_devs" list which is
      not initialized because "miiphy_init" never got called.
      
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Wolfgang Denk <wd@denx.de>
      Acked-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      27ee59af
  5. Nov 22, 2013
  6. Oct 31, 2013
  7. Aug 26, 2013
  8. Jul 24, 2013
  9. Jun 25, 2013
  10. Jun 19, 2013
    • Jim Lin's avatar
      NET: Fix system hanging if NET device is not installed · 7315cfd9
      Jim Lin authored
      
      If we try to boot from NET device, NetInitLoop in net.c will be invoked.
      If NET device is not installed, eth_get_dev() function will return
      eth_current value, which is NULL.
      When NetInitLoop is called, "eth_get_dev->enetaddr" will access
      restricted memory area and therefore cause hanging.
      This issue is found on Tegra30 Cardhu platform after adding
      CONFIG_CMD_NET and CONFIG_CMD_DHCP in config header file.
      
      Signed-off-by: default avatarJim Lin <jilin@nvidia.com>
      Tested-by: Stephen Warren's avatarStephen Warren <swarren@nvidia.com>
      7315cfd9
  11. Mar 01, 2013
  12. Dec 15, 2012
  13. Dec 13, 2012
  14. Nov 04, 2012
    • Kim Phillips's avatar
      net/: sparse fixes · 06370590
      Kim Phillips authored
      
      bootp.c:44:14: warning: symbol 'dhcp_state' was not declared. Should it be static?
      bootp.c:45:15: warning: symbol 'dhcp_leasetime' was not declared. Should it be static?
      bootp.c:46:10: warning: symbol 'NetDHCPServerIP' was not declared. Should it be static?
      arp.c:30:17: warning: symbol 'NetArpWaitReplyIP' was not declared. Should it be static?
      arp.c:37:16: warning: symbol 'NetArpTxPacket' was not declared. Should it be static?
      arp.c:38:17: warning: symbol 'NetArpPacketBuf' was not declared. Should it be static?
      atheros.c:33:19: warning: symbol 'AR8021_driver' was not declared. Should it be static?
      net.c:183:7: warning: symbol 'PktBuf' was not declared. Should it be static?
      net.c:159:21: warning: symbol 'net_state' was not declared. Should it be static?
      ping.c:73:6: warning: symbol 'ping_start' was not declared. Should it be static?
      ping.c:82:13: warning: symbol 'ping_receive' was not declared. Should it be static?
      tftp.c:53:7: warning: symbol 'TftpRRQTimeoutMSecs' was not declared. Should it be static?
      tftp.c:54:5: warning: symbol 'TftpRRQTimeoutCountMax' was not declared. Should it be static?
      eth.c:125:19: warning: symbol 'eth_current' was not declared. Should it be static?
      
      Note: in the ping.c fix, commit a36b12f9
      "net: Move PING out of net.c" mistakenly carried the ifdef CMD_PING
      clause from when it was necessary to avoid warnings when it was embedded
      in net.c.
      
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      06370590
  15. Oct 03, 2012
  16. Oct 01, 2012
  17. Sep 27, 2012
  18. Sep 24, 2012
    • Joe Hershberger's avatar
      net: Filter incoming netconsole packets by IP · 8a0eccb1
      Joe Hershberger authored
      
      Check the incoming packets' source IP address... if ncip isn't set to a
      broadcast address, only listen to the client at ncip.
      
      Signed-off-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      8a0eccb1
    • Joe Hershberger's avatar
      net: Improve the speed of netconsole · f8be7d65
      Joe Hershberger authored
      
      Previously u-boot would initialize the network interface for every
      network operation and then shut it down again.  This makes sense for
      most operations where the network in not known to be needed soon after
      the operation is complete.  In the case of netconsole, it will use the
      network for every interaction with the shell or every printf.  This
      means that the network is being reinitialized very often.  On many
      devices, this intialization is very slow.
      
      This patch checks for consecutive netconsole actions and leaves the
      ethernet hardware initialized between them.  It will still behave the
      same old way for all other network operations and any time another
      network operation happens between netconsole operations.
      
      Signed-off-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Acked-by: default avatarStefano Babic <sbabic@denx.de>
      f8be7d65
    • Tetsuyuki Kobayashi's avatar
      net: bugfix: NetSetTimeout assumes CONFIG_SYS_HZ=1000 · 1389f98f
      Tetsuyuki Kobayashi authored and Joe Hershberger's avatar Joe Hershberger committed
      
      NetSetTimeout sets incorrect value to timeDelta when CONFIG_SYS_HZ != 1000.
      
      Signed-off-by: default avatarTetsuyuki Kobayashi <koba@kmckk.co.jp>
      1389f98f
    • Michael Walle's avatar
      api: net: fix length check in eth_receive() · 46c07bcf
      Michael Walle authored and Joe Hershberger's avatar Joe Hershberger committed
      
      If the requested length is too small to hold the received packet,
      eth_receive() will return -1 and will leave the packet in the receive
      buffers. Instead of returning an error in this case, we return the first
      portion of the received packet and remove it from the receive buffers.
      
      This fixes FreeBSD's ubldr. Without this patch it will just stop receiving
      packets if the NIC receives more than PKTBUFSRX too large packets.
      
      Signed-off-by: default avatarMichael Walle <michael@walle.cc>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Rafal Jaworowski <raj@semihalf.com>
      Cc: Piotr Kruszynski <ppk@semihalf.com>
      46c07bcf
  19. Jul 24, 2012
  20. Jul 19, 2012
  21. Jul 12, 2012
  22. Jul 11, 2012
  23. Jul 10, 2012
  24. Jul 08, 2012
    • Kim Phillips's avatar
      net: make net_rand.h inclusion depend on BOOTP_RANDOM_DELAY · db7720ba
      Kim Phillips authored and Wolfgang Denk's avatar Wolfgang Denk committed
      
      commit "net: use common rand()/srand() functions" introduced the following
      build warning on the current u-boot-arm tree:
      
      $ ./MAKEALL MPC8313ERDB_66
      Configuring for MPC8313ERDB_66 - Board: MPC8313ERDB, Options: SYS_66MHZ
         text	   data	    bss	    dec	    hex	filename
       271988	  13976	  41768	 327732	  50034	./u-boot
      In file included from bootp.c:15:0:
      net_rand.h: In function 'srand_mac':
      net_rand.h:40:2: warning: implicit declaration of function 'srand' [-Wimplicit-function-declaration]
      
      adding this dependency fixes it.
      
      Cc: Michael Walle <michael@walle.cc>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Acked-by: default avatarMichael Walle <michael@walle.cc>
      db7720ba
  25. Jul 07, 2012
Loading