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
     

07 Dec, 2017

1 commit

  • Add fall back option, to boot from NOR/QSPI/SD for LS1043, LS1046,
    LS1021 in case of distro boot failure.

    For LS1046, add kernel validation in case of secure boot in sd_bootcmd
    and qspi_bootcmd. For LS1043 and LS1021, add kernel validation in case
    of secure boot in sd_bootcmd, qspi_bootcmdand nor_bootcmd.

    Signed-off-by: Vinitha Pillai
    Reviewed-by: York Sun

    Vinitha Pillai-B57223
     

16 Nov, 2017

1 commit


06 Nov, 2017

1 commit


27 Oct, 2017

1 commit


09 Oct, 2017

1 commit

  • Due to a conflict with recent Primary Protected Application (PPA),
    PPA cannot be loaded for SPL stage, falcon boot is not enabled by
    default. With compatible PPA image, to enable falcon boot, activate
    these Kconfig options in defconfig
    CONFIG_SPL_FIT=y
    CONFIG_SPL_FSL_LS_PPA=y
    CONFIG_SPL_GZIP=y
    CONFIG_SPL_LOAD_FIT=y
    CONFIG_SPL_OS_BOOT=y
    CONFIG_SPL_OF_LIBFDT=y

    Because environment variables are not avaiable during SPL stage for
    SD boot, set "boot_os=y" as default.

    Signed-off-by: York Sun
    Reviewed-by: Simon Glass

    York Sun
     

23 Sep, 2017

1 commit

  • Current u-boot disables IFC support for SD boot on all ls1043a
    boards. Actually IFC only conflicts with QSPI on ls1043a hardware.
    Only when QSPI is used, IFC should be disabled. Otherwise,
    the u-boot with ls1043aqds_sdcard_ifc_defconfig would not work.

    Signed-off-by: Yangbo Lu
    Reviewed-by: York Sun

    Yangbo Lu
     

04 Sep, 2017

2 commits

  • This commit removes definitions of CONFIG_SYS_BARGSIZE defined to be
    equal to CONFIG_SYS_CBSIZE in numerous configuration files.

    We remove such definitions in two situations:

    - CONFIG_SYS_CBSIZE is otherwise not defined in the board
    configuration file, which means the default value of
    CONFIG_SYS_CBSIZE == 256 applies. In this case, the default value
    of CONFIG_SYS_BARGSIZE == 512 (common/image.c) is suitable, as it is
    larger.

    - CONFIG_SYS_CBSIZE is defined in the board configuration file, but
    to a value equal or less than 512. In this case, the default value
    of CONFIG_SYS_BARGSIZE == 512 (common.image.c) is suitable, as it
    is equal or larger.

    Signed-off-by: Thomas Petazzoni
    Reviewed-by: Tom Rini

    Thomas Petazzoni
     
  • Now that the fallback value of CONFIG_SYS_PBSIZE in
    include/config_fallbacks.h has been adjusted, remove its definition
    from a large number of board configuration files.

    Signed-off-by: Thomas Petazzoni
    Reviewed-by: Tom Rini

    Thomas Petazzoni
     

15 Aug, 2017

1 commit


13 Aug, 2017

1 commit


12 Aug, 2017

1 commit


01 Aug, 2017

2 commits

  • Enable validation of boot.scr script prior to its execution dependent
    on "secureboot" flag in environment. Disable fall back option to
    nor/qspi boot in case of secure boot. Also enable "secureboot=y"
    flag in environment for ARM based platforms instead of bootcmd.

    Signed-off-by: Sumit Garg
    Tested-by: Vinitha Pillai
    Reviewed-by: York Sun

    Sumit Garg
     
  • Include common config_distro_defaults.h and config_distro_bootcmd.h
    for u-boot enviroments to support automatical distro boot which
    scan boot.scr from external storage devices(e.g. SD/USB/SATA/SCSI disk)
    and execute autoboot script. Tested on ls1043ardb with automatically
    boot Ubuntu from SD card or USB disk, if it fails to detect external
    storage disk, fall back to nor/qspi boot.

    Signed-off-by: Shengzhou Liu
    Reviewed-by: York Sun

    Shengzhou Liu
     

06 Jun, 2017

1 commit


02 Jun, 2017

1 commit


26 May, 2017

1 commit


24 May, 2017

1 commit


23 May, 2017

1 commit


22 May, 2017

2 commits

  • This option is not used in U-Boot. Drop it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Commit 94e3c8c4fd7b ("crypto/fsl - Add progressive hashing support
    using hardware acceleration.") created entries for CONFIG_SHA1,
    CONFIG_SHA256, CONFIG_SHA_HW_ACCEL, and CONFIG_SHA_PROG_HW_ACCEL.
    However, no defconfig has migrated to it. Complete the move by first
    adding additional logic to various Kconfig files to select this when
    required and then use the moveconfig tool. In many cases we can select
    these because they are required to implement other drivers. We also
    correct how we include the various hashing algorithms in SPL.

    This commit was generated as follows (after Kconfig additions):

    [1] tools/moveconfig.py -y SHA1 SHA256 SHA_HW_ACCEL
    [2] tools/moveconfig.py -y SHA_PROG_HW_ACCEL

    Note:
    We cannot move SHA_HW_ACCEL and SHA_PROG_HW_ACCEL simultaneously
    because there is dependency between them.

    Cc: Poonam Aggrwal
    Cc: Naveen Burmi
    Cc: Po Liu
    Cc: Shengzhou Liu
    Cc: Priyanka Jain
    Cc: Shaohui Xie
    Cc: Chunhe Lan
    Cc: Chander Kashyap
    Cc: Steve Rae
    Cc: Dirk Eibach
    Cc: Feng Li
    Cc: Alison Wang
    Cc: Sumit Garg
    Cc: Mingkai Hu
    Cc: York Sun
    Cc: Prabhakar Kushwaha
    Cc: Jaehoon Chung
    Cc: Akshay Saraswat
    Cc: Heiko Schocher
    Cc: Jagan Teki
    Signed-off-by: Tom Rini
    Reviewed-by: Simon Glass
    Signed-off-by: Tom Rini

    Tom Rini
     

18 Apr, 2017

4 commits

  • Use CONFIG_ARCH_LS1043A instead.

    Signed-off-by: York Sun

    York Sun
     
  • Add NAND secure boot target for ls1043ardb.

    - Change the u-boot size defined by a macro for copying the main
    U-Boot by SPL to also include the u-boot Secure Boot header size as
    header is appended to u-boot image. So header will also be copied
    from SD to DDR.
    - MACRO for CONFIG_BOOTSCRIPT_COPY_RAM is enabled to copy Bootscript
    from NAND to DDR. Offsets for Bootscript on NAND and DDR have been
    also defined.

    Signed-off-by: Vinitha Pillai
    Signed-off-by: Sumit Garg
    Signed-off-by: Ruchika Gupta
    Reviewed-by: York Sun

    Ruchika Gupta
     
  • - Add SD secure boot target for ls1043ardb.
    - Implement FSL_LSCH2 specific spl_board_init() to setup CAAM stream
    ID and corresponding stream ID in SMMU.
    - Change the u-boot size defined by a macro for copying the main
    U-Boot by SPL to also include the u-boot Secure Boot header size as
    header is appended to u-boot image. So header will also be copied
    from SD to DDR.
    - CONFIG_MAX_SPL_SIZE is limited to 90KB. SPL is copied to OCRAM
    (128K) where 32K are reserved for use by boot ROM and 6K for secure
    boto header.
    - Error messages during SPL boot are limited to error code numbers
    instead of strings to reduce the size of SPL image.

    Signed-off-by: Vinitha Pillai-B57223
    Signed-off-by: Sumit Garg
    Signed-off-by: Ruchika Gupta
    Reviewed-by: York Sun

    Ruchika Gupta
     
  • Using changes in this patch we were able to reduce approx 10k
    size of u-boot-spl.bin image. Following is breif description of
    changes to reduce SPL size:
    1. Changes in board/freescale/ls1043ardb/Makefile to remove
    compilation of eth.c and cpld.c in case of SPL build.
    2. Changes in board/freescale/ls1043ardb/ls1043ardb.c to keep
    only ddr_init and board_early_init_f funcations in case of SPL
    build.
    3. Changes in ls1043a_common.h & ls1043ardb.h to remove driver
    specific macros due to which static data was being compiled in
    case of SPL build.
    4. Disable MMC driver from bieng compiled in case of SPL NAND
    build and NAND driver from bieng compiled in case of SPL MMC build.
    5. Remove I2C driver support from SPL in case of LS1043ARDB.

    Signed-off-by: Vinitha Pillai
    Signed-off-by: Sumit Garg
    Reviewed-by: York Sun

    Sumit Garg
     

29 Mar, 2017

2 commits


20 Mar, 2017

1 commit


10 Mar, 2017

1 commit

  • In some cases this is absolutely required, so select this for some secure
    features. This also requires migration of RSA_FREESCALE_EXP

    Cc: Ruchika Gupta
    Cc: Poonam Aggrwal
    Cc: Naveen Burmi
    Cc: Po Liu
    Cc: Shengzhou Liu
    Cc: Priyanka Jain
    Cc: Sumit Garg
    Cc: Shaohui Xie
    Cc: Chunhe Lan
    Cc: Feng Li
    Cc: Alison Wang
    Cc: Mingkai Hu
    Cc: York Sun
    Cc: Saksham Jain
    Cc: Prabhakar Kushwaha
    Signed-off-by: Tom Rini

    Tom Rini
     

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
     

31 Jan, 2017

1 commit

  • 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
     

28 Jan, 2017

1 commit


26 Jan, 2017

2 commits


22 Jan, 2017

1 commit


19 Jan, 2017

3 commits

  • Up to now, there are 3 kind of SoCs under Layerscape Chassis 2,
    like LS1043A, LS1046A and LS1012A. But the clocks tree has a
    lot of differences, for instance, the IP modules have different
    dividers to derive its clock from Platform PLL. And the core
    cluster PLL and platform PLL maybe have different reference
    clocks, such as LS1012A. Another problem is which clock/PLL
    should be described by sys_info->freq_systembus, it is confused
    in Layerscape Chissis 2.

    This patch is to bind the sys_info->freq_systembus to the Platform
    PLL, and handle the different divider of IP modules separately
    between different SoCs, and separate reference clocks of core
    cluster PLL and platform PLL.

    Signed-off-by: Hou Zhiqiang
    Reviewed-by: York Sun

    Hou Zhiqiang
     
  • Signed-off-by: Hou Zhiqiang
    Reviewed-by: Simon Glass
    Reviewed-by: York Sun

    Hou Zhiqiang
     
  • The patch enables PCIe and E1000 in ls1043a defconfigs and
    removes unused PCIe related macro defines.

    Signed-off-by: Minghuan Lian
    Signed-off-by: Hou Zhiqiang
    Reviewed-by: York Sun

    Minghuan Lian