01 Mar, 2018

3 commits


24 Feb, 2018

2 commits

  • With the contents of config_distro_defaults.h migrated to Kconfig,
    we can remove this header file completely

    Signed-off-by: Adam Ford

    Adam Ford
     
  • This converts the following to Kconfig:
    CONFIG_BOOTP_BOOTPATH
    CONFIG_BOOTP_DNS
    CONFIG_BOOTP_GATEWAY
    CONFIG_BOOTP_HOSTNAME
    CONFIG_BOOTP_PXE
    CONFIG_BOOTP_SUBNETMASK
    CONFIG_CMDLINE_EDITING
    CONFIG_AUTO_COMPLETE
    CONFIG_SYS_LONGHELP
    CONFIG_SUPPORT_RAW_INITRD
    CONFIG_ENV_VARS_UBOOT_CONFIG

    Signed-off-by: Adam Ford
    [trini: Re-run the migration]
    Signed-off-by: Tom Rini

    Adam Ford
     

15 Feb, 2018

1 commit

  • Migrate the option CONFIG_SPL_FRAMEWORK and make this gate most of the
    current set of options we have in Kconfig. We will need to have some
    options available for SPL and !SPL_FRAMEWORK so this is important. In a
    few cases we re-order existing options so that we have less escapes from
    the SPL_FRAMEWORK guard.

    Signed-off-by: Tom Rini

    Tom Rini
     

02 Feb, 2018

1 commit


30 Jan, 2018

3 commits


15 Dec, 2017

3 commits

  • This patch is enabling support for SPL QSPI boot.

    First of all it is necessary to generate atf-spi.ub which is different
    format than atf-uboot.ub (this can be made as legacy image too)

    ADDR=`arm-xilinx-linux-gnueabi-readelf -a bl31.elf | grep "Entry point
    address" | cut -d ':' -f 2 | sed -e 's/^[ \t]*//'`
    aarch64-linux-gnu-objcopy -O binary bl31.elf bl31.bin
    ./tools/mkimage -f auto -A arm64 -T firmware -C none -O u-boot -a $ADDR
    -e $ADDR -n "atf1" -E -b arch/arm/dts/zynqmp-zcu102.dtb -d bl31.bin
    atf-uboot.ub
    ./tools/mkimage -A arm64 -T firmware -C none -O u-boot -a $ADDR -e $ADDR
    -n "atf-for-qspi" -E -d bl31.bin atf-spi.ub

    This patch is using this QSPI layout with offsets:
    0 boot.bin
    512k atf-ub
    640k u-boot.bin
    1280k u-boot.img

    Which corresponding by writing these images(read from MMC)
    mmcinfo
    sf probe
    load mmc 0 10000000 boot.bin
    sf erase 0 +$filesize
    sf write 10000000 0 $filesize
    load mmc 0 10000000 atf-spi.ub
    sf erase 0x80000 +$filesize
    sf write 10000000 0x80000 $filesize
    load mmc 0 10000000 u-boot.bin
    sf erase 0xa0000 +$filesize
    sf write 10000000 0xa0000 $filesize
    load mmc 0 10000000 u-boot.img
    sf erase 0x140000 +$filesize
    sf write 10000000 0x140000 $filesize

    For testing u-boot running in EL3 you can break atf-spi.ub like this:
    sf probe
    sf erase 0x80000 +4

    Then u-boot.img is executed.

    Signed-off-by: Michal Simek

    Michal Simek
     
  • This was caused by: "fs/fat: Reduce stack usage"
    (sha1:2460098cffacd18729262e3ed36656e6943783ed) which converted
    fat code to use malloc. But simple malloc is not freeing space
    that's why full malloc implementation is needed.
    Malloc space is added to RAM.

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Do not perform reset when panic happens because in the next reset
    panic happens again and logs are overflood by the same errors.
    This can be enabled by default and reset can be performed via watchdog.

    Signed-off-by: Michal Simek

    Michal Simek
     

13 Dec, 2017

2 commits


28 Nov, 2017

1 commit


27 Oct, 2017

1 commit


04 Oct, 2017

1 commit


04 Sep, 2017

1 commit


02 Sep, 2017

1 commit


12 Aug, 2017

1 commit


09 Aug, 2017

1 commit


01 Aug, 2017

1 commit

  • Migrate all remaining instances of CMD_NAND, CMD_NAND_TRIMFFS
    CMD_NAND_LOCK_UNLOCK and CMD_NAND_TORTURE from the headers into the
    defconfig files.

    Tested-by: Adam Ford
    Signed-off-by: Tom Rini
    Reviewed-by: Bin Meng

    Tom Rini
     

31 Jul, 2017

1 commit


29 Jul, 2017

1 commit


26 Jul, 2017

2 commits

  • This converts the following to Kconfig:
    CONFIG_ENV_IS_IN_FAT

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This converts the following to Kconfig:
    CONFIG_ENV_IS_IN_MMC
    CONFIG_ENV_IS_IN_NAND
    CONFIG_ENV_IS_IN_UBI
    CONFIG_ENV_IS_NOWHERE

    In fact this already exists for sunxi as a 'choice' config. However not
    all the choices are available in Kconfig yet so we cannot use that. It
    would lead to more than one option being set.

    In addition, one purpose of this series is to allow the environment to be
    stored in more than one place. So the existing choice is converted to a
    normal config allowing each option to be set independently.

    There are not many opportunities for Kconfig updates to reduce the size of
    this patch. This was tested with

    ./tools/moveconfig.py -i CONFIG_ENV_IS_IN_MMC

    And then manual updates. This is because for CHAIN_OF_TRUST boards they
    can only have ENV_IS_NOWHERE set, so we enforce that via Kconfig logic
    now.

    Signed-off-by: Simon Glass
    Signed-off-by: Tom Rini

    Simon Glass
     

12 Jul, 2017

1 commit


20 Jun, 2017

2 commits


19 Jun, 2017

1 commit


04 Jun, 2017

1 commit

  • Now that these symbols are in Kconfig, migrate all users. Use imply on
    a number of platforms that default to having this enabled. As part of
    this we must migrate some straglers for CMD_FAT and DOS_PARTITION.

    Signed-off-by: Tom Rini

    Tom Rini
     

22 May, 2017

3 commits


20 Mar, 2017

1 commit


13 Feb, 2017

1 commit

  • We repeated partial moves for CONFIG_SYS_NO_FLASH, but this is
    not completed. Finish this work by the tool.

    During this move, let's rename it to CONFIG_MTD_NOR_FLASH.
    Actually, we have more instances of "#ifndef CONFIG_SYS_NO_FLASH"
    than those of "#ifdef CONFIG_SYS_NO_FLASH". Flipping the logic will
    make the code more readable. Besides, negative meaning symbols do
    not fit in obj-$(CONFIG_...) style Makefiles.

    This commit was created as follows:

    [1] Edit "default n" to "default y" in the config entry in
    common/Kconfig.

    [2] Run "tools/moveconfig.py -y -r HEAD SYS_NO_FLASH"

    [3] Rename the instances in defconfigs by the following:
    find . -path './configs/*_defconfig' | xargs sed -i \
    -e '/CONFIG_SYS_NO_FLASH=y/d' \
    -e 's/# CONFIG_SYS_NO_FLASH is not set/CONFIG_MTD_NOR_FLASH=y/'

    [4] Change the conditionals by the following:
    find . -name '*.[ch]' | xargs sed -i \
    -e 's/ifndef CONFIG_SYS_NO_FLASH/ifdef CONFIG_MTD_NOR_FLASH/' \
    -e 's/ifdef CONFIG_SYS_NO_FLASH/ifndef CONFIG_MTD_NOR_FLASH/' \
    -e 's/!defined(CONFIG_SYS_NO_FLASH)/defined(CONFIG_MTD_NOR_FLASH)/' \
    -e 's/defined(CONFIG_SYS_NO_FLASH)/!defined(CONFIG_MTD_NOR_FLASH)/'

    [5] Modify the following manually
    - Rename the rest of instances
    - Remove the description from README
    - Create the new Kconfig entry in drivers/mtd/Kconfig
    - Remove the old Kconfig entry from common/Kconfig
    - Remove the garbage comments from include/configs/*.h

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

09 Feb, 2017

1 commit

  • CONFIG_CMD_ZIP is not defined by any board. I am moving
    CONFIG_CMD_UNZIP to defconfig files except UniPhier SoC family.

    I am the maintainer of UniPhier platform, so I know "select CMD_UNZIP"
    is better for this platform.

    Signed-off-by: Masahiro Yamada
    Acked-by: Michal Simek
    Acked-by: Stefan Roese
    Acked-by: Ryan Harkin
    Tested-by: Ryan Harkin

    Masahiro Yamada
     

31 Jan, 2017

2 commits

  • Make the naming scheme consistent; all SDHCI-base drivers prefixed
    with CONFIG_MMC_SDHCI_.

    While we are here, add "depends on ARCH_ZYNQ || ARCH_ZYNQMP".

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Now, CONFIG_GENERIC_MMC seems equivalent to CONFIG_MMC.

    Let's create an entry for "config GENERIC_MMC" with "default MMC",
    then convert all macro defines in headers to Kconfig. Almost all
    of the defines will go away.

    I see only two exceptions:
    configs/blanche_defconfig
    configs/sandbox_noblk_defconfig

    They define CONFIG_GENERIC_MMC, but not CONFIG_MMC. Something
    might be wrong with these two boards, so should be checked later.

    Anyway, this is the output of the moveconfig tool.

    This commit was created as follows:

    [1] create a config entry in drivers/mmc/Kconfig

    [2] tools/moveconfig.py -r HEAD GENERIC_MMC

    [3] manual clean-up of garbage comments in doc/README.* and
    include/configs/*.h

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Tom Rini

    Masahiro Yamada