08 Feb, 2019

1 commit


29 Jan, 2019

5 commits


19 Jan, 2019

1 commit

  • The bounce buffer is used by a few drivers (most of the MMC drivers)
    to overcome limitations in their respective DMA implementation.

    This moves the configuration to Kconfig and makes it user-selectable
    (even though it will be a required feature to make those drivers
    work): the expected usage is for drivers depending on this to 'select'
    it unconditionally from their respective Kconfig (see follow-up
    patches).

    This commit includes a full migration using moveconfig.py to ensure
    that each commit compiles. To ensure bisectability we update
    dependencies of various drivers to now select BOUNCE_BUFFER when needed.

    [trini: Squash all patches to ensure bisectability]
    Signed-off-by: Tom Rini
    Signed-off-by: Philipp Tomsich
    Reviewed-by: Otavio Salvador [dw_mmc portion]
    Reviewed-by: Fabio Estevam [mxsmmc portion]
    Reviewed-by: Simon Glass [tegra portion]

    Philipp Tomsich
     

17 Dec, 2018

1 commit


14 Nov, 2018

1 commit


22 Oct, 2018

1 commit

  • We may have, the not yet considered, scenario where OPTEE is loaded before
    u-boot and *not* by u-boot, e.g, the boot flow using the ARM Trusted
    Firmware (ATF), where in the 32bit flow is:
    BootRom->ATF(BL2)->Optee(BL32)->u-boot(BL33)

    In this case we need still to reserve the memory used by optee, to avoid
    for example to realocate ourself to the same address at the end of DRAM.
    So, we change here the dependencies on the OPTEE lib and we set the default
    size and base of TZRAM to zero.

    Signed-off-by: Rui Miguel Silva
    Signed-off-by: Bryan O'Donoghue
    Cc: Fabio Estevam
    Cc: Ryan Harkin
    Cc: u-boot@lists.denx.de

    Rui Miguel Silva
     

17 Aug, 2018

1 commit

  • We have the following cases:
    - CONFIG_NR_DRAM_BANKS was defined, migrate normally
    - CONFIG_NR_DRAM_BANKS_MAX was defined and then used for
    CONFIG_NR_DRAM_BANKS after a check, just migrate it over now.
    - CONFIG_NR_DRAM_BANKS was very oddly defined on p2771-0000-* (to 1024 +
    2), set this to 8.

    Signed-off-by: Tom Rini

    Tom Rini
     

08 Aug, 2018

1 commit


04 Jun, 2018

1 commit


26 Apr, 2018

7 commits

  • Booting the following image with tip-of-tree we get a CAAM DECO error (and
    subsequent crash due to a kernel bug in 4.1).

    http://freescale.github.io/#download -> BoardsWaRPboard community - WaRP -
    Wearable Reference PlatformFSL Community BSP 2.3fsl-image-multimediawayland

    Image: fsl-image-multimedia-imx7s-warp-20180323-90.rootfs.sdcard

    Error:
    caam 30900000.caam: Entropy delay = 3200
    caam 30900000.caam: failed to acquire DECO 0

    caam 30900000.caam: failed to acquire DECO 0
    caam 30900000.caam: Entropy delay = 12400
    caam 30900000.caam: failed to acquire DECO 0
    caam 30900000.caam: failed to instantiate RNG
    ------------[ cut here ]------------
    WARNING: CPU: 0 PID: 1 at
    /home/jenkins/workspace/fsl-community-bsp-pyro_xwayland_2/build/tmp/work-shared/imx7s-warp/kernel-source/mm/vmalloc.c:1465
    caam_remove+0x6)
    Trying to vfree() nonexistent vm area (88047000)
    Modules linked in:
    CPU: 0 PID: 1 Comm: swapper/0 Not tainted
    4.1.36-4.1-1.0.x-imx-warp7+ga543d1b #1
    Hardware name: Freescale i.MX7 Dual (Device Tree)
    [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
    [] (show_stack) from [] (dump_stack+0x78/0x8c)
    [] (dump_stack) from []
    (warn_slowpath_common+0x80/0xb0)
    [] (warn_slowpath_common) from []
    (warn_slowpath_fmt+0x30/0x40)
    [] (warn_slowpath_fmt) from [] (caam_remove+0x6c/0x3f4)
    [] (caam_remove) from [] (caam_probe+0x874/0xfa8)
    [] (caam_probe) from [] (platform_drv_probe+0x48/0xa4)
    [] (platform_drv_probe) from []
    (driver_probe_device+0x174/0x2a8)
    [] (driver_probe_device) from []
    (__driver_attach+0x8c/0x90)
    [] (__driver_attach) from []
    (bus_for_each_dev+0x68/0x9c)
    [] (bus_for_each_dev) from []
    (bus_add_driver+0xf4/0x1e8)
    [] (bus_add_driver) from [] (driver_register+0x78/0xf4)
    [] (driver_register) from []
    (do_one_initcall+0x8c/0x1d0)
    [] (do_one_initcall) from []
    (kernel_init_freeable+0x140/0x1d0)
    [] (kernel_init_freeable) from []
    (kernel_init+0x8/0xe8)
    [] (kernel_init) from [] (ret_from_fork+0x14/0x2c)
    ---[ end trace d5f941204ed8cb28 ]---
    caam: probe of 30900000.caam failed with error -11
    Unable to handle kernel NULL pointer dereference at virtual address
    00000004
    pgd = 80004000
    [00000004] *pgd=00000000
    Internal error: Oops: 805 [#1] PREEMPT SMP ARM

    [] (caam_sm_startup) from [] (caam_sm_init+0x50/0x58)
    [] (caam_sm_init) from [] (do_one_initcall+0x8c/0x1d0)
    [] (do_one_initcall) from []
    (kernel_init_freeable+0x140/0x1d0)
    [] (kernel_init_freeable) from []
    (kernel_init+0x8/0xe8)
    [] (kernel_init) from [] (ret_from_fork+0x14/0x2c)
    Code: e59d300c e2832010 e5843008 e5834068 (e58a2004)
    ---[ end trace d5f941204ed8cb29 ]---
    Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

    Fix: Enable the CAAM correctly by setting CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
    in the upstream defconfig.

    Signed-off-by: Bryan O'Donoghue
    Cc: Fabio Estevam
    Cc: Breno Lima
    Reviewed-by: Fabio Estevam
    Tested-by: Breno Lima

    Bryan O'Donoghue
     
  • setexpr allows us to do arithmetic for env variables - something that is
    both useful and required when doing HAB authentication without hard-coding
    HAB load addresses.

    This patch enables CMD_SETEXPR for the WaRP7 defconfig.

    Signed-off-by: Bryan O'Donoghue
    Tested-by: Breno Lima
    Reviewed-by: Fabio Estevam

    Bryan O'Donoghue
     
  • This patch enables CONFIG_BOOTM_TEE. Once enabled its possible to
    chain-load Linux through OPTEE.

    Loading kernel to 0x80800000
    => run loadimage

    Load FDT to 0x83000000
    => run loadfdt

    Load OPTEE to 0x84000000
    => fatload mmc 0:5 0x84000000 /lib/firmware/uTee.optee

    Then chain-load to the kernel via OPTEE

    => bootm 0x84000000 - 0x83000000

    Image Name:
    Image Type: ARM Trusted Execution Environment Kernel Image (uncompressed)
    Data Size: 249844 Bytes = 244 KiB
    Load Address: 9dffffe4
    Entry Point: 9e000000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK

    Signed-off-by: Bryan O'Donoghue
    Tested-by: Breno Lima
    Reviewed-by: Fabio Estevam

    Bryan O'Donoghue
     
  • Various function associated with booting the WaRP7 in High Assurance Boot
    (HAB) mode are enabled by switching on CONFIG_SECURE_BOOT.

    This patch enables CONFIG_SECURE_BOOT for the WaRP7 defconfig.

    Signed-off-by: Bryan O'Donoghue
    Tested-by: Breno Lima
    Reviewed-by: Fabio Estevam

    Bryan O'Donoghue
     
  • In order to sign images with the IMX code-signing-tool (CST) we need to
    know the load address of a given image. The best way to derive this load
    address is to make it into a define - so that u-boot.cfg contains the
    address - which we can then parse when generating the IMX CST headers.

    This patch makes the OPTEE_LOAD_ADDR available via u-boot.cfg for further
    parsing by external tools.

    Signed-off-by: Bryan O'Donoghue
    Reviewed-by: Ryan Harkin
    Tested-by: Breno Lima
    Reviewed-by: Fabio Estevam

    Bryan O'Donoghue
     
  • Requires setting CONFIG_OPTEE=y and setting an OPTEE TrustZone DRAM base in
    include/configs/warp7.h.

    Signed-off-by: Bryan O'Donoghue
    Tested-by: Breno Lima
    Reviewed-by: Fabio Estevam

    Bryan O'Donoghue
     
  • This enable generic file system commands (load, ls).

    Signed-off-by: Pierre-Jean TEXIER
    Reviewed-by: Fabio Estevam
    Acked-by: Bryan O'Donoghue

    Pierre-Jean TEXIER
     

09 Apr, 2018

1 commit


11 Feb, 2018

1 commit

  • On the NIOS2 and Xtensa architectures, we do not have
    CONFIG_SYS_TEXT_BASE set. This is a strict migration of the current
    values into the defconfig and removing them from the headers.

    I did not attempt to add more default values in and for now will leave
    that to maintainers.

    Signed-off-by: Tom Rini

    Tom Rini
     

11 Oct, 2017

1 commit

  • Having this as a 'default y' is rather annoying because it doesn't
    actually compile unless other options are defined in the board header:

    ../cmd/bootm.c: In function 'do_imls_nor':
    ../cmd/bootm.c:330:7: error: 'CONFIG_SYS_MAX_FLASH_BANKS' undeclared (first use in this function); did you mean 'CONFIG_SYS_MAX_FLASH_SECT'?
    i < CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) {

    Make it 'default n' so people who develop new boards that start from a
    blank defconfig have one less compilation failure to debug.

    Signed-off-by: Tuomas Tynkkynen

    Tuomas Tynkkynen
     

04 Oct, 2017

4 commits


15 Aug, 2017

1 commit


30 Apr, 2017

1 commit


28 Jan, 2017

1 commit


24 Jan, 2017

1 commit


22 Jan, 2017

1 commit


03 Jan, 2017

1 commit


27 Sep, 2016

1 commit

  • Introduce a hidden USB_FUNCTION_DFU Kconfig option and select it for
    CMD_DFU (as we must have the DFU command enabled to do anything DFU).
    Make all of the entries in drivers/dfu/Kconfig depend on CMD_DFU and add
    options for all of the back end choices that DFU can make use of.

    Cc: Lukasz Majewski
    Signed-off-by: Tom Rini
    Acked-by: Lukasz Majewski

    Tom Rini
     

10 Sep, 2016

1 commit


09 Sep, 2016

1 commit


28 Jul, 2016

1 commit


20 Jul, 2016

3 commits