1. 01 6月, 2013 1 次提交
    • S
      mtd: resync with Linux-3.7.1 · dfe64e2c
      Sergey Lapin 提交于
      This patch is essentially an update of u-boot MTD subsystem to
      the state of Linux-3.7.1 with exclusion of some bits:
      
      - the update is concentrated on NAND, no onenand or CFI/NOR/SPI
      flashes interfaces are updated EXCEPT for API changes.
      
      - new large NAND chips support is there, though some updates
      have got in Linux-3.8.-rc1, (which will follow on top of this patch).
      
      To produce this update I used tag v3.7.1 of linux-stable repository.
      
      The update was made using application of relevant patches,
      with changes relevant to U-Boot-only stuff sticked together
      to keep bisectability. Then all changes were grouped together
      to this patch.
      Signed-off-by: NSergey Lapin <slapin@ossfans.org>
      [scottwood@freescale.com: some eccstrength and build fixes]
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      dfe64e2c
  2. 12 4月, 2013 2 次提交
  3. 05 11月, 2012 1 次提交
    • K
      include/linux/byteorder: import latest endian definitions from linux · eef1cf2d
      Kim Phillips 提交于
      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: NKim Phillips <kim.phillips@freescale.com>
      [trini: Remove '#endif' in include/common.h around setenv portion]
      Signed-off-by: NTom Rini <trini@ti.com>
      eef1cf2d
  4. 12 10月, 2011 1 次提交
    • H
      UBI: init eba tables before wl when attaching a device · d6389465
      Holger Brunck 提交于
      This fixes that u-boot gets stuck when a bitflip was detected
      during "ubi part <ubi_device>". If a bitflip was detected UBI tries
      to copy the PEB to a different place. This needs that the eba table
      are initialized, but this was done after the wear levelling worker
      detects the bitflip. So changes the initialisation of these two
      tasks in u-boot.
      
      This is a u-boot specific patch and not needed in the linux layer,
      because due to commit 1b1f9a9d
      UBI: Ensure that "background thread" operations are really executed
      we schedule these tasks in place and not as in linux after the inital
      task which schedule this new task is finished.
      Signed-off-by: NHolger Brunck <holger.brunck@keymile.com>
      cc: Stefan Roese <sr@denx.de>
      Signed-off-by: NStefan Roese <sr@denx.de>
      d6389465
  5. 02 10月, 2011 1 次提交
  6. 18 11月, 2010 1 次提交
    • S
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier 提交于
      Before this commit, weak symbols were not overridden by non-weak symbols
      found in archive libraries when linking with recent versions of
      binutils.  As stated in the System V ABI, "the link editor does not
      extract archive members to resolve undefined weak symbols".
      
      This commit changes all Makefiles to use partial linking (ld -r) instead
      of creating library archives, which forces all symbols to participate in
      linking, allowing non-weak symbols to override weak symbols as intended.
      This approach is also used by Linux, from which the gmake function
      cmd_link_o_target (defined in config.mk and used in all Makefiles) is
      inspired.
      
      The name of each former library archive is preserved except for
      extensions which change from ".a" to ".o".  This commit updates
      references accordingly where needed, in particular in some linker
      scripts.
      
      This commit reveals board configurations that exclude some features but
      include source files that depend these disabled features in the build,
      resulting in undefined symbols.  Known such cases include:
      - disabling CMD_NET but not CMD_NFS;
      - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.
      Signed-off-by: NSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  7. 27 9月, 2010 1 次提交
  8. 23 6月, 2010 1 次提交
  9. 19 5月, 2010 1 次提交
    • S
      UBI: Ensure that "background thread" operations are really executed · 1b1f9a9d
      Stefan Roese 提交于
      The current U-Boot UBI implementation is copied from Linux. In this
      porting the UBI background thread was not handled correctly. Upon write
      operations ubi_wl_flush() makes sure, that all queued operations, like
      page-erase, are completed. But this is missing for read operations.
      
      This patch now makes sure that such operations (like scrubbing upon
      bit-flip errors) are not queued, but executed directly.
      Signed-off-by: NStefan Roese <sr@denx.de>
      1b1f9a9d
  10. 07 7月, 2009 1 次提交
  11. 13 6月, 2009 1 次提交
  12. 16 12月, 2008 1 次提交
  13. 10 12月, 2008 1 次提交
  14. 09 12月, 2008 1 次提交
  15. 20 11月, 2008 5 次提交
    • K
      UBI: Add basic UBI support to U-Boot (Part 5/8) · c91a719d
      Kyungmin Park 提交于
      This patch adds basic UBI (Unsorted Block Image) support to U-Boot.
      It's based on the Linux UBI version and basically has a "OS"
      translation wrapper that defines most Linux specific calls
      (spin_lock() etc.) into no-ops. Some source code parts have been
      uncommented by "#ifdef UBI_LINUX". This makes it easier to compare
      this version with the Linux version and simplifies future UBI
      ports/bug-fixes from the Linux version.
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NStefan Roese <sr@denx.de>
      c91a719d
    • K
      UBI: Add basic UBI support to U-Boot (Part 4/8) · f412fefa
      Kyungmin Park 提交于
      This patch adds basic UBI (Unsorted Block Image) support to U-Boot.
      It's based on the Linux UBI version and basically has a "OS"
      translation wrapper that defines most Linux specific calls
      (spin_lock() etc.) into no-ops. Some source code parts have been
      uncommented by "#ifdef UBI_LINUX". This makes it easier to compare
      this version with the Linux version and simplifies future UBI
      ports/bug-fixes from the Linux version.
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NStefan Roese <sr@denx.de>
      f412fefa
    • K
      UBI: Add basic UBI support to U-Boot (Part 3/8) · 2d262c48
      Kyungmin Park 提交于
      This patch adds basic UBI (Unsorted Block Image) support to U-Boot.
      It's based on the Linux UBI version and basically has a "OS"
      translation wrapper that defines most Linux specific calls
      (spin_lock() etc.) into no-ops. Some source code parts have been
      uncommented by "#ifdef UBI_LINUX". This makes it easier to compare
      this version with the Linux version and simplifies future UBI
      ports/bug-fixes from the Linux version.
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NStefan Roese <sr@denx.de>
      2d262c48
    • K
      UBI: Add basic UBI support to U-Boot (Part 2/8) · 961df833
      Kyungmin Park 提交于
      This patch adds basic UBI (Unsorted Block Image) support to U-Boot.
      It's based on the Linux UBI version and basically has a "OS"
      translation wrapper that defines most Linux specific calls
      (spin_lock() etc.) into no-ops. Some source code parts have been
      uncommented by "#ifdef UBI_LINUX". This makes it easier to compare
      this version with the Linux version and simplifies future UBI
      ports/bug-fixes from the Linux version.
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NStefan Roese <sr@denx.de>
      961df833
    • K
      UBI: Add basic UBI support to U-Boot (Part 1/8) · f399d4a2
      Kyungmin Park 提交于
      This patch adds basic UBI (Unsorted Block Image) support to U-Boot.
      It's based on the Linux UBI version and basically has a "OS"
      translation wrapper that defines most Linux specific calls
      (spin_lock() etc.) into no-ops. Some source code parts have been
      uncommented by "#ifdef UBI_LINUX". This makes it easier to compare
      this version with the Linux version and simplifies future UBI
      ports/bug-fixes from the Linux version.
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NStefan Roese <sr@denx.de>
      f399d4a2