Skip to content
Snippets Groups Projects
  1. Mar 04, 2013
  2. Mar 01, 2013
  3. Feb 04, 2013
  4. Jan 31, 2013
  5. Dec 07, 2012
  6. Dec 06, 2012
  7. Nov 14, 2012
  8. Nov 04, 2012
    • Kim Phillips's avatar
      include/linux/byteorder: import latest endian definitions from linux · eef1cf2d
      Kim Phillips authored
      
      u-boot's byteorder headers did not contain endianness attributions
      for use with sparse, causing a lot of false positives.  Import the
      kernel's latest definitions, and enable them by including compiler.h
      and types.h.  They come with 'const' added for some swab functions, so
      fix those up, too:
      
      include/linux/byteorder/big_endian.h:46:2: warning: passing argument 1 of '__swab64p' discards 'const' qualifier from pointer target type [enabled by default]
      
      Also, note: u-boot's historic __BYTE_ORDER definition has been
      preserved (for the time being at least).
      
      We also remove ad-hoc barrier() definitions, since we're including
      compiler.h in files that hadn't in the past:
      
      macb.c:54:0: warning: "barrier" redefined [enabled by default]
      
      In addition, including compiler.h in byteorder changes the 'noinline'
      definition to expand to __attribute__((noinline)).  This fixes
      arch/powerpc/lib/bootm.c:
      
      bootm.c:329:16: error: attribute '__attribute__': unknown attribute
      bootm.c:329:16: error: expected ')' before '__attribute__'
      bootm.c:329:25: error: expected identifier or '(' before ')' token
      
      powerpc sparse builds yield:
      
      include/common.h:356:22: error: marked inline, but without a definition
      
      the unknown-reason inlining without a definition is considered obsolete
      given it was part of the 2002 initial commit, and no arm version was
      'fixed.'
      
      also fixed:
      ydirectenv.h:60:0: warning: "inline" redefined [enabled by default]
      
      and:
      
      Configuring for devconcenter - Board: intip, Options: DEVCONCENTER
      make[1]: *** [4xx_ibm_ddr2_autocalib.o] Error 1
      make: *** [arch/powerpc/cpu/ppc4xx/libppc4xx.o] Error 2
      powerpc-fsl-linux-size: './u-boot': No such file
      4xx_ibm_ddr2_autocalib.c: In function 'DQS_autocalibration':
      include/asm/ppc4xx-sdram.h:1407:13: sorry, unimplemented: inlining failed in call to 'ppc4xx_ibm_ddr2_register_dump': function body not available
      4xx_ibm_ddr2_autocalib.c:1243:32: sorry, unimplemented: called from here
      
      and:
      
      In file included from crc32.c:50:0:
      crc32table.h:4:1: warning: implicit declaration of function '___constant_swab32' [-Wimplicit-function-declaration]
      crc32table.h:4:1: error: initializer element is not constant
      crc32table.h:4:1: error: (near initialization for 'crc32table_le[0]')
      
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      [trini: Remove '#endif' in include/common.h around setenv portion]
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      eef1cf2d
    • Stephen Warren's avatar
      fs: rename fsload command to load · f9b55e22
      Stephen Warren authored
      
      When the generic filesystem load command "fsload" was written, I felt
      that "load" was too generic of a name for it, since many other similar
      commands already existed. However, it turns out that there is already
      an "fsload" command, so that name cannot be used. Rename the new
      "fsload" to plain "load" to avoid the conflict. At least anyone who's
      used a Basic interpreter should feel familiar with the name!
      
      Signed-off-by: Stephen Warren's avatarStephen Warren <swarren@nvidia.com>
      f9b55e22
    • Stephen Warren's avatar
      fs: fix number base behaviour change in fatload/ext*load · 3f83c87e
      Stephen Warren authored
      
      Commit 045fa1e1 "fs: add filesystem switch libary, implement ls and
      fsload commands" unified the implementation of fatload and ext*load
      with the new command fsload. However, this altered the interpretation
      of command-line numbers from always being base-16, to requiring a "0x"
      prefix for base-16 numbers. Enhance do_fsload() to allow commands to
      specify which base to use.
      
      Use base 0, thus requiring a "0x" prefix for the new fsload command.
      This feels much cleaner than assuming base 16.
      
      Use base 16 for the pre-existing fatload and ext*load to prevent a
      change in behaviour.
      
      Use base 16 exclusively for the loadaddr environment variable, since
      that variable is interpreted in multiple places, so we don't want the
      behaviour to change.
      
      Update command help text to make it clear where numbers are assumed to
      be hex, and where an explicit "0x" prefix is required.
      
      Signed-off-by: Stephen Warren's avatarStephen Warren <swarren@nvidia.com>
      Reviewed-by: default avatarBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
      3f83c87e
    • Stephen Warren's avatar
      fs: fix do_fsload() handling of optional arguments · e9b0f99e
      Stephen Warren authored
      
      Most arguments to the shell command do_fsload() implements are optional.
      Fix the minimum argc check to respect that. Cater for the situation
      where argv[2] is not provided.
      
      Enhance both do_fsload() and do_ls() to check the maximum number of
      arguments too. While this check would typically be implemented via
      U_BOOT_CMD()'s max_args parameter, if these functions are called
      directly, then that check won't exist.
      
      Finally, alter do_ls() to check (argc >= 4) rather than (argc == 4) so
      that if the function is enhanced to allow extra arguments in the future,
      this test won't need to be changed at that time.
      
      Signed-off-by: Stephen Warren's avatarStephen Warren <swarren@nvidia.com>
      Reviewed-by: default avatarBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
      e9b0f99e
  9. Nov 02, 2012
  10. Oct 29, 2012
  11. Oct 25, 2012
  12. Oct 22, 2012
    • Gabe Black's avatar
      fs: Add a Coreboot Filesystem (CBFS) driver and commands · 84cd9327
      Gabe Black authored
      
      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: default avatarGabe Black <gabeblack@google.com>
      Signed-off-by: default avatarStefan Reinauer <reinauer@chromium.org>
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      84cd9327
  13. Oct 17, 2012
    • Marek Vasut's avatar
      fs: fat: Fix mkcksum() function parameters · ff04f6d1
      Marek Vasut authored
      
      The mkcksum() function now takes one parameter, the pointer to
      11-byte wide character array, which it then operates on.
      
      Currently, the function is wrongly passed (dir_entry)->name, which
      is only 8-byte wide character array. Though by further inspecting
      the dir_entry structure, it can be noticed that the name[8] entry
      is immediatelly followed by ext[3] entry. Thus, name[8] and ext[3]
      in the dir_entry structure actually work as this 11-byte wide array
      since they're placed right next to each other by current compiler
      behavior.
      
      Depending on this is obviously wrong, thus fix this by correctly
      passing both (dir_entry)->name and (dir_entry)->ext to the mkcksum()
      function and adjust the function appropriately.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Tom Rini <trini@ti.com>
      ff04f6d1
  14. Oct 15, 2012
    • Albert ARIBAUD's avatar
      ARM: prevent misaligned array inits · b823fd9b
      Albert ARIBAUD authored
      
      Under option -munaligned-access, gcc can perform local char
      or 16-bit array initializations using misaligned native
      accesses which will throw a data abort exception. Fix files
      where these array initializations were unneeded, and for
      files known to contain such initializations, enforce gcc
      option -mno-unaligned-access.
      
      Signed-off-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      [trini: Switch to usign call cc-option for -mno-unaligned-access as
      Albert had done previously as that's really correct]
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      b823fd9b
  15. Oct 08, 2012
    • Anatolij Gustschin's avatar
      yaffs2: Fix GCC 4.6 compile warnings · 8cc64baf
      Anatolij Gustschin authored
      
      Fix:
      yaffs_guts.c: In function 'yaffs_check_chunk_erased':
      yaffs_guts.c:324:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c: In function 'yaffs_verify_chunk_written':
      yaffs_guts.c:352:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c: In function 'yaffs_grab_chunk_cache':
      yaffs_guts.c:1488:6: warning: variable 'pushout' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c: In function 'yaffs_check_obj_details_loaded':
      yaffs_guts.c:3180:6: warning: variable 'alloc_failed' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c:3179:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c: In function 'yaffs_update_oh':
      yaffs_guts.c:3288:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c: In function 'yaffs_get_obj_name':
      yaffs_guts.c:4447:7: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_summary.c: In function 'yaffs_summary_read':
      yaffs_summary.c:194:6: warning: variable 'sum_tags_bytes' set but not
      used [-Wunused-but-set-variable]
      yaffs_verify.c: In function 'yaffs_verify_file':
      yaffs_verify.c:227:6: warning: variable 'actual_depth' set but not used
      [-Wunused-but-set-variable]
      yaffs_yaffs1.c: In function 'yaffs1_scan':
      yaffs_yaffs1.c:26:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_yaffs2.c: In function 'yaffs2_scan_chunk':
      yaffs_yaffs2.c:949:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_yaffs2.c: In function 'yaffs2_scan_backwards':
      yaffs_yaffs2.c:1352:6: warning: variable 'deleted' set but not used
      [-Wunused-but-set-variable]
      
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      Cc: Charles Manning <cdhmanning@gmail.com>
      Tested-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      8cc64baf
    • Stephen Warren's avatar
      FAT: check for partition 0 not 1 for whole-disk fs · bd1a7e30
      Stephen Warren authored
      
      The recent switch to use get_device_and_partition() from do_fat_ls()
      broke the ability to access a FAT filesystem directly on a whole device;
      FAT only works within a partition on a device.
      
      This change makes e.g. "fatls mmc 0:0" work; explicitly requesting
      partition ID 0 is something that get_device_and_partition() fully
      supports. However, fat_register_device() expects partition ID 1 to be
      used in the full-disk case; partition ID 1 was previously implicitly
      specified when the user didn't actually specify a partition ID. Update
      fat_register_device() to expect the correct ID.
      
      This change does imply that if a user explicitly executes "fatls mmc 0:1"
      then this will fail, and may be a change in behaviour.
      
      Note that this still prevents "fatls mmc 0:auto" from working. The next
      patch will fix that.
      
      Signed-off-by: Stephen Warren's avatarStephen Warren <swarren@nvidia.com>
      bd1a7e30
  16. Oct 04, 2012
  17. Sep 26, 2012
  18. Sep 25, 2012
Loading