01 Nov, 2013

1 commit


15 Oct, 2013

2 commits


06 Sep, 2013

1 commit


24 Jul, 2013

1 commit


17 Jul, 2013

1 commit


02 Jul, 2013

1 commit

  • Commit 35fc84fa1ff51e15ecd3e464dac87eb105ffed30 broke bootm on avr32. It
    requires to call do_bootm_linux() with flag set to BOOTM_STATE_OS_PREP before
    calling it again with flag set to BOOTM_STATE_OS_GO.
    Fix this by allowing flag set to BOOTM_STATE_OS_PREP, this however will
    require a complete refactoring later on.

    Signed-off-by: Andreas Bießmann
    [trini: Apply to m68k, microblaze, nds32, nios2, openrisc, sh and sparc]
    Signed-off-by: Tom Rini

    Andreas Bießmann
     

26 Jun, 2013

1 commit

  • At present the arguments to bootm are processed in a somewhat confusing
    way. Sub-functions must know how many arguments their calling functions
    have processed, and the OS boot function must also have this information.
    Also it isn't obvious that 'bootm' and 'bootm start' provide arguments in
    the same way.

    Adjust the code so that arguments are removed from the list before calling
    a sub-function. This means that all functions can know that argv[0] is the
    first argument of which they need to take notice.

    Signed-off-by: Simon Glass

    Simon Glass
     

02 May, 2013

2 commits


19 Mar, 2013

1 commit

  • Albert's rework of the linker scripts conflicted with Simon's making
    everyone use __bss_end. We also had a minor conflict over
    README.scrapyard being added to in mainline and enhanced in
    u-boot-arm/master with proper formatting.

    Conflicts:
    arch/arm/cpu/ixp/u-boot.lds
    arch/arm/cpu/u-boot.lds
    arch/arm/lib/Makefile
    board/actux1/u-boot.lds
    board/actux2/u-boot.lds
    board/actux3/u-boot.lds
    board/dvlhost/u-boot.lds
    board/freescale/mx31ads/u-boot.lds
    doc/README.scrapyard
    include/configs/tegra-common.h

    Build tested for all of ARM and run-time tested on am335x_evm.

    Signed-off-by: Tom Rini

    Tom Rini
     

16 Mar, 2013

2 commits

  • We create a separate header file for link symbols defined by the link
    scripts. It is helpful to have these all in one place and try to
    make them common across architectures. Since Linux already has a similar
    file, we bring this in even though many of the symbols there are not
    relevant to us.

    Each architecture has its own asm/sections.h where symbols specifc to
    that architecture can be added. For now everything except AVR32 just
    includes the generic header.

    One change is needed in arch/avr32/lib/board.c to make this conversion
    work.

    Reviewed-by: Tom Rini (version 5)
    Signed-off-by: Simon Glass

    Simon Glass
     
  • Note this is a tree-wide change affecting multiple architectures.

    At present we use __bss_start, but mostly __bss_end__. This seems
    inconsistent and in a number of places __bss_end is used instead.

    Change to use __bss_end for the BSS end symbol throughout U-Boot. This
    makes it possible to use the asm-generic/sections.h file on all
    archs.

    Signed-off-by: Simon Glass

    Simon Glass
     

13 Mar, 2013

1 commit

  • Refactor linker-generated array code so that symbols
    which were previously linker-generated are now compiler-
    generated. This causes relocation records of type
    R_ARM_ABS32 to become R_ARM_RELATIVE, which makes
    code which uses LGA able to run before relocation as
    well as after.

    Note: this affects more than ARM targets, as linker-
    lists span possibly all target architectures, notably
    PowerPC.

    Conflicts:
    arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds
    arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds
    arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
    board/ait/cam_enc_4xx/u-boot-spl.lds
    board/davinci/da8xxevm/u-boot-spl-da850evm.lds
    board/davinci/da8xxevm/u-boot-spl-hawk.lds
    board/vpac270/u-boot-spl.lds

    Signed-off-by: Albert ARIBAUD

    Albert ARIBAUD
     

09 Feb, 2013

1 commit

  • The libfdt.h file is the definition file for libfdt. It is unnecessary
    to include other fdt header files (the necessary ones are pulled in
    by libfdt.h).

    Signed-off-by: Gerald Van Baren
    Acked-by: Simon Glass
    Acked-by: Stefan Roese

    Gerald Van Baren
     

04 Feb, 2013

1 commit


02 Feb, 2013

1 commit

  • We plan to move architecture-specific data into a separate structure so
    that we can make the rest of it common.

    As a first step, create struct arch_global_data to hold these fields.
    Initially it is empty.

    This patch applies to all archs at once. I can split it if this is really
    a pain.

    Signed-off-by: Simon Glass

    Simon Glass
     

10 Nov, 2012

1 commit

  • The file has a wrong inline keyword of __led_toggle(), which causes
    compilation error. And its content is defined in common status_led.h.
    So define CONFIG_BOARD_SPECIFIC_LED in board config files and remove
    this header file.

    Signed-off-by: Thomas Chou

    Thomas Chou
     

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
     

20 Oct, 2012

1 commit


10 Aug, 2012

1 commit


16 Jul, 2012

1 commit


16 May, 2012

1 commit

  • This field gets read in one place (by "bdinfo"), and we can replace
    that with getenv("ipaddr"). After all, the bi_ip_addr field is kept
    up-to-date implicitly with the value of the ipaddr env var.

    Signed-off-by: Mike Frysinger
    Reviewed-by: Joe Hershberger

    Mike Frysinger
     

23 Feb, 2012

2 commits


30 Oct, 2011

1 commit


28 Oct, 2011

2 commits

  • This driver may handle multiple PIO cores and thus needs to be
    setup by calling the altera_pio_init() function within the early
    board setup routine.

    The driver comes with some extras, see below the copyleft header.

    Signed-off-by: Joachim Foerster
    Tested-by: Thomas Chou
    Signed-off-by: Thomas Chou

    Joachim Foerster
     
  • AFAIK the NIOS2 architecture does not have any possibility to
    dynamically switch off the data cache. So _status() always reports 1 and
    _enable/_disable() just issue a flush of everything.

    For example, common/cmd_elf.c depends on these symbols.

    Signed-off-by: Joachim Foerster
    Signed-off-by: Thomas Chou

    Joachim Foerster
     

24 Oct, 2011

1 commit


06 Oct, 2011

4 commits

  • This is long over due. All but two net drivers have been converted, but
    those have now been dropped.

    The only thing left to do is actually delete all references to NET_MULTI
    and code that is compiled when that is not defined. So here we scrub the
    core code.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     
  • This pushes the ugly duplicated arch ifdef lists we maintain in various
    image related files out to the arch headers themselves.

    Acked-by: Nobuhiro Iwamatsu
    Tested-by: Thomas Chou
    Signed-off-by: Mike Frysinger

    Mike Frysinger
     
  • The current post_log_word in global data is currently split into 2x
    16 bits: half for the test start, half for the test success.
    Since we alredy have more than 16 POST tests defined and more could
    be defined, this may result in an overflow and the post_output_backlog
    would not work for the tests defined further of these 16 positions.

    An additional field is added to global data so that we can now support up
    to 32 (depending of architecture) tests. The post_log_word is only used
    to record the start of the test and the new field post_log_res for the
    test success (or failure). The post_output_backlog is for this change
    also adapted.

    Signed-off-by: Valentin Longchamp

    Valentin Longchamp
     
  • Allow redirection of console output prior to console initialisation to a
    temporary buffer.

    To enable this functionality, the board (or arch) must define:
    - CONFIG_PRE_CONSOLE_BUFFER - Enable pre-console buffer
    - CONFIG_PRE_CON_BUF_ADDR - Base address of pre-console buffer
    - CONFIG_PRE_CON_BUF_SZ - Size of pre-console buffer (in bytes)

    The pre-console buffer will buffer the last CONFIG_PRE_CON_BUF_SZ bytes
    Any earlier characters are silently dropped.

    Graeme Russ
     

28 Jul, 2011

1 commit

  • This patch removes the architecture specific implementation of
    version_string where possible. Some architectures use a special place
    and therefore we provide U_BOOT_VERSION_STRING definition and a common
    weak symbol version_string.

    Signed-off-by: Andreas Bießmann
    CC: Mike Frysinger
    CC: Peter Pan
    Acked-by: Mike Frysinger

    Andreas Bießmann
     

26 Jul, 2011

1 commit


17 May, 2011

1 commit


30 Apr, 2011

1 commit

  • Currently, some linker scripts are found by common code in config.mk.
    Some are found using CONFIG_SYS_LDSCRIPT, but the code for that is
    sometimes in arch config.mk and sometimes in board config.mk. Some
    are found using an arch-specific rule for looking in CPUDIR, etc.

    Further, the powerpc config.mk rule relied on CONFIG_NAND_SPL
    when it really wanted CONFIG_NAND_U_BOOT -- which covered up the fact
    that not all NAND_U_BOOT builds actually wanted CPUDIR/u-boot-nand.lds.

    Replace all of this -- except for a handful of boards that are actually
    selecting a linker script in a unique way -- with centralized ldscript
    finding.

    If board code specifies LDSCRIPT, that will be used.
    Otherwise, if CONFIG_SYS_LDSCRIPT is specified, that will be used.

    If neither of these are specified, then the central config.mk will
    check for the existence of the following, in order:

    $(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds (only if CONFIG_NAND_U_BOOT)
    $(TOPDIR)/$(CPUDIR)/u-boot-nand.lds (only if CONFIG_NAND_U_BOOT)
    $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds
    $(TOPDIR)/$(CPUDIR)/u-boot.lds

    Some boards (sc3, cm5200, munices) provided their own u-boot.lds that
    were dead code, because they were overridden by a CPUDIR u-boot.lds under
    the old powerpc rules. These boards' own u-boot.lds have bitrotted and
    no longer work -- these lds files have been removed.

    Signed-off-by: Scott Wood
    Tested-by: Graeme Russ

    Scott Wood
     

28 Mar, 2011

1 commit


23 Mar, 2011

1 commit

  • commit 8aba9dceebb14144e07d19593111ee3a999c37fc
    Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS

    breaks the usage of --gc-section to build nand_spl. We still need linker option
    --gc-section for every uboot image, not only the main one. LDFLAGS_FINAL passes
    the --gc-sections to each uboot image.

    To get the proper linker flags, we use LDFLAGS and LDFLAGS_FINAL to replace
    PLATFORM_LDFLAGS in the Makefile of each nand_spl board.

    Signed-off-by: Scott Wood
    Signed-off-by: Haiying Wang

    Haiying Wang