Re: [U-Boot] Quickboot in u-boot

2019-11-13 Thread Igor Opaniuk
9 [1] (AFAIR there was a section about integration of swsusp with U-boot)? [1] https://www.youtube.com/watch?v=a4dJNAVM8BE -- Best regards - Freundliche Grüsse - Meilleures salutations Igor Opaniuk mailto: igor.opan...@gmail.com skype: igor.opanyuk +380 (93) 836 40 67 http://ua.linkedin

Re: [U-Boot] [PATCH v1] imx: bootaux: elf firmware support

2019-11-13 Thread Igor Opaniuk
Hi Peng, On Tue, Nov 12, 2019 at 9:47 AM Peng Fan wrote: > > Hi Igor. > > > Subject: [PATCH v1] imx: bootaux: elf firmware support > > We also have similar support for i.MX8 DSP firmware loading. Good to see > your patch. > > > > > From: Igor Opaniuk

[U-Boot] [PATCH v1] imx: bootaux: elf firmware support

2019-11-11 Thread Igor Opaniuk
From: Igor Opaniuk Currently imx-specific bootaux command doesn't support ELF format firmware for Cortex-M4 core. This patches introduces a PoC implementation of handling elf firmware (load_elf_image_phdr() was copy-pasted from elf.c just for PoC). This has the advantage that the user does

[U-Boot] [RFC PATCH v1] imx: bootaux: PoC for elf firmware support

2019-11-05 Thread Igor Opaniuk
From: Igor Opaniuk Currently imx-specific bootaux command doesn't support ELF format firmware for Cortex-M4 core. This patches introduces a PoC implementation of handling elf firmware (load_elf_image_phdr() was copy-pasted from elf.c just for PoC). This has the advantage that the user does

[U-Boot] [PATCH v1 1/2] MAINTAINERS: change apalis_imx6/colibri_imx6 maintainers

2019-11-04 Thread Igor Opaniuk
From: Igor Opaniuk Take over maintainership for apalis_imx6 and colibri_imx6 modules. Signed-off-by: Igor Opaniuk --- board/toradex/apalis_imx6/MAINTAINERS | 2 +- board/toradex/colibri_imx6/MAINTAINERS | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/toradex

[U-Boot] [PATCH v1 2/2] MAINTAINERS: change colibri_imx6/imx6ull/t30/vf maintainers

2019-11-04 Thread Igor Opaniuk
From: Igor Opaniuk Take over maintainership for colibri_imx6/imx6ull/t30/vf modules. Signed-off-by: Igor Opaniuk --- board/toradex/colibri-imx6ull/MAINTAINERS | 2 +- board/toradex/colibri_imx7/MAINTAINERS| 2 +- board/toradex/colibri_t30/MAINTAINERS | 2 +- board/toradex/colibri_vf

[U-Boot] [PATCH v1 3/6] ARM: dts: imx6_apalis: introduce fec node

2019-11-04 Thread Igor Opaniuk
From: Igor Opaniuk Sync DTS with the mainline Linux and introduce fec node. Signed-off-by: Igor Opaniuk --- arch/arm/dts/imx6-apalis.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/imx6-apalis.dts b/arch/arm/dts/imx6-apalis.dts index b2fdfa1af4

[U-Boot] [PATCH v1 6/6] colibri_imx7: migrate to DM_ETH

2019-11-04 Thread Igor Opaniuk
From: Igor Opaniuk Migrate to DM_ETH and remove hardcoded pinmux configuration. Signed-off-by: Igor Opaniuk --- board/toradex/colibri_imx7/colibri_imx7.c | 44 --- configs/colibri_imx7_defconfig| 5 ++- configs/colibri_imx7_emmc_defconfig | 5

[U-Boot] [PATCH v1 2/6] colibri_imx6: migrate to DM_ETH

2019-11-04 Thread Igor Opaniuk
From: Igor Opaniuk Migrate to DM_ETH and remove hardcoded pinmux configuration. Signed-off-by: Igor Opaniuk --- board/toradex/colibri_imx6/colibri_imx6.c | 59 ++- configs/colibri_imx6_defconfig| 3 ++ include/configs/colibri_imx6.h| 8 --- 3

[U-Boot] [PATCH v1 5/6] ARM: dts: imx7: imx7_colibri: introduce fec node

2019-11-04 Thread Igor Opaniuk
From: Igor Opaniuk Sync DTS with the mainline Linux and introduce fec node and regulator configuration for rn5t567 PMU. Signed-off-by: Igor Opaniuk --- arch/arm/dts/imx7-colibri.dtsi | 116 + arch/arm/dts/imx7d.dtsi| 3 + arch/arm/dts/imx7s.dtsi

[U-Boot] [PATCH v1 4/6] apalis_imx6: migrate to DM_ETH

2019-11-04 Thread Igor Opaniuk
From: Igor Opaniuk Migrate to DM_ETH and remove hardcoded pinmux configuration. Signed-off-by: Igor Opaniuk --- board/toradex/apalis_imx6/apalis_imx6.c | 51 - configs/apalis_imx6_defconfig | 3 ++ include/configs/apalis_imx6.h | 6 --- 3 files

[U-Boot] [PATCH v1 1/6] ARM: dts: imx6_colibri: introduce fec node

2019-11-04 Thread Igor Opaniuk
From: Igor Opaniuk Sync DTS with the mainline Linux and introduce fec node. Signed-off-by: Igor Opaniuk --- arch/arm/dts/imx6-colibri.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/dts/imx6-colibri.dts b/arch/arm/dts/imx6-colibri.dts index 5c9f1f0d2b

[U-Boot] [PATCH v1 0/6] imx: colibri imx6/imx7: apalis imx6: migrate to DM_ETH

2019-11-04 Thread Igor Opaniuk
Migrate to DM_ETH and remove hardcoded pinmux configuration. Igor Opaniuk (6): ARM: dts: imx6_colibri: introduce fec node colibri_imx6: migrate to DM_ETH ARM: dts: imx6_apalis: introduce fec node apalis_imx6: migrate to DM_ETH ARM: dts: imx7: imx7_colibri: introduce fec node

Re: [U-Boot] [PATCH v3 1/2] ARM: dts: imx6ull-colibri: change hierarchy of DTS files

2019-11-03 Thread Igor Opaniuk
On Sun, Nov 3, 2019 at 5:36 PM Stefano Babic wrote: > > On 03/11/19 17:20, Igor Opaniuk wrote: > > Hi Stefano, > > > > On Wed, Oct 16, 2019 at 12:39 PM Igor Opaniuk > > wrote: > >> > >> From: Igor Opaniuk > >> > >> In

Re: [U-Boot] [PATCH v3 2/2] ARM: dts: imx6ull-colibri: pre-reloc for uart pinmux modes

2019-11-03 Thread Igor Opaniuk
Hi Stefano, On Wed, Oct 16, 2019 at 12:39 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Add u-boot,dm-pre-reloc properties for uart pinmux configuration > nodes, which enables UART as early as possible (before relocation). > > Without this we miss almost the half of o

Re: [U-Boot] [PATCH v3 1/2] ARM: dts: imx6ull-colibri: change hierarchy of DTS files

2019-11-03 Thread Igor Opaniuk
Hi Stefano, On Wed, Oct 16, 2019 at 12:39 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Introduce imx6ull-colibri-u-boot.dtsi for u-boot specific properties to > keep original imx6ull-colibri.dts in sync with Linux. > > Move all contents of imx6ull-colibri.dts to

Re: [U-Boot] [PATCH v2 3/5] imx: nandbcb: add support for i.MX7

2019-11-03 Thread Igor Opaniuk
HI Stefano, On Sun, Nov 3, 2019 at 2:55 PM Stefano Babic wrote: > > Hi Igor, > > On 21/10/19 15:38, Igor Opaniuk wrote: > > From: Igor Opaniuk > > > > Add support for updating FCB/DBBT on i.MX7: > > - additional new fields in FCB structure > > - Levera

[U-Boot] [PATCH v3 2/5] nand: mxs_nand: add API for switching different BCH layouts

2019-11-03 Thread Igor Opaniuk
From: Igor Opaniuk On i.MX7 in a sake of reducing the disturbances caused by a neighboring cells in the FCB page in the NAND chip, a randomizer is enabled when reading the FCB page by ROM bootloader. Add API for setting BCH to specific layout (and restoring it back) used by ROM bootloader

[U-Boot] [PATCH v3 5/5] imx: nandbcb: add support for writing BCB only

2019-11-03 Thread Igor Opaniuk
From: Igor Opaniuk Add subcommand for add writing BCB only, where we provide appropriate offsets for firmware1 and firmware2 and size. Example of usage: > nandbcb bcbonly 0x0018 0x0008 0x0020 Writing 1024 bytes to 0x0: randomizing OK Writing 1024 bytes to 0x2: randomizing

[U-Boot] [PATCH v3 1/5] imx: gpmi: add defines for hw randominizer

2019-11-03 Thread Igor Opaniuk
From: Igor Opaniuk Extend GPMI Integrated ECC Control Register Description, include additional defines for enabling randomizer function and providing proper randomizer type. For additional details check i.MX7 APR, section 9.6.6.3 GPMI Integrated ECC Control Register Description (GPMI_ECCCTRLn

[U-Boot] [PATCH v3 4/5] imx: nandbcb: refactor update function

2019-11-03 Thread Igor Opaniuk
From: Igor Opaniuk Move code for writing FCB/DBBT pages to a separate function Signed-off-by: Igor Opaniuk Tested-by: Max Krummenacher Reviewed-by: Oleksandr Suvorov --- arch/arm/mach-imx/cmd_nandbcb.c | 231 ++-- 1 file changed, 127 insertions(+), 104 deletions

[U-Boot] [PATCH v3 0/5] imx: nandbcb: support for i.MX7 and bcb only updates

2019-11-03 Thread Igor Opaniuk
build for imx6 Igor Opaniuk (5): imx: gpmi: add defines for hw randominizer nand: mxs_nand: add API for switching different BCH layouts imx: nandbcb: add support for i.MX7 imx: nandbcb: refactor update function imx: nandbcb: add support for writing BCB only arch/arm/include/asm/mach-imx

[U-Boot] [PATCH v3 3/5] imx: nandbcb: add support for i.MX7

2019-11-03 Thread Igor Opaniuk
From: Igor Opaniuk Add support for updating FCB/DBBT on i.MX7: - additional new fields in FCB structure - Leverage hardware BCH/randomizer for writing FCB Signed-off-by: Igor Opaniuk Tested-by: Max Krummenacher Reviewed-by: Oleksandr Suvorov --- arch/arm/include/asm/mach-imx/imx-nandbcb.h

Re: [U-Boot] Different build result for board "tbs2910" in gitlab-ci and azure

2019-11-02 Thread Igor Opaniuk
/lists.denx.de/listinfo/u-boot That is toolchain version specific issue(there was a discussion about this board [1]). On Azure gcc-9.1.0-2 is used In gitlab-ci - gcc-7.3.0. [1] https://patchwork.ozlabs.org/patch/1180025/ -- Best regards - Freundliche Grüsse - Meilleures salutations Igor Opaniuk

[U-Boot] Fwd: [PULL] u-boot-usb/master

2019-10-24 Thread Igor Opaniuk
+ Heinrich, Hi Tom, Marek, Heinrich, On Thu, Oct 24, 2019 at 2:54 PM Tom Rini wrote: > > It will fail with the 7.3 one buildman fetches > > On Thu, Oct 24, 2019, 7:34 AM Igor Opaniuk wrote: >> >> Hi Tom, >> >> On Thu, Oct 24, 2019 at 2:24 PM Tom Rini w

Re: [U-Boot] [PULL] u-boot-usb/master

2019-10-24 Thread Igor Opaniuk
Hi Tom, On Thu, Oct 24, 2019 at 2:24 PM Tom Rini wrote: > > On Thu, Oct 24, 2019 at 12:22:25PM +0300, Igor Opaniuk wrote: > > Hi Tom, > > > > On Wed, Oct 23, 2019 at 10:36 PM Marek Vasut wrote: > > > > > > On 10/23/19 9:26 PM, Tom Rini wrote: > &

Re: [U-Boot] [PULL] u-boot-usb/master

2019-10-24 Thread Igor Opaniuk
_SEPARATE for boards in mainline. See doc/README.fdt-control for more info. ======== CFGCHK u-boot.cfg > > And Igor ... > > -- > Best regards, > Marek Vasut -- Best regards - Freundliche Grüsse - Meilleures salutations Igor Op

Re: [U-Boot] [PATCH] cmd: avb: Fix requested partitions list

2019-10-21 Thread Igor Opaniuk
oard, but I presume it > might affect more platforms, as code I'm fixing in that patch is > common). Also I send [2] for slots support in AVB. Will appreciate > your review. > > Thanks! > > [1] https://patchwork.ozlabs.org/patch/1147191/ > [2] https://patchwork.ozlabs.org/p

Re: [U-Boot] [PATCH v2] cmd: avb: Support A/B slots

2019-10-21 Thread Igor Opaniuk
gt; be the same as before, so user API is content. > > Signed-off-by: Sam Protsenko > Reviewed-by: Igor Opaniuk > --- > Changes in v2: > - Add corresponding documentation as per Igor's request > > cmd/avb.c| 13 + > doc/android/avb2.txt | 4 ++

[U-Boot] [PATCH v2 5/5] imx: nandbcb: add support for writing BCB only

2019-10-21 Thread Igor Opaniuk
From: Igor Opaniuk Add subcommand for add writing BCB only, where we provide appropriate offsets for firmware1 and firmware2 and size. Example of usage: - nandbcb bcbonly 0x0018 0x0008 0x0020 Writing 1024 bytes to 0x0: randomizing OK Writing 1024 bytes to 0x2: randomizing OK

[U-Boot] [PATCH v2 2/5] nand: mxs_nand: add API for switching different BCH layouts

2019-10-21 Thread Igor Opaniuk
From: Igor Opaniuk On i.MX7 in a sake of reducing the disturbances caused by a neighboring cells in the FCB page in the NAND chip, a randomizer is enabled when reading the FCB page by ROM bootloader. Add API for setting BCH to specific layout (and restoring it back) used by ROM bootloader

[U-Boot] [PATCH v2 4/5] imx: nandbcb: refactor update function

2019-10-21 Thread Igor Opaniuk
From: Igor Opaniuk Move code for writing FCB/DBBT pages to a separate function Signed-off-by: Igor Opaniuk --- arch/arm/mach-imx/cmd_nandbcb.c | 221 ++-- 1 file changed, 122 insertions(+), 99 deletions(-) diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm

[U-Boot] [PATCH v2 1/5] imx: gpmi: add defines for hw randominizer

2019-10-21 Thread Igor Opaniuk
From: Igor Opaniuk Extend GPMI Integrated ECC Control Register Description, include additional defines for enabling randomizer function and providing proper randomizer type. For additional details check i.MX7 APR, section 9.6.6.3 GPMI Integrated ECC Control Register Description (GPMI_ECCCTRLn

[U-Boot] [PATCH v2 3/5] imx: nandbcb: add support for i.MX7

2019-10-21 Thread Igor Opaniuk
From: Igor Opaniuk Add support for updating FCB/DBBT on i.MX7: - additional new fields in FCB structure - Leverage hardware BCH/randomizer for writing FCB Signed-off-by: Igor Opaniuk --- arch/arm/include/asm/mach-imx/imx-nandbcb.h | 12 ++ arch/arm/mach-imx/Kconfig | 2

[U-Boot] [PATCH v2 0/5] imx: nandbcb: support for i.MX7 and bcb only updates

2019-10-21 Thread Igor Opaniuk
This introduces support for writing BCB(FCB/FDDT) for i.MX7 NAND-based platforms and additional subcommand for writing BCB only (without firmware). v2: - Switch to runtime detection of SoC(e.g. is_mx7()) instead of ifdeffery - Fix build for imx6 Igor Opaniuk (5): imx: gpmi: add defines for hw

[U-Boot] [PATCH v3 2/2] ARM: dts: imx6ull-colibri: pre-reloc for uart pinmux modes

2019-10-16 Thread Igor Opaniuk
From: Igor Opaniuk Add u-boot,dm-pre-reloc properties for uart pinmux configuration nodes, which enables UART as early as possible (before relocation). Without this we miss almost the half of output (U-boot version, CPU defails, Reset cause, DRAM details etc.). Fixes: cd69e8ef9b ("co

[U-Boot] [PATCH v3 1/2] ARM: dts: imx6ull-colibri: change hierarchy of DTS files

2019-10-16 Thread Igor Opaniuk
From: Igor Opaniuk Introduce imx6ull-colibri-u-boot.dtsi for u-boot specific properties to keep original imx6ull-colibri.dts in sync with Linux. Move all contents of imx6ull-colibri.dts to imx6ull-colibri.dtsi + additionally fix checkpatch warnings. Reviewed-by: Oleksandr Suvorov Reviewed

[U-Boot] [PATCH v3 0/2] imx6ull: Fix missing initial output from UART

2019-10-16 Thread Igor Opaniuk
before relocation (is already applied) and add u-boot,dm-pre-reloc properties to uart pinmux configuration nodes. Setting pinmux configuration for UART before was done in board_early_init_f(). Igor Opaniuk (2): ARM: dts: imx6ull-colibri: change hierarchy of DTS files ARM: dts: imx6ull-colibri

Re: [U-Boot] [PATCH] cmd: avb: Support A/B slots

2019-10-16 Thread Igor Opaniuk
;avb read_pvalue - read a persistent value \n" > "avb write_pvalue - write a persistent value \n" > #endif > - "avb verify - run verification process using hash data\n" > + "avb verify [slot_suffix] - run verification process usin

Re: [U-Boot] [PATCH v2] cmd: avb: Fix requested partitions list

2019-10-16 Thread Igor Opaniuk
ag, >int argc, char *const argv[]) > { > + const char * const requested_partitions[] = {"boot", NULL}; > AvbSlotVerifyResult slot_result; > AvbSlotVerifyData *out_data; > char *cmdline; > -- > 2.23.0.rc1 >

Re: [U-Boot] [PATCH 1/2] libavb: Update libavb to current AOSP master

2019-10-16 Thread Igor Opaniuk
Hi Sam, On Thu, Aug 15, 2019 at 11:04 PM Sam Protsenko wrote: > > Update libavb to commit 5fbb42a189aa in AOSP/master, because new version > has support for super partition [1], which we need for implementing > Android dynamic partitions. All changes from previous patches for libavb > in U-Boot

Re: [U-Boot] [PATCH v1 5/5] colibri_t30: disable rs232 serial transceiver forceoff pins

2019-10-16 Thread Igor Opaniuk
772B USB to LAN controller > */ > -- > 2.21.0 > > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot What not to handle this in the dts instead? -- Best regards - Freundliche Grü

Re: [U-Boot] [PATCH v1 3/5] apalis/colibri_t30: avoid uart input from floating pins

2019-10-15 Thread Igor Opaniuk
AL, NORMAL, INPUT), > > - > /* Multiplexed with KB_ROW10/KB_ROW11/KB_ROW12/KB_ROW15 */ > DEFAULT_PINMUX(CAM_MCLK_PCC0, VI_ALT2, UP, TRISTATE, INPUT), > DEFAULT_PINMUX(PCC1, RSVD1, NORMAL, TRISTATE, INPUT), > -- > 2.21.0 > > _

Re: [U-Boot] [PATCH v1 4/5] apalis/colibri_t30: add note about colibri vs. nvidia uart mapping

2019-10-15 Thread Igor Opaniuk
RT-B: NVIDIA UARTD > + * Colibri UART-C: NVIDIA UARTB > + */ > #define CONFIG_TEGRA_ENABLE_UARTA > #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE > > -- > 2.21.0 > > _______ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx

Re: [U-Boot] [PATCH v1 2/5] colibri_t30: fix spi1 and uart2/3 resp. uartb/c pinmuxing

2019-10-15 Thread Igor Opaniuk
ESET */ > DEFAULT_PINMUX(PEX_L0_PRSNT_N_PDD0, RSVD2, NORMAL, NORMAL, OUTPUT), > -- > 2.21.0 > > _______ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot Reviewed-b

Re: [U-Boot] [PATCH v1 1/5] apalis/colibri_t30: add comment about tristate and input vs. output pinmuxing

2019-10-15 Thread Igor Opaniuk
.od = PMUX_PIN_OD_DEFAULT, \ > -- > 2.21.0 > > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot Reviewed-by: Igor Opaniuk -- Best regards - Fr

[U-Boot] [PATCH v1 4/4] colibri_imx7: remove legacy sdboot wrapper

2019-10-11 Thread Igor Opaniuk
From: Igor Opaniuk Remove legacy sdboot wrapper as distroboot can be used instead. Signed-off-by: Igor Opaniuk --- include/configs/colibri_imx7.h | 23 --- 1 file changed, 23 deletions(-) diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h index

[U-Boot] [PATCH v1 3/4] colibri_imx6: remove legacy sdboot wrapper

2019-10-11 Thread Igor Opaniuk
From: Igor Opaniuk Remove legacy sdboot wrapper as distroboot can be used instead. Signed-off-by: Igor Opaniuk --- include/configs/colibri_imx6.h | 18 -- 1 file changed, 18 deletions(-) diff --git a/include/configs/colibri_imx6.h b/include/configs/colibri_imx6.h index

[U-Boot] [PATCH v1 1/4] apalis_imx6: remove legacy sdboot wrapper

2019-10-11 Thread Igor Opaniuk
From: Igor Opaniuk Remove legacy sdboot wrapper as distroboot can be used instead. Signed-off-by: Igor Opaniuk --- include/configs/apalis_imx6.h | 19 --- 1 file changed, 19 deletions(-) diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index

[U-Boot] [PATCH v1 2/4] colibri-imx6ull: remove legacy sdboot wrapper

2019-10-11 Thread Igor Opaniuk
From: Igor Opaniuk Remove legacy sdboot wrapper as distroboot can be used instead. Signed-off-by: Igor Opaniuk --- include/configs/colibri-imx6ull.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/include/configs/colibri-imx6ull.h b/include/configs/colibri-imx6ull.h index

[U-Boot] [PATCH v2] usb: ehci-mx6: Fix bus enumeration for iMX7 SoCs

2019-10-10 Thread Igor Opaniuk
From: Igor Opaniuk This fixes the issues with calculation of controller indexes in ehci_usb_bind() for iMX7, as USB controllers on iMX7 SoCs aren't placed next to each other, and their addresses incremented by 0x1. Example of USB nodes for iMX7S/D: usbotg1: usb@30b1 { compatible

Re: [U-Boot] [PATCH v1] usb: ehci-mx6: Fix bus enumeration for iMX7 SoCs

2019-10-10 Thread Igor Opaniuk
On Thu, Oct 10, 2019 at 3:43 PM Marek Vasut wrote: > > On 10/10/19 2:29 PM, Igor Opaniuk wrote: > > Hi Marek > > Hi Igor, > > > On Thu, Oct 10, 2019 at 2:47 PM Marek Vasut wrote: > >> > >> On 10/10/19 1:25 PM, Igor Opaniuk wrote: > >> [...] &

Re: [U-Boot] [PATCH v1] usb: ehci-mx6: Fix bus enumeration for iMX7 SoCs

2019-10-10 Thread Igor Opaniuk
Hi Marek On Thu, Oct 10, 2019 at 2:47 PM Marek Vasut wrote: > > On 10/10/19 1:25 PM, Igor Opaniuk wrote: > [...] > >* from which it derives offsets in the PHY and ANATOP register sets. > >* > >* Here we attempt to calculate these

[U-Boot] [RESEND PATCH v1] usb: ehci-mx6: Fix bus enumeration for iMX7 SoCs

2019-10-10 Thread Igor Opaniuk
From: Igor Opaniuk This fixes the issues with calculation of controller indexes in ehci_usb_bind() for iMX7, as USB controllers on iMX7 SoCs aren't placed next to each other, and their addresses incremented by 0x1. Example of USB nodes for iMX7S/D: usbotg1: usb@30b1 { compatible

[U-Boot] [PATCH v1] usb: ehci-mx6: Fix bus enumeration for iMX7 SoCs

2019-10-10 Thread Igor Opaniuk
From: Igor Opaniuk This fixes the issues with calculation of controller indexes in ehci_usb_bind() for iMX7, as USB controllers on iMX7 SoCs aren't placed next to each other, and their addresses incremented by 0x1000. Example of USB nodes for iMX7S/D: usbotg1: usb@30b1 { compatible

Re: [U-Boot] [PATCH V2] usb: ehci-mx6: Fix bus enumeration for DM case

2019-10-08 Thread Igor Opaniuk
platdata = ehci_usb_ofdata_to_platdata, > + .bind = ehci_usb_bind, > .probe = ehci_usb_probe, > .remove = ehci_deregister, > .ops= _usb_ops, > -- > 2.20.1 > > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot Thanks -- Best regards - Freundliche Grüsse - Meilleures salutations Igor Opaniuk mailto: igor.opan...@gmail.com skype: igor.opanyuk +380 (93) 836 40 67 http://ua.linkedin.com/in/iopaniuk ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 0/3] imx6ull: Fix missing initial output from UART

2019-09-24 Thread Igor Opaniuk
Hi Stefano, On Wed, Jul 24, 2019 at 6:10 PM Igor Opaniuk wrote: > > For Colibri iMX6ULL we have to set pinmux for uart configuration ASAP > (ideally before relocation) to get serial console working. Without this > we miss almost the half of output (U-boot version, CPU defails, &

Re: [U-Boot] [PATCH 3/7] cmd: bootimg: Add bootimg command

2019-09-24 Thread Igor Opaniuk
b? I think there is some misunderstanding here, as avb is used only for signature verification/roll-back protection, other aspects of booting Android (parsing android boot image) are handled by other commands (for instance, bootm). Howewer, I think (IMHO) that `bootimg` isn't a good choice for the

Re: [U-Boot] [PATCH] cmd: part: number: return hexadecimal value

2019-09-24 Thread Igor Opaniuk
t; - snprintf(buf, sizeof(buf), "%d", part); > + snprintf(buf, sizeof(buf), "0x%x", part); > break; > default: > printf("** Unknown cmd_part_info value: %d\n", param); > -- > 2.23.0 &g

[U-Boot] [PATCH v1 5/5] imx: nandbcb: add support for writing BCB only

2019-09-16 Thread Igor Opaniuk
From: Igor Opaniuk Add subcommand for add writing BCB only, where we provide appropriate offsets for firmware1 and firmware2 and size. Example of usage: > nandbcb bcbonly 0x0018 0x0008 0x0020 Writing 1024 bytes to 0x0: randomizing OK Writing 1024 bytes to 0x2: randomizing

[U-Boot] [PATCH v1 4/5] imx: nandbcb: refactor update function

2019-09-16 Thread Igor Opaniuk
From: Igor Opaniuk Move code for writing FCB/DBBT pages to a separate function Signed-off-by: Igor Opaniuk --- arch/arm/mach-imx/cmd_nandbcb.c | 221 ++-- 1 file changed, 122 insertions(+), 99 deletions(-) diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm

[U-Boot] [PATCH v1 3/5] imx: nandbcb: add support for i.MX7

2019-09-16 Thread Igor Opaniuk
From: Igor Opaniuk Add support for updating FCB/DBBT on i.MX7: - additional new fields in FCB structure - Leverage hardware BCH/randomizer for writing FCB Signed-off-by: Igor Opaniuk --- arch/arm/include/asm/mach-imx/imx-nandbcb.h | 12 ++ arch/arm/mach-imx/Kconfig | 2

[U-Boot] [PATCH v1 2/5] nand: mxs_nand: add API for switching different BCH layouts

2019-09-16 Thread Igor Opaniuk
From: Igor Opaniuk On i.MX7 in a sake of reducing the disturbances caused by a neighboring cells in the FCB page in the NAND chip, a randomizer is enabled when reading the FCB page by ROM bootloader. Add API for setting BCH to specific layout (and restoring it back) used by ROM bootloader

[U-Boot] [PATCH v1 1/5] imx: gpmi: add defines for hw randominizer

2019-09-16 Thread Igor Opaniuk
From: Igor Opaniuk Extend GPMI Integrated ECC Control Register Description, include additional defines for enabling randomizer function and providing proper randomizer type. For additional details check i.MX7 APR, section 9.6.6.3 GPMI Integrated ECC Control Register Description (GPMI_ECCCTRLn

[U-Boot] [PATCH v1 0/5] imx: nandbcb: support for i.MX7 and bcb only updates

2019-09-16 Thread Igor Opaniuk
This introduces support for writing BCB(FCB/FDDT) for i.MX7 NAND-based platforms and additional subcommand for writing BCB only (without firmware). Igor Opaniuk (5): imx: gpmi: add defines for hw randominizer nand: mxs_nand: add API for switching different BCH layouts imx: nandbcb: add

Re: [U-Boot] nxp: HABv4 secure boot on iMX7 NAND broken

2019-09-16 Thread Igor Opaniuk
Hi Breno, On Mon, Sep 16, 2019 at 5:54 AM Breno Matheus Lima wrote: > > Hi Igor, > > Em qui, 12 de set de 2019 às 10:55, Igor Opaniuk > escreveu: > > > > Hy Bryan, Breno, > > > > On Tue, Jul 30, 2019 at 5:33 PM Bryan O'Donoghue > > wrote: >

Re: [U-Boot] nxp: HABv4 secure boot on iMX7 NAND broken

2019-09-12 Thread Igor Opaniuk
Hy Bryan, Breno, On Tue, Jul 30, 2019 at 5:33 PM Bryan O'Donoghue wrote: > > > > On 30/07/2019 15:26, Igor Opaniuk wrote: > > Anyway, let me go through this article one more time, > > and I'll get back to you. > > If I've understood you, you are using the sam

[U-Boot] [RFC PATCH v1 4/5] imx: nandbcb: refactor update function

2019-09-11 Thread Igor Opaniuk
From: Igor Opaniuk Move code for writing FCB/DBBT pages to a separate function Signed-off-by: Igor Opaniuk --- arch/arm/mach-imx/cmd_nandbcb.c | 221 ++-- 1 file changed, 122 insertions(+), 99 deletions(-) diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm

[U-Boot] [RFC PATCH v1 5/5] imx: nandbcb: add support for writing BCB only

2019-09-11 Thread Igor Opaniuk
From: Igor Opaniuk Add subcommand for add writing BCB only, where we provide appropriate offsets for firmware1 and firmware2 and size. Example of usage: > nandbcb bcbonly 0x0018 0x0008 0x0020 Writing 1024 bytes to 0x0: randomizing OK Writing 1024 bytes to 0x2: randomizing

[U-Boot] [RFC PATCH v1 2/5] nand: mxs_nand: add API for switching different BCH layouts

2019-09-11 Thread Igor Opaniuk
From: Igor Opaniuk On i.MX7 in a sake of reducing the disturbances caused by a neighboring cells in the FCB page in the NAND chip, a randomizer is enabled when reading the FCB page by ROM bootloader. Add API for setting BCH to specific layout (and restoring it back) used by ROM bootloader

[U-Boot] [RFC PATCH v1 3/5] imx: nandbcb: add support for i.MX7

2019-09-11 Thread Igor Opaniuk
From: Igor Opaniuk Add support for updating FCB/DBBT on i.MX7: - additional new fields in FCB structure - Leverage hardware BCH/randomizer for writing FCB Signed-off-by: Igor Opaniuk --- arch/arm/include/asm/mach-imx/imx-nandbcb.h | 12 ++ arch/arm/mach-imx/Kconfig | 2

[U-Boot] [RFC PATCH v1 1/5] imx: gpmi: add defines for hw randominizer

2019-09-11 Thread Igor Opaniuk
From: Igor Opaniuk Extend GPMI Integrated ECC Control Register Description, include additional defines for enabling randomizer function and providing proper randomizer type. For additional details check i.MX7 APR, section 9.6.6.3 GPMI Integrated ECC Control Register Description (GPMI_ECCCTRLn

[U-Boot] [RFC PATCH v1 0/5] imx: nandbcb: support for i.MX7 and bcb only updates

2019-09-11 Thread Igor Opaniuk
This introduces support for writing BCB(FCB/FDDT) for i.MX7 and additional subcommand for writing BCB only (without firmware). Igor Opaniuk (5): imx: gpmi: add defines for hw randominizer nand: mxs_nand: add API for switching different BCH layouts imx: nandbcb: add support for i.MX7 imx

Re: [U-Boot] [PATCH] apalis_imx6: allocate specific region of memory to OP-TEE

2019-09-03 Thread Igor Opaniuk
where we can handle all this in a boot script instead). > > Thanks, > -- > Ricardo Salveti > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot Thanks -- Best regards - Freundliche Grüsse - Meilleures salutations Igor Opaniuk mailto: igor.opan...@gmail.com skype: igor.opanyuk +380 (93) 836 40 67 http://ua.linkedin.com/in/iopaniuk ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] avb: verify: return fail if there is no uuid in partition info

2019-09-02 Thread Igor Opaniuk
n/Kconfig (AVB_VERIFY symbol) to lib/Kconfig for LIBAVB symbol. Thanks! -- Best regards - Freundliche Grüsse - Meilleures salutations Igor Opaniuk mailto: igor.opan...@gmail.com skype: igor.opanyuk +380 (93) 836 40 67 http://ua.linkedin.com/in/iopaniuk ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v1] apalis-tk1: use distroboot by default

2019-08-28 Thread Igor Opaniuk
From: Igor Opaniuk Use distro boot by default instead legacy wrappers. Signed-off-by: Igor Opaniuk --- configs/apalis-tk1_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/apalis-tk1_defconfig b/configs/apalis-tk1_defconfig index be0554b150..bb36bb3870

[U-Boot] [PATCH v1 2/2] apalis_imx6: use distroboot by default

2019-08-23 Thread Igor Opaniuk
From: Igor Opaniuk Use distro_bootcmd as defauult bootcmd instead of legacy wrappers. Signed-off-by: Igor Opaniuk --- include/configs/apalis_imx6.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index

[U-Boot] [PATCH v1 1/2] colibri_imx6/imx7/imx8x: use distroboot by default

2019-08-23 Thread Igor Opaniuk
From: Igor Opaniuk Use distro_bootcmd as defauult bootcmd instead of legacy wrappers. Signed-off-by: Igor Opaniuk --- include/configs/colibri-imx8x.h | 1 + include/configs/colibri_imx6.h | 4 ++-- include/configs/colibri_imx7.h | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions

Re: [U-Boot] [PATCH v1] common: fix building image.c

2019-08-20 Thread Igor Opaniuk
On Tue, Aug 20, 2019 at 5:09 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Wrap image_decomp() and all dependent functions with > !ifdef(USE_HOSTCC) macro, as this function isn't used by > any tool from /tools. > > Without this it leads to compilation issues (becau

[U-Boot] [PATCH v1] common: fix building image.c

2019-08-20 Thread Igor Opaniuk
From: Igor Opaniuk Wrap image_decomp() and all dependent functions with !ifdef(USE_HOSTCC) macro, as this function isn't used by any tool from /tools. Without this it leads to compilation issues (because of CONFIG_LZMA from newly added #include statement, which pulls all these definitions

Re: [U-Boot] [RFC PATCH v1] common: fix building image.c

2019-08-20 Thread Igor Opaniuk
Hi Tom, On Tue, Aug 13, 2019 at 3:44 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Wrap image_decomp() and all dependent functions with > !ifdef(USE_HOSTCC) macro, as this function isn't used by > any tool from /tools. > > Without this it leads to com

Re: [U-Boot] [PATCH 2/2] libavb: Fix build warnings after updating the lib

2019-08-19 Thread Igor Opaniuk
On Mon, Aug 19, 2019 at 12:40 PM Igor Opaniuk wrote: > > Hi Eugeniu, > > On Mon, Aug 19, 2019 at 11:28 AM Eugeniu Rosca wrote: > > > > Hi all, > > > > On Fri, Aug 16, 2019 at 11:46:03AM -0400, David Zeuthen wrote: > > >Hi, > > >

Re: [U-Boot] [PATCH 2/2] libavb: Fix build warnings after updating the lib

2019-08-19 Thread Igor Opaniuk
tc; other ideas?) keep track of changes that are not up-streamed to AOSP yet. Ideally we have to achieve 1:1 mapping (with the only difference - SPDX tags), of [1] in lib/libavb/, otherwise we will fight with constant code divergence (obviously). [1] https://android.googlesource.com/pla

Re: [U-Boot] [PATCH 1/2] mmc: Fix timeout values passed to mmc_wait_dat0()

2019-08-19 Thread Igor Opaniuk
ys status */ > - ret = mmc_wait_dat0(mmc, 1, timeout); > + ret = mmc_wait_dat0(mmc, 1, timeout * 1000); > if (ret && ret != -ENOSYS) > return ret; > > -- > 2.20.1 > Tested-by: Igor Opaniuk Reviewed-by: Igor Opaniuk -- Be

Re: [U-Boot] [PATCH 2/2] mmc: Rename timeout parameters for clarification

2019-08-19 Thread Igor Opaniuk
t udevice *dev, uint opcode); > -int dm_mmc_wait_dat0(struct udevice *dev, int state, int timeout); > +int dm_mmc_wait_dat0(struct udevice *dev, int state, int timeout_us); > > /* Transition functions for compatibility */ > int mmc_set_ios(struct mmc *mmc); > int mmc_getcd(st

Re: [U-Boot] [RFC PATCH v1] common: fix building image.c

2019-08-13 Thread Igor Opaniuk
Hi all, On Tue, Aug 13, 2019 at 3:44 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Wrap image_decomp() and all dependent functions with > !ifdef(USE_HOSTCC) macro, as this function isn't used by > any tool from /tools. > > Without this it leads to com

Re: [U-Boot] [RFC PATCH v1] common: fix building image.c

2019-08-13 Thread Igor Opaniuk
Hi all, On Tue, Aug 13, 2019 at 3:44 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Wrap image_decomp() and all dependent functions with > !ifdef(USE_HOSTCC) macro, as this function isn't used by > any tool from /tools. > > Without this it leads to com

[U-Boot] [RFC PATCH v1] common: fix building image.c

2019-08-13 Thread Igor Opaniuk
From: Igor Opaniuk Wrap image_decomp() and all dependent functions with !ifdef(USE_HOSTCC) macro, as this function isn't used by any tool from /tools. Without this it leads to compilation issues (because of CONFIG_LZMA from newly added #include statement, which pulls all these definitions

Re: [U-Boot] [PATCH] cmd: avb: Fix requested partitions list

2019-08-12 Thread Igor Opaniuk
ze what we've already discussed): 1. Update libavb to the latest stable version 2. Check if `avb verify` still behaves as expected on non-AB setups. 3. Introduce support of AB slots and different fixes like this one Thanks -- Best regards - Freundliche Grüsse - Meilleures salutations Igor Op

Re: [U-Boot] [PATCH v1] apalis-tk1: support v1.2 hardware revision

2019-08-09 Thread Igor Opaniuk
Hi Tom, On Fri, Aug 9, 2019 at 1:22 PM Igor Opaniuk wrote: > > From: Marcel Ziswiler > > Support the V1.2 hardware revision with the following pin muxing > changes: > > Ddc_scl_pv4 and ddc_sda_pv5 previously used as Apalis GPIO3 and GPIO4 > are now used as DDC pi

[U-Boot] [PATCH v1] apalis-tk1: support v1.2 hardware revision

2019-08-09 Thread Igor Opaniuk
Ziswiler Signed-off-by: Igor Opaniuk --- arch/arm/dts/tegra124-apalis.dts | 89 ++- board/toradex/apalis-tk1/apalis-tk1.c | 37 .../apalis-tk1/pinmux-config-apalis-tk1.h | 19 ++-- configs/apalis-tk1_defconfig | 2 +- include/configs

Re: [U-Boot] [PATCH v1] MAINTAINERS: Add entries for Android A/B and AVB

2019-08-08 Thread Igor Opaniuk
Hi Tom On Thu, Aug 8, 2019 at 3:33 PM Igor Opaniuk wrote: > > 1. Add myself as Android A/B and AVB maintainer > 2. Add Sam Protsenko as Designated reviewer for A/B > > Signed-off-by: Igor Opaniuk > > --- > > MAINTAINERS | 20 > 1 file chan

[U-Boot] [PATCH v1] MAINTAINERS: Add entries for Android A/B and AVB

2019-08-08 Thread Igor Opaniuk
1. Add myself as Android A/B and AVB maintainer 2. Add Sam Protsenko as Designated reviewer for A/B Signed-off-by: Igor Opaniuk --- MAINTAINERS | 20 1 file changed, 20 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b443c5af75..5e601b5ff3 100644

Re: [U-Boot] [RFC PATCH] cmd: avb: Support A/B slots

2019-08-07 Thread Igor Opaniuk
+ added also David Zeuthen to CC (I hope he doesn't mind :) ), who actually introduced all these changes in libavb. On Tue, Aug 6, 2019 at 4:38 PM Sam Protsenko wrote: > > Hi Igor, > > On Tue, Aug 6, 2019 at 4:07 PM Igor Opaniuk wrote: > > > > Hi Sam, > >

Re: [U-Boot] [RFC PATCH] cmd: avb: Support A/B slots

2019-08-06 Thread Igor Opaniuk
ue, 3, 0, do_avb_write_pvalue, "", ""), > @@ -462,6 +466,7 @@ U_BOOT_CMD( > "avb read_pvalue - read a persistent value \n" > "avb write_pvalue - write a persistent value \n" > #endif > - "avb verify - run verificati

[U-Boot] [PATCH v3 08/10] apalis-tk1: remove default vesa vga mode from vidargs

2019-08-05 Thread Igor Opaniuk
sandr Suvorov Signed-off-by: Marcel Ziswiler Signed-off-by: Igor Opaniuk --- include/configs/apalis-tk1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/apalis-tk1.h b/include/configs/apalis-tk1.h index ae62f00cd1..869b2a8bd6 100644 --- a/include/configs/apalis-

[U-Boot] [PATCH v3 05/10] apalis-tk1: add pcie_aspm=off to defargs

2019-08-05 Thread Igor Opaniuk
From: Igor Opaniuk Disabling ASPM fixes incompatibilities with some PCIe cards Reviewed-by: Oleksandr Suvorov Signed-off-by: Dominik Sliwa Signed-off-by: Igor Opaniuk --- include/configs/apalis-tk1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/apalis

[U-Boot] [PATCH v3 10/10] apalis-tk1: remove non-esential power rails on boot

2019-08-05 Thread Igor Opaniuk
From: Dominik Sliwa When mainline kernels reboot TK1 they use SW_RESET, that reset mode does not reset PMIC. Some rails need to be off for RAM Re-repair to work correctly. Reviewed-by: Oleksandr Suvorov Signed-off-by: Dominik Sliwa Signed-off-by: Igor Opaniuk --- arch/arm/mach-tegra

[U-Boot] [PATCH v3 09/10] apalis-tk1: support v1.2 hardware revision

2019-08-05 Thread Igor Opaniuk
Ziswiler Signed-off-by: Igor Opaniuk --- arch/arm/dts/tegra124-apalis.dts | 89 ++- board/toradex/apalis-tk1/apalis-tk1.c | 37 .../apalis-tk1/pinmux-config-apalis-tk1.h | 19 ++-- configs/apalis-tk1_defconfig | 2 +- include/configs

[U-Boot] [PATCH v3 07/10] apalis-tk1/t30: colibri_t30: display reset reason

2019-08-05 Thread Igor Opaniuk
From: Dominik Sliwa Display proper reset reason after the SoC info. Reviewed-by: Oleksandr Suvorov Signed-off-by: Dominik Sliwa Signed-off-by: Igor Opaniuk --- arch/arm/mach-tegra/sys_info.c | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) diff

  1   2   3   4   5   >