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
     

31 Aug, 2014

1 commit


30 Aug, 2014

1 commit


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 Jul, 2014

1 commit


20 Jun, 2014

1 commit


30 May, 2014

3 commits


13 Mar, 2014

1 commit

  • Prior to Kbuild, $(TOPDIR) or $(SRCTREE) was used for
    pointing to the top of source directory.
    (No difference between the two.)

    In Kbuild style, $(srctree) is used for instead.
    This commit renames SRCTREE to srctree and deletes the
    defition of SRCTREE.

    Note that SRCTREE in scripts/kernel-doc, scripts/docproc.c,
    doc/DocBook/Makefile should be keep.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

27 Feb, 2014

1 commit


20 Feb, 2014

1 commit

  • This commit changes the working directory
    where the build process occurs.

    Before this commit, build process occurred under the source
    tree for both in-tree and out-of-tree build.

    That's why we needed to add $(obj) prefix to all generated
    files in makefiles like follows:
    $(obj)u-boot.bin: $(obj)u-boot

    Here, $(obj) is empty for in-tree build, whereas it points
    to the output directory for out-of-tree build.

    And our old build system changes the current working directory
    with "make -C " syntax when descending into the
    sub-directories.

    On the other hand, Kbuild uses a different idea
    to handle out-of-tree build and directory descending.

    The build process of Kbuild always occurs under the output tree.
    When "O=dir/to/store/output/files" is given, the build system
    changes the current working directory to that directory and
    restarts the make.

    Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj="
    syntax for descending into sub-directories.
    (We can write it like "make $(obj)=" with a shorthand.)
    This means the current working directory is always the top
    of the output directory.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     

01 Nov, 2013

1 commit


07 Sep, 2013

1 commit

  • For most boards which define CONFIG_SPL_PAD_TO,
    it is defined in config header files.
    Currently, there exists only one exception, cam_enc_4xx board.

    This patch moves CONFIG_SPL_PAD_TO definition
    from board/ait/cam_enc_4xx/config.mk
    to include/configs/cam_enc_4xx.h.

    With this modification, we can delete a glue code
    in the top level config.mk:

    ifneq ($(CONFIG_SPL_PAD_TO),)
    CPPFLAGS += -DCONFIG_SPL_PAD_TO=$(CONFIG_SPL_PAD_TO)
    endif

    Signed-off-by: Masahiro Yamada
    Cc: Heiko Schocher

    Masahiro Yamada
     

24 Jul, 2013

1 commit


22 Jun, 2013

2 commits


01 Jun, 2013

1 commit

  • 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: Sergey Lapin
    [scottwood@freescale.com: some eccstrength and build fixes]
    Signed-off-by: Scott Wood

    Sergey Lapin
     

14 Apr, 2013

1 commit


13 Apr, 2013

1 commit


12 Apr, 2013

1 commit


29 Mar, 2013

1 commit

  • Selecting menu items is currently done in menu_interactive_choice()
    by reading the user input strings from standard input.

    Extend menu_interactive_choice() to support user defined function
    for selecting menu items. This function and its argument can be
    specified when creating the menu.

    Signed-off-by: Pali Rohár
    Signed-off-by: Anatolij Gustschin

    Pali Rohár
     

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

1 commit

  • 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

  • Many SPL linker scripts needlessly include linker lists (aka LGAs).
    Remove them whenever possible; keep it only in the seven am335x_evm
    variants (am335x_evm, am335x_evm_uart[1-5], am335x_evm_spiboot),
    where there is actual content in output section .u_boot_list.

    This commit keeps all u-boot.bin and u-boot-spl.bin in ARM targets
    byte-identical.

    Signed-off-by: Albert ARIBAUD

    Albert ARIBAUD
     

20 Dec, 2012

1 commit

  • This was already used by some SPL targets, and allows the pad amount to
    be specified by board config headers rather than only in makefile
    fragments.

    Also supply a pad-to of zero if the variable is undefined. It works
    without this, but this avoids relying on undocumented behavior.

    Signed-off-by: Scott Wood
    Signed-off-by: Kim Phillips

    Scott Wood
     

22 Oct, 2012

1 commit


28 Mar, 2012

2 commits

  • - change CONFIG_ENV_RANGE to contain 2 nand erase blocks,
    one for bad block reserve.
    - remove from the envvariable "img_writeramdisk" the
    ubifsmount command, as it is not needed.
    - erase the hole mtd partition containing u-boot
    - save environment variable "dvn_app_vers" and "dvn_boot_vers"
    only after installing the new image.
    changes requested from Marek Vasut:
    - arm, davinci: fix eldk-4.2 warnings for cam_enc_4xx board
    - get rid of run_command2 usage
    needed since patch:
    commit 009dde1955583e306cf904c864068f3acb0db499
    Author: Simon Glass
    Date: Tue Feb 14 19:59:20 2012 +0000

    Rename run_command2() to run_command()
    is now in mainline.
    - add CONFIG_SPL_LIBGENERIC_SUPPORT support
    - remove CONFIG_CMD_PXE support
    - fix warning:
    cam_enc_4xx.c: In function 'menu_handle':
    cam_enc_4xx.c:609: warning: dereferencing type-punned pointer
    will break strict-aliasing rules
    - fix error:
    arm-linux-ld: u-boot-spl: Not enough room for program headers,
    try linking with -N

    Signed-off-by: Heiko Schocher
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Fletzer Martin
    Cc: Wolfgang Denk

    Heiko Schocher
     
  • To avoid a conflict with common/cmd_bootm.c's 'images' (which is
    exposed as part of the Linux SPL series), rename the board-specific
    'images' to 'imgs'.

    Cc: Heiko Schocher
    Signed-off-by: Tom Rini
    Acked-by: Heiko Schocher
    Tested-by: Heiko Schocher

    Tom Rini
     

12 Feb, 2012

1 commit

  • - CONFIG_SYS_MMC_ENV_DEV, needed if environment on mmc
    - wait for 1 second timer in board_late_init() only, if
    timer is running.
    - add UBI/UBIFS support
    - add FIT images support
    - menu support
    - U-Boot max size now 0xa0000
    - SPL now Block 0 page 0
    - new MTD partitioning
    0x00000000 SPL
    0x00020000 UBL-Header
    0x00040000 UBL-Header
    0x00060000 UBL-Header
    0x00080000 UBoot (0xa0000(U-Boot length) + 0x60000(3 spare blocks))
    0x00180000 ENV- Variablen (1)
    0x001a0000 ENV- Variablen (2)
    0x001c0000 ENV- Variablen (reserved for Bad Block)
    0x001e0000 ENV- Variablen (reserved for Bad Block)
    0x00200000 UBI-Device

    UBI Volumes:
    „default“: contain environment-default values
    „rootfs1“: UBIFS root-fs (1); contain linux kernel image
    „rootfs2“: UBIFS root-fs (2); contain linux kernel image
    „data-ro“: UBIFS data (read only)
    „data-rw“: UBIFS data (read/write)

    - new environment variables:
    - app_reset
    (this is only passed per cmdline to linux)
    - dvn_app_vers
    string from ramdisk description contained in the
    FIT image
    - dvn_boot_vers
    string from ubootimage description contained in the
    FIT image
    - saveparms, restoreparms, restoretmpparms, savetmpparms
    helper for saving network parameter.
    - ubiargs
    set ubi kernel cmdlinargs for booting with a ubifs rootfs
    - ubi_ubi boot with reading kernel image from ubifs, and
    use a ubifs as rootfs

    Signed-off-by: Heiko Schocher
    Cc: Sandeep Paulraj
    Cc: Tom Rini
    Cc: Albert ARIBAUD
    Cc: Mike Frysinger
    Cc: Wolfgang Denk

    Heiko Schocher
     

07 Dec, 2011

1 commit


04 Nov, 2011

1 commit

  • - DM368 SOC
    - booting with spl not with UBL from TI
    - before loading u-boot from NAND into RAM, test
    the RAM with the post memory test. If error
    is found, switch all LEDs on and halt system.
    - SPI Flash
    Dataflash Typ: M25PE80
    - Ethernet DM9161BI
    - MMC
    - USB

    Signed-off-by: Heiko Schocher
    Cc: Sandeep Paulraj
    Cc: Albert ARIBAUD
    Cc: Igor Grinberg
    Signed-off-by: Sandeep Paulraj

    Heiko Schocher