13 Apr, 2017

1 commit


06 Apr, 2017

2 commits


17 Jun, 2016

1 commit


31 May, 2016

2 commits

  • 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: Paul Burton
    [removed CONFIG_SYS_CACHELINE_SIZE in include/configs/pic32mzdask.h]
    Signed-off-by: Daniel Schwierzeck

    Paul Burton
     
  • 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: Paul Burton

    Paul Burton
     

26 May, 2016

1 commit

  • Move CONFIG_SYS_TEXT_BASE to Kconfig, and add default values in board
    Kconfig files matching what was present in their config headers. This
    will make it cleaner to conditionalise the value for Malta based on 32
    vs 64 bit builds.

    Signed-off-by: Paul Burton

    Paul Burton
     

20 Jan, 2016

1 commit


17 Jan, 2016

1 commit


13 May, 2015

1 commit

  • By making the board selections optional, every defconfig will include
    the board selection when running savedefconfig so if a new board is
    added to the top of the list of choices the former top's defconfig will
    still be correct.

    Signed-off-by: Joe Hershberger
    Cc: Masahiro Yamada
    Acked-by: Stephen Warren
    Cc: Tom Rini

    Joe Hershberger
     

02 Nov, 2014

2 commits


14 Sep, 2014

1 commit

  • Now the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}
    are specified in arch/Kconfig.

    We can delete the ones in arch and board Kconfig files.

    This commit can be easily reproduced by the following command:

    find . -name Kconfig -a ! -path ./arch/Kconfig | xargs sed -i -e '
    /config[[:space:]]SYS_\(ARCH\|CPU\|SOC\|\VENDOR\|BOARD\|CONFIG_NAME\)/ {
    N
    s/\n[[:space:]]*string//
    }
    '

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

30 Jul, 2014

2 commits

  • 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: Masahiro Yamada
    Suggested-by: Tom Rini
    Acked-by: Simon Glass

    Masahiro Yamada
     
  • 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: Masahiro Yamada
    Acked-by: Simon Glass

    Masahiro Yamada
     

01 Nov, 2013

1 commit


24 Jul, 2013

1 commit


31 Jan, 2013

2 commits

  • Remove the board specific linker script. It is not
    needed anymore, the unified MIPS linker script can
    be used instead.

    All dbau1x00 targets are producing identical binary
    images after the change than before.

    Signed-off-by: Gabor Juhos
    Cc: Daniel Schwierzeck

    Gabor Juhos
     
  • 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: Gabor Juhos
    Cc: Daniel Schwierzeck
    Cc: Stefan Roese
    Cc: Wolfgang Denk
    Cc: Xiangfu Liu

    Gabor Juhos
     

22 Oct, 2012

2 commits

  • 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: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    Marek Vasut
     
  • 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: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    Marek Vasut
     

09 May, 2011

1 commit

  • All architectures but MIPS are using --gc-sections on final linking.
    This patch introduces that feature for MIPS to reduce the memory and
    flash footprint.

    Signed-off-by: Daniel Schwierzeck
    Cc: Wolfgang Denk
    Cc: Stefan Roese
    Cc: Thomas Lange
    Cc: Vlad Lungu
    Signed-off-by: Shinya Kuribayashi

    Daniel Schwierzeck
     

05 Feb, 2011

1 commit

  • All dbau1x00 boards use the CFI driver so this stub driver is useless
    and should not be compiled.

    This patch fixes the error:

    u-boot-git/board/dbau1x00/flash.c:34: multiple definition of `flash_init'
    drivers/mtd/libmtd.o:u-boot-git/drivers/mtd/cfi_flash.c:2084: first defined here
    board/dbau1x00/libdbau1x00.o: In function `write_buff':
    u-boot-git/board/dbau1x00/flash.c:40: multiple definition of `write_buff'
    drivers/mtd/libmtd.o:u-boot-git/drivers/mtd/cfi_flash.c:1265: first defined here

    Signed-off-by: Daniel Schwierzeck
    Cc: Wolfgang Denk
    Signed-off-by: Shinya Kuribayashi

    Daniel Schwierzeck
     

18 Nov, 2010

1 commit

  • 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: Sebastien Carlier

    Sebastien Carlier
     

19 Oct, 2010

1 commit

  • 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: Wolfgang Denk

    Wolfgang Denk
     

04 Sep, 2010

1 commit

  • From the document, if set all arguments in "OUTPUT_FORMAT" to
    "tradbigmips", then even add "-EL" to gcc we still get EB format.

    pb1x00 is only used in Little-endian, so its default endian should be
    set to LE.

    Signed-off-by: Xiangfu Liu
    Signed-off-by: Shinya Kuribayashi

    Xiangfu Liu
     

13 Apr, 2010

1 commit


21 Mar, 2009

1 commit

  • 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: Trent Piepho

    Trent Piepho
     

19 Nov, 2008

1 commit

  • Most of the bss initialization loop increments 4 bytes
    at a time. And the loop end is checked for an 'equal'
    condition. Make the bss end address aligned by 4, so
    that the loop will end as expected.

    Signed-off-by: Selvamuthukumar
    Signed-off-by: Wolfgang Denk

    Selvamuthukumar
     

19 Oct, 2008

1 commit


12 Jun, 2008

1 commit

  • This patch changes the return type of initdram() from long int to phys_size_t.
    This is required for a couple of reasons: long int limits the amount of dram
    to 2GB, and u-boot in general is moving over to phys_size_t to represent the
    size of physical memory. phys_size_t is defined as an unsigned long on almost
    all current platforms.

    This patch *only* changes the return type of the initdram function (in
    include/common.h, as well as in each board's implementation of initdram). It
    does not actually modify the code inside the function on any of the platforms;
    platforms which wish to support more than 2GB of DRAM will need to modify
    their initdram() function code.

    Build tested with MAKEALL for ppc, arm, mips, mips-el. Booted on powerpc
    MPC8641HPCN.

    Signed-off-by: Becky Bruce

    Becky Bruce
     

05 Jun, 2008

1 commit


29 May, 2008

1 commit


18 Apr, 2008

1 commit

  • Current assembler codes are inconsistent in the way of register jump
    instruction usage; some use jr, some use j. Of course GNU as allows both
    usages, but as can be expected from `Jump Register' the mnemonic `jr' is
    more intuitive than `j'. For example, Linux doesn't have `j ' usage
    at all.

    Signed-off-by: Shinya Kuribayashi

    Shinya Kuribayashi
     

13 Jan, 2008

1 commit

  • With recent toolchain versions, some boards would not build because
    or errors like this one (here for ocotea board when building with
    ELDK 4.2 beta):
    ppc_4xx-ld: section .bootpg [fffff000 -> fffff23b] overlaps section .bss [fffee900 -> fffff8ab]

    For many boards, the .bss section is big enough that it wraps around
    at the end of the address space (0xFFFFFFFF), so the problem will not
    be visible unless you use a 64 bit tool chain for development. On
    some boards however, changes to the code size (due to different
    optimizations) we bail out with section overlaps like above.

    The fix is to add the NOLOAD attribute to the .bss and .sbss
    sections, telling the linker that .bss does not consume any space in
    the image.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

17 Nov, 2007

2 commits

  • Signed-off-by: Shinya Kuribayashi

    Shinya Kuribayashi
     
  • This patch has been sent on:
    - 29 Sep 2007

    Although mips_io_port_base is currently a part of IDE command, it is quite
    fundamental for MIPS I/O port access such as in[bwl] and out[bwl]. So move
    it to MIPS general part, and introduce `set_io_port_base()' from Linux.

    This patch is triggered by multiple definition of `mips_io_port_base' build
    error on gth2 (and tb0229 also needs this fix.)

    board/gth2/libgth2.a(gth2.o): In function `log_serial_char':
    /home/skuribay/devel/u-boot.git/board/gth2/gth2.c:47: multiple definition of `mips_io_port_base'
    common/libcommon.a(cmd_ide.o):/home/skuribay/devel/u-boot.git/common/cmd_ide.c:712: first defined here
    make: *** [u-boot] Error 1

    Signed-off-by: Shinya Kuribayashi
    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD

    Jean-Christophe PLAGNIOL-VILLARD
     

21 Oct, 2007

3 commits