Skip to content
Snippets Groups Projects
  1. Jul 04, 2011
    • Aneesh V's avatar
      armv7: rename cache related CONFIG flags · e47f2db5
      Aneesh V authored
      
      Replace the cache related CONFIG flags with more meaningful
      names. Following are the changes:
      
      CONFIG_L2_OFF	     -> CONFIG_SYS_L2CACHE_OFF
      CONFIG_SYS_NO_ICACHE -> CONFIG_SYS_ICACHE_OFF
      CONFIG_SYS_NO_DCACHE -> CONFIG_SYS_DCACHE_OFF
      
      Signed-off-by: default avatarAneesh V <aneesh@ti.com>
      V2:
       * Changed CONFIG_L2_OFF -> CONFIG_SYS_NO_L2CACHE
      V4:
       * Changed all three flags to the final names suggested as above
         and accordingly changed the commit message
      e47f2db5
  2. Jul 01, 2011
  3. Jun 22, 2011
  4. Jun 01, 2011
  5. May 24, 2011
  6. May 19, 2011
  7. May 18, 2011
  8. May 12, 2011
  9. May 10, 2011
  10. Apr 30, 2011
  11. Apr 29, 2011
  12. Apr 28, 2011
  13. Apr 27, 2011
    • Kim Phillips's avatar
      common: add a grepenv command · a000b795
      Kim Phillips authored
      
      u-boot environments, esp. when boards are shared across multiple
      users, can get pretty large and time consuming to visually parse.
      The grepenv command this patch adds can be used in lieu of printenv
      to facilitate searching.  grepenv works like printenv but limits
      its output only to environment strings (variable name and value
      pairs) that match the user specified substring.
      
      the following examples are on a board with a 5313 byte environment
      that spans multiple screen pages:
      
      Example 1:  summarize ethernet configuration:
      
      => grepenv eth TSEC
      etact=FM1@DTSEC2
      eth=FM1@DTSEC4
      ethact=FM1@DTSEC2
      eth1addr=00:E0:0C:00:8b:01
      eth2addr=00:E0:0C:00:8b:02
      eth3addr=00:E0:0C:00:8b:03
      eth4addr=00:E0:0C:00:8b:04
      eth5addr=00:E0:0C:00:8b:05
      eth6addr=00:E0:0C:00:8b:06
      eth7addr=00:E0:0C:00:8b:07
      eth8addr=00:E0:0C:00:8b:08
      eth9addr=00:E0:0C:00:8b:09
      ethaddr=00:E0:0C:00:8b:00
      netdev=eth0
      uprcw=setenv ethact $eth;setenv filename p4080ds/R_PPSXX_0xe/rcw_0xe_2sgmii_rev2_high.bin;setenv start 0xe8000000;protect off all;run upimage;protect on all
      upuboot=setenv ethact $eth;setenv filename u-boot.bin;setenv start eff80000;protect off all;run upimage;protect on all
      upucode=setenv ethact $eth;setenv filename fsl_fman_ucode_P4080_101_6.bin;setenv start 0xef000000;protect off all;run upimage;protect on all
      usdboot=setenv ethact $eth;tftp 1000000 $dir/$bootfile;tftp 2000000 $dir/initramfs.cpio.gz.uboot;tftp c00000 $dir/p4080ds-usdpaa.dtb;setenv bootargs root=/dev/ram rw console=ttyS0,115200 $othbootargs;bootm 1000000 2000000 c00000;
      =>
      
      Example 2: detect unused env vars:
      
      => grepenv etact
      etact=FM1@DTSEC2
      =>
      
      Example 3: reveal hardcoded variables; e.g., for fdtaddr:
      
      => grepenv fdtaddr
      fdtaddr=c00000
      nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr
      ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr
      => grep $fdtaddr
      fdtaddr=c00000
      my_boot=bootm 0x40000000 0x41000000 0x00c00000
      my_dtb=tftp 0x00c00000 $prefix/p4080ds.dtb
      nohvboot=tftp 1000000 $dir/$bootfile;tftp 2000000 $dir/$ramdiskfile;tftp c00000 $dir/$fdtfile;setenv bootargs root=/dev/ram rw ramdisk_size=0x10000000 console=ttyS0,115200;bootm 1000000 2000000 c00000;
      =>
      
      This patch also enables the grepenv command by default on
      corenet_ds based boards (and repositions the DHCP command
      entry to keep the list sorted).
      
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Cc: Kumar Gala <kumar.gala@freescale.com>
      Cc: Andy Fleming <afleming@freescale.com>
      a000b795
    • thomas.langer@lantiq.com's avatar
      fix redundant environment for serial flash · 2dc55d9e
      thomas.langer@lantiq.com authored
      
      This patch fixes problems in the handling of redundant environment in env_sf.c
      
      The major problem are double calls of free() on the allocated buffers,
      which damages the internal data of malloc and crashes on next call.
      
      In addition, the selection of the active environment had errors and compiler
      warnings, which are corrected by this patch.
      
      Signed-off-by: default avatarThomas Langer <thomas.langer@lantiq.com>
      2dc55d9e
    • Jason Kridner's avatar
      Add 'led' command · b633f66f
      Jason Kridner authored
      This patch allows any board implementing the coloured LED API
      to control the LEDs from the console.
      
      led [green | yellow | red | all ]  [ on | off ]
      
      or
      
      led [ 1 | 2 | 3 | all ]  [ on | off ]
      
      Adds configuration item CONFIG_CMD_LED enabling the command.
      
      Partially based on patch from Ulf Samuelsson:
      http://www.mail-archive.com/u-boot@lists.denx.de/msg09593.html.
      
      Updated based on feedback:
      http://www.mail-archive.com/u-boot@lists.denx.de/msg41847.html
      https://groups.google.com/d/topic/beagleboard/8Wf1HiK_QBo/discussion
      
      
      * Fixed a handful of style issues.
      * Significantly reduced the number of #ifdefs and redundant code
      * Converted redundant code into loops test against a structure
      * Made use of cmd_usage()
      * Introduced a str_onoff() function, but haven't yet put it in common
      * Eliminated trailing newline
      
      Signed-off-by: default avatarJason Kridner <jkridner@beagleboard.org>
      Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
      b633f66f
  14. Apr 26, 2011
  15. Apr 25, 2011
  16. Apr 20, 2011
    • Andy Fleming's avatar
      Add mdio command for new PHY infrastructure · 995daa0b
      Andy Fleming authored
      
      The new mdio command doesn't have all of the features of the mii
      command, but it provides the necessary read/write primitives, and allows
      users to interact with 10G PHYs, and other PHYs which use Clause 45 of
      802.3.  This means that the mdio command requires a "Device Address"
      argument, though for clause 22 PHYs, the argument can be "-".
      
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      995daa0b
    • Andy Fleming's avatar
      Create PHY Lib for U-Boot · 5f184715
      Andy Fleming authored
      Extends the mii_dev structure to participate in a full-blown MDIO and
      PHY driver scheme.  The mii_dev structure and miiphy calls are modified
      in such a way to allow the original mii command and miiphy
      infrastructure to work as before, but also to support a new set of APIs
      which allow (among other things) sharing of PHY driver code and 10G support
      
      The mii command will continue to support normal PHY management functions
      (Clause 22 of 802.3), but will not be changed to support 10G
      (Clause 45).
      
      The basic design is similar to PHY Lib from Linux, but simplified for
      U-Boot's network and driver infrastructure.
      
      We now have MDIO drivers and PHY drivers
      
      An MDIO driver provides:
      read
      write
      reset
      
      A PHY driver provides:
      (optionally): probe
      config - initial setup, starting of auto-negotiation
      startup - waiting for AN, and reading link state
      shutdown - any cleanup needed
      
      The ethernet drivers interact with the PHY Lib using these functions:
      phy_connect()
      phy_config()
      phy_startup()
      phy_shutdown()
      
      Each PHY driver can be configured separately, or all at once using
      config_phylib_all_drivers.h (added in the patch which adds the drivers)
      
      We also provide generic drivers for Clause 22 (10/100/1000), and
      Clause 45 (10G) PHYs.
      
      We also implement phy_reset(), and call it in phy_connect(). Because
      phy_reset() is essentially the same as miiphy_reset, but:
      a) must support 10G PHYs, and
      b) should use the phylib primitives,
      
      we implement miiphy_reset, using phy_reset(), but only when
      CONFIG_PHYLIB is set. Otherwise, we just use the old version. In this
      way, we save on compile size, even if we don't manage to save code size.
      
      Pulled ethtool.h and mdio.h from:
      git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
      
      
      782d640afd15af7a1faf01cfe566ca4ac511319d
      With many, many deletions so as to enable compilation under u-boot
      
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      5f184715
    • Andy Fleming's avatar
      miiphy: Fix some formatting issues · 16a53238
      Andy Fleming authored
      
      Mostly putting a space between function name and "(", and
      doing return (foo)
      
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      16a53238
  17. Apr 18, 2011
  18. Apr 13, 2011
Loading