[U-Boot] [PATCH] scripts: use CROSS_COMPILE environment variable

2018-03-02 Thread Stefan Agner
From: Stefan Agner Make sure we use objcopy from the cross compiler toolchain. Signed-off-by: Stefan Agner --- scripts/get_default_envs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/get_default_envs.sh b/scripts/get_default_envs.sh index 7955db60e5

[U-Boot] [PATCH] tools/env: allow equal sign as key value separation

2018-03-01 Thread Stefan Agner
From: Stefan Agner Treat the first equal sign as a key/value separation too. This makes the script files compatible with mkenvimage input file format. It won't support variables with equal signs anymore, but this seems not really like a loss. Signed-off-by: Stefan Agner --- tools/env/fw_

Re: [U-Boot] [PATCH 1/2] mtd: nand: tegra: convert to driver model and live tree

2018-02-23 Thread Stefan Agner
On 21.02.2018 16:16, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > The Tegra NAND driver recently got broken by ongoing driver model resp. > live tree migration work: > > NAND: Could not decode nand-flash in device tree > Tegra NAND init failed > 0 MiB > > A patch for NAND uclass support

Re: [U-Boot] [PATCH 1/2] usb: gadget: sdp: add missing line breaks

2018-02-15 Thread Stefan Agner
On 15.02.2018 09:59, Lukasz Majewski wrote: > On Thu, 15 Feb 2018 07:08:55 +0100 > Andre Heider wrote: > >> Cosmetic change. Hm, this got introduced by commit 9b643e312d52 ("treewide: replace with error() with pr_err()") error() did print the newline... Acked-by: St

Re: [U-Boot] [PATCH] Fix --noheader on fw_printenv

2018-02-08 Thread Stefan Agner
On 08.02.2018 17:17, Alex Kiernan wrote: > On Thu, Feb 8, 2018 at 3:37 PM, wrote: >> On 08.02.2018 10:35, Alex Kiernan wrote: >>> Using fw_printenv with --noheader fails: >>> >>> root@nrr-922:~# fw_printenv --noheader arch >>> ## Error: `-n' option requires exactly one argument >> >> I think

[U-Boot] [PATCH v2 3/4] spl: use ARCH_MX23/28 to specify SPL_LDSCRIPT

2018-02-06 Thread Stefan Agner
From: Stefan Agner Simplify SPL_LDSCRIPT config by using the new arch Kconfig configurations ARCH_MX23 and ARCH_MX28. Signed-off-by: Stefan Agner --- Changes in v2: None arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig

[U-Boot] [PATCH v2 4/4] Convert CONFIG_NAND_MXS to Kconfig

2018-02-06 Thread Stefan Agner
From: Stefan Agner This converts CONFIG_NAND_MXS to Kconfig. Signed-off-by: Stefan Agner --- Changes in v2: None configs/apx4devkit_defconfig| 3 ++- configs/aristainetos2_defconfig | 3 ++- configs/aristainetos2b_defconfig| 3 ++- configs

[U-Boot] [PATCH v2 1/4] arm: imx: mx23: Move MX23 selection to Kconfig

2018-02-06 Thread Stefan Agner
From: Stefan Agner The motivation for moving MX23 selection to Kconfig is to be able to better handle NAND MXS selection through Kconfig. This selection method also aligns with the way other i.MX SoCs are selected in U-Boot. Signed-off-by: Stefan Agner --- Changes in v2: - Move to arch/arm

[U-Boot] [PATCH v2 2/4] arm: imx: mx28: Move MX28 selection to Kconfig

2018-02-06 Thread Stefan Agner
From: Stefan Agner The motivation for moving MX28 selection to Kconfig is to be able to better handle NAND MXS selection through Kconfig. This selection method also aligns with the way other i.MX SoCs are selected in U-Boot. Signed-off-by: Stefan Agner --- Changes in v2: - Move to arch/arm

[U-Boot] [PATCH v2 0/4] arm: imx: convert MX23/28 and MXS NAND to Kconfig

2018-02-06 Thread Stefan Agner
From: Stefan Agner This converts i.MX23/28 to Kconfig. This helps to properly add dependencies for GPMI NAND (NAND_MXS) configs. Patch 4 is from a previous patchset "mtd: nand: mxs_nand: improve ECC support". -- Stefan Changes in v2: - Move to arch/arm/mach-imx/mxs/Kconfig - Fi

[U-Boot] [PATCH 4/4] Convert CONFIG_NAND_MXS to Kconfig

2018-02-05 Thread Stefan Agner
From: Stefan Agner This converts CONFIG_NAND_MXS to Kconfig. Signed-off-by: Stefan Agner --- configs/apx4devkit_defconfig| 3 ++- configs/aristainetos2_defconfig | 3 ++- configs/aristainetos2b_defconfig| 3 ++- configs/aristainetos_defconfig | 3

[U-Boot] [PATCH 3/4] spl: use ARCH_MX23/28 to specify SPL_LDSCRIPT

2018-02-05 Thread Stefan Agner
From: Stefan Agner Simplify SPL_LDSCRIPT config by using the new arch Kconfig configurations ARCH_MX23 and ARCH_MX28. Signed-off-by: Stefan Agner --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f4301f18ce

[U-Boot] [PATCH 2/4] arm: imx: mx28: Move MX28 selection to Kconfig

2018-02-05 Thread Stefan Agner
From: Stefan Agner The motivation for moving MX28 selection to Kconfig is to be able to better handle NAND MXS selection through Kconfig. This selection method also aligns with the way other i.MX SoCs are selected in U-Boot. Signed-off-by: Stefan Agner --- arch/arm/Kconfig

[U-Boot] [PATCH 1/4] arm: imx: mx23: Move MX23 selection to Kconfig

2018-02-05 Thread Stefan Agner
From: Stefan Agner The motivation for moving MX23 selection to Kconfig is to be able to better handle NAND MXS selection through Kconfig. This selection method also aligns with the way other i.MX SoCs are selected in U-Boot. Signed-off-by: Stefan Agner --- arch/arm/Kconfig

[U-Boot] [PATCH 0/4] arm: imx: convert MX23/28 and MXS NAND to Kconfig

2018-02-05 Thread Stefan Agner
From: Stefan Agner This converts i.MX23/28 to Kconfig. This helps to properly add dependencies for GPMI NAND (NAND_MXS) configs. Patch 4 is from a previous patchset "mtd: nand: mxs_nand: improve ECC support". -- Stefan Stefan Agner (4): arm: imx: mx23: Move MX23 selection to Kco

[U-Boot] [PATCH v2 3/6] mtd: nand: mxs_nand: allow to enable BBT support

2018-02-02 Thread Stefan Agner
From: Stefan Agner Add config option which allows to enable on flash bad block table support. This has the same effect as when using the device tree property "nand-on-flash-bbt" in Linux. Signed-off-by: Stefan Agner --- Changes in v2: None drivers/mtd/nand/mxs_nand.c | 4 ++

[U-Boot] [PATCH v2 6/6] mtd: nand: mxs_nand: add minimal ECC support

2018-02-02 Thread Stefan Agner
From: Stefan Agner Add support for minimum ECC strength supported by the NAND chip. This aligns with the behavior when using the fsl,use-minimum-ecc device tree property in Linux. Signed-off-by: Stefan Agner --- Changes in v2: None drivers/mtd/nand/Kconfig| 8 + drivers/mtd/nand

[U-Boot] [PATCH v2 5/6] mtd: nand: mxs_nand: report correct ECC parameters

2018-02-02 Thread Stefan Agner
From: Stefan Agner Report correct ECC parameters back to the stack. Do not report bytes as we have it not immeaditly available and the Linux version also does not report it. It seems to have no aversive effect. Signed-off-by: Stefan Agner --- Changes in v2: - Extend the patchset with "r

[U-Boot] [PATCH v2 2/6] mtd: nand: mxs_nand: use self init

2018-02-02 Thread Stefan Agner
From: Stefan Agner Instead of completing initialization via scan_bbt callback use NAND self init to initialize the GPMI (MXS) NAND controller. Suggested-by: Scott Wood Signed-off-by: Stefan Agner --- Changes in v2: None drivers/mtd/nand/Kconfig| 1 + drivers/mtd/nand/mxs_nand.c | 52

[U-Boot] [PATCH v2 4/6] mtd: nand: mxs_nand: use structure for BCH geometry

2018-02-02 Thread Stefan Agner
From: Stefan Agner Calculate BCH geometry at start and store the information in a structure. This avoids recalculation on every page access and allows to calculate ECC relevant information in one place. This patch does not change ECC layout or driver behavior in any way. The patch aligns the

[U-Boot] [PATCH v2 1/6] Convert CONFIG_NAND_MXS to Kconfig

2018-02-02 Thread Stefan Agner
From: Stefan Agner This converts CONFIG_NAND_MXS to Kconfig. Signed-off-by: Stefan Agner --- Changes in v2: - Extend the patchset with "Convert CONFIG_NAND_MXS to Kconfig" patch configs/apx4devkit_defconfig| 3 ++- configs/aristainetos2_defconfig | 3 ++

[U-Boot] [PATCH v2 0/6] mtd: nand: mxs_nand: improve ECC support

2018-02-02 Thread Stefan Agner
From: Stefan Agner This patchset reworks the drivers ECC calculation to align more with the Linux driver gpmi-nand.c. It aims to implements minimal ECC support as supported by the NAND chip. The first three patches are of preparational nature, I hope that especially the first two can go in

[U-Boot] [PATCH 4/4] mtd: nand: mxs_nand: add minimal ECC support

2018-01-29 Thread Stefan Agner
From: Stefan Agner Add support for minimum ECC strength supported by the NAND chip. This aligns with the behavior when using the fsl,use-minimum-ecc device tree property in Linux. Signed-off-by: Stefan Agner --- drivers/mtd/nand/Kconfig| 8 + drivers/mtd/nand/mxs_nand.c | 71

[U-Boot] [PATCH 2/4] mtd: nand: mxs_nand: allow to enable BBT support

2018-01-29 Thread Stefan Agner
From: Stefan Agner Add config option which allows to enable on flash bad block table support. This has the same effect as when using the device tree property "nand-on-flash-bbt" in Linux. Signed-off-by: Stefan Agner --- drivers/mtd/nand/mxs_nand.c | 4 1 file changed, 4

[U-Boot] [PATCH 3/4] mtd: nand: mxs_nand: use structure for BCH geometry

2018-01-29 Thread Stefan Agner
From: Stefan Agner Calculate BCH geometry at start and store the information in a structure. This avoids recalculation on every page access and allows to calculate ECC relevant information in one place. This patch does not change ECC layout or driver behavior in any way. The patch aligns the

[U-Boot] [PATCH 1/4] mtd: nand: mxs_nand: use self init

2018-01-29 Thread Stefan Agner
From: Stefan Agner Instead of completing initialization via scan_bbt callback use NAND self init to initialize the GPMI (MXS) NAND controller. Signed-off-by: Stefan Agner --- drivers/mtd/nand/Kconfig| 1 + drivers/mtd/nand/mxs_nand.c | 52 + 2

[U-Boot] [PATCH] arm: dts: imx6ull: move input include to base device tree

2018-01-25 Thread Stefan Agner
From: Stefan Agner The input keycode KEY_POWER is used in the imx6ull.dtsi file, hence include the input header where used. Signed-off-by: Stefan Agner --- arch/arm/dts/imx6ull-14x14-evk.dts | 1 - arch/arm/dts/imx6ull.dtsi | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff

Re: [U-Boot] [PATCH 1/2] serial: mxc: support DTE mode

2018-01-19 Thread Stefan Agner
Hi Ryan, On 19.01.2018 10:53, Ryan Harkin wrote: > Add DTE mode support via Kconfig on the MXC uart. Make use of the driver model, there DTE is supported already today: https://lists.denx.de/pipermail/u-boot/2016-July/259573.html -- Stefan > > Signed-off-by: Ryan Harkin > Reviewed-by: Bryan O

[U-Boot] [PATCH v2 2/3] imx: introduce CONFIG_GPT_TIMER

2018-01-05 Thread Stefan Agner
From: Stefan Agner Introduce a new config symbol to select the i.MX General Purpose Timer (GPT). Signed-off-by: Stefan Agner Reviewed-by: Fabio Estevam --- Changes in v2: - Fix Kconfig for MX5 arch/arm/mach-imx/Kconfig | 3 +++ arch/arm/mach-imx/Makefile| 3 ++- arch/arm/mach-imx

[U-Boot] [PATCH v2 3/3] imx: initialize and use generic timer on i.MX 6UL/ULL

2018-01-05 Thread Stefan Agner
From: Stefan Agner The i.MX 6UL/ULL feature a Cortex-A7 CPU which suppor the ARM generic timer. This change makes use of the ARM generic timer in U-Boot. This is crucial to make the ARM generic timers usable in Linux since timer_init() initalizes the system counter module, which is necessary to

[U-Boot] [PATCH v2 1/3] imx: move CONFIG_SYSCOUNTER_TIMER to Kconfig

2018-01-05 Thread Stefan Agner
From: Stefan Agner Signed-off-by: Stefan Agner Reviewed-by: Fabio Estevam --- Changes in v2: None arch/arm/mach-imx/Kconfig | 3 +++ arch/arm/mach-imx/mx7/Kconfig | 1 + include/configs/mx7_common.h | 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 4 insertions(+), 2

Re: [U-Boot] [PATCH 3/3] imx: initialize and use generic timer on i.MX 6UL/ULL

2018-01-05 Thread Stefan Agner
On 2018-01-05 13:40, Fabio Estevam wrote: > On Mon, Jan 1, 2018 at 10:43 PM, Stefan Agner wrote: > >> --- a/arch/arm/mach-imx/mx6/Kconfig >> +++ b/arch/arm/mach-imx/mx6/Kconfig >> @@ -9,7 +9,7 @@ config MX6_SMP >> >> config MX6 >> sel

Re: [U-Boot] [PATCH 2/3] imx: introduce CONFIG_GPT_TIMER

2018-01-05 Thread Stefan Agner
On 2018-01-02 01:43, Stefan Agner wrote: > Introduce a new config symbol to select the i.MX > General Purpose Timer (GPT). > > Signed-off-by: Stefan Agner > --- > > arch/arm/mach-imx/Kconfig | 3 +++ > arch/arm/mach-imx/Makefile| 3 ++- > arch/arm/mach-imx/mx

Re: [U-Boot] [PATCH 1/3] imx: move CONFIG_SYSCOUNTER_TIMER to Kconfig

2018-01-05 Thread Stefan Agner
Hi Stefano, Any chance to get this patchset still into v2018.01? IMHO it is almost a bug that U-Boot does not initialize the ARM architected timer properly... -- Stefan On 2018-01-02 01:43, Stefan Agner wrote: > Signed-off-by: Stefan Agner > --- > > arch/arm/mach-imx/Kco

[U-Boot] [PATCH 3/3] imx: initialize and use generic timer on i.MX 6UL/ULL

2018-01-01 Thread Stefan Agner
timers CP15 registers. Signed-off-by: Stefan Agner --- arch/arm/include/asm/arch-mx6/imx-regs.h | 1 + arch/arm/mach-imx/Makefile | 2 +- arch/arm/mach-imx/mx6/Kconfig| 4 +++- include/configs/mx6_common.h | 5 - 4 files changed, 9 insertions(+), 3 deletions

[U-Boot] [PATCH 1/3] imx: move CONFIG_SYSCOUNTER_TIMER to Kconfig

2018-01-01 Thread Stefan Agner
Signed-off-by: Stefan Agner --- arch/arm/mach-imx/Kconfig | 3 +++ arch/arm/mach-imx/mx7/Kconfig | 1 + include/configs/mx7_common.h | 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx

[U-Boot] [PATCH 2/3] imx: introduce CONFIG_GPT_TIMER

2018-01-01 Thread Stefan Agner
Introduce a new config symbol to select the i.MX General Purpose Timer (GPT). Signed-off-by: Stefan Agner --- arch/arm/mach-imx/Kconfig | 3 +++ arch/arm/mach-imx/Makefile| 3 ++- arch/arm/mach-imx/mx5/Kconfig | 1 + arch/arm/mach-imx/mx6/Kconfig | 1 + 4 files changed, 7 insertions

Re: [U-Boot] [PATCH] mx6ull: Handle the CONFIG_MX6ULL cases correctly

2018-01-01 Thread Stefan Agner
imply CMD_FUSE -- Stefan > > Reported-by: Stefan Agner > Signed-off-by: Fabio Estevam > --- > arch/arm/include/asm/arch-mx6/imx-regs.h | 20 ++-- > arch/arm/include/asm/arch-mx6/mx6-ddr.h| 2 +- > arch/arm/include/asm/arch-mx6/mx6ul-ddr.h | 2

Re: [U-Boot] [PATCH] mx6ull: Handle the CONFIG_MX6ULL cases correctly

2018-01-01 Thread Stefan Agner
for CONFIG_MX6UL. Those changes seem to cover it. Reviewed-by: Stefan Agner One minor nit below. > > Reported-by: Stefan Agner > Signed-off-by: Fabio Estevam > --- > arch/arm/include/asm/arch-mx6/imx-regs.h | 20 ++-- > arch/arm/include/asm/arch-mx6/mx6-dd

Re: [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL

2018-01-01 Thread Stefan Agner
On 2017-11-28 00:07, Breno Lima wrote: > From: Breno Lima > > MX6UL contains features that MX6ULL doesn't support. > Deselect CONFIG_MX6UL and select SYS_L2CACHE_OFF and ROM_UNIFIED_SECTIONS. > > The motivation for doing this change is that MX6UL supports CAAM and > MX6ULL does not. While I agr

Re: [U-Boot] [OE-core] [PATCH] u-boot: Upgrade to 2017.11 release

2017-11-15 Thread Stefan Agner
On 2017-11-14 19:32, Otavio Salvador wrote: > This upgrades the U-Boot from 2017.09 to 2017.11 release. You might encounter this when building fw_printenv/setenv tools alone: https://lists.denx.de/pipermail/u-boot/2017-November/311505.html -- Stefan > > Signed-off-by: Otavio Salvador > --- >

[U-Boot] [PATCH] envtools: make sure version/timestamp header file are available

2017-11-14 Thread Stefan Agner
From: Stefan Agner With commit 84d46e7e8948 ("tools: env: allow to print U-Boot version") the fw_env utilities need the version.h header file. Building only the envtools in a pristine build directory will fail due to missing header files. Make sure the header files are a depende

Re: [U-Boot] [PATCH] configs: vf610: increase maximum size and enforce correct limit

2017-10-30 Thread Stefan Agner
Hi Tom, Stefano, Any chance to get this still into 2017.11? It allows to use 2017.11 on my board... -- Stefan On 2017-10-17 13:59, Stefan Agner wrote: > From: Stefan Agner > > On Vybrid SoCs U-Boot gets loaded into GFX SRAM which is 512KiB. > Currently 32KiB is reserved for th

[U-Boot] [PATCH] tools: env: allow to print U-Boot version

2017-10-26 Thread Stefan Agner
From: Stefan Agner The fw_env utility family has a default environment compiled in which ties it quite strongly to the U-Boot source/config it has been built with. Allow to display the U-Boot version it has been built with using the -v/--version argument. Signed-off-by: Stefan Agner

Re: [U-Boot] [U-boot][SDP] Trigger watchdog before calling usb_gadget_handle_interrupts

2017-10-26 Thread Stefan Agner
gt;> >> + WATCHDOG_RESET(); >> usb_gadget_handle_interrupts(controller_index); >> >> sdp_handle_in_ep(); > Reviewed-by: Lukasz Majewski Thanks for the patch! Looks good to me too. Reviewed-by: Stefan Agner Best regards, Stef

[U-Boot] [PATCH] configs: vf610: increase maximum size and enforce correct limit

2017-10-17 Thread Stefan Agner
From: Stefan Agner On Vybrid SoCs U-Boot gets loaded into GFX SRAM which is 512KiB. Currently 32KiB is reserved for the IMX header. However, this is not reflected in the size limit. In v2017.11-rc2 the actual size limit (512KiB-32KiB) has been reached for Colibri VF61, which lead to a successful

[U-Boot] [PATCH v1] doc: update imx_usb_loader URL

2017-10-03 Thread Stefan Agner
From: Stefan Agner The changes required to use U-Boot's Serial Download Protocol implementation are now available in upstream imx_usb_loader repository. Update the URL accordingly. Signed-off-by: Stefan Agner --- doc/README.sdp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [U-Boot] [PATCH] mx6: toradex: Remove custom CONFIG_SPL_PAD_TO definition

2017-09-27 Thread Stefan Agner
On 25.09.2017 20:20, Fabio Estevam wrote: > From: Fabio Estevam > > CONFIG_SPL_PAD_TO is already defined inside "imx6_spl.h", so there > is no need to redefine it in the board config files. That looks good to me. Reviewed-by: Stefan Agner -- Stefan > >

Re: [U-Boot] [PATCH v3 2/2] imx_common: detect USB serial downloader reliably

2017-09-18 Thread Stefan Agner
On September 18, 2017 8:05:43 AM PDT, Stefano Babic wrote: >Hi Stefan, > >On 14/09/2017 07:24, Eric Nelson wrote: >> Hi Stefan, >> >> Thanks for this patch. >> >> On 09/13/2017 02:29 PM, Stefan Agner wrote: >>> From: Stefan Agner >>&g

Re: [U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-13 Thread Stefan Agner
On 2017-09-13 22:23, Eric Nelson wrote: > On 09/13/2017 02:29 PM, Stefan Agner wrote: >> From: Stefan Agner >> >> This macro allows to detect whether the USB PHY is active. This >> is helpful to detect if the boot ROM has previously started the >> USB serial do

Re: [U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-13 Thread Stefan Agner
Sorry, the subject should have been v4. -- Stefan On 2017-09-13 14:29, Stefan Agner wrote: > From: Stefan Agner > > This macro allows to detect whether the USB PHY is active. This > is helpful to detect if the boot ROM has previously started the > USB serial downloader. > &

[U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-13 Thread Stefan Agner
From: Stefan Agner This macro allows to detect whether the USB PHY is active. This is helpful to detect if the boot ROM has previously started the USB serial downloader. The idea is taken from the mfgtool support in the NXP U-Boot: http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/commit

[U-Boot] [PATCH v3 2/2] imx_common: detect USB serial downloader reliably

2017-09-13 Thread Stefan Agner
From: Stefan Agner The current mechanism using SCR/GPR registers work well when the serial downloader boot mode has been selected explicitly (either via boot mode pins or using bmode command). However, in case the system entered boot ROM due to unbootable primary boot devices (e.g. empty eMMC

Re: [U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-13 Thread Stefan Agner
SB still in there, how about: is_usbotg_phy_active() -- Stefan > > Best regards, > Stefano > >> On 09/12/2017 04:54 PM, Stefan Agner wrote: >>> From: Stefan Agner >>> >>> This macro allows to detect whether the USB PHY is active. This >>> is h

[U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-12 Thread Stefan Agner
From: Stefan Agner This macro allows to detect whether the USB PHY is active. This is helpful to detect if the boot ROM has previously started the USB serial downloader. The idea is taken from the mfgtool support in the NXP U-Boot: http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/commit

[U-Boot] [PATCH v3 2/2] imx_common: detect USB serial downloader reliably

2017-09-12 Thread Stefan Agner
From: Stefan Agner The current mechanism using SCR/GPR registers work well when the serial downloader boot mode has been selected explicitly (either via boot mode pins or using bmode command). However, in case the system entered boot ROM due to unbootable primary boot devices (e.g. empty eMMC

Re: [U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-09-11 Thread Stefan Agner
ic script... -- Stefan > > Regards, > Vincent > > > 2017-09-08 18:37 GMT+02:00 Stefan Agner : >> Hi Vincent, >> >> On 2017-09-08 01:27, Vincent Prince wrote: >>> Hi everyone, >>> >>> I managed to get SDP protocol to work with on my custom

Re: [U-Boot] [PATCH v2 2/2] imx_common: detect USB serial downloader reliably

2017-09-08 Thread Stefan Agner
On 2017-09-08 17:41, Eric Nelson wrote: > Hi Stefan, > > On 09/08/2017 05:35 PM, Fabio Estevam wrote: >> On Fri, Sep 8, 2017 at 8:35 PM, Stefan Agner wrote: >> >>> + /* >>> +* The above method does not detect that the boot ROM used >>&g

Re: [U-Boot] [PATCH v2 2/2] imx_common: detect USB serial downloader reliably

2017-09-08 Thread Stefan Agner
On 2017-09-08 16:41, Eric Nelson wrote: > Hi Stefan, > > On 09/08/2017 04:35 PM, Stefan Agner wrote: >> From: Stefan Agner >> >> The current mechanism using SCR/GPR registers work well when >> the serial downloader boot mode has been selected explicitly >&

[U-Boot] [PATCH v2 2/2] imx_common: detect USB serial downloader reliably

2017-09-08 Thread Stefan Agner
From: Stefan Agner The current mechanism using SCR/GPR registers work well when the serial downloader boot mode has been selected explicitly (either via boot mode pins or using bmode command). However, in case the system entered boot ROM due to unbootable primary boot devices (e.g. empty eMMC

[U-Boot] [PATCH v2 1/2] imx: add macro to detect whether USB PHY is active

2017-09-08 Thread Stefan Agner
From: Stefan Agner This macro allows to detect whether the USB PHY is active. This is helpful to detect if the boot ROM has previously started the USB serial downloader. The idea is taken from the mfgtool support in the NXP U-Boot: http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/commit

Re: [U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-09-08 Thread Stefan Agner
: mx6_usb_sdp_uboot #hid/bulk,[old_header,]max packet size, {ram start, ram size}(repeat valid ram areas) hid,1024,0x1000,1G,0x00907000,0x31000 #Load complete FIT image to $ramdisk_addr_r tezi.itb:load 0x1210 #Load script to $loadaddr and jump to it boot-sdp.scr:load 0x1200,jump 0x1200 -- Stefan

Re: [U-Boot] [RFC] toradex: imx6: Move g_dnl_bind_fixup() into common SPL code

2017-09-05 Thread Stefan Agner
On 03.09.2017 07:56, Fabio Estevam wrote: > From: Fabio Estevam > > Instead of having every board file to add its own g_dnl_bind_fixup() > implementation, move it to the common imx6 SPL code. > > Signed-off-by: Fabio Estevam > --- > Stefan, > > I don't have access to Toradex board to test it, h

Re: [U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized

2017-09-05 Thread Stefan Agner
On 2017-09-05 09:18, Fabio Estevam wrote: > On Tue, Sep 5, 2017 at 1:05 PM, Stefan Agner wrote: > >> i.MX 7 has a Boot Information structure which is passed from the Boot >> ROM, so we have a much cleaner method there. >> http://git.denx.de/?p=u-boot/u-boot-imx.git;a=blob

Re: [U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized

2017-09-05 Thread Stefan Agner
On 2017-09-05 06:45, Fabio Estevam wrote: > Hi Stefano, > > On Tue, Sep 5, 2017 at 8:16 AM, Stefano Babic wrote: > >> Maybe we get some further info from our "insider" (Fabio, Peng). It will >> be very interesting to know if we can apply this to all spectrum from >> i.MX6, or if there is some MX

Re: [U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized

2017-09-05 Thread Stefan Agner
On 2017-09-05 04:13, Fabio Estevam wrote: > Hi Stefan, > > On Mon, Sep 4, 2017 at 10:21 PM, Stefan Agner wrote: >> From: Stefan Agner >> >> This macro allows to detect whether the boot ROM initialized USB >> already (serial downloader). This is helpful to rel

Re: [U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized

2017-09-04 Thread Stefan Agner
On 2017-09-04 19:57, Eric Nelson wrote: > Hi Stefan, > > On 09/04/2017 06:21 PM, Stefan Agner wrote: >> From: Stefan Agner >> >> This macro allows to detect whether the boot ROM initialized USB >> already (serial downloader). This is helpful to reliably detect &g

[U-Boot] [PATCH v1 2/2] imx_common: detect USB serial downloader reliably

2017-09-04 Thread Stefan Agner
From: Stefan Agner The current mechanism using SCR/GPR registers work well when the serial downloader boot mode has been selected explicitly (either via boot mode pins or using bmode command). However, in case the system entered boot ROM due to unbootable primary boot devices (e.g. empty eMMC

[U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized

2017-09-04 Thread Stefan Agner
From: Stefan Agner This macro allows to detect whether the boot ROM initialized USB already (serial downloader). This is helpful to reliably detect if the system has been recovered via USB serial downloader. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- Hi Stefano, I noted

Re: [U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-09-01 Thread Stefan Agner
On September 1, 2017 12:25:44 PM PDT, Fabio Estevam wrote: >On Fri, Sep 1, 2017 at 3:54 PM, Fabio Estevam >wrote: > >> I have tested this method and it works, thanks. >> >> Do you plan to usptream this method? > >Or I can also put your patch as part of my series that adds SDP >support for imx6q

Re: [U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-09-01 Thread Stefan Agner
On 2017-09-01 09:48, Fabio Estevam wrote: > Hi Stefan, > > On Wed, Aug 16, 2017 at 3:00 PM, Stefan Agner wrote: >> From: Stefan Agner >> >> This series adds NXP's Serial Download Protocol (SDP) support via >> USB for SPL/U-Boot. It allows to download U-

[U-Boot] [PATCH v1] imx: remove SATA boot mode for i.MX 6UL and 6ULL

2017-08-29 Thread Stefan Agner
From: Stefan Agner The NXP i.MX 6UL and 6ULL do not support SATA and have no SATA boot mode, hence remove it from the boot device detecion. This fixes a build error introduced with 3bd1642d4d50 ("imx: fix USB boot mode detection for i.MX 6UL and 6ULL") Fixes: 3bd1642d4d50 ("im

Re: [U-Boot] [PATCH v1 2/2] imx: use BOOT_DEVICE_BOARD instead of UART

2017-08-27 Thread Stefan Agner
On 2017-08-27 13:21, Sébastien Szymanski wrote: > Hello, > >> On 27 Aug 2017, at 21:17, Stefan Agner wrote: >> >> On 2017-08-27 01:45, Sébastien Szymanski wrote: >>> Hello, >>> >>>> On 25 Aug 2017, at 13:33, Stefano Babic wrote: >>

Re: [U-Boot] [PATCH v1 2/2] imx: use BOOT_DEVICE_BOARD instead of UART

2017-08-27 Thread Stefan Agner
On 2017-08-27 01:45, Sébastien Szymanski wrote: > Hello, > >> On 25 Aug 2017, at 13:33, Stefano Babic wrote: >> >> On 16/08/2017 02:49, Stefan Agner wrote: >>> From: Stefan Agner >>> >>> i.MX 6 serial downloader is not necessarily booting vi

[U-Boot] [PATCH] disk: part: align buffer so it can be used with DMA enabled drivers

2017-08-23 Thread Stefan Agner
From: Stefan Agner When using ISO partitions with a DMA enabled block device driver reading the ISO partition leads to unaligned DMA operations: CACHE: Misaligned operation at range [bffb7da8, bffb85a8] Align the buffer to make sure we pass a buffer which works for DMA operations. Signed-off

[U-Boot] [PATCH v2 7/8] apalis/colibri_imx6: use independent USB PID for SPL

2017-08-16 Thread Stefan Agner
From: Stefan Agner Use a completely independent USB Product ID for SPL. This allows to differentiate a SDP running in SPL and SDP running in a U-Boot which could not read the config block successfully. Signed-off-by: Stefan Agner Acked-by: Max Krummenacher --- Changes in v2: None board

[U-Boot] [PATCH v2 5/8] spl: add serial download protocol (SDP) support

2017-08-16 Thread Stefan Agner
From: Stefan Agner Add USB serial download protocol support to SPL. If the SoC started in recovery mode the SPL will immediately switch to SDP and wait for further downloads/commands from the host side. Signed-off-by: Stefan Agner Reviewed-by: Stefano Babic --- Changes in v2: - Changed

[U-Boot] [PATCH v2 4/8] cmd: add sdp command

2017-08-16 Thread Stefan Agner
From: Stefan Agner Add a new command to start USB Serial Download Protocol (SDP) state machine. Signed-off-by: Stefan Agner Reviewed-by: Łukasz Majewski Reviewed-by: Stefano Babic --- Changes in v2: - Changed function signature of sdp_init/sdp_handle cmd/Kconfig | 7 +++ cmd

[U-Boot] [PATCH v2 6/8] doc: add Serial Download Protocol documentation

2017-08-16 Thread Stefan Agner
From: Stefan Agner Document the U-Boot Serial Download Protocol implementation and some typical use cases. Signed-off-by: Stefan Agner --- This ended up to be almost more a imx_usb documentation. But there is really not much to document from a U-Boot side since actual usage heavily depends on

[U-Boot] [PATCH v2 8/8] apalis/colibri_imx6: enable SDP by default

2017-08-16 Thread Stefan Agner
From: Stefan Agner Enable Serial Download Protocol (SDP) in SPL and U-Boot. This is useful to make use of imx_usb to download the complete U-Boot (u-boot.img) after SPL has been downloaded. The U-Boot command sdp allows to enumerate as SDP capable device again, e.g. to download a Linux kernel

[U-Boot] [PATCH v2 3/8] usb: gadget: sdp: extend images compatible for jumps

2017-08-16 Thread Stefan Agner
From: Stefan Agner Support U-Boot images in SPL so that u-boot.img files can be directly downloaded and executed. Furthermore support U-Boot scripts download and execution in full U-Boot so that custom recovery actions can be downloaded from the host in a third step. Signed-off-by: Stefan Agner

[U-Boot] [PATCH v2 2/8] usb: gadget: add SDP driver

2017-08-16 Thread Stefan Agner
From: Stefan Agner Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoC's boot ROM and allows to download program images. Beside that, it can also be used to read/write registers and download complete Device Configuration Data (DCD) sets. This

[U-Boot] [PATCH v2 1/8] imx: move imximage header to common location

2017-08-16 Thread Stefan Agner
From: Stefan Agner Move the imximage.h header file to a common location so we can make use of it from U-Boot too. Signed-off-by: Stefan Agner Reviewed-by: Łukasz Majewski --- Changes in v2: None {tools => include}/imximage.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) ren

[U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-08-16 Thread Stefan Agner
From: Stefan Agner This series adds NXP's Serial Download Protocol (SDP) support via USB for SPL/U-Boot. It allows to download U-Boot via USB from a (recovered) SPL using the same tools used to download SPL itself (specifically imx_usb, but also sb_loader seems to work). The idea has

[U-Boot] [PATCH v1 2/2] imx: use BOOT_DEVICE_BOARD instead of UART

2017-08-15 Thread Stefan Agner
From: Stefan Agner i.MX 6 serial downloader is not necessarily booting via UART but can also boot from USB. In fact only some i.MX chips have serial downloader support via UART (e.g. 6UL/ULL and Vybrid) but all of them have serial downloader support via USB. Use the more appropriate

[U-Boot] [PATCH v1 1/2] imx: fix USB boot mode detection for i.MX 6UL and 6ULL

2017-08-15 Thread Stefan Agner
From: Stefan Agner Add the reserved boot mode used in the bmode command for i.MX 6UL and 6ULL as introduced in commit 3fd9579085fa ("imx: mx6ull: fix USB bmode for i.MX 6UL and 6ULL"). Also replace BMODE_UART with BMODE_RESERVED, which is more appropriate. Commit 96aac843b68d

Re: [U-Boot] [PATCH v1 2/7] usb: gadget: add SDP driver

2017-08-15 Thread Stefan Agner
On 2017-08-10 01:14, Stefano Babic wrote: > Hi Stefan, > > On 05/08/2017 01:38, Stefan Agner wrote: >> From: Stefan Agner >> >> Add SDP (Serial Downloader Protocol) implementation for U-Boot. The >> protocol is used in NXP SoC's boot ROM and allows to downl

Re: [U-Boot] [PATCH v1 5/7] spl: add serial download protocol (SDP) support

2017-08-08 Thread Stefan Agner
Stefano, One question below: On 2017-08-04 16:38, Stefan Agner wrote: > From: Stefan Agner > > Add USB serial download protocol support to SPL. If the SoC started > in recovery mode the SPL will immediately switch to SDP and wait for > further downloads/commands from the host si

Re: [U-Boot] [PATCH v1 5/7] spl: add serial download protocol (SDP) support

2017-08-08 Thread Stefan Agner
On 2017-08-08 03:43, Lothar Waßmann wrote: > Hi, > > On Fri, 4 Aug 2017 16:38:11 -0700 Stefan Agner wrote: >> From: Stefan Agner >> >> Add USB serial download protocol support to SPL. If the SoC started >> in recovery mode the SPL will immediately switch to SDP

Re: [U-Boot] [PATCH v1 0/7] imx: add USB Serial Download Protocol (SDP) support

2017-08-08 Thread Stefan Agner
On 2017-08-08 02:15, Stefano Babic wrote: > Hi Stefan, > > On 07/08/2017 20:06, Stefan Agner wrote: >> Hi Eric, >> >> On 2017-08-06 08:19, Eric Nelson wrote: >>> Hi Stefan, >>> >>> On 08/04/2017 04:38 PM, Stefan Agner wrote: >>&g

Re: [U-Boot] [PATCH v1 0/7] imx: add USB Serial Download Protocol (SDP) support

2017-08-07 Thread Stefan Agner
Hi Eric, On 2017-08-06 08:19, Eric Nelson wrote: > Hi Stefan, > > On 08/04/2017 04:38 PM, Stefan Agner wrote: >> From: Stefan Agner >> >> This series adds NXP's Serial Download Protocol (SDP) support via >> USB for SPL/U-Boot. It allows to download U-Boot v

[U-Boot] [PATCH v1 5/7] spl: add serial download protocol (SDP) support

2017-08-04 Thread Stefan Agner
From: Stefan Agner Add USB serial download protocol support to SPL. If the SoC started in recovery mode the SPL will immediately switch to SDP and wait for further downloads/commands from the host side. Signed-off-by: Stefan Agner --- common/spl/Kconfig | 6 ++ common/spl

[U-Boot] [PATCH v1 6/7] apalis/colibri_imx6: use independent USB PID for SPL

2017-08-04 Thread Stefan Agner
From: Stefan Agner Use a completely independent USB Product ID for SPL. This allows to differentiate a SDP running in SPL and SDP running in a U-Boot which could not read the config block successfully. Signed-off-by: Stefan Agner Acked-by: Max Krummenacher --- board/toradex/apalis_imx6

[U-Boot] [PATCH v1 7/7] apalis/colibri_imx6: enable SDP by default

2017-08-04 Thread Stefan Agner
From: Stefan Agner Enable Serial Download Protocol (SDP) in SPL and U-Boot. This is useful to make use of imx_usb to download the complete U-Boot (u-boot.img) after SPL has been downloaded. The U-Boot command sdp allows to enumerate as SDP capable device again, e.g. to download a Linux kernel

[U-Boot] [PATCH v1 2/7] usb: gadget: add SDP driver

2017-08-04 Thread Stefan Agner
From: Stefan Agner Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoC's boot ROM and allows to download program images. Beside that, it can also be used to read/write registers and download complete Device Configuration Data (DCD) sets. This

[U-Boot] [PATCH v1 4/7] cmd: add sdp command

2017-08-04 Thread Stefan Agner
From: Stefan Agner Add a new command to start USB Serial Download Protocol (SDP) state machine. Signed-off-by: Stefan Agner --- cmd/Kconfig | 7 +++ cmd/Makefile | 1 + cmd/usb_gadget_sdp.c | 53 3 files changed, 61

[U-Boot] [PATCH v1 3/7] usb: gadget: sdp: extend images compatible for jumps

2017-08-04 Thread Stefan Agner
From: Stefan Agner Support U-Boot images in SPL so that u-boot.img files can be directly downloaded and executed. Furthermore support U-Boot scripts download and execution in full U-Boot so that custom recovery actions can be downloaded from the host in a third step. Signed-off-by: Stefan Agner

[U-Boot] [PATCH v1 1/7] imx: move imximage header to common location

2017-08-04 Thread Stefan Agner
From: Stefan Agner Move the imximage.h header file to a common location so we can make use of it from U-Boot too. Signed-off-by: Stefan Agner --- {tools => include}/imximage.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {tools => include}/imximage.h (100%) diff -

[U-Boot] [PATCH v1 0/7] imx: add USB Serial Download Protocol (SDP) support

2017-08-04 Thread Stefan Agner
From: Stefan Agner This series adds NXP's Serial Download Protocol (SDP) support via USB for SPL/U-Boot. It allows to download U-Boot via USB from a (recovered) SPL using the same tools used to download SPL itself (specifically imx_usb, but also sb_loader seems to work). The idea has

Re: [U-Boot] [PATCH] imx: mx6ull: fix USB bmode for i.MX 6UL and 6ULL

2017-06-12 Thread Stefan Agner
Message d'origine- >> De : Fabio Estevam [mailto:feste...@gmail.com] >> Envoyé : samedi 10 juin 2017 00:10 >> À : Stefan Agner ; Esponde, Joel >> >> Cc : Stefano Babic ; Fabio Estevam >> ; Stefan Agner ; U- >> Boot-Denx >> Objet : Re: [U-Bo

<    1   2   3   4   5   6   7   8   >