1. 12 12月, 2012 3 次提交
    • S
      Add hash command to perform hashing using various algorithms · bf36c5d5
      Simon Glass 提交于
      This new command supports hashing SHA1 and SHA256. It could be extended
      to others such as MD5 and the CRC algorithms. The syntax is modeled on
      those:
      
         hash <algorithm> <address> <length> [*<dest_addr> | <dest_envvar>]
      
      to calculate a hash, and:
      
         hash -v <algorithm> <address> <length> [*<verify_addr> | <verify_envvar>]
      
      to verify a hash.
      
      Use CONFIG_CMD_HASH to enable the command, CONFIG_SHA1 to enable SHA1 and
      CONFIG_SHA256 to enable SHA256.
      
      The existing sha1sum command remains.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      bf36c5d5
    • K
      Add a command to read raw blocks from a partition · ff048ea9
      Kenneth Waters 提交于
      Sometimes data is on a block device and within a partition, but not in a
      particular filesystem.
      
      This commands permits reading raw data from a partition.
      Signed-off-by: NKenneth Waters <kwaters@chromium.org>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      ff048ea9
    • A
      Add gettime command · 53fdc7ef
      Anton Staaf 提交于
      Gettime returns the current timer value.  If CONFIG_SYS_HZ is defined
      then the timer value is also converted to seconds.
      
      Tegra20 (SeaBoard) # gettime
      Timer val: 7754
      Seconds : 7
      Remainder : 754
      sys_hz = 1000
      
      There has been some discussion about whether this is useful enough to
      be included in U-Boot. The following boards do not have CONFIG_SYS_HZ
      defined:
      
      M52277EVB
      M52277EVB_stmicro
      M53017EVB
      M54418TWR
      M54418TWR_nand_mii
      M54418TWR_nand_rmii
      M54418TWR_nand_rmii_lowfreq
      M54418TWR_serial_mii
      M54418TWR_serial_rmii
      Signed-off-by: NAnton Staaf <robotboy@chromium.org>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      53fdc7ef
  2. 07 12月, 2012 3 次提交
  3. 01 12月, 2012 1 次提交
  4. 29 11月, 2012 1 次提交
  5. 27 11月, 2012 6 次提交
  6. 13 11月, 2012 1 次提交
    • G
      fdt: Add option to default to most compatible conf in a fit image · d95f6ec7
      Gabe Black 提交于
      When booting a fit image with multiple configurations, the user either has to
      specify which configuration to use explicitly, or there has to be a default
      defined which is chosen automatically. This change adds an option to change
      that behavior so that a configuration can be selected explicitly, or the
      configuration which has the device tree that claims to be compatible with the
      earliest item in U-Boot's device tree.
      
      In other words, if U-Boot claimed to be compatible with A, B, and then C, and
      the configurations claimed to be compatible with A, D and B, D and D, E, the
      first configuration, A, D, would be chosen. Both the first and second
      configurations match, but the first one matches a more specific entry in
      U-Boot's device tree. The order in the kernel's device tree is ignored.
      Signed-off-by: NGabe Black <gabeblack@google.com>
      
      Commit-Ready: Gabe Black <gabeblack@chromium.org>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      d95f6ec7
  7. 07 11月, 2012 1 次提交
  8. 03 11月, 2012 2 次提交
  9. 31 10月, 2012 1 次提交
  10. 30 10月, 2012 1 次提交
    • S
      fs: separate CONFIG_FS_{FAT, EXT4} from CONFIG_CMD_{FAT, EXT*} · 03e2ecf6
      Stephen Warren 提交于
      This makes the FAT and ext4 filesystem implementations build if
      CONFIG_FS_{FAT,EXT4} are defined, rather than basing the build on
      whether CONFIG_CMD_{FAT,EXT*} are defined. This will allow the
      filesystems to be built separately from the filesystem-specific commands
      that use them. This paves the way for the creation of filesystem-generic
      commands that used the filesystems, without requiring the filesystem-
      specific commands.
      
      Minor documentation changes are made for this change.
      
      The new config options are automatically selected by the old config
      options to retain backwards-compatibility.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Reviewed-by: NBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
      03e2ecf6
  11. 29 10月, 2012 1 次提交
  12. 23 10月, 2012 1 次提交
  13. 22 10月, 2012 2 次提交
    • A
      README : Rename CONFIG_DRIVER_SMC91111 to CONFIG_SMC91111,... · 3bb46d23
      Ashok 提交于
      README : Rename CONFIG_DRIVER_SMC91111 to CONFIG_SMC91111, CONFIG_DRIVER_LAN91C96 to CONFIG_LAN91C96
      
      Rename CONFIG_DRIVER_SMC91111 to CONFIG_SMC91111,
      CONFIG_DRIVER_LAN91C96 to CONFIG_LAN91C96
      Signed-off-by: NAshok Kumar Reddy <ashokkourla2000@gmail.com>
      Reviewed-by: NTom Rini <trini@ti.com>
      3bb46d23
    • G
      fs: Add a Coreboot Filesystem (CBFS) driver and commands · 84cd9327
      Gabe Black 提交于
      This change adds CBFS support and some commands to use it to u-boot. These
      commands are:
      
      cbfsinit - Initialize CBFS support and pull all metadata into RAM. The end of
      the ROM is an optional parameter which defaults to the standard 0xffffffff and
      can be used to support multiple CBFSes in a system. The last one set up with
      cbfsinit is the one that will be used.
      
      cbfsinfo - Print information from the CBFS header.
      
      cbfsls - Print out the size, type, and name of all the files in the current
      CBFS. Recognized types are translated into symbolic names.
      
      cbfsload - Load a file from CBFS into memory. Like the similar command for fat
      filesystems, you can optionally provide a maximum size.
      
      Support for CBFS is compiled in when the CONFIG_CMD_CBFS option is specified.
      
      The CBFS driver can also be used programmatically from within u-boot.
      
      If u-boot needs something out of CBFS very early before the heap is
      configured, it won't be able to use the normal CBFS support which caches some
      information in memory it allocates from the heap. The
      cbfs_file_find_uncached function searches a CBFS instance without touching
      the heap.
      Signed-off-by: NGabe Black <gabeblack@google.com>
      Signed-off-by: NStefan Reinauer <reinauer@chromium.org>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      84cd9327
  14. 16 10月, 2012 1 次提交
  15. 04 10月, 2012 3 次提交
  16. 03 10月, 2012 3 次提交
  17. 29 9月, 2012 1 次提交
  18. 28 9月, 2012 3 次提交
  19. 03 9月, 2012 2 次提交
  20. 02 9月, 2012 1 次提交
  21. 01 9月, 2012 1 次提交
  22. 24 8月, 2012 1 次提交
    • S
      powerpc/fsl-corenet: work around erratum A004510 · 33eee330
      Scott Wood 提交于
      Erratum A004510 says that under certain load conditions, modified
      cache lines can be discarded, causing data corruption.
      
      To work around this, several CCSR and DCSR register updates need to be
      made in a careful manner, so that there is no other transaction in
      corenet when the update is made.
      
      The update is made from a locked cacheline, with a delay before to flush
      any previous activity, and a delay after to flush the CCSR/DCSR update.
      We can't use a readback because that would be another corenet
      transaction, which is not allowed.
      
      We lock the subsequent cacheline to prevent it from being fetched while
      we're executing the previous cacheline.  It is filled with nops so that a
      branch doesn't cause us to fetch another cacheline.
      
      Ordinarily we are running in a cache-inhibited mapping at this point, so
      we temporarily change that.  We make it guarded so that we should never
      see a speculative load, and we never do an explicit load.  Thus, only the
      I-cache should ever fill from this mapping, and we flush/unlock it
      afterward.  Thus we should avoid problems from any potential cache
      aliasing between inhibited and non-inhibited mappings.
      
      NOTE that if PAMU is used with this patch, it will need to use a
      dedicated LAW as described in the erratum.  This is the responsibility
      of the OS that sets up PAMU.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Signed-off-by: NAndy Fleming <afleming@freescale.com>
      33eee330