[PATCH] bootstd: android: avoid possible null pointer dereference

2025-04-02 Thread Gary Bisson
- avb_slot_verify_data_free() doesn't check its data parameter - out_data can be null if avb_slot_verify() fails to allocate memory Signed-off-by: Gary Bisson --- Another approach would be to fix avb_slot_verify_data_free() to check its paramter but I believe the goal is not to touch liba

[PATCH v2 5/5] imx8ulp_evk: enable binman support

2024-08-05 Thread Gary Bisson
Signed-off-by: Gary Bisson --- arch/arm/dts/imx8ulp-evk-u-boot.dtsi | 2 + arch/arm/mach-imx/imx8ulp/Kconfig| 1 + configs/imx8ulp_evk_defconfig| 3 +- doc/board/nxp/imx8ulp_evk.rst| 79 doc/board/nxp/index.rst | 1 + 5 files

[PATCH v2 4/5] mach-imx: Add i.MX 8ULP binman support

2024-08-05 Thread Gary Bisson
binary (RISC-V core) for power management - 8ULP also requires a M33 binary to work properly Signed-off-by: Gary Bisson Reviewed-by: Peng Fan --- arch/arm/dts/imx8ulp-u-boot.dtsi| 63 + arch/arm/mach-imx/Makefile | 4 +- arch/arm/mach-imx/imx8ulp

[PATCH v2 3/5] spl: binman: Disable u_boot_any symbols for i.MX 8ULP boards

2024-08-05 Thread Gary Bisson
This is extending commit da96f93cda9 ("spl: binman: Disable u_boot_any symbols for i.MX93 boards") to i.MX 8ULP boards. Signed-off-by: Gary Bisson Reviewed-by: Peng Fan --- common/spl/Kconfig | 2 +- common/spl/Kconfig.tpl | 2 +- common/spl/Kconfig.vpl | 2 +- 3 files

[PATCH v2 2/5] tools: imx8image: add upower image support

2024-08-05 Thread Gary Bisson
Part of the upower management was included in a previous commit [1]. This patch only adds the bits required to properly parse a config file that would include the binary as follows: IMAGE PWR upower.bin [1] 6ec65c8558f (tools: image: support i.MX93) Signed-off-by: Gary Bisson Reviewed-by: Peng

[PATCH v2 1/5] tools: imx8image: fix soc variable for ULP

2024-08-05 Thread Gary Bisson
: Gary Bisson Reviewed-by: Peng Fan --- tools/imx8image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/imx8image.c b/tools/imx8image.c index 76d0cd62dcc..53ab16637ba 100644 --- a/tools/imx8image.c +++ b/tools/imx8image.c @@ -119,7 +119,7 @@ static void parse_cfg_cmd

[PATCH v2 0/5] imx: imx8ulp: add binman support

2024-08-05 Thread Gary Bisson
-by tags from v1 - Fix commit log order of patch #1 (request from Peng) - Fix indentation of patch #5 (request from Peng) - Add doc on how to build a bootable binary (request from Fabio) Regards, Gary Gary Bisson (5): tools: imx8image: fix soc variable for ULP tools: imx8image: add upower im

Re: [PATCH 0/5] imx: imx8ulp: add binman support

2024-08-05 Thread Gary Bisson
Hi Fabio, On Mon, Aug 05, 2024 at 10:31:34AM -0300, Fabio Estevam wrote: > Hi Gary, > > On Mon, Aug 5, 2024 at 9:43 AM Gary Bisson wrote: > > > Gary Bisson (5): > > tools: imx8image: fix soc variable for ULP > > tools: imx8image: add upower image supp

[PATCH 5/5] imx8ulp_evk: enable binman support

2024-08-05 Thread Gary Bisson
Signed-off-by: Gary Bisson --- arch/arm/dts/imx8ulp-evk-u-boot.dtsi | 2 ++ arch/arm/mach-imx/imx8ulp/Kconfig| 1 + configs/imx8ulp_evk_defconfig| 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/imx8ulp-evk-u-boot.dtsi b/arch/arm/dts/imx8ulp-evk-u

[PATCH 4/5] mach-imx: Add i.MX 8ULP binman support

2024-08-05 Thread Gary Bisson
binary (RISC-V core) for power management - 8ULP also requires a M33 binary to work properly Signed-off-by: Gary Bisson --- arch/arm/dts/imx8ulp-u-boot.dtsi| 63 + arch/arm/mach-imx/Makefile | 4 +- arch/arm/mach-imx/imx8ulp/container.cfg | 7

[PATCH 3/5] spl: binman: Disable u_boot_any symbols for i.MX 8ULP boards

2024-08-05 Thread Gary Bisson
This is extending commit da96f93cda9 ("spl: binman: Disable u_boot_any symbols for i.MX93 boards") to i.MX 8ULP boards. Signed-off-by: Gary Bisson --- common/spl/Kconfig | 2 +- common/spl/Kconfig.tpl | 2 +- common/spl/Kconfig.vpl | 2 +- 3 files changed, 3 insertions(+), 3

[PATCH 2/5] tools: imx8image: add upower image support

2024-08-05 Thread Gary Bisson
Part of the upower management was included in a previous commit [1]. This patch only adds the bits required to properly parse a config file that would include the binary as follows: IMAGE PWR upower.bin [1] 6ec65c8558f (tools: image: support i.MX93) Signed-off-by: Gary Bisson --- include

[PATCH 1/5] tools: imx8image: fix soc variable for ULP

2024-08-05 Thread Gary Bisson
: Gary Bisson --- tools/imx8image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/imx8image.c b/tools/imx8image.c index 76d0cd62dcc..53ab16637ba 100644 --- a/tools/imx8image.c +++ b/tools/imx8image.c @@ -119,7 +119,7 @@ static void parse_cfg_cmd(image_t *param_stack

[PATCH 0/5] imx: imx8ulp: add binman support

2024-08-05 Thread Gary Bisson
Hi, This series adds binman support for i.MX 8ULP processors. It required to update the imx8mkimage tool a bit as well as adding new container configuration files. But otherwise it is pretty close to what has been done on other i.MX processors like the 93. Regards, Gary Gary Bisson (5

Re: [PATCH] Revert "lib: sparse: Make CHUNK_TYPE_RAW buffer aligned"

2022-11-21 Thread Gary Bisson
Hi, On Fri, Nov 18, 2022 at 10:36:58AM -0500, Sean Anderson wrote: > On 11/18/22 07:13, Gary Bisson wrote: > > This reverts commit 62649165cb02ab95b57360bb362886935f524f26. > > > > The patch decreased the write performance quite a bit. > > Here is an example

[PATCH] Revert "lib: sparse: Make CHUNK_TYPE_RAW buffer aligned"

2022-11-18 Thread Gary Bisson
ssage about misaligned buffers, let's keep the best performances. Signed-off-by: Gary Bisson Signed-off-by: Troy Kisky --- lib/image-sparse.c | 69 ++ 1 file changed, 8 insertions(+), 61 deletions(-) diff --git a/lib/image-sparse.c b/lib/image-sp

[PATCH] cmd: bcb: fix bcb struct alignment issue

2022-01-11 Thread Gary Bisson
or was observed on an Amlogic A311D (ARM64) platform with a recent GCC toolchain (11.2.0) but is most likely affecting other platforms. To avoid issues the structure is aligned on DMA minimum alignment value as it is passed directly to the read function. Signed-off-by: Gary Bisson --- cmd/

[PATCH] usb: gadget: dwc2_udc_otg: set ep's desc during enable/disable

2022-01-06 Thread Gary Bisson
size") Signed-off-by: Gary Bisson --- drivers/usb/gadget/dwc2_udc_otg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index 2f318144421..fb10884755b 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++ b/drivers/

[PATCH] nitrogen6x: add missing pinctrl to fix mmc

2022-01-05 Thread Gary Bisson
Since commit f7ac30b042d, the pin muxing for mmc was removed from the board file to be managed by DM_MMC which requires PINCTRL to work. It made the change for sabrelite but nitrogen configs were forgotten. Signed-off-by: Gary Bisson --- configs/nitrogen6dl2g_defconfig | 2 ++ configs

[PATCH v2] disk: part_dos: update partition table entries after write

2021-01-28 Thread Gary Bisson
Fixes issues when switching from GPT to MBR partition tables. Signed-off-by: Gary Bisson --- Changes for v2: - added part_init() inside write_mbr_partitions(), as suggested by Heinrich --- disk/part_dos.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/disk/part_dos.c b/disk

Re: [PATCH] disk: part_dos: update partition table entries after write

2021-01-28 Thread Gary Bisson
Hi Heinrich, On Wed, Jan 27, 2021 at 09:56:13PM +0100, Heinrich Schuchardt wrote: > On 1/27/21 9:19 PM, Gary Bisson wrote: > > Fixes issues when switching from GPT to MBR partition tables. > > This does not catch all cases of changing the MBR. See function > write_mbr_partit

[PATCH] disk: part_dos: update partition table entries after write

2021-01-27 Thread Gary Bisson
Fixes issues when switching from GPT to MBR partition tables. Signed-off-by: Gary Bisson --- Hi, Sending this patch as a follow-up to the other one [1] doing the same thing for GPT write. Let me know if you have any questions. Regards, Gary [1] https://lists.denx.de/pipermail/u-boot/2021

Re: [PATCH] disk: part_efi: update partition table entries after write

2021-01-26 Thread Gary Bisson
Hi Heinrich, On Tue, Jan 26, 2021 at 04:08:13PM +0100, Heinrich Schuchardt wrote: > On 26.01.21 14:56, Gary Bisson wrote: > > Fixes fastboot issues when switching from mbr to gpt partition tables. > > > > Signed-off-by: Gary Bisson > > --- > > Hi, > > &g

[PATCH] disk: part_efi: update partition table entries after write

2021-01-26 Thread Gary Bisson
Fixes fastboot issues when switching from mbr to gpt partition tables. Signed-off-by: Gary Bisson --- Hi, I hesitated calling this a RFC as I'm not sure everyone will like the idea. Basically the issue encountered was the following: - Device with its storage flashed with a MBR partition

Re: [PATCH v2] fastboot: getvar: fix partition-size return value

2020-09-01 Thread Gary Bisson
Hi Sam, On Tue, Sep 01, 2020 at 01:31:46PM +0300, Sam Protsenko wrote: > Hi Gary, > > On Thu, 27 Aug 2020 at 11:51, Gary Bisson > wrote: > > > > The size returned by 'getvar partition-size' should be in bytes, not in > > blocks as fastboot uses tha

[PATCH v2] fastboot: getvar: fix partition-size return value

2020-08-27 Thread Gary Bisson
[1] https://android.googlesource.com/platform/system/core/+/refs/heads/android10-release/fastboot/fastboot.cpp#1500 Signed-off-by: Gary Bisson --- Changelog v1->v2: - removed change for FASTBOOT_FLASH_NAND as not necessary (and therefore not building) --- drivers/fastboot/fb_getvar.c | 4 ++-- 1 fi

Re: [PATCH] fastboot: getvar: fix partition-size return value

2020-08-27 Thread Gary Bisson
Hi Lukasz, On Thu, Aug 27, 2020 at 08:25:51AM +0200, Lukasz Majewski wrote: > Hi Gary, > > > Hi Lukasz, > > > > On Wed, Aug 26, 2020 at 11:36:51AM +0200, Lukasz Majewski wrote: > > > Hi Gary, > > > > > > > Hi, > > > > > > > > Gentle ping on this patch. Hopefully Sam's email won't bounce this

Re: [PATCH] fastboot: getvar: fix partition-size return value

2020-08-26 Thread Gary Bisson
Hi Lukasz, On Wed, Aug 26, 2020 at 11:36:51AM +0200, Lukasz Majewski wrote: > Hi Gary, > > > Hi, > > > > Gentle ping on this patch. Hopefully Sam's email won't bounce this > > time. > > You couldn't have better timing than now :-) > > I'm now testing PR for Tom [1] and your original patch was

Re: [PATCH] fastboot: getvar: fix partition-size return value

2020-08-26 Thread Gary Bisson
Hi, Gentle ping on this patch. Hopefully Sam's email won't bounce this time. Let me know if you have any questions. Regards, Gary On Wed, Jun 24, 2020 at 11:00:17AM +0200, Gary Bisson wrote: > Hi, > > Gentle ping on this patch. Anyone had a chance to review? > > Re

Re: [PATCH] fastboot: getvar: fix partition-size return value

2020-06-24 Thread Gary Bisson
Hi, Gentle ping on this patch. Anyone had a chance to review? Regards, Gary On Wed, May 06, 2020 at 10:12:28AM +0200, Gary Bisson wrote: > The size returned by 'getvar partition-size' should be in bytes, not in > blocks as fastboot uses that value to generate empty partitio

[PATCH v2] cmd: avb: free partition buffer upon verify completion

2020-05-11 Thread Gary Bisson
0_r37/test/avb_slot_verify_unittest.cc#156 Signed-off-by: Gary Bisson --- Hi, Changelog v2: - use avb_slot_verity_data_free as suggested by Igor This was added because of the following scenario: 1- fastboot flash boot boot.img 2- avb verify -> fails because vbmeta wasn't updated 3- fastboot flash vbmeta vbmeta

Re: [PATCH] cmd: avb: free partition buffer upon verify completion

2020-05-11 Thread Gary Bisson
Hi Igor, On Sun, May 10, 2020 at 01:30:53PM +0300, Igor Opaniuk wrote: > Hi Gary, > > Thanks for the patch and sorry for a late reply. No problem. > On Wed, May 6, 2020 at 5:06 PM Gary Bisson > wrote: > > > > Allows to run 'avb verify' multiple times which

[PATCH] cmd: avb: free partition buffer upon verify completion

2020-05-06 Thread Gary Bisson
Allows to run 'avb verify' multiple times which can be useful after a failure to be able to re-flash the partition and try again. Signed-off-by: Gary Bisson --- Hi, This was added because of the following scenario: 1- fastboot flash boot boot.img 2- avb verify -> fails because

[PATCH] fastboot: getvar: fix partition-size return value

2020-05-06 Thread Gary Bisson
The size returned by 'getvar partition-size' should be in bytes, not in blocks as fastboot uses that value to generate empty partition when running format [1]. [1] https://android.googlesource.com/platform/system/core/+/refs/heads/android10-release/fastboot/fastboot.cpp#1500 Signed-of

[U-Boot] [PATCH 2/2] imx: bootaux: fix stack and pc assignment on 64-bit platforms

2018-11-14 Thread Gary Bisson
Using ulong is wrong as its size depends on the Host CPU architecture (32-bit vs. 64-bit) although the Cortex-M4 is always 32-bit. Without this patch, the stack and PC are obviously wrong and it generates an abort when used on 64-bit processors such as the i.MX8MQ. Signed-off-by: Gary Bisson

[U-Boot] [PATCH 0/2] imx: fix M4 boot on i.MX8MQ processors

2018-11-14 Thread Gary Bisson
ed on Nitrogen8M platform. Regards, Gary Gary Bisson (2): imx: mx8m: add memory mapping for CAAM and TCM imx: bootaux: fix stack and pc assignment on 64-bit platforms arch/arm/mach-imx/imx_bootaux.c | 4 ++-- arch/arm/mach-imx/mx8m/soc.c| 16 2 files changed, 18 insertions(

[U-Boot] [PATCH 1/2] imx: mx8m: add memory mapping for CAAM and TCM

2018-11-14 Thread Gary Bisson
Otherwise can't boot the M4 core as it is impossible to load its firmware into the TCM memory. Signed-off-by: Gary Bisson --- arch/arm/mach-imx/mx8m/soc.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/mach-imx/mx8m/soc.c b/arch/arm/mach-imx/mx8m/soc.c

Re: [U-Boot] [PATCH V5 2/2] imx6: sabrelite: update defconfig to use distro defaults

2018-04-18 Thread Gary Bisson
Hi Guillaume, On Mon, Apr 16, 2018 at 02:47:38PM +0200, Guillaume GARDET wrote: > Boot tested with boot.scr script and EFI/Grub2 on mmc0 and mmc1 slots on > sabrelite board. > > Signed-off-by: Guillaume GARDET > Cc: Troy Kisky > Cc: Stefano Babic > Cc: Fabio Estev

Re: [U-Boot] [PATCH V5 1/2] imx6: Convert sabrelite and nitrogen6x boards to distro boot support

2018-04-18 Thread Gary Bisson
Hi Guillaume, On Mon, Apr 16, 2018 at 02:47:37PM +0200, Guillaume GARDET wrote: > Boot tested on sabrelite board. > > Signed-off-by: Guillaume GARDET > Cc: Troy Kisky > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: Gary Bisson Reviewed-by: Gary B

Re: [U-Boot] [PATCH V4 1/2] imx6: Convert sabrelite and nitrogen6x boards to distro boot support

2018-04-16 Thread Gary Bisson
Hi Guillaume, On Thu, Apr 12, 2018 at 03:28:21PM +0200, Guillaume GARDET wrote: > Boot tested on sabrelite board. > > Signed-off-by: Guillaume GARDET > Cc: Troy Kisky > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: Gary Bisson > > --- > incl

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-12 Thread Gary Bisson
Hi Guillaume, On Thu, Apr 12, 2018 at 02:48:07PM +0200, Guillaume Gardet wrote: > > > Le 12/04/2018 à 14:36, Gary Bisson a écrit : > > Hi Fabio, Guillaume > > > > On Thu, Apr 12, 2018 at 08:14:51AM -0300, Fabio Estevam wrote: > > > On Thu, Apr 12, 2018 at 5:

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-12 Thread Gary Bisson
Hi Fabio, Guillaume On Thu, Apr 12, 2018 at 08:14:51AM -0300, Fabio Estevam wrote: > On Thu, Apr 12, 2018 at 5:13 AM, Guillaume Gardet > wrote: > script that picks the correct dtb. > >> > > Ok. So, how would you like to proceed? > > Remove the generic mx6 'soc' definition and use a board sepcific

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Gary Bisson
Hi Guillaume, On Wed, Apr 11, 2018 at 12:38:48PM +0200, Guillaume GARDET wrote: > Signed-off-by: Guillaume GARDET > Cc: Troy Kisky > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: Gary Bisson > > --- > arch/arm/mach-imx/mx6/soc.c | 34

Re: [U-Boot] [PATCH] imx: nitrogen6x: Convert Sabrelite to distro boot support

2018-04-10 Thread Gary Bisson
Hi Fabio, On Mon, Apr 09, 2018 at 02:27:31PM -0300, Fabio Estevam wrote: > Hi Gary, > > On Mon, Apr 9, 2018 at 11:40 AM, Gary Bisson > wrote: > > >> #define CONFIG_EXTRA_ENV_SETTINGS \ > >> - "script=boot.scr\0" \ > >> -

Re: [U-Boot] [PATCH] imx: nitrogen6x: Convert Sabrelite to distro boot support

2018-04-10 Thread Gary Bisson
Hi Guillaume, On Mon, Apr 09, 2018 at 05:17:44PM +0200, Guillaume Gardet wrote: > > > Le 09/04/2018 à 16:40, Gary Bisson a écrit : > > Hi Guillaume, > > > > Thanks for your patch! Switching the upstream nitrogen6x configuration > > to distro bootcmd has be

Re: [U-Boot] [PATCH] imx: nitrogen6x: Convert Sabrelite to distro boot support

2018-04-09 Thread Gary Bisson
Hi Guillaume, Thanks for your patch! Switching the upstream nitrogen6x configuration to distro bootcmd has been in our todo list for some time since we also use that in our own git repo. On Fri, Apr 06, 2018 at 12:05:48PM +0200, Guillaume GARDET wrote: > Boot tested with boot.scr script and EFI/G

[U-Boot] [PATCH] arm: cache: exit maintenance functions when cache disabled

2017-03-10 Thread Gary Bisson
No need to check the region range and send commands when the cache isn't even enabled. Signed-off-by: Gary Bisson --- Hi all, This is a follow-up to this thread: https://lists.denx.de/pipermail/u-boot/2017-March/283423.html Although what started the conversation was the sparse-image fla

Re: [U-Boot] [ PATCH] ARM: cache: runtime flag to suppress the "cache misaligned" message

2017-03-07 Thread Gary Bisson
ng is happening instead > of fixing that problem ? > > From me, that is a NAK and if my understanding of this is correct, this > patch will go in only over my dead body. > > > Signed-off-by: Steve Rae Reported-by: Gary > > Bisson > > > > --- A little backgr

Re: [U-Boot] arm: cache: misaligned operation with fastboot

2017-03-03 Thread Gary Bisson
Hi Steve, On Fri, Mar 3, 2017 at 12:03 AM, Steve Rae wrote: > > Hi Gary, > > On Thu, Mar 2, 2017 at 3:12 AM, Lukasz Majewski wrote: >> >> Hi, >> >> > Hi Fabio, Lukasz, >> > >> > On Wed, Feb 15, 2017 at 02:24:40PM -0200, Fabio Estevam w

Re: [U-Boot] arm: cache: misaligned operation with fastboot

2017-03-01 Thread Gary Bisson
Hi Fabio, Lukasz, On Wed, Feb 15, 2017 at 02:24:40PM -0200, Fabio Estevam wrote: > On Wed, Feb 15, 2017 at 2:04 PM, Gary Bisson > wrote: > > Hi, > > > > I've been testing fastboot to flash a sparse image on a i.MX6Q platform > > (Nitrogen6x) with U-Boot v2017.0

[U-Boot] arm: cache: misaligned operation with fastboot

2017-02-15 Thread Gary Bisson
Hi, I've been testing fastboot to flash a sparse image on a i.MX6Q platform (Nitrogen6x) with U-Boot v2017.01. This test shows a lot of "misaligned operation" traces: => fastboot 0 Starting download of 415679660 bytes ... downloading of 415679660 bytes finished Flashing sparse image at offset 821

[U-Boot] [PATCH] imx: nitrogen6x: fix USB host initialization

2017-01-12 Thread Gary Bisson
the init delay to 2s using the usb_pgood_delay environment variable. Signed-off-by: Gary Bisson --- include/configs/nitrogen6x.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/nitrogen6x.h b/include/configs/nitrogen6x.h index c22fed70a4..72ff5c1eab 100644 --- a/include

[U-Boot] [PATCH] cmd: sata: fix init command return value

2017-01-11 Thread Gary Bisson
e command usage. Instead the command shoud just return the CMD_RET_FAILURE value. Fixes: aa6ab905b2 (sata: fix sata command can not being executed bug) Signed-off-by: Gary Bisson --- cmd/sata.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/sata.c b/cmd/sata.c i

Re: [U-Boot] [PATCH] README: mxc_hab: Adapt the CONFIG_SECURE_BOOT text to Kconfig

2017-01-06 Thread Gary Bisson
that. > > Signed-off-by: Fabio Estevam Good catch, completely forgot about the README. Reviewed-by: Gary Bisson Thanks, Gary ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] tools: imximage: display DCD block offset, length

2016-11-17 Thread Gary Bisson
Hi Eric, All, On Wed, Nov 16, 2016 at 05:13:41PM -0700, Eric Nelson wrote: > These values can be used to sign a U-Boot image for use when > loading an image through the Serial Download Protocol (SDP). > > Note that the address of 0x91 is usable with the stock > configuration of imx_usb_loader

[U-Boot] [PATCH v2 4/5] mx7_common: add secure boot support

2016-08-25 Thread Gary Bisson
. Cc: Stefan Agner Signed-off-by: Gary Bisson --- include/configs/colibri_imx7.h | 4 include/configs/mx7_common.h | 9 + include/configs/mx7dsabresd.h | 4 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/include/configs/colibri_imx7.h b/include/configs

[U-Boot] [PATCH v2 5/5] nitrogen6x: add secure boot support

2016-08-25 Thread Gary Bisson
Declaring a CSF section makes the imximage tool increase the size of data to be loaded by the BootROM and also adds a pointer to that CSF section in the IVT header to the BootROM can check the signature. Signed-off-by: Gary Bisson --- board/boundary/nitrogen6x/nitrogen6dl.cfg | 3 +++ board

[U-Boot] [PATCH v2 2/5] arm: imx-common: introduce back usec2ticks

2016-08-25 Thread Gary Bisson
c has been changed, using 64-bit variable to ease the process, making it work on older (MX5) platforms. Signed-off-by: Peng Fan Signed-off-by: Troy Kisky Signed-off-by: Gary Bisson --- arch/arm/imx-common/timer.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/

[U-Boot] [PATCH v2 1/5] arm: imx-common: add SECURE_BOOT option to Kconfig

2016-08-25 Thread Gary Bisson
So the option can easily be selected through menuconfig. Signed-off-by: Gary Bisson --- arch/arm/imx-common/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/imx-common/Kconfig b/arch/arm/imx-common/Kconfig index 1b7da5a..1a09a2c 100644 --- a/arch/arm/imx-common

[U-Boot] [PATCH v2 3/5] mx6_common: add secure boot support

2016-08-25 Thread Gary Bisson
Selecting the proper options to enable the build of the HAB tools. Note, this support is disabled by default, one will have to select the SECURE_BOOT configuration through menuconfig to enable it. See doc/README.mxc_hab for more details. Signed-off-by: Gary Bisson --- include/configs

[U-Boot] [PATCH v2 0/5] Add i.MX HAB encryption support

2016-08-25 Thread Gary Bisson
le it in the common mx6/7 configuration files. The series also adds the missing CSF declaration in nitrogen6* cfg files. Changes v1->v2: - Simplified the help comment of the SECURE_BOOT config option - Moved SECURE_BOOT options to mx6/7_common.h Let me know your thoughts. Regards, Gary Gary B

Re: [U-Boot] [PATCH 3/3] nitrogen6x: add secure boot support

2016-08-24 Thread Gary Bisson
Hi Eric, all, On Tue, Aug 23, 2016 at 05:35:14PM -0700, Eric Nelson wrote: > Hi Gary, > > On 08/23/2016 02:55 PM, Gary Bisson wrote: > > Selecting the proper options to enable the build of the HAB tools. > > > > Also adding a CSF section to the imx final imag

Re: [U-Boot] [PATCH 2/3] arm: imx-common: introduce back usec2ticks

2016-08-24 Thread Gary Bisson
Hi Eric, all, On Tue, Aug 23, 2016 at 05:30:36PM -0700, Eric Nelson wrote: > Hi Gary and Peng, > > On 08/23/2016 02:55 PM, Gary Bisson wrote: > > From: Peng Fan > > > > This commit "2bb014820c49a63902103bac710bc86b5772e843" > > do some clean up to use

Re: [U-Boot] [PATCH 1/3] arm: imx-common: add SECURE_BOOT option to Kconfig

2016-08-24 Thread Gary Bisson
Hi Eric, all, On Tue, Aug 23, 2016 at 05:24:48PM -0700, Eric Nelson wrote: > Nicely done Gary! > > On 08/23/2016 02:55 PM, Gary Bisson wrote: > > So the option can easily be selected through menuconfig. > > > > Signed-off-by: Gary Bisson > > --- >

[U-Boot] [PATCH 1/3] arm: imx-common: add SECURE_BOOT option to Kconfig

2016-08-23 Thread Gary Bisson
So the option can easily be selected through menuconfig. Signed-off-by: Gary Bisson --- arch/arm/imx-common/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/imx-common/Kconfig b/arch/arm/imx-common/Kconfig index 1b7da5a..5ee230e 100644 --- a/arch/arm/imx-common

[U-Boot] [PATCH 3/3] nitrogen6x: add secure boot support

2016-08-23 Thread Gary Bisson
. Signed-off-by: Gary Bisson --- board/boundary/nitrogen6x/nitrogen6dl.cfg | 3 +++ board/boundary/nitrogen6x/nitrogen6dl2g.cfg | 3 +++ board/boundary/nitrogen6x/nitrogen6q.cfg| 3 +++ board/boundary/nitrogen6x/nitrogen6q2g.cfg | 3 +++ board/boundary/nitrogen6x/nitrogen6s.cfg| 3 +++ board

[U-Boot] [PATCH 2/3] arm: imx-common: introduce back usec2ticks

2016-08-23 Thread Gary Bisson
c has been changed, using 64-bit variable to ease the process, making it work on older (MX5) platforms. Signed-off-by: Peng Fan Signed-off-by: Troy Kisky Signed-off-by: Gary Bisson --- arch/arm/imx-common/timer.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/

[U-Boot] [PATCH 0/3] Add i.MX HAB encryption support

2016-08-23 Thread Gary Bisson
ZE is sufficient to achieve binary signature. The other options are only required if you want to encrypt the binary (which requires the use of dek_blob command. Let me know your thoughts. Regards, Gary Gary Bisson (2): arm: imx-common: add SECURE_BOOT option to Kconfig nitrogen6x: add secure

Re: [U-Boot] [PATCH V4 2/3] mx7: psci: add basic psci support

2016-03-31 Thread Gary Bisson
Hi Peng, On Thu, Mar 31, 2016 at 3:33 PM, Peng Fan wrote: > Hi Gary, > > On Thu, Mar 31, 2016 at 01:17:07PM +0200, Gary Bisson wrote: >>Hi all, >> >>Sorry to revive an old thread but I have some questions about thit patch. >> >>On Fri, Oct 23, 2015 at 10:13

Re: [U-Boot] [PATCH V4 2/3] mx7: psci: add basic psci support

2016-03-31 Thread Gary Bisson
Hi all, Sorry to revive an old thread but I have some questions about thit patch. On Fri, Oct 23, 2015 at 10:13:04AM +0800, Peng Fan wrote: > 1. add basic psci support for imx7 chip. > 2. support cpu_on and cpu_off. > 3. switch to non-secure mode when boot linux kernel. > 4. set csu allow accessi

Re: [U-Boot] Disabling/Enabling the Data Cache

2015-11-24 Thread Gary Bisson
Adding Albert (wrong address in first e-mail). Regards, Gary On Tue, Nov 24, 2015 at 12:35 PM, Gary Bisson wrote: > Albert, Fabio, All, > > On Tue, Sep 22, 2015 at 09:21:37PM +0200, Albert ARIBAUD wrote: >> Hi Fabio, >> >> Le Tue, 22 Sep 2015 16:01:05 -0300

Re: [U-Boot] Disabling/Enabling the Data Cache

2015-11-24 Thread Gary Bisson
Albert, Fabio, All, On Tue, Sep 22, 2015 at 09:21:37PM +0200, Albert ARIBAUD wrote: > Hi Fabio, > > Le Tue, 22 Sep 2015 16:01:05 -0300, Fabio Estevam > a ?crit : > > > Hi, > > > > On a mx6q (armv7) board when I disable and enable the Data Cache the > > following issue is observed: > > > > =>

Re: [U-Boot] fs: ext4: fix symlink read function

2015-09-27 Thread Gary Bisson
Hi Suriyan, On Sun, Sep 27, 2015 at 8:05 AM, Suriyan Bhavani wrote: > Hi Gary, >Recently you submitted a patch to fix the ext4 symlnik issue. > > Can you please tell me the actual commands that failed or gave wrong > results? The load command (tested on ext4 partition) was failing with an er

Re: [U-Boot] [PATCH] fs: ext4: fix symlink read function

2015-09-08 Thread Gary Bisson
Hi Simon, On Tue, Sep 8, 2015 at 5:56 AM, Simon Glass wrote: > Hi Gary, > > On 7 September 2015 at 03:20, Gary Bisson > wrote: >> Since last API changes for files >2GB, the read of symlink is broken as >> ext4fs_read_file now returns 0 instead of the length of the ac

[U-Boot] [PATCH] fs: ext4: fix symlink read function

2015-09-07 Thread Gary Bisson
Since last API changes for files >2GB, the read of symlink is broken as ext4fs_read_file now returns 0 instead of the length of the actual read. Signed-off-by: Gary Bisson --- Hi all, Switching from an old v2014.07 to v2015.07 we've noticed that we couldn't read symlinks any more