Re: [U-Boot] "Kbuild:43: recipe for target 'lib/asm-offsets.s' failed"

2018-10-27 Thread Chris Packham
On Sun, 28 Oct 2018, 2:29 PM R White, wrote: > *People,* > > > *Can anyone tell me what I am doing wrong? Am I missing something?* > > > *I have even reloaded the machine, everything. * > *Rick* > > == > > ricky

[U-Boot] "Kbuild:43: recipe for target 'lib/asm-offsets.s' failed"

2018-10-27 Thread R White
*People,* *Can anyone tell me what I am doing wrong? Am I missing something?* *I have even reloaded the machine, everything. * *Rick* == ricky@debian:/embedded/u-boot-2017.09$ sudo apt-get install device-tree

Re: [U-Boot] [PATCH v3 00/19] DM_I2C_COMPAT removal for all ti platforms

2018-10-27 Thread Adam Ford
On Mon, Oct 22, 2018 at 9:13 AM Jean-Jacques Hiblot wrote: > > This series remove the usage of the DM_I2C_COMPAT option for all the ti > platforms. It also takes this opportunity to not disable DM_I2C in the SPL. > > There are a couples of issues to fix: > - CMD_EEPROM does not support the DM API.

Re: [U-Boot] [PATCH v6 34/34] imx: add i.MX8QXP MEK board support

2018-10-27 Thread Fabio Estevam
Hi Tim, On Fri, Oct 26, 2018 at 2:18 PM Tim Harvey wrote: > Can you point me to the NXP DDR tool for IMX8? I'm just getting > started with the IMX8M and haven't run into it yet. DDR calibration > was a huge pain for us for IMX6. You can find it here: https://community.nxp.com/docs/DOC-340179 __

Re: [U-Boot] [PATCH] sunxi: lower the DDR frequency of Orange Pi Prime

2018-10-27 Thread Icenowy Zheng
在 2017-10-31二的 09:09 +0100,Maxime Ripard写道: > On Tue, Oct 31, 2017 at 03:56:08PM +0800, Icenowy Zheng wrote: > > When I use Orange Pi Prime to do some heavy compliation tasks, the > > gcc > > compiler sometimes mysteriously segfaults, and memtester catches > > memory > > error. As the lima-memteste

[U-Boot] [PATCH v5 23/27] armv8: ls1043aqds: Add TFABOOT support

2018-10-27 Thread Rajesh Bhagat
TFABOOT support includes: - ls1043aqds_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg Signed-off-by: Vinitha V Pillai Signed-off-by: Rajesh Bhagat --- Change in v5: None

[U-Boot] [PATCH v5 22/27] armv8: ls1043ardb: Add TFABOOT support

2018-10-27 Thread Rajesh Bhagat
TFABOOT support includes: - ls1043ardb_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - FMAN and QE address changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg Signed-off-by: Vinitha V Pillai Signed-off-by: Rajesh

[U-Boot] [PATCH v5 25/27] armv8: ls1012aqds: fix secure boot compilation

2018-10-27 Thread Rajesh Bhagat
Includes environment.h file in ls1012aqds.c Also, enables pfe validation Signed-off-by: Vinitha V Pillai --- Change in v5: None Change in v4: - Changed order to solve compilation error Change in v3: None Change in v2: None board/freescale/ls1012aqds/Kconfig | 10 ++ board/fre

[U-Boot] [PATCH v5 26/27] armv8: ls1012aqds: Add TFABOOT support

2018-10-27 Thread Rajesh Bhagat
TFABOOT support includes: - ls1012aqds_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Rajesh Bhagat Signed-off-by: Vinitha V Pillai Signed-off-by: Pankit Garg --- Change in v5: None Change in

[U-Boot] [PATCH v5 13/27] armv8: layerscape: skip OCRAM init for TFABOOT

2018-10-27 Thread Rajesh Bhagat
OCRAM initialization is performed by TFA, Hence skipped from u-boot. Signed-off-by: Ruchika Gupta --- Change in v5: None Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ar

[U-Boot] [PATCH v5 11/27] armv8: fsl-layerscape: bootcmd identification for TFABOOT

2018-10-27 Thread Rajesh Bhagat
From: Pankit Garg Adds bootcmd identificaton on basis on boot source, valid in TFABOOT configuration. Signed-off-by: Rajesh Bhagat Signed-off-by: Pankit Garg --- Change in v5: None Change in v4: None Change in v3: - Merged secure boot bootcmd changes Change in v2: None arch/arm/cpu/armv

[U-Boot] [PATCH v5 24/27] armv8: ls1012ardb: Add TFABOOT support

2018-10-27 Thread Rajesh Bhagat
TFABOOT support includes: - ls1012ardb_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - define BOOTCOMMAND for TFABOOT - enable PFE validation for secure boot Signed-off-by: Rajesh Bhagat Signed-off-by: Vinitha V Pillai Signed-off-by: Pankit

[U-Boot] [PATCH v5 27/27] armv8: ls1012afrx: Add TFABOOT support

2018-10-27 Thread Rajesh Bhagat
TFABOOT support includes: - ls1012a2g5rdb/ls1012afrdm/ls1012afrwy_tfa_defconfig to be loaded by trusted firmware - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- Change in v5: None board/freescale/ls1012afrdm/MAINTAINERS | 3 ++ board/free

[U-Boot] [PATCH v5 16/27] armv8: sec_firmware: return job ring status as true in TFABOOT

2018-10-27 Thread Rajesh Bhagat
From: Pankit Garg Returns job ring status as true in TFABOOT, as one job ring is always reserved. Signed-off-by: Ruchika Gupta Signed-off-by: Pankit Garg --- Change in v5: None Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/sec_firmware.c | 4 1 file changed

[U-Boot] [PATCH v5 19/27] armv8: fsl-layerscape: add support of MC framework for TFA

2018-10-27 Thread Rajesh Bhagat
From: Pankit Garg Add support of MC framework for TFA Make MC framework independent of boot source. Signed-off-by: Rajesh Bhagat Signed-off-by: Pankit Garg --- Change in v5: None Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/fsl-layerscape/soc.c | 50 +++

[U-Boot] [PATCH v5 12/27] armv8: layerscape: add SMC calls for DDR size and bank info

2018-10-27 Thread Rajesh Bhagat
Adds SMC calls for getting DDR size and bank info for TFABOOT. Signed-off-by: Rajesh Bhagat Signed-off-by: Pankit Garg --- Change in v5: None Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 84 +++ .../arm/include/asm/arc

[U-Boot] [PATCH v5 10/27] armv8: layerscape: remove EL3 specific erratas for TFABOOT

2018-10-27 Thread Rajesh Bhagat
Removes EL3 specific erratas for TFABOOT, And now taken care in TFA. ARM_ERRATA_855873, SYS_FSL_ERRATUM_A008850, SYS_FSL_ERRATUM_A008511, SYS_FSL_ERRATUM_A008336, SYS_FSL_ERRATUM_A009663, SYS_FSL_ERRATUM_A009803 SYS_FSL_ERRATUM_A009942, SYS_FSL_ERRATUM_A010165 Signed-off-by: Rajesh Bhagat --- Ch

[U-Boot] [PATCH v5 17/27] net: fm: add TFABOOT support

2018-10-27 Thread Rajesh Bhagat
Adds TFABOOT support and allows to pick FMAN firmware on basis of boot source. Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- Change in v5: - Added CONFIG_ARM64 flag for includes in fm driver Change in v4: None Change in v3: None Change in v2:

[U-Boot] [PATCH v5 15/27] armv8: sec_firmware: change el2_to_aarch32 SMC ID

2018-10-27 Thread Rajesh Bhagat
Changes the el2_to_aarch32 SMC ID from 0xc000ff04 to 0xc200ff17, it is applicable to both TFA and non-TFA boot. Signed-off-by: Rajesh Bhagat --- Change in v5: None Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/sec_firmware_asm.S | 2 +- 1 file changed, 1 insertion(

[U-Boot] [PATCH v5 18/27] drivers: qe: add TFABOOT support

2018-10-27 Thread Rajesh Bhagat
Adds TFABOOT support and allows to pick QE firmware on basis of boot source. Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- Change in v5: - Added CONFIG_ARM64 flag for includes in qe driver Change in v4: None

[U-Boot] [PATCH v5 21/27] armv8: ls1046aqds: Add TFABOOT support

2018-10-27 Thread Rajesh Bhagat
TFABOOT support includes: - ls1046aqds_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - FMAN address changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg Signed-off-by: Vinitha V Pillai Signed-off-by: Rajesh Bhagat

[U-Boot] [PATCH v5 07/27] drivers: ifc: dynamic chipselect mapping support

2018-10-27 Thread Rajesh Bhagat
From: Pankit Garg IFC driver changes to implement the chipselect mappings at run time. Defines init_early_memctl_regs and init_final_memctl_regs with chipselect dynamic mapping for nor and nand boot. Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- Change in v5: None Change in v4:

[U-Boot] [PATCH v5 20/27] armv8: ls1046ardb: Add TFABOOT support

2018-10-27 Thread Rajesh Bhagat
TFABOOT support includes: - ls1046ardb_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - FMAN address changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: York Sun Signed-off-by: Pankit Garg Signed-off-by: Vinitha V Pillai Sig

[U-Boot] [PATCH v5 14/27] armv8: fsl-layerscape: Update parsing boot source

2018-10-27 Thread Rajesh Bhagat
From: York Sun Workaround of erratum A010539 clears the RCW source field in PORSR1 register, causing failure of detecting boot source using this method. Use SMC call if U-Boot runs at EL2. If SMC is not implemented or running at EL3, continue to read PORSR1 and presume QSPI as boot source if erra

[U-Boot] [PATCH v5 09/27] armv8: fsl-layerscape: identify boot source from PORSR register

2018-10-27 Thread Rajesh Bhagat
PORSR register holds the cfg_rcw_src field which can be used to identify boot source. Further, it can be used to select the environment location. Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- Change in v5: None Change in v4: None Change in v3: None Change in v2: None arch/arm/cp

[U-Boot] [PATCH v5 03/27] env: sf: define API to override sf environment address

2018-10-27 Thread Rajesh Bhagat
Defines env_sf_get_env_addr API to override sf environment address, required to support multiple environment. Signed-off-by: Rajesh Bhagat --- Change in v5: None Change in v4: None Change in v3: None Change in v2: None env/sf.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH v5 06/27] armv8: fsl-layerscape: change tlb base from OCRAM to DDR in EL < 3

2018-10-27 Thread Rajesh Bhagat
From: Pankit Garg Change tlb base address from OCRAM to DDR when exception level is less than 3. Signed-off-by: Ruchika Gupta Signed-off-by: Pankit Garg --- Change in v5: None Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 5 - 1 file c

[U-Boot] [PATCH v5 08/27] armv8: layerscape: Add TFABOOT support

2018-10-27 Thread Rajesh Bhagat
Adds TFABOOT support config option and add generic code to enable execution from DDR. Signed-off-by: York Sun Signed-off-by: Rajesh Bhagat --- Change in v5: None Change in v4: None Change in v3: - Seperated TFABOOT generic code - Moved before dependency patches arch/arm/cpu/armv8/fsl-layersc

[U-Boot] [PATCH v5 05/27] armv8: layerscape: Enable routing SError exception

2018-10-27 Thread Rajesh Bhagat
From: York Sun In case SError happens at EL2, if SCR_EL3[EA] is not routing it to EL3, and SCR_EL3[RW] is set to aarch64, setting HCR_EL2[AMO] routes the exception to EL2. Otherwise this exception is not taken. Signed-off-by: York Sun --- Change in v5: None Change in v4: None Change in v3: None

[U-Boot] [PATCH v5 04/27] driver/ifc: replace __ilog2 with LOG2 macro

2018-10-27 Thread Rajesh Bhagat
Replaces __ilog2 function call with LOG2 macro, required to use macros in global variables. Also, corrects the value passed in LOG2 for some PowerPC platforms. Minimum value that can be configured is is 64K for IFC IP. Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- Change in v5: No

[U-Boot] [PATCH v5 02/27] env: allow flash and nand env driver to compile together

2018-10-27 Thread Rajesh Bhagat
Define env_ptr as static in flash and nand env driver to allow these to compile together. Signed-off-by: Rajesh Bhagat --- Change in v5: - Solved compilation warning for boards mccmon6_sd and mccmon6_nor Change in v4: None Change in v3: - Merged env nand specific patches to remove compilatio

[U-Boot] [PATCH v5 01/27] move data structure out of cpu.h

2018-10-27 Thread Rajesh Bhagat
From: York Sun Move static definitions to cpu.c file, as it doesn't allow the cpu.h file to be included in multiple c files. Signed-off-by: York Sun --- Change in v5: None Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 297

[U-Boot] [PATCH v5 00/27] TF-A Boot support for NXP Chassis 2 platforms

2018-10-27 Thread Rajesh Bhagat
Includes changes in u-boot framework to support TF-A for NXP Chassis 2 platforms. A new defconfig is added namely ls*_tfa_defconfig which will be used for all boot sources when TF-A is used.