Re: [U-Boot] [PATCH 3/4] imx6: spl: Reduce SPL limit size in case CONFIG_SECURE_BOOT is enabled

2019-09-17 Thread Jagan Teki
Hi Breno, On Thu, Jul 18, 2019 at 6:06 PM Breno Matheus Lima wrote: > > In case CONFIG_SECURE_BOOT is enabled we need to limit the SPL size to > avoid a possible HAB failure event: > > - HAB Event 1 - > event data: > 0xdb 0x00 0x14 0x42 0x33 0x22 0x33 0x00 >

[U-Boot] [PATCH v2 3/3] ubi: Add "skipcheck" command to set/clear this bit in the UBI volume hdr

2019-09-17 Thread Stefan Roese
U-Boot now supports the "skip_check" flag to optionally skip the CRC check at open time. Currently its only possible to set this bit upon UBI volume creation. But it might be very useful to also set this bit on already installed systems (e.g. field upgrade) to make also use of the boot-time decreas

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-17 Thread Lukasz Majewski
Hi Simon, > On Sun, 18 Aug 2019 at 19:30, Peng Fan wrote: > > > > > Subject: [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define > > > > > > This define indicates if DM_GPIO shall be supported in SPL. This > > > allows proper operation of DM converted GPIO drivers in SPL, > > > which use #

Re: [U-Boot] [PATCH v2 3/7] clk: imx8: Update imx8 clock driver

2019-09-17 Thread Lukasz Majewski
Hi Peng, > Hi All, > > > Subject: [PATCH v2 3/7] clk: imx8: Update imx8 clock driver > > Sorry to bring back this topic. > > This patch is not converting to CCF following Linux, but it could > satisfy u-boot usage and make more feature work. > > I checked Linux i.MX8 CCF recently, although L

[U-Boot] [PATCH] configs: rk3288: Increase bootm length

2019-09-17 Thread Jagan Teki
Increase bootm length to 64MB satisfy max gunzip size, even other rockchip and know SoC are following same length check. Reported-by: Michael Trimarchi Signed-off-by: Jagan Teki --- include/configs/rk3288_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/confi

Re: [U-Boot] [PATCH v2 2/4] libfdt: return correct value if #size-cells property is not present

2019-09-17 Thread Matthias Brugger
Hi Simon, On 17/09/2019 07:48, Simon Glass wrote: > Hi, > > On Thu, 5 Sep 2019 at 02:49, wrote: >> >> From: Matthias Brugger >> >> According to the device tree specification, the default value for >> was not present. >> >> This patch also makes fdt_address_cells() and fdt_size_cells() conform >

Re: [U-Boot] imx6dl_mamoj broken

2019-09-17 Thread Stefano Babic
Hi Robert, On 17/09/19 01:37, Robert Hancock wrote: > On 2019-09-16 3:08 p.m., Stefano Babic wrote: >> Hi Anatolji, >> >> On 16/09/19 22:20, Anatolij Gustschin wrote: >>> Hi Jagan, >>> >>> On Mon, 16 Sep 2019 13:36:03 +0530 >>> Jagan Teki ja...@amarulasolutions.com wrote: >>> ... >    arm:

Re: [U-Boot] imx6dl_mamoj broken

2019-09-17 Thread Stefano Babic
Hi Fabio, On 16/09/19 23:21, Fabio Estevam wrote: > Hi Anatolij/Stefano/Jagan, > > On Mon, Sep 16, 2019 at 5:20 PM Anatolij Gustschin wrote: > >> This check fails since the recent changes in SPL size limit check, >> see commit 25d38f9b34be (imx6: spl: Reduce SPL limit size in case >> CONFIG_SEC

[U-Boot] [PATCH 1/5] configs: stm32f429-discovery: Disable CONFIG_NET flag

2019-09-17 Thread Patrice Chotard
Network support was never added on this board, disable CONFIG_NET flag to avoid following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 releas

[U-Boot] [PATCH 2/5] configs: stm32f429-evaluation: Disable CONFIG_NET flag

2019-09-17 Thread Patrice Chotard
Network support was never added on this board, disable CONFIG_NET flag to avoid following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 releas

[U-Boot] [PATCH 3/5] configs: stm32f469-discovery: Disable CONFIG_NET flag

2019-09-17 Thread Patrice Chotard
Network support was never added on this board, disable CONFIG_NET flag to avoid following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 releas

[U-Boot] [PATCH 4/5] configs: stm32h743-disco: Disable CONFIG_NET flag

2019-09-17 Thread Patrice Chotard
Network support was never added on this board, disable CONFIG_NET flag to avoid following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 releas

[U-Boot] [PATCH 0/5] Disable CONFIG_NET flag for STM32F4 and STM32H7 boards

2019-09-17 Thread Patrice Chotard
All STM32F4 and STM32H7 boards have CONFIG_NET flags enable in their defconfig whereas network support was never added. Simply disable CONFIG_NET to avoid following compilation warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Et

[U-Boot] [PATCH 5/5] configs: stm32h743-eval: Disable CONFIG_NET flag

2019-09-17 Thread Patrice Chotard
Network support was never added on this board, disable CONFIG_NET flag to avoid following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 releas

Re: [U-Boot] [PATCH 2/4] habv4: tools: Avoid hardcoded CSF size for SPL targets

2019-09-17 Thread Stefano Babic
On 17/09/19 05:26, Breno Matheus Lima wrote: > Hi Stefano, > > Em seg, 16 de set de 2019 às 05:17, Stefano Babic escreveu: >> >> Hi Breno, >> >> On 12/09/19 03:07, Peng Fan wrote: >>> Hi Breno, >>> Subject: [PATCH 2/4] habv4: tools: Avoid hardcoded CSF size for SPL targets >>> >>> I saw this

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected

2019-09-17 Thread Jagan Teki
On Thu, Aug 29, 2019 at 3:15 AM Kurt Miller wrote: > > The board has 4G memory but only 2G is detected by TPL. Please > let me know if additional information is needed. > > With u-boot master TPL output: > > U-Boot TPL 2019.10-rc3-00020-ge4b8dd9b34-dirty (Aug 28 2019 - 17:26:44) > LPDDR4, 50MHz >

[U-Boot] [PATCH V2 1/2] power: domain: add dev_power_domain_on

2019-09-17 Thread Peng Fan
Add this new API to power on multiple domains attached to a device. Signed-off-by: Peng Fan --- V2: New patch drivers/power/domain/power-domain-uclass.c | 19 +++ include/power-domain.h | 17 + 2 files changed, 36 insertions(+) diff --git a

[U-Boot] [PATCH V2 2/2] core: device: use dev_power_domain_on

2019-09-17 Thread Peng Fan
When multiple power domains attached to a device, need power on them all, so use dev_power_domain_on to do that. Signed-off-by: Peng Fan --- V2: use dev_power_domain_on in patch 1/2 drivers/core/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/core/de

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected

2019-09-17 Thread Jagan Teki
On Thu, Aug 29, 2019 at 3:15 AM Kurt Miller wrote: > > The board has 4G memory but only 2G is detected by TPL. Please > let me know if additional information is needed. > > With u-boot master TPL output: > > U-Boot TPL 2019.10-rc3-00020-ge4b8dd9b34-dirty (Aug 28 2019 - 17:26:44) > LPDDR4, 50MHz >

Re: [U-Boot] [PATCH] armv8: ls1028a: add more personalities support

2019-09-17 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Yuantian Tang >Sent: Tuesday, September 17, 2019 8:21 AM >To: Prabhakar Kushwaha >Cc: Andy Tang ; u-boot@lists.denx.de >Subject: [U-Boot] [PATCH] armv8: ls1028a: add more personalities support Be more specific about which personalities in s

Re: [U-Boot] [PATCH v1 18/20] configs: enable eSDHC device module for T1042D4RDB board

2019-09-17 Thread Priyanka Jain
>-Original Message- >From: Yinbo Zhu >Sent: Tuesday, September 17, 2019 8:26 AM >To: Wolfgang Denk ; Priyanka Jain ; >Shengzhou Liu ; u-boot@lists.denx.de >Cc: Yinbo Zhu ; Xiaobo Xie ; >Jiafei Pan ; Prabhakar Kushwaha >; Bin Meng ; Simon >Goldschmidt ; Adam Ford >; Patrick Delaunay ; Jer

Re: [U-Boot] [PATCH 04/14] dfu: allow to manage DFU on several devices

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > Add support of DFU for several interface/device > with one command. > > The format for "dfu_alt_info" in this case is : > interface with devstring'='alternate list (';' separated) > and each interface is separated by '&' > > The previous behavior is always supported. > > One e

Re: [U-Boot] [PATCH 05/14] dfu: allow read with 0 data for EOF indication

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > This patch allows into the DFU backend to indicate that there is no > remaining data (for EOF for example). That allows users to read a > buffer greater than the device size; the dfu stack stops the read > request when the backend return a length=0 without error. > > Signed-off-by:

Re: [U-Boot] [PATCH 06/14] dfu: add backend for MTD device

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > Add DFU backend for MTD device: allow to read > and write on any MTD device (RAW or SPI) > > For example : > > set dfu_alt_info "nand_raw raw 0x0 0x10" > > dfu 0 mtd nand0 > > This MTD backend provides the same level than dfu nand ^ -

Re: [U-Boot] [PATCH 07/14] dfu: add partition support for MTD backend

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > Add the support of MTD partition for the MTD backend. > > The expected dfu_alt_info for one alternate on the mtd device : >part > partubi > > "partubi" also erase up to the end of the partition after write > operation. > > For example: dfu_alt_info = "spl part 1

Re: [U-Boot] [PATCH 08/14] dfu: add DFU virtual backend

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > Add a virtual DFU backend to allow board specific read and write > (for OTP update for example). > > Signed-off-by: Patrick Delaunay > --- > > drivers/dfu/Kconfig| 7 ++ > drivers/dfu/Makefile | 1 + > drivers/dfu/dfu.c | 5 - > drivers/dfu/dfu_virt.c | 49 >

Re: [U-Boot] [PATCH 09/14] dfu: add callback for flush and initiated operation

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > Add weak callback to allow board specific behavior > - flush > - initiated > > This patch prepare usage of DFU back end for communication with > STM32CubeProgrammer on stm32mp1 platform with stm32prog command. As I've said previously - please add this use case and info to ./doc/REA

[U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Michal Simek
From: Ashok Reddy Soma When two instances of AXI QSPI with flash are added and tested simultaneously the spi driver operations are relocated twice. As a result code is accessing addresses outside of RAM when relocated second time which is causing a crash. Tested on Microblaze. Similar change wa

Re: [U-Boot] [PATCH 04/14] dfu: allow to manage DFU on several devices

2019-09-17 Thread Patrick DELAUNAY
Hi Lukasz, > From: Lukasz Majewski > Sent: mardi 17 septembre 2019 12:26 > To: Patrick DELAUNAY > Cc: u-boot@lists.denx.de; U-Boot STM32 mailman.stormreply.com> > Subject: Re: [PATCH 04/14] dfu: allow to manage DFU on several devices > Importance: High > > Hi Patrick, > > > Add support of DFU

Re: [U-Boot] [PATCH 06/14] dfu: add backend for MTD device

2019-09-17 Thread Patrick DELAUNAY
Hi, > From: Lukasz Majewski > Sent: mardi 17 septembre 2019 12:36 > > Hi Patrick, > > > Add DFU backend for MTD device: allow to read and write on any MTD > > device (RAW or SPI) > > > > For example : > > > set dfu_alt_info "nand_raw raw 0x0 0x10" > > > dfu 0 mtd nand0 > > > > This MTD back

Re: [U-Boot] [PATCH 07/14] dfu: add partition support for MTD backend

2019-09-17 Thread Patrick DELAUNAY
Hi, > From: Lukasz Majewski > Sent: mardi 17 septembre 2019 12:39 > > Hi Patrick, > > > Add the support of MTD partition for the MTD backend. > > > > The expected dfu_alt_info for one alternate on the mtd device : > > part > > partubi > > > > "partubi" also erase up to the end o

Re: [U-Boot] [PATCH] spl: add a generic function board_init_r

2019-09-17 Thread Simon Goldschmidt
On Thu, Sep 5, 2019 at 6:50 PM Philippe Reynes wrote: > > This commit add a generic function board_init_r that > only initialize some device (for example serial). It > avoid to define a board function only to launch the > serial configuration. > > Signed-off-by: Philippe Reynes > --- > common/sp

Re: [U-Boot] [PATCH 09/17] mx6sabresd: convert to DM_VIDEO

2019-09-17 Thread Fabio Estevam
Hi Anatolij, On Mon, Sep 16, 2019 at 4:21 PM Anatolij Gustschin wrote: > Most probably this is because there was no user of the video > device when booting and therefore the video driver was not > probed/bound. Please try do display some bitmap with bmp > command or try to switch to the video co

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Jagan Teki
On Tue, Sep 17, 2019 at 4:52 PM Michal Simek wrote: > > From: Ashok Reddy Soma > > When two instances of AXI QSPI with flash are added and tested > simultaneously the spi driver operations are relocated twice. > As a result code is accessing addresses outside of RAM when > relocated second time w

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Simon Goldschmidt
On Tue, Sep 17, 2019 at 1:22 PM Michal Simek wrote: > > From: Ashok Reddy Soma > > When two instances of AXI QSPI with flash are added and tested > simultaneously the spi driver operations are relocated twice. > As a result code is accessing addresses outside of RAM when > relocated second time w

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Michal Simek
On 17. 09. 19 14:43, Simon Goldschmidt wrote: > On Tue, Sep 17, 2019 at 1:22 PM Michal Simek wrote: >> >> From: Ashok Reddy Soma >> >> When two instances of AXI QSPI with flash are added and tested >> simultaneously the spi driver operations are relocated twice. >> As a result code is accessing a

Re: [U-Boot] [PATCH 09/14] dfu: add callback for flush and initiated operation

2019-09-17 Thread Patrick DELAUNAY
Hi, > From: Lukasz Majewski > Sent: mardi 17 septembre 2019 12:45 > > Hi Patrick, > > > Add weak callback to allow board specific behavior > > - flush > > - initiated > > > > This patch prepare usage of DFU back end for communication with > > STM32CubeProgrammer on stm32mp1 platform with stm32p

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Simon Goldschmidt
On Tue, Sep 17, 2019 at 2:48 PM Michal Simek wrote: > > On 17. 09. 19 14:43, Simon Goldschmidt wrote: > > On Tue, Sep 17, 2019 at 1:22 PM Michal Simek > > wrote: > >> > >> From: Ashok Reddy Soma > >> > >> When two instances of AXI QSPI with flash are added and tested > >> simultaneously the spi

[U-Boot] [PATCH] Revert "mx6sabresd: convert to DM_VIDEO"

2019-09-17 Thread Fabio Estevam
The conversion to CONFIG_DM_VIDEO causes no output at all in the LVDS panel. Switch back to the non-DM video option until this is resolved, to avoid splashscreen functionality regression. This reverts commit f3592ceac9810b34801772b6d335d8f7cff4c287. Signed-off-by: Fabio Estevam --- configs/mx6

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Michal Simek
On 17. 09. 19 14:41, Jagan Teki wrote: > On Tue, Sep 17, 2019 at 4:52 PM Michal Simek wrote: >> >> From: Ashok Reddy Soma >> >> When two instances of AXI QSPI with flash are added and tested >> simultaneously the spi driver operations are relocated twice. >> As a result code is accessing addresse

Re: [U-Boot] [PATCH] Revert "mx6sabresd: convert to DM_VIDEO"

2019-09-17 Thread Otavio Salvador
On Tue, Sep 17, 2019 at 10:03 AM Fabio Estevam wrote: > > The conversion to CONFIG_DM_VIDEO causes no output at all > in the LVDS panel. > > Switch back to the non-DM video option until this is resolved, > to avoid splashscreen functionality regression. > > This reverts commit f3592ceac9810b348017

Re: [U-Boot] [PATCH v2 1/2] dm: core: Add functions to read 64-bit dt properties

2019-09-17 Thread Michal Simek
On 17. 09. 19 7:47, Simon Glass wrote: > On Mon, 2 Sep 2019 at 09:24, Bin Meng wrote: >> >> On Mon, Sep 2, 2019 at 10:34 PM Michal Simek wrote: >>> >>> From: T Karthik Reddy >>> >>> This patch adds functions dev_read_u64_default & dev_read_u64 >>> to read unsigned 64-bit values from devicetree.

[U-Boot] Ethernet on i.MX8MM with mainline U-Boot

2019-09-17 Thread Schrempf Frieder
Hi Peng, I tried to get Ethernet running on i.MX8MM with mainline U-Boot and your latest patches for SoC-support. I added the missing clocks, but something still seems to be wrong. It seems like the clock parents are not set correctly. If I run "dm tree", I see that the enet_axi is a child of c

[U-Boot] [PATCH V2] [RFC] usb: storage: Limit transfer size to 120 kiB

2019-09-17 Thread Marek Vasut
Due to constant influx of more and more weird and broken USB sticks, do as Linux does in commit 779b457f66e10de3471479373463b27fd308dc85 usb: storage: scsiglue: further describe our 240 sector limit Just so we have some sort of documentation as to why we limit our Mass Storage transfe

[U-Boot] [PATCH 1/2] am335x, guardian: update guardian board

2019-09-17 Thread BollavarapuMoses.Christopher
From: Moses Christopher - add BOARD_LATE_INIT function calls in board.c - add swi_status detection in board.c - mux: add guardian interfaces to single pinmux structure - am33xx, kconfig: add BOARD_LATE_INIT for GUARDIAN board Signed-off-by: Moses Christopher --- arch/arm/mach-omap2/am3

[U-Boot] [PATCH 2/2] am335x, guardian: adapt guardian board to DM

2019-09-17 Thread BollavarapuMoses.Christopher
From: Moses Christopher - update partition table - remove env partitions - dts: add new interfaces (uart2, extra gpio-key) remove unneeded entries update nand timings for performance improvement - defconfig: adapt configurations to suit DM remove unneeded co

[U-Boot] Raspberry PI Compute Module - UART Issue

2019-09-17 Thread Lee Annamalai
Hi I am using a Raspberry PI compute module (CM 3+), which seems to be running U-Boot - U-Boot 2019.04-dirty (Aug 21 2019 - 14:41:54 +) The CM3+ is communicating on the UART at boot, before the Kernel loads: U-Boot 2019.04-dirty (Aug 21 2019 - 14:41:54 +) DRAM: 948 MiB RPI Compute Mod

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected

2019-09-17 Thread Kurt Miller
On Tue, 2019-09-17 at 10:57 +0800, Kever Yang wrote: > Hi Kurt, > > Could you try with below update: > > > diff --git a/arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi  > b/arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi > index 4a4414a960..dc9db047cb 100644 > --- a/arch/arm/dts/rk3399-sdram-lpddr4-100

Re: [U-Boot] [PATCH v2 2/4] libfdt: return correct value if #size-cells property is not present

2019-09-17 Thread Simon Glass
Hi Matthias, On Tue, 17 Sep 2019 at 00:29, Matthias Brugger wrote: > > Hi Simon, > > On 17/09/2019 07:48, Simon Glass wrote: > > Hi, > > > > On Thu, 5 Sep 2019 at 02:49, wrote: > >> > >> From: Matthias Brugger > >> > >> According to the device tree specification, the default value for > >> was

Re: [U-Boot] [PATCH 1/4] mx6: clock: Allow enable_ipu_clock() to be built for SPL code

2019-09-17 Thread Fabio Estevam
Hi Stefano, Could this series be applied, please? On Fri, Jul 12, 2019 at 9:32 AM Fabio Estevam wrote: > > Allow enable_ipu_clock() to be built for SPL code. This is done > in preparation for configuring the NoC registers on i.MX6QP in SPL. > > Signed-off-by: Fabio Estevam > --- > arch/arm/mac

Re: [U-Boot] [PATCH] dm: pinctrl: Skip not associated gpio phandle and rise an error message

2019-09-17 Thread Michael Nazzareno Trimarchi
Hi On Tue, Sep 17, 2019 at 7:48 AM Simon Glass wrote: > > Hi Michael, > > On Sun, 15 Sep 2019 at 04:45, Michael Trimarchi > wrote: > > > > Skip not associated gpio phandle let register the other gpios and > > the error message add some information to debug the problem using > > a decompiled vers

Re: [U-Boot] [PATCH] mmc: dw_mmc: Clean up variable name

2019-09-17 Thread Michael Nazzareno Trimarchi
Hi On Mon, Sep 16, 2019 at 3:24 AM Peng Fan wrote: > > > Subject: [PATCH] mmc: dw_mmc: Clean up variable name > I will resend. Michael > Please at least write some commit message here. > > Thanks, > Peng. > > > > > Signed-off-by: Michael Trimarchi > > --- > > drivers/mmc/dw_mmc.c | 4 ++-- > >

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-17 Thread Simon Glass
Hi Lukasz, On Tue, 17 Sep 2019 at 00:22, Lukasz Majewski wrote: > > Hi Simon, > > > On Sun, 18 Aug 2019 at 19:30, Peng Fan wrote: > > > > > > > Subject: [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define > > > > > > > > This define indicates if DM_GPIO shall be supported in SPL. This > > >

Re: [U-Boot] Raspberry PI Compute Module - UART Issue

2019-09-17 Thread Belisko Marek
Hi Lee, On Tue, Sep 17, 2019 at 4:45 PM Lee Annamalai wrote: > > Hi > > I am using a Raspberry PI compute module (CM 3+), which seems to be running > U-Boot - U-Boot 2019.04-dirty (Aug 21 2019 - 14:41:54 +) > > The CM3+ is communicating on the UART at boot, before the Kernel loads: > > U-Boo

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-17 Thread Adam Ford
On Tue, Sep 17, 2019 at 1:34 PM Simon Glass wrote: > > Hi Lukasz, > > On Tue, 17 Sep 2019 at 00:22, Lukasz Majewski wrote: > > > > Hi Simon, > > > > > On Sun, 18 Aug 2019 at 19:30, Peng Fan wrote: > > > > > > > > > Subject: [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define > > > > > > > >

Re: [U-Boot] [PATCH v2 1/2] Revert "configs: Remove am335x_boneblack_defconfig"

2019-09-17 Thread Sam Protsenko
On Tue, Sep 17, 2019 at 7:50 AM Lokesh Vutla wrote: > > > > On 16/09/19 4:53 PM, Sam Protsenko wrote: > > Hi Lokesh, > > > > On Mon, Sep 16, 2019 at 11:34 AM Lokesh Vutla wrote: > >> > >> > >> > >> On 12/09/19 11:20 PM, Sam Protsenko wrote: > >>> Commit 8fa7f65dd02c ("configs: Remove am335x_boneb

[U-Boot] [PATCH] configs: ti: Use addr_fit for run_fit environment variable

2019-09-17 Thread Andrew F. Davis
When running 'run_fit' the FIT file should have been loaded at 'addr_fit', although at this point they should be the same use this variable instead of 'loadaddr'. Signed-off-by: Andrew F. Davis --- include/configs/ti_armv7_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[U-Boot] [PATCH V2] dm: pinctrl: Skip not associated gpio phandle and rise a warning message

2019-09-17 Thread Michael Trimarchi
Skip not associated gpio phandle let register the other gpios on a group. We need anyway to send out a warning to the user to fix their uboot-board.dtsi. Thhe handle id can be found inside the decompiled dtb dtc -I dtb -O dts -o devicetree.dts spl/u-boot-spl.dtb Signed-off-by: Michael Trimarchi

Re: [U-Boot] [PATCH v2 1/2] efi_loader: variable: support APPEND_WRITE

2019-09-17 Thread Heinrich Schuchardt
On 9/6/19 8:09 AM, AKASHI Takahiro wrote: If EFI_VARIABLE_APPEND_WRITE is specified in attributes at efi_set_variable(), specified data will be appended to the variable's original value. Attributes other than APPEND_WRITE should not be modified. With this patch, APPEND_WRITE test in 'variables'

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-17 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Tue, 17 Sep 2019 at 00:22, Lukasz Majewski wrote: > > > > Hi Simon, > > > > > On Sun, 18 Aug 2019 at 19:30, Peng Fan wrote: > > > > > > > > > Subject: [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig > > > > > define > > > > > > > > > > This define indicates

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-17 Thread Lukasz Majewski
On Tue, 17 Sep 2019 14:19:33 -0500 Adam Ford wrote: > On Tue, Sep 17, 2019 at 1:34 PM Simon Glass wrote: > > > > Hi Lukasz, > > > > On Tue, 17 Sep 2019 at 00:22, Lukasz Majewski > > wrote: > > > > > > Hi Simon, > > > > > > > On Sun, 18 Aug 2019 at 19:30, Peng Fan > > > > wrote: > > > > >

[U-Boot] [PATCH 2/3] tools: fit_image: Use fit_image_get_data_and_size for getting offset/size

2019-09-17 Thread Andrew F. Davis
This is very similar to fit_image_get_data but has the benefit of working on FIT images with external data unlike fit_image_get_data. This is useful for extracting sub-images from type of FIT image as this would previously just silently fail. Add an error message also so if this still fails it is e

[U-Boot] [PATCH 3/3] tools: dumpimage: Fall-though to print usage for help command

2019-09-17 Thread Andrew F. Davis
This has the same result but some compilers will warn about this fall-through if there are statements as part of the label block. Signed-off-by: Andrew F. Davis --- tools/dumpimage.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/dumpimage.c b/tools/dumpimage.c index d5f893daf1..e54814

[U-Boot] [PATCH 1/3] tools: dumpimage: Provide more feedback on internal errors

2019-09-17 Thread Andrew F. Davis
The dumpimage utility errors out in a number of places without providing sufficient feedback to allow the user to easily determine what has gone wrong. Add additional error messages to make the cause of the failure more obvious. Signed-off-by: Andrew F. Davis --- tools/dumpimage.c | 14 +

Re: [U-Boot] [PATCH v4 01/15] video: bmp: check resolutions of panel/bitmap

2019-09-17 Thread Heinrich Schuchardt
On 9/13/19 11:47 AM, Yannick Fertré wrote: If the size of the bitmap is bigger than the size of the panel then errors appear when calculating axis alignment and the copy of bitmap is done outside of framebuffer. Signed-off-by: Yannick Fertré --- drivers/video/video_bmp.c | 14 ++

[U-Boot] [PATCH] board: ti: am654: Disable TRNG node for HS devices

2019-09-17 Thread Andrew F. Davis
On HS devices the access to TRNG is restricted on the non-secure ARM side, disable the node in DT to prevent firewall violations. Signed-off-by: Andrew F. Davis --- arch/arm/mach-k3/common.c | 20 arch/arm/mach-k3/include/mach/sys_proto.h | 2 ++ board/ti/am

[U-Boot] [PATCH] ARM: keystone2: update the default addresses of the secure monitor

2019-09-17 Thread Andrew F. Davis
From: Jean-Jacques Hiblot To accommodate the growth of u-boot, we need to shift the location of the secure monitor. Moving it 64kB further. Signed-off-by: Jean-Jacques Hiblot --- include/configs/ti_armv7_keystone2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includ

Re: [U-Boot] [PATCH] net: Always build the string_to_enetaddr() helper

2019-09-17 Thread Joe Hershberger
Hi Simon, On Sat, Sep 14, 2019 at 1:55 PM Simon Goldschmidt wrote: > > Joe Hershberger schrieb am Sa., 14. Sep. 2019, > 20:46: > > > On Sat, Sep 14, 2019 at 1:32 PM Tom Rini wrote: > > > > > > On Sat, Sep 14, 2019 at 04:05:44PM +0200, Ondřej Jirman wrote: > > > > Hi, > > > > > > > > On Fri, Sep

Re: [U-Boot] [PATCH 09/17] mx6sabresd: convert to DM_VIDEO

2019-09-17 Thread Anatolij Gustschin
Hi Fabio, On Tue, 17 Sep 2019 09:32:37 -0300 Fabio Estevam feste...@gmail.com wrote: > Hi Anatolij, > > On Mon, Sep 16, 2019 at 4:21 PM Anatolij Gustschin wrote: > > > Most probably this is because there was no user of the video > > device when booting and therefore the video driver was not >

Re: [U-Boot] [PATCH v2 0/4] arm: socfpga: Convert drivers from struct to defines

2019-09-17 Thread Dinh Nguyen
On 9/10/19 3:37 AM, Ley Foon Tan wrote: > This is 2nd version of patchset to convert reset, system and clock manager > drivers to use #define instead of struct. > > Tested on Cyclone 5, Arria 10 and Stratix 10 devices. > > Patch 1 is new one, patch 2 to 4 have changes. > > Main changes in this

Re: [U-Boot] Pull request: u-boot-spi/master

2019-09-17 Thread Tom Rini
On Mon, Sep 16, 2019 at 08:15:49AM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this for v2019.10 release. > > Summary: > - fix mvebu_a3700_spi clock prescale (Marek Behún) > - unmark MXS_SPI, DEPRECATED (Lukasz) > - add spi_write_then_read (Jagan) > - fix SST26* flash ICs (Eugeniy) > - fi

Re: [U-Boot] [PATCH 1/2] am335x, guardian: update guardian board

2019-09-17 Thread Tom Rini
On Tue, Sep 17, 2019 at 02:25:37PM +, bollavarapumoses.christop...@in.bosch.com wrote: > From: Moses Christopher > > - add BOARD_LATE_INIT function calls in board.c > - add swi_status detection in board.c > - mux: add guardian interfaces to single pinmux structure > - am33xx, kconfi

Re: [U-Boot] [PATCH 2/2] am335x, guardian: adapt guardian board to DM

2019-09-17 Thread Tom Rini
On Tue, Sep 17, 2019 at 02:25:38PM +, bollavarapumoses.christop...@in.bosch.com wrote: > From: Moses Christopher > > - update partition table - remove env partitions > - dts: add new interfaces (uart2, extra gpio-key) > remove unneeded entries > update nand timings for

Re: [U-Boot] pull request u-boot-fsl-qoriq

2019-09-17 Thread Tom Rini
On Mon, Sep 16, 2019 at 05:17:11AM +, Priyanka Jain wrote: > Dear Tom, > > Please find my pull-request for u-boot-fsl-qoriq/master > https://travis-ci.org/p-priyanka-jain/u-boot/builds/584428184 > > > Summary > Add emmc hs200 support > Few bug fixes related to serdes, I2C, ethernet, etc >

Re: [U-Boot] [PATCH v2 1/2] efi_loader: variable: support APPEND_WRITE

2019-09-17 Thread AKASHI Takahiro
On Tue, Sep 17, 2019 at 10:38:47PM +0200, Heinrich Schuchardt wrote: > On 9/6/19 8:09 AM, AKASHI Takahiro wrote: > >If EFI_VARIABLE_APPEND_WRITE is specified in attributes at > >efi_set_variable(), specified data will be appended to the variable's > >original value. Attributes other than APPEND_WRI

[U-Boot] [RFC 00/15] efi_loader: add secure boot support

2019-09-17 Thread AKASHI Takahiro
One of major missing features in current UEFI implementation is "secure boot." The ultimate goal of my attempt is to implement image authentication based on signature and provide UEFI secure boot support which would be fully compliant with UEFI specification, section 32[1]. (The code was originally

[U-Boot] [RFC 01/15] lib: charset: add u16_strcmp()

2019-09-17 Thread AKASHI Takahiro
u16 version of strcmp(): u16_strncmp() works like u16_strcmp() but only at most n characters (in u16) are compared. This function will be used in my UEFI secure boot patch. Signed-off-by: AKASHI Takahiro --- include/charset.h | 15 +++ lib/charset.c | 25 +

[U-Boot] [RFC 02/15] test: add tests for u16_strcmp()

2019-09-17 Thread AKASHI Takahiro
New seven test cases for u16_strcmp() are added under Unicode unit test, which should be executed by "ut unicode" command. Signed-off-by: AKASHI Takahiro --- test/unicode_ut.c | 13 + 1 file changed, 13 insertions(+) diff --git a/test/unicode_ut.c b/test/unicode_ut.c index 1ccd36e7c

[U-Boot] [RFC 04/15] include: image.h: add key info to image_sign_info

2019-09-17 Thread AKASHI Takahiro
For FIT verification, all the properties of a public key come from "control fdt" pointed to by fdt_blob. In UEFI secure boot, on the other hand, a public key is located and retrieved from dedicated signature database stored as UEFI variables. Added two fields may hold values of a public key if fdt

[U-Boot] [RFC 03/15] include: pe.h: add image-signing-related definitions

2019-09-17 Thread AKASHI Takahiro
The index (IMAGE_DIRECTORY_ENTRY_CERTTABLE) in a table points to a region containing authentication information (image's signature) in PE format. WIN_CERTIFICATE structure defines an embedded signature format. Those definitions will be used in my UEFI secure boot patch. Signed-off-by: AKASHI Tak

[U-Boot] [RFC 08/15] efi_loader: variable: support variable authentication

2019-09-17 Thread AKASHI Takahiro
With this commit, EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS is supported for authenticated variables and the system secure state will transfer between setup mode and user mode as UEFI specification section 32.3 describes. Internally, authentication data is stored as part of authenticated

[U-Boot] [RFC 09/15] efi_loader: variable: add VendorKeys and SignatureSupport variables

2019-09-17 Thread AKASHI Takahiro
Those two variables are well defined UEFI variables: SignatureSupport: array of GUIDs representing the type of signatures supported by the platform firmware VendorKeys: whether the system is configured to use only vendor-provided keys or not Signed-off-by: AKASHI Taka

[U-Boot] [RFC 05/15] include: image.h: export hash algorithm helper functions

2019-09-17 Thread AKASHI Takahiro
This commit allows us to use common/image-sig.c even if CONFIG_FIT is disabled but CONFIG_EFI_LOADER is enabled. Signed-off-by: AKASHI Takahiro --- include/image.h | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/include/image.h b/include/image.h index 685f5181

[U-Boot] [RFC 10/15] efi_loader: image_loader: support image authentication

2019-09-17 Thread AKASHI Takahiro
With this commit, image validation can be enforced, as UEFI specification section 32.5 describes, if CONFIG_EFI_SECURE_BOOT is enabled. Currently we support * authentication based on db and dbx, so dbx-validated image will always be rejected. * following signature types: EFI_CERT_SHA256_GUID

[U-Boot] [RFC 11/15] efi_loader: initialize secure boot state

2019-09-17 Thread AKASHI Takahiro
We call efi_init_secure_boot() after loading saved UEFI variables so that the initial secure boot status will be initialized. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_setup.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_set

[U-Boot] [RFC 06/15] secure boot: rename CONFIG_SECURE_BOOT

2019-09-17 Thread AKASHI Takahiro
The configuration, CONFIG_SECURE_BOOT, was scattered among different architecture directories for different implementation. This will prevent UEFI secure boot from being added later. So let's rename them, giving each implementation to different configuration option. CONFIG_SECURE_BOOT still remain

[U-Boot] [RFC 07/15] efi_loader: add signature verification functions

2019-09-17 Thread AKASHI Takahiro
In this commit, implemented are efi_signature_verify_with_db(), efi_signature_parse_sigdb() and a couple of helper functions which will be used for variable authentication as well as image authentication in UEFI secure boot. efi_signature_verify_with_db() - authenticate an image with its hash valu

[U-Boot] [RFC 13/15] cmd: env: provide appropriate guid for well-defined variable

2019-09-17 Thread AKASHI Takahiro
Any signature database variable is associated with a specific guid. For convenience, if user doesn't supply any guid info, "env set|print -e" should complement it. Signed-off-by: AKASHI Takahiro --- cmd/nvedit_efi.c | 31 +++ 1 file changed, 23 insertions(+), 8 deleti

[U-Boot] [RFC 15/15] efi_loader, pytest: add UEFI secure boot tests (authenticated variables)

2019-09-17 Thread AKASHI Takahiro
test_efi_secboot/test_authvar.py: provide test cases of variable authentication This test relies on efitools and user should compile it on his own. (Currently some local change has been applied.) Signed-off-by: AKASHI Takahiro --- .../py/tests/test_efi_secboot/test_authvar.py |

[U-Boot] [RFC 14/15] efi_loader, pytest: add UEFI secure boot tests (image)

2019-09-17 Thread AKASHI Takahiro
test_efi_secboot/test_signed.py: provide test cases of image authentication for signed images test_efi_secboot/test_unsigned.py: provide test cases of image authentication for unsigned images This test relies on efitools and user should compile it on his own. (Curre

[U-Boot] [RFC 12/15] efi_loader: add CONFIG_EFI_SECURE_BOOT

2019-09-17 Thread AKASHI Takahiro
Now we can enable UEFI secure boot with this option. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/Kconfig | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index c7027a967653..fb66766d2b7a 100644 --- a/lib/efi_loader/Kconfig +

Re: [U-Boot] [PATCH V2] [RFC] usb: storage: Limit transfer size to 120 kiB

2019-09-17 Thread Bin Meng
On Tue, Sep 17, 2019 at 10:43 PM Marek Vasut wrote: > > Due to constant influx of more and more weird and broken USB sticks, > do as Linux does in commit 779b457f66e10de3471479373463b27fd308dc85 > > usb: storage: scsiglue: further describe our 240 sector limit > > Just so we have some sort

[U-Boot] [PATCH v2 01/28] serial: serial_mtk: enable FIFO and disable flow control

2019-09-17 Thread Weijie Gao
This patch adds codes to enable FIFO and disable flow control taken from ns16550 driver. Signed-off-by: Weijie Gao --- drivers/serial/serial_mtk.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c index bce1be8227

[U-Boot] [PATCH v2 00/28] Add and update drivers for MediaTek MT76x8 SoCs

2019-09-17 Thread Weijie Gao
This patch series have the following changes: - Add pinctrl(both pinmux and pinconf) driver, reset controller driver and clock driver for mt7628. - Add mt7628 platform to mtk-sd driver. - Modify mt7628's ethernet & usb phy driver to take advantages from the new drivers. - Update mt7621-spi d

[U-Boot] [PATCH v2 02/28] serial: serial_mtk: add non-DM version for SPL

2019-09-17 Thread Weijie Gao
This patch adds non-DM version for mtk hsuart driver and makes it compatible with ns16550a driver in configuration. This is needed in SPL with CONFIG_SPL_DM disabled for reducing size. Signed-off-by: Weijie Gao --- drivers/serial/serial.c | 2 + drivers/serial/serial_mtk.c | 202 ++

[U-Boot] [PATCH v2 03/28] dts: mtmips: move uart property clock-frequency into mt7628an.dtsi

2019-09-17 Thread Weijie Gao
The UART of MT7628 has fixed 40MHz input clock so there is no need to put clock-frequency in every dts files. Just put it into the common dtsi file. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- arch/mips/dts/gardena-smart-gateway-mt7688.dts | 1 - arch/mips/dts/linkit-smart-7688.dts

[U-Boot] [PATCH v2 04/28] dts: mtmips: enable high-speed UART support for mt7628

2019-09-17 Thread Weijie Gao
All three UARTs of mt7628 are actually MediaTek's high-speed UARTs which support baudrate up to 921600. The high-speed UART is compatible with ns16550 when baudrate <= 115200. Add compatible string to dtsi file so u-boot can use it when serial_mtk driver is built in. Reviewed-by: Stefan Roese Si

[U-Boot] [PATCH v2 07/28] spi: mt7621-spi: use clock frequency from clk driver

2019-09-17 Thread Weijie Gao
This patch lets the spi driver to use clock provided by the clk driver since the new clk-mt7628 driver provides accurate sys clock frequency. Signed-off-by: Weijie Gao --- v2: newly added --- drivers/spi/mt7621_spi.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) di

[U-Boot] [PATCH v2 08/28] spi: mt7621-spi: remove data cache and rewrite its xfer function

2019-09-17 Thread Weijie Gao
The mt7621 spi controller supports continuous generic half-duplex spi transaction. There is no need to cache xfer data at all. To achieve this goal, the OPADDR register must be used as the first data to be sent. And follows the eight generic DIDO registers. But one thing different between OPADDR a

[U-Boot] [PATCH v2 11/28] dts: mtmips: add pinctrl node for mt7628

2019-09-17 Thread Weijie Gao
This patch adds pinctrl node with default pin state for mt7628an.dtsi. Signed-off-by: Weijie Gao --- arch/mips/dts/mt7628a.dtsi | 150 + 1 file changed, 150 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index 6d2142f429..8

  1   2   >