Skip to content
Snippets Groups Projects
  1. Apr 13, 2017
  2. Apr 05, 2017
  3. Sep 23, 2016
  4. Jul 22, 2016
  5. May 31, 2016
    • Paul Burton's avatar
      MIPS: Split I & D cache line size config · 37228621
      Paul Burton authored
      
      Allow L1 Icache & L1 Dcache line size to be specified separately, since
      there's no architectural mandate that they be the same. The
      [id]cache_line_size functions are tidied up to take advantage of the
      fact that the Kconfig entries are always present to simply check them
      for zero rather than needing to #ifdef on their presence.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      [removed CONFIG_SYS_CACHELINE_SIZE in include/configs/pic32mzdask.h]
      Signed-off-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      37228621
    • Paul Burton's avatar
      MIPS: Move cache sizes to Kconfig · ace3be4f
      Paul Burton authored
      
      Move details of the L1 cache line sizes & total sizes into Kconfig,
      defaulting to 0. A new CONFIG_SYS_CACHE_SIZE_AUTO Kconfig entry is
      introduced to allow platforms to select auto-detection of cache sizes,
      and it defaults to being enabled if none of the cache sizes are set by
      the configuration (ie. sizes are all the default 0), and code is
      adjusted to #ifdef on that rather than on the definition of the sizes
      (which will always be defined even if 0).
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      ace3be4f
  6. May 25, 2016
  7. Jan 20, 2016
  8. Jan 16, 2016
  9. May 12, 2015
  10. Nov 01, 2014
  11. Sep 24, 2014
    • Masahiro Yamada's avatar
      MAINTAINERS: comment out blank M: field · 535aad29
      Masahiro Yamada authored
      
      Since commit ddaf5c8f
      (patman: RunPipe() should not pipe stdout/stderr unless asked),
      Patman spits lots of "Invalid MAINTAINERS address: '-'"
      error messages for patches with global changes.
      It takes too long for Patman to process them.
      
      Anyway, "M:    -" does not carry any important information.
      Rather, it is just like a place holder in case of assigning
      a new board maintainer.  Let's comment out.
      
      This commit can be reproduced by the following command:
      
      find . -name MAINTAINERS | xargs sed -i -e '/^M:[[:blank:]]*-$/s/^/#/'
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      535aad29
  12. Sep 13, 2014
  13. Jul 30, 2014
    • Masahiro Yamada's avatar
      Add board MAINTAINERS files · 93d4334f
      Masahiro Yamada authored
      
      We have switched to Kconfig and the boards.cfg file is going to
      be removed. We have to retrieve the board status and maintainers
      information from it.
      
      The MAINTAINERS format as in Linux Kernel would be nice
      because we can crib the scripts/get_maintainer.pl script.
      
      After some discussion, we chose to put a MAINTAINERS file under each
      board directory, not the top-level one because we want to collect
      relevant information for a board into a single place.
      
      TODO:
      Modify get_maintainer.pl to scan multiple MAINTAINERS files.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Suggested-by: default avatarTom Rini <trini@ti.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      93d4334f
    • Masahiro Yamada's avatar
      kconfig: add board Kconfig and defconfig files · dd84058d
      Masahiro Yamada authored
      
      This commit adds:
       - arch/${ARCH}/Kconfig
          provide a menu to select target boards
       - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
          set CONFIG macros to the appropriate values for each board
       - configs/${TARGET_BOARD}_defconfig
          default setting of each board
      
      (This commit was automatically generated by a conversion script
      based on boards.cfg)
      
      In Linux Kernel, defconfig files are located under
      arch/${ARCH}/configs/ directory.
      It works in Linux Kernel since ARCH is always given from the
      command line for cross compile.
      
      But in U-Boot, ARCH is not given from the command line.
      Which means we cannot know ARCH until the board configuration is done.
      That is why all the "*_defconfig" files should be gathered into a
      single directory ./configs/.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      dd84058d
  14. Mar 04, 2014
  15. Oct 31, 2013
  16. Jul 24, 2013
  17. Jan 30, 2013
    • Gabor Juhos's avatar
      MIPS: vct: remove custom u-boot.lds script · 975f67b6
      Gabor Juhos authored
      
      Remove the board specific linker script. It is not
      needed anymore, the unified MIPS linker script can
      be used instead.
      
      All vct targets are producing identical binary
      images after the change than before.
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      975f67b6
    • Gabor Juhos's avatar
      MIPS: remove OUTPUT_FORMAT from linker scripts · 9950b90d
      Gabor Juhos authored
      
      The OUTPUT_FORMAT command in linker scripts
      was always misused due to some endianess and
      toolchain problems.
      
      Use GCC flags to ensure proper output format,
      and get rid of the OUTPUT_FORMAT commands in
      the board specific u-boot.lds files.
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Xiangfu Liu <xiangfu@openmobilefree.net>
      9950b90d
  18. Oct 22, 2012
    • Marek Vasut's avatar
      common: Discard the __u_boot_cmd section · 8b493a52
      Marek Vasut authored
      
      The command declaration now uses the new LG-array method to generate
      list of commands. Thus the __u_boot_cmd section is now superseded and
      redundant and therefore can be removed. Also, remove externed symbols
      associated with this section from include/command.h .
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      8b493a52
    • Marek Vasut's avatar
      common: Add .u_boot_list into all linker files · 55675142
      Marek Vasut authored
      
      Add section for the linker-generated lists into all possible linker
      files, so that everyone can easily use these lists. This is mostly
      a mechanical adjustment.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      55675142
  19. Oct 15, 2011
  20. May 12, 2011
    • Wolfgang Denk's avatar
      Fix incorrect use of getenv() before relocation · f0c0b3a9
      Wolfgang Denk authored
      
      A large number of boards incorrectly used getenv() in their board init
      code running before relocation.  In some cases this caused U-Boot to
      hang when certain environment variables grew too long.
      Fix the code to use getenv_r().
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: The LEOX team <team@leox.org>
      Cc: Michael Schwingen <michael@schwingen.org>
      Cc: Georg Schardt <schardt@team-ctech.de>
      Cc: Werner Pfister <Pfister_Werner@intercontrol.de>
      Cc: Dirk Eibach <eibach@gdsys.de>
      Cc: Peter De Schrijver <p2@mind.be>
      Cc: John Zhan <zhanz@sinovee.com>
      Cc: Rishi Bhattacharya <rishi@ti.com>
      Cc: Peter Tyser <ptyser@xes-inc.com>
      f0c0b3a9
  21. May 09, 2011
  22. Nov 17, 2010
    • Sebastien Carlier's avatar
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier authored
      
      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: default avatarSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  23. Oct 18, 2010
    • Wolfgang Denk's avatar
      Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE · 14d0a02a
      Wolfgang Denk authored
      
      The change is currently needed to be able to remove the board
      configuration scripting from the top level Makefile and replace it by
      a simple, table driven script.
      
      Moving this configuration setting into the "CONFIG_*" name space is
      also desirable because it is needed if we ever should move forward to
      a Kconfig driven configuration system.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      14d0a02a
  24. Jul 04, 2010
    • Wolfgang Denk's avatar
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk authored
      
      The hush shell dynamically allocates (and re-allocates) memory for the
      argument strings in the "char *argv[]" argument vector passed to
      commands.  Any code that modifies these pointers will cause serious
      corruption of the malloc data structures and crash U-Boot, so make
      sure the compiler can check that no such modifications are being done
      by changing the code into "char * const argv[]".
      
      This modification is the result of debugging a strange crash caused
      after adding a new command, which used the following argument
      processing code which has been working perfectly fine in all Unix
      systems since version 6 - but not so in U-Boot:
      
      int main (int argc, char **argv)
      {
      	while (--argc > 0 && **++argv == '-') {
      /* ====> */	while (*++*argv) {
      			switch (**argv) {
      			case 'd':
      				debug++;
      				break;
      			...
      			default:
      				usage ();
      			}
      		}
      	}
      	...
      }
      
      The line marked "====>" will corrupt the malloc data structures and
      usually cause U-Boot to crash when the next command gets executed by
      the shell.  With the modification, the compiler will prevent this with
      an
      	error: increment of read-only location '*argv'
      
      N.B.: The code above can be trivially rewritten like this:
      
      	while (--argc > 0 && **++argv == '-') {
      		char *arg = *argv;
      		while (*++arg) {
      			switch (*arg) {
      			...
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      54841ab5
  25. Sep 28, 2009
    • Shinya Kuribayashi's avatar
      MIPS: VCT: Remove read_spareram reference · a05e3f9a
      Shinya Kuribayashi authored
      
      The commit ecad289f (OneNAND: Remove
      unused read_spareram and add unlock_all as kernel does) forgot to remove
      a local reference to read_spareram in board/micronas/vct/ebi_onenand.c,
      which causes the following build failure when configured with OneNAND:
      
      ebi_onenand.c: In function 'onenand_board_init':
      ebi_onenand.c:196: error: 'struct onenand_chip' has no member named 'read_spareram'
      make[1]: *** [ebi_onenand.o] Error 1
      make[1]: *** Waiting for unfinished jobs....
      make: *** [board/micronas/vct/libvct.a] Error 2
      
      Signed-off-by: default avatarShinya Kuribayashi <skuribay@pobox.com>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      a05e3f9a
  26. Jul 23, 2009
  27. Jun 12, 2009
    • Wolfgang Denk's avatar
      General help message cleanup · a89c33db
      Wolfgang Denk authored
      
      Many of the help messages were not really helpful; for example, many
      commands that take no arguments would not print a correct synopsis
      line, but "No additional help available." which is not exactly wrong,
      but not helpful either.
      
      Commit ``Make "usage" messages more helpful.'' changed this
      partially. But it also became clear that lots of "Usage" and "Help"
      messages (fields "usage" and "help" in struct cmd_tbl_s respective)
      were actually redundant.
      
      This patch cleans this up - for example:
      
      Before:
      	=> help dtt
      	dtt - Digital Thermometer and Thermostat
      
      	Usage:
      	dtt         - Read temperature from digital thermometer and thermostat.
      
      After:
      	=> help dtt
      	dtt - Read temperature from Digital Thermometer and Thermostat
      
      	Usage:
      	dtt
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      a89c33db
  28. Mar 20, 2009
    • Trent Piepho's avatar
      Fix all linker script to handle all rodata sections · f62fb999
      Trent Piepho authored
      
      A recent gcc added a new unaligned rodata section called '.rodata.str1.1',
      which needs to be added the the linker script.  Instead of just adding this
      one section, we use a wildcard ".rodata*" to get all rodata linker section
      gcc has now and might add in the future.
      
      However, '*(.rodata*)' by itself will result in sub-optimal section
      ordering.  The sections will be sorted by object file, which causes extra
      padding between the unaligned rodata.str.1.1 of one object file and the
      aligned rodata of the next object file.  This is easy to fix by using the
      SORT_BY_ALIGNMENT command.
      
      This patch has not be tested one most of the boards modified.  Some boards
      have a linker script that looks something like this:
      
      *(.text)
      . = ALIGN(16);
      *(.rodata)
      *(.rodata.str1.4)
      *(.eh_frame)
      
      I change this to:
      
      *(.text)
      . = ALIGN(16);
      *(.eh_frame)
      *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
      
      This means the start of rodata will no longer be 16 bytes aligned.
      However, the boundary between text and rodata/eh_frame is still aligned to
      16 bytes, which is what I think the real purpose of the ALIGN call is.
      
      Signed-off-by: default avatarTrent Piepho <xyzzy@speakeasy.org>
      f62fb999
  29. Jan 27, 2009
Loading