[PATCH] imx: spl: Add weak reset_cpu()

2022-10-24 Thread Jun Nie
* [scripts/Makefile.spl:526: spl/u-boot-spl] Error 1 make: *** [Makefile:2087: spl/u-boot-spl] Error 2 Signed-off-by: Jun Nie --- arch/arm/mach-imx/spl.c | 4 board/ronetix/imx7-cm/spl.c | 4 board/technexion/pico-imx6ul/spl.c| 4 board/techn

[PATCH] imx: syscounter: support timer_get_boot_us

2022-07-21 Thread Jun Nie
With supporting timer_get_boot_us, we can profile boot up time with below configs and function bootstage_mark_name(). CONFIG_BOOTSTAGE=y CONFIG_BOOTSTAGE_REPORT=y CONFIG_CMD_BOOTSTAGE=y Signed-off-by: Jun Nie --- arch/arm/mach-imx/syscounter.c | 9 + 1 file changed, 9 insertions

Re: [U-Boot] [PATCH 3/3] pico-imx7d: polish uart clock id definition

2019-10-16 Thread Jun Nie
Stefano Babic 于2019年10月13日周日 下午9:35写道: > > Hi Jun, > > I am just trying to check if some patch was silently lost, I found yours: > > On 16/07/19 09:42, Jun Nie wrote: > > Polish uart clock id definition. Default IMX7 UART ID is UART1 > > as original parameter in imx

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-09-12 Thread Jun Nie
Peng Fan 于2019年9月11日周三 下午2:02写道: > > > > > -Original Message----- > > From: Jun Nie > > Sent: 2019年9月9日 21:47 > > To: Peng Fan > > Cc: Stefano Babic ; Fabio Estevam ; > > Otavio Salvador ; Vanessa Maegima > > ; Bryan O'Donoghue > &g

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-09-09 Thread Jun Nie
Peng Fan 于2019年9月3日周二 上午9:39写道: > > Hi Jun, > > > Subject: Re: [PATCH 0/3] Support distro boot in pico-imx7d BL33 case > > > > Jun Nie 于2019年8月8日周四 下午12:04写道: > > > > > > Jun Nie 于2019年7月16日周二 下午3:43写道: > > > > > > &g

Re: [U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-09-03 Thread Jun Nie
Heinrich Schuchardt 于2019年9月2日周一 下午7:19写道: > > On 9/2/19 12:30 PM, Matthias Brugger wrote: > > +Alex, Lukas, Heinrich, Bin and Simon > > > > On 31/07/2019 10:16, Jun Nie wrote: > >> Matthias Brugger 于2019年7月31日周三 下午4:05写道: > >>> > >>> >

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-09-02 Thread Jun Nie
Peng Fan 于2019年9月3日周二 上午9:39写道: > > Hi Jun, > > > Subject: Re: [PATCH 0/3] Support distro boot in pico-imx7d BL33 case > > > > Jun Nie 于2019年8月8日周四 下午12:04写道: > > > > > > Jun Nie 于2019年7月16日周二 下午3:43写道: > > > > > > &g

Re: [U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-09-02 Thread Jun Nie
Jun Nie 于2019年7月11日周四 上午11:56写道: > > Enable verified boot from FIT image with select configs > and specify boot script image node in FIT image, the FIT > image is verified before it is run. > > Code that reusing dtb in firmware is disabled, so that > the dtb with pubic key

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-09-02 Thread Jun Nie
Jun Nie 于2019年8月8日周四 下午12:04写道: > > Jun Nie 于2019年7月16日周二 下午3:43写道: > > > > Support distro boot in pico-imx7d BL33 case with changing the enviroment > > variables. While the other two patches are for polishing clock code and > > for feature enablement. > > &g

Re: [U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-08-07 Thread Jun Nie
Jun Nie 于2019年7月31日周三 下午4:16写道: > > Matthias Brugger 于2019年7月31日周三 下午4:05写道: > > > > > > > > On 11/07/2019 05:55, Jun Nie wrote: > > > Enable verified boot from FIT image with select configs > > > and specify boot script image node in FIT image,

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-08-07 Thread Jun Nie
Jun Nie 于2019年7月16日周二 下午3:43写道: > > Support distro boot in pico-imx7d BL33 case with changing the enviroment > variables. While the other two patches are for polishing clock code and > for feature enablement. > > Jun Nie (3): > pico-imx7d: add config to enable CAAM &g

Re: [U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-07-31 Thread Jun Nie
Matthias Brugger 于2019年7月31日周三 下午4:05写道: > > > > On 11/07/2019 05:55, Jun Nie wrote: > > Enable verified boot from FIT image with select configs > > and specify boot script image node in FIT image, the FIT > > image is verified before it is run. > > >

Re: [U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-07-26 Thread Jun Nie
Jun Nie 于2019年7月11日周四 上午11:56写道: > > Enable verified boot from FIT image with select configs > and specify boot script image node in FIT image, the FIT > image is verified before it is run. > > Code that reusing dtb in firmware is disabled, so that > the dtb with pubic key

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-07-26 Thread Jun Nie
Jun Nie 于2019年7月16日周二 下午3:43写道: > > Support distro boot in pico-imx7d BL33 case with changing the enviroment > variables. While the other two patches are for polishing clock code and > for feature enablement. > Hi, any comments? Thanks! Jun __

[U-Boot] [PATCH 3/3] pico-imx7d: polish uart clock id definition

2019-07-16 Thread Jun Nie
Polish uart clock id definition. Default IMX7 UART ID is UART1 as original parameter in imx_get_uartclk(). Signed-off-by: Jun Nie --- arch/arm/include/asm/arch-mx7/clock.h | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/arch/arm/include/asm/arch-mx7

[U-Boot] [PATCH 2/3] pico-imx7d: Support distro boot for FIT image case

2019-07-16 Thread Jun Nie
Support distro boot for pico imx7d in FIT image case. Signed-off-by: Jun Nie --- include/configs/pico-imx7d.h | 37 +++-- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/include/configs/pico-imx7d.h b/include/configs/pico-imx7d.h index 9101540

[U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-07-16 Thread Jun Nie
Support distro boot in pico-imx7d BL33 case with changing the enviroment variables. While the other two patches are for polishing clock code and for feature enablement. Jun Nie (3): pico-imx7d: add config to enable CAAM pico-imx7d: Support distro boot for FIT image case pico-imx7d: polish

[U-Boot] [PATCH 1/3] pico-imx7d: add config to enable CAAM

2019-07-16 Thread Jun Nie
Add config to enable CAAM so that hardware random number generator works. Signed-off-by: Jun Nie --- configs/pico-imx7d_bl33_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/pico-imx7d_bl33_defconfig b/configs/pico-imx7d_bl33_defconfig index b609b6d..5ef55d3 100644 --- a

[U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-07-10 Thread Jun Nie
FIT image. Signed-off-by: Jun Nie --- board/raspberrypi/rpi/rpi.c | 6 ++ include/configs/rpi.h | 15 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 617c892..950ee84 100644 --- a/board

Re: [U-Boot] [PATCH 1/1] pico-imx7d: Enable DM_USB

2019-06-13 Thread Jun Nie
mx7d_defconfig | 1 + > configs/pico-imx7d_bl33_defconfig| 1 + > configs/pico-imx7d_defconfig | 1 + > configs/pico-pi-imx7d_defconfig | 1 + > 6 files changed, 6 insertions(+), 13 deletions(-) > Reviewed-by: Jun Nie __

Re: [U-Boot] [PATCH v4 8/8] pico-imx7d: enable boot without PMIC

2019-05-30 Thread Jun Nie
Fabio Estevam 于2019年5月31日周五 上午7:58写道: > > On Wed, May 8, 2019 at 3:39 AM Jun Nie wrote: > > > > If PMIC is not probed successfully, it is still OK to boot > > Are you getting PMIC probe failure? > > What is the exact issue you are facing? There is no respons

Re: [U-Boot] [PATCH v4 3/8] pico-imx7d: Correct uart clock root

2019-05-30 Thread Jun Nie
Fabio Estevam 于2019年5月31日周五 上午7:56写道: > > On Wed, May 8, 2019 at 3:39 AM Jun Nie wrote: > > > +#if (CONFIG_CONS_INDEX == 0) > > +#define UART_CLK_ROOT UART1_CLK_ROOT > > +#elif (CONFIG_CONS_INDEX == 1) > > +#define UART_CLK_ROOT UART2_CLK_ROOT > > +#eli

Re: [U-Boot] [PATCH v4 0/8] pico-imx7d: Add support for BL33 case

2019-05-30 Thread Jun Nie
Jun Nie 于2019年5月8日周三 下午2:39写道: > > Add configuration to boot U-boot as BL33 case. The boot flow > is ATF -> OPTEE -> U-boot. > Hi Fabio, Do you have any comments on this patch set, or it can be merged now? Thank you! Jun ___ U-B

Re: [U-Boot] [PATCH v4 0/8] pico-imx7d: Add support for BL33 case

2019-05-14 Thread Jun Nie
Fabio, Any comments on this version? Best Regards Jun ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v4 8/8] pico-imx7d: enable boot without PMIC

2019-05-07 Thread Jun Nie
). Signed-off-by: Jun Nie --- board/technexion/pico-imx7d/pico-imx7d.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c index 5b357f2..e3d75e5 100644 --- a/board/technexion/pico-imx7d/pico

[U-Boot] [PATCH v4 6/8] pico-imx7d: Add bl33 config

2019-05-07 Thread Jun Nie
Add default configuration to run u-boot as BL33 in the boot flow case of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. Signed-off-by: Jun Nie --- configs/pico-imx7d_bl33_defconfig | 66 +++ 1 file changed, 66 insertions(+) create mode 100644 config

[U-Boot] [PATCH v4 7/8] pico-imx7d: README: Add BL33 usage case

2019-05-07 Thread Jun Nie
Add Documentation of BL33 usage case. U-boot is in non-secure world in this case. Signed-off-by: Jun Nie --- board/technexion/pico-imx7d/README.pico-imx7d_BL33 | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 board/technexion/pico-imx7d/README.pico-imx7d_BL33

[U-Boot] [PATCH v4 3/8] pico-imx7d: Correct uart clock root

2019-05-07 Thread Jun Nie
Correct uart clock root ID. Incorrect ID may result the clock is gated because rate value 0 is returned in imx_get_uartclk() The ID can be ignored if CONFIG_SKIP_LOWLEVEL_INIT is not enabled because init_clk_uart() will enable all uart clocks in that case. Signed-off-by: Jun Nie --- arch/arm

[U-Boot] [PATCH v4 2/8] imx: mx7: Skip secure init in arch_cpu_init

2019-05-07 Thread Jun Nie
Skip secure related initialization in arch_cpu_init if low level init is skipped. Because these should be done in early stage firmware, such as ARM trusted firmware. Signed-off-by: Jun Nie --- arch/arm/mach-imx/mx7/soc.c | 43 --- 1 file changed, 28

[U-Boot] [PATCH v4 4/8] pico-imx7d: Reserve region of memory to OPTEE

2019-05-07 Thread Jun Nie
-by: Jun Nie Reviewed-by: Peng Fan --- board/technexion/pico-imx7d/pico-imx7d.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c index e63b19d..5b357f2 100644 --- a/board/technexion/pico-imx7d/pico-imx7d.c

[U-Boot] [PATCH v4 5/8] pico-imx7d: Add boot option for verified boot

2019-05-07 Thread Jun Nie
Add boot option to boot from fitimage to support verified boot. The boot script plain text file should be packed into fit blob as image with name of bootscr. Signed-off-by: Jun Nie --- include/configs/pico-imx7d.h | 38 +++--- 1 file changed, 35 insertions(+), 3

[U-Boot] [PATCH v4 1/8] mx7_common: Share configs to skip low level init

2019-05-07 Thread Jun Nie
whether to skip it. Signed-off-by: Jun Nie --- include/configs/mx7_common.h | 11 +++ include/configs/warp7.h | 11 --- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index cc7e872..57fbec7 100644

[U-Boot] [PATCH v4 0/8] pico-imx7d: Add support for BL33 case

2019-05-07 Thread Jun Nie
ve DCD file. - Add a patch to fix uart clock root ID. - Change file name from pico-pi-imx7d_bl33_defconfig to pico-imx7d_bl33_defconfig Jun Nie (8): mx7_common: Share configs to skip low level init imx: mx7: Skip secure init in arch_cpu_init pico-imx7d: Correct uart clock root pico-imx7d: R

Re: [U-Boot] [PATCH v3 4/9] pico-imx7d: Correct uart clock root

2019-04-25 Thread Jun Nie
Fabio Estevam 于2019年4月24日周三 下午6:32写道: > > On Wed, Apr 24, 2019 at 1:00 AM Jun Nie wrote: > > > +config IMX_CONSOLE_UART_ID > > + int "UART ID for console" > > + default 1 > > + depends on ARCH_MX7 > > + help > >

Re: [U-Boot] [PATCH v3 3/9] imx: mx7: Add empty arch_cpu_init if skipped

2019-04-25 Thread Jun Nie
> Please describe what ATF/OP-TEE initialization has done > when booting into uboot. > > I think SKIP_LOWLEVEL_INIT is mostly for lowlevel_init, > not arch_cpu_init. > > init_aips/init_csu/isolate_resources/init_snvs might be > done in your ATF, I am not sure, but imx_enet_mdio_fixup, > mxs_dma_ini

Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-25 Thread Jun Nie
> > I merged Joris' series and build is in progress. > > Regards, > Stefano > Great! I will prepare my patch based on that. But I cannot find latest pico patch on denx master repo. Did you merge it to your own repo and pulled to denx master later, just like linux work flow? I am not familiar with u

Re: [U-Boot] [PATCH v3 1/9] Revert "pico-imx7d: Add LCD support"

2019-04-25 Thread Jun Nie
Fabio Estevam 于2019年4月25日周四 上午11:28写道: > > Hi Jun, > > On Wed, Apr 24, 2019 at 11:53 PM Jun Nie wrote: > > > It blocks boot up with default defconfig. I see it is suggested to be > > reverted in mailist weeks ago. I thought you guys knew about it. > > Please kee

Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-24 Thread Jun Nie
Fabio Estevam 于2019年4月24日周三 下午6:31写道: > > On Wed, Apr 24, 2019 at 1:00 AM Jun Nie wrote: > > > > Copy device tree files from Linux directly. > > > > Signed-off-by: Jun Nie > > There is a series from Joris that does the pico-mx7d DM conversion. When

Re: [U-Boot] [PATCH v3 1/9] Revert "pico-imx7d: Add LCD support"

2019-04-24 Thread Jun Nie
Fabio Estevam 于2019年4月24日周三 下午6:30写道: > > On Wed, Apr 24, 2019 at 1:00 AM Jun Nie wrote: > > > > This reverts commit 9e3c0174da842dd88f5feaffbf843ba332233897. > > Why are you reverting it? It blocks boot up with default defconfig. I see it is suggested to be reverted

Re: [U-Boot] [PATCH v3 4/9] pico-imx7d: Correct uart clock root

2019-04-23 Thread Jun Nie
t_crit() -> lowlevel_init() -> s_init() -> clock_init() -> init_clk_uart() #endif > > Regards, > Peng. > > > > > Signed-off-by: Jun Nie > > --- > > arch/arm/include/asm/arch-mx7/clock.h | 18 ++ > > arch/arm/mach-imx/Kconfig

[U-Boot] [PATCH v3 9/9] pico-imx7d: README: Add BL33 usage case

2019-04-23 Thread Jun Nie
Add Documentation of BL33 usage case. U-boot is in non-secure world in this case. Signed-off-by: Jun Nie --- board/technexion/pico-imx7d/README.pico-imx7d_BL33 | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 board/technexion/pico-imx7d/README.pico-imx7d_BL33

[U-Boot] [PATCH v3 8/9] pico-imx7d: Add bl33 config

2019-04-23 Thread Jun Nie
Add default configuration to run u-boot as BL33 in the boot flow case of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. Signed-off-by: Jun Nie --- configs/pico-imx7d_bl33_defconfig | 63 +++ 1 file changed, 63 insertions(+) create mode 100644 config

[U-Boot] [PATCH v3 4/9] pico-imx7d: Correct uart clock root

2019-04-23 Thread Jun Nie
Correct uart clock root ID. Incorrect ID may result the clock is gated because rate value 0 is returned in imx_get_uartclk() Signed-off-by: Jun Nie --- arch/arm/include/asm/arch-mx7/clock.h | 18 ++ arch/arm/mach-imx/Kconfig | 7 +++ arch/arm/mach-imx/mx7

[U-Boot] [PATCH v3 6/9] pico-imx7d: Add boot option for verified boot

2019-04-23 Thread Jun Nie
Add boot option to boot from fitimage to support verified boot. The boot script plain text file should be packed into fit blob as image with name of bootscr. Signed-off-by: Jun Nie --- include/configs/pico-imx7d.h | 38 +++--- 1 file changed, 35 insertions(+), 3

[U-Boot] [PATCH v3 3/9] imx: mx7: Add empty arch_cpu_init if skipped

2019-04-23 Thread Jun Nie
Add empty arch_cpu_init if low level init is skipped. So that it does not break spl compile though spl is not needed in the skipped case actually. Signed-off-by: Jun Nie --- arch/arm/mach-imx/mx7/soc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch

[U-Boot] [PATCH v3 5/9] pico-imx7d: Reserve region of memory to OPTEE

2019-04-23 Thread Jun Nie
Subtracts CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size so that the OPTEE memory is not override during u-boot relocation. Note the OPTEE boot process will itself subtract the DRAM region it lives in from the memory map passed to Linux. Signed-off-by: Jun Nie --- board/technexion/pico

[U-Boot] [PATCH v3 0/9] pico-imx7d: Add support for BL33 case

2019-04-23 Thread Jun Nie
upport. Pico-pi does not boot with it. I see it is suggested to be reverted in maillist. Changes vs V1: - Remove DCD file. - Add a patch to fix uart clock root ID. - Change file name from pico-pi-imx7d_bl33_defconfig to pico-imx7d_bl33_defconfig Jun Nie (9): Revert "pico-imx7d: Add

[U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-23 Thread Jun Nie
Copy device tree files from Linux directly. Signed-off-by: Jun Nie --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx7d-pico-pi.dts | 93 +++ arch/arm/dts/imx7d-pico.dtsi | 585 + 3 files changed, 679 insertions(+) create mode 100644

[U-Boot] [PATCH v3 2/9] mx7_common: Share configs to skip low level init

2019-04-23 Thread Jun Nie
whether to skip it. Signed-off-by: Jun Nie --- include/configs/mx7_common.h | 11 +++ include/configs/warp7.h | 11 --- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index cc7e872..57fbec7 100644

[U-Boot] [PATCH v3 1/9] Revert "pico-imx7d: Add LCD support"

2019-04-23 Thread Jun Nie
This reverts commit 9e3c0174da842dd88f5feaffbf843ba332233897. --- board/technexion/pico-imx7d/pico-imx7d.c | 55 configs/pico-hobbit-imx7d_defconfig | 1 - configs/pico-imx7d_defconfig | 1 - configs/pico-pi-imx7d_defconfig | 1 - inclu

Re: [U-Boot] [PATCH v2 0/6] pico-imx7d: Add support for BL33 case

2019-04-09 Thread Jun Nie
Otavio Salvador 于2019年4月4日周四 下午8:40写道: > > On Wed, Apr 3, 2019 at 9:00 AM Jun Nie wrote: > > And for the file name pico-imx7d_bl33_defconfig, > > pico-pi-imx7d_bl33_defconfig should be better in my later thought. > > Because a concrete device tree source file should be sp

Re: [U-Boot] [PATCH v2 0/6] pico-imx7d: Add support for BL33 case

2019-04-03 Thread Jun Nie
Hi Otavio, And for the file name pico-imx7d_bl33_defconfig, pico-pi-imx7d_bl33_defconfig should be better in my later thought. Because a concrete device tree source file should be specified in defconfig file, so that public key can be stored in u-boot FDT blob for kernel/initramfs FIT signature ve

Re: [U-Boot] [PATCH v2 0/6] pico-imx7d: Add support for BL33 case

2019-04-03 Thread Jun Nie
Otavio Salvador 于2019年3月28日周四 下午8:57写道: > > On Thu, Mar 28, 2019 at 5:30 AM Jun Nie wrote: > > > > Add configuration to boot U-boot as BL33 case. The boot flow > > is ATF -> OPTEE -> U-boot. > > Could you add a README explaining how to use / test it? Hi Ota

Re: [U-Boot] [PATCH v2 6/6] pico-imx7d: Correct uart clock root

2019-04-03 Thread Jun Nie
Otavio Salvador 于2019年3月28日周四 下午8:58写道: > > On Thu, Mar 28, 2019 at 5:34 AM Jun Nie wrote: > > > > Correct uart clock root ID. Incorrect ID may result the > > clock is gated because rate value 0 is returned in > > imx_get_uartclk() > > > > Signed-

Re: [U-Boot] [PATCH 1/2] serial: add skipping init option

2019-04-02 Thread Jun Nie
Simon Glass 于2019年3月31日周日 上午5:19写道: > > Hi Lukasz, > > On Wed, 27 Mar 2019 at 03:34, Lukasz Majewski wrote: > > > > Hi Simon, Jun, > > > > > Hi Jun, > > > > > > On Fri, 22 Mar 2019 at 16:02, Jun Nie wrote: > > > > &g

[U-Boot] [PATCH v2 2/6] imx: mx7: Add empty arch_cpu_init if skipped

2019-03-28 Thread Jun Nie
Add empty arch_cpu_init if low level init is skipped. So that it does not break spl compile though spl is not needed in the skipped case actually. Signed-off-by: Jun Nie --- arch/arm/mach-imx/mx7/soc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch

[U-Boot] [PATCH v2 6/6] pico-imx7d: Correct uart clock root

2019-03-28 Thread Jun Nie
Correct uart clock root ID. Incorrect ID may result the clock is gated because rate value 0 is returned in imx_get_uartclk() Signed-off-by: Jun Nie --- arch/arm/include/asm/arch-mx7/clock.h | 5 + arch/arm/mach-imx/mx7/clock.c | 2 +- include/configs/pico-imx7d.h | 1 + 3

[U-Boot] [PATCH v2 4/6] pico-imx7d: Add boot option for verified boot

2019-03-28 Thread Jun Nie
Add boot option to boot from fitimage to support verified boot. The boot script plain text file should be packed into fit blob as image with name of bootscr. Signed-off-by: Jun Nie --- include/configs/pico-imx7d.h | 38 +++--- 1 file changed, 35 insertions(+), 3

[U-Boot] [PATCH v2 5/6] pico-imx7d: Add bl33 config

2019-03-28 Thread Jun Nie
Add default configuration to run u-boot as BL33 in the boot flow case of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. Signed-off-by: Jun Nie --- configs/pico-imx7d_bl33_defconfig | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 config

[U-Boot] [PATCH v2 3/6] pico-imx7d: Reserve region of memory to OPTEE

2019-03-28 Thread Jun Nie
Subtracts CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size so that the OPTEE memory is not override during u-boot relocation. Note the OPTEE boot process will itself subtract the DRAM region it lives in from the memory map passed to Linux. Signed-off-by: Jun Nie --- board/technexion/pico

[U-Boot] [PATCH v2 1/6] mx7_common: Share configs to skip low level init

2019-03-28 Thread Jun Nie
whether to skip it. Signed-off-by: Jun Nie --- include/configs/mx7_common.h | 11 +++ include/configs/warp7.h | 11 --- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index a895c93..912fb06 100644

[U-Boot] [PATCH v2 0/6] pico-imx7d: Add support for BL33 case

2019-03-28 Thread Jun Nie
Add configuration to boot U-boot as BL33 case. The boot flow is ATF -> OPTEE -> U-boot. Changes vs V1: - Remove DCD file. - Add a patch to fix uart clock root ID. - Change file name from pico-pi-imx7d_bl33_defconfig to pico-imx7d_bl33_defconfig Jun Nie (6): mx7_common: Share configs t

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-27 Thread Jun Nie
Fabio Estevam 于2019年3月27日周三 下午10:57写道: > > On Wed, Mar 27, 2019 at 11:18 AM Jun Nie wrote: > > > I should say that SPL is not needed, not cannot run. u-boot is loaded > > and run by ATF/OPTEE, so we do not need SPL. This is an initial > > prototype of verified boot

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-27 Thread Jun Nie
Fabio Estevam 于2019年3月27日周三 下午8:03写道: > > On Wed, Mar 27, 2019 at 8:59 AM Jun Nie wrote: > > > For ATF -> OPTEE -> U-BOOT case, we cannot run SPL. > > Why not? Please provide the details. > > What about users that has the 1GB version of the board? I should say t

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-27 Thread Jun Nie
Fabio Estevam 于2019年3月27日周三 下午7:52写道: > > Hi Jun, > > On Tue, Mar 26, 2019 at 6:21 AM Jun Nie wrote: > > > > Add default configuration to run u-boot as BL33 in the boot flow case > > of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. > > > > Signe

Re: [U-Boot] [PATCH 1/2] serial: add skipping init option

2019-03-27 Thread Jun Nie
Lukasz Majewski 于2019年3月27日周三 下午5:34写道: > > Hi Simon, Jun, > > > Hi Jun, > > > > On Fri, 22 Mar 2019 at 16:02, Jun Nie wrote: > > > > > > Simon Glass 于2019年3月22日周五 下午3:56写道: > > > > > > > > Hi Jun, > > > > >

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-26 Thread Jun Nie
Otavio Salvador 于2019年3月26日周二 下午8:23写道: > > On Tue, Mar 26, 2019 at 6:23 AM Jun Nie wrote: > > > > Add default configuration to run u-boot as BL33 in the boot flow case > > of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. > > > > Signed-off-by: Jun Nie

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-26 Thread Jun Nie
Otavio Salvador 于2019年3月26日周二 下午8:23写道: > > On Tue, Mar 26, 2019 at 6:23 AM Jun Nie wrote: > > > > Add default configuration to run u-boot as BL33 in the boot flow case > > of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. > > > > Signed-off-by: Jun Nie

[U-Boot] [PATCH 4/5] pico-imx7d: Add boot option for verified boot

2019-03-26 Thread Jun Nie
Add boot option to boot from fitimage to support verified boot. The boot script plain text file should be packed into fit blob as image with name of bootscr. Signed-off-by: Jun Nie --- include/configs/pico-imx7d.h | 38 +++--- 1 file changed, 35 insertions(+), 3

[U-Boot] [PATCH 3/5] pico-imx7d: Reserve region of memory to OPTEE

2019-03-26 Thread Jun Nie
Subtracts CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size so that the OPTEE memory is not override during u-boot relocation. Note the OPTEE boot process will itself subtract the DRAM region it lives in from the memory map passed to Linux. Signed-off-by: Jun Nie --- board/technexion/pico

[U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-26 Thread Jun Nie
Add default configuration to run u-boot as BL33 in the boot flow case of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. Signed-off-by: Jun Nie --- board/technexion/pico-imx7d/imximage-512MB.cfg | 95 ++ configs/pico-pi-imx7d_bl33_defconfig

[U-Boot] [PATCH 2/5] imx: mx7: Add empty arch_cpu_init if skipped

2019-03-26 Thread Jun Nie
Add empty arch_cpu_init if low level init is skipped. So that it does not break spl compile though spl is not needed in the skipped case actually. Signed-off-by: Jun Nie --- arch/arm/mach-imx/mx7/soc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm

[U-Boot] [PATCH 0/5] pico-imx7d: Add support for BL33 case

2019-03-26 Thread Jun Nie
Add configuration to boot U-boot as BL33 case. The boot flow is ATF -> OPTEE -> U-boot. Jun Nie (5): mx7_common: Share configs to skip low level init imx: mx7: Add empty arch_cpu_init if skipped pico-imx7d: Reserve region of memory to OPTEE pico-imx7d: Add boot option for verifie

[U-Boot] [PATCH 1/5] mx7_common: Share configs to skip low level init

2019-03-26 Thread Jun Nie
whether to skip it. Signed-off-by: Jun Nie --- include/configs/mx7_common.h | 11 +++ include/configs/warp7.h | 11 --- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index a895c93..912fb06 100644

Re: [U-Boot] [PATCH 1/2] serial: add skipping init option

2019-03-22 Thread Jun Nie
Simon Glass 于2019年3月22日周五 下午3:56写道: > > Hi Jun, > > On Fri, 22 Mar 2019 at 15:20, Jun Nie wrote: > > > > add skipping init option to avoid corrupt data in console > > if serial is already initilized when u-boot start its excution. > > > > Signed-of

[U-Boot] [PATCH 2/2] imx: serial_mxc: skip uart initilization

2019-03-22 Thread Jun Nie
Skip uart initilization if CONFIG_UART_SKIP_INIT is defined. That's means earlier firmware already initialized the uart. Signed-off-by: Jun Nie --- drivers/serial/serial_mxc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c

[U-Boot] [PATCH 1/2] serial: add skipping init option

2019-03-22 Thread Jun Nie
add skipping init option to avoid corrupt data in console if serial is already initilized when u-boot start its excution. Signed-off-by: Jun Nie --- drivers/serial/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 887cd68

Re: [U-Boot] [PATCH] rpi: Do not use dtb loaded by firmware

2018-11-08 Thread Jun Nie
Alexander Graf 于2018年11月8日周四 下午4:59写道: > > On 11/08/2018 09:36 AM, Jun Nie wrote: > > Do not use dtb loaded by firmware if fit image signature is enabled. > > So that u-boot.dtb can be used. The u-boot.dtb contains the pulibc key > > that is to verify Linux kernel FIT i

[U-Boot] [PATCH] rpi: Do not use dtb loaded by firmware

2018-11-08 Thread Jun Nie
protected by ATF. Signed-off-by: Jun Nie --- board/raspberrypi/rpi/rpi.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 649127c..f7041e3 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -283,6

[U-Boot] [PATCH v3] sunxi: add support for Banana Pi M2 Zero board

2018-06-06 Thread Jun Nie
Banana Pi M2 Zero is a board by Sinovoip with Allwinner H2+ SoC, 16-bit 512MiB DDR3 memory, a MicroSD slot, two MicroUSB ports (one OTG and one powering-only) and a miniHDMI port. Signed-off-by: Icenowy Zheng Signed-off-by: Jun Nie --- arch/arm/dts/Makefile | 1

Re: [U-Boot] [RFC][PATCH] spl: vboot: Verify content before using load_addr

2018-06-06 Thread Jun Nie
d > --- Reviewed-by: Jun Nie ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2] sunxi: add support for Banana Pi M2 Zero board

2018-05-24 Thread Jun Nie
2018-05-24 15:54 GMT+08:00 Maxime Ripard : > Hi, > > On Thu, May 24, 2018 at 12:38:19PM +0800, Jun Nie wrote: >> Banana Pi M2 Zero is a board by Sinovoip with Allwinner H2+ SoC, 16-bit >> 512MiB DDR3 memory, a MicroSD slot, two MicroUSB ports (one OTG and one >> powerin

[U-Boot] [PATCH v2] sunxi: add support for Banana Pi M2 Zero board

2018-05-23 Thread Jun Nie
. Signed-off-by: Icenowy Zheng Signed-off-by: Jun Nie --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 68 + board/sunxi/MAINTAINERS | 5 ++ configs/bananapi_m2_zero_defconfig

Re: [U-Boot] [PATCH v7 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-05-15 Thread Jun Nie
m code on these will add it future. > > Changes for v7: > - rebase on master > Acked-by: Jun Nie ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-18 Thread Jun Nie
2018-04-17 3:06 GMT+08:00 Simon Glass : > Hi Jun, > > On 13 April 2018 at 04:05, Jun Nie wrote: >> 2018-04-13 1:24 GMT+08:00 Simon Glass : >>> Hi, >>> >>> On 11 April 2018 at 09:13, Jun Nie wrote: >>>> It may be unnecessary to check signat

Re: [U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-18 Thread Jun Nie
2018-04-17 20:06 GMT+08:00 Quentin Schulz : > Hi, > > On Wed, Apr 11, 2018 at 11:13:05PM +0800, Jun Nie wrote: >> It may be unnecessary to check signature on unlocked board. >> Get the hint from platform specific code to support secure boot >> and non-secure boot with th

Re: [U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-13 Thread Jun Nie
2018-04-13 1:24 GMT+08:00 Simon Glass : > Hi, > > On 11 April 2018 at 09:13, Jun Nie wrote: >> It may be unnecessary to check signature on unlocked board. >> Get the hint from platform specific code to support secure boot >> and non-secure boot with the same binary, so

Re: [U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-13 Thread Jun Nie
2018-04-12 21:53 GMT+08:00 Tom Rini : > On Wed, Apr 11, 2018 at 11:13:05PM +0800, Jun Nie wrote: > >> It may be unnecessary to check signature on unlocked board. >> Get the hint from platform specific code to support secure boot >> and non-secure boot with the same bin

[U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-11 Thread Jun Nie
It may be unnecessary to check signature on unlocked board. Get the hint from platform specific code to support secure boot and non-secure boot with the same binary, so that boot is not blocked if board is not locked and has no key for signature verification. Signed-off-by: Jun Nie --- common

[U-Boot] uboot support to Allwinner bananapi zero

2018-04-11 Thread Jun Nie
Hi Icenowy & Jagan, I see bananapi zero patch was posted and discussed in [1], but without further follow up. Maybe we can decide which name is more maintainable first, bananapi-*, Bananapi-* or Sinovoip_BPI_*. And add all new boards with following the rule. Which one do you prefer? If possible,

Re: [U-Boot] [PATCH 1/2] image: fit: Show firmware configuration property if present

2018-04-02 Thread Jun Nie
onfiguration: 'config' > Configuration 0 (config) > Description: ATF with full u-boot > Kernel: unavailable > Firmware: atf > FDT: dtb > > Signed-off-by: Michal Simek > --- > Reviewed-by: Jun Nie

Re: [U-Boot] [PATCH 2/2] image: fit: Show information about OS type in firwmare case too

2018-04-02 Thread Jun Nie
Size:761216 Bytes = 743.38 KiB = 0.73 MiB > Architecture: ARM > OS: U-Boot > Load Address: 0x0800 > Hash algo:md5 > Hash value: f22960fe429be72296dc8dc59a47d566 > > Signed-off-by: Michal Simek > --- > Reviewed-by: Jun Nie __

[U-Boot] [PATCH v2] SPL: Add signature verification when loading image

2018-02-27 Thread Jun Nie
-boot proper images when loading FIT image in SPL. It is tested on Allwinner bananapi zero board with H2+ SoC. Signed-off-by: Jun Nie --- common/image-fit.c | 56 +++- common/spl/spl_fit.c | 12 +++ include/image.h | 2 ++ 3 files

Re: [U-Boot] [PATCH] SPL: Add signature verification when loading image

2018-02-26 Thread Jun Nie
2018-02-26 19:02 GMT+08:00 Andre Przywara : > Hi, > > On 26/02/18 10:00, Jun Nie wrote: >> 2018-02-26 17:56 GMT+08:00 Andre Przywara : >>> Hi, >>> >>> On 11/02/18 11:56, Jun Nie wrote: >>>> Add signature verification when loading FIT image in S

Re: [U-Boot] [PATCH] SPL: Add signature verification when loading image

2018-02-26 Thread Jun Nie
2018-02-26 17:56 GMT+08:00 Andre Przywara : > Hi, > > On 11/02/18 11:56, Jun Nie wrote: >> Add signature verification when loading FIT image in SPL. > > this message is very thin. Can you explain WHY you did this change and > what it's supposed to do and what it

Re: [U-Boot] [PATCH] SPL: Add signature verification when loading image

2018-02-26 Thread Jun Nie
Hi, Does anyone have comments on this patch? Thank you! Jun 2018-02-11 19:56 GMT+08:00 Jun Nie : > Add signature verification when loading FIT image in SPL. > > Signed-off-by: Jun Nie > --- > common/image-fit.c | 56 > +++-

[U-Boot] [PATCH] common: build ymodem only on need

2018-02-13 Thread Jun Nie
Build ymodem only on need to shrink spl image size. Signed-off-by: Jun Nie --- common/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/Makefile b/common/Makefile index c7bde23..0614348 100644 --- a/common/Makefile +++ b/common/Makefile @@ -133,4 +133,5

Re: [U-Boot] [PATCH] common: build ymodem and s_record only on need

2018-02-11 Thread Jun Nie
2018-02-12 8:54 GMT+08:00 André Przywara : > Hi, > > On 11/02/18 09:53, Jun Nie wrote: >> Build ymodem and s_record only on need to shrink >> spl image size. >> >> Signed-off-by: Jun Nie >> --- >> common/Makefile | 4 ++-- >> 1 file changed,

[U-Boot] [PATCH] SPL: Add signature verification when loading image

2018-02-11 Thread Jun Nie
Add signature verification when loading FIT image in SPL. Signed-off-by: Jun Nie --- common/image-fit.c | 56 +++- common/spl/spl_fit.c | 12 +++ include/image.h | 2 ++ 3 files changed, 48 insertions(+), 22 deletions(-) diff

[U-Boot] [PATCH] common: build ymodem and s_record only on need

2018-02-11 Thread Jun Nie
Build ymodem and s_record only on need to shrink spl image size. Signed-off-by: Jun Nie --- common/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/Makefile b/common/Makefile index c7bde23..8e1569f 100644 --- a/common/Makefile +++ b/common/Makefile

  1   2   >