[PATCH] cmd: add clone command

2020-06-26 Thread John Chau
From: John Chau This patch adds a feature for block device cloning similar to dd command, this should be useful for boot-strapping a device where usb gadget or networking is not available. For instance one can clone a factory image into a blank emmc from an external sd card. Signed-off-by: John

Re: [PATCH v3 07/14] cmd: env: add env load command

2020-06-26 Thread Tom Rini
On Thu, Jun 25, 2020 at 09:59:51AM +0200, Patrick Delaunay wrote: > Add the new command env load to load the environment from > the current location gd->env_load_prio. > > Signed-off-by: Patrick Delaunay Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 06/14] env: the ops driver load becomes mandatory in struct env_driver

2020-06-26 Thread Tom Rini
On Thu, Jun 25, 2020 at 09:59:50AM +0200, Patrick Delaunay wrote: > The ops driver load becomes mandatory in struct env_drive, > change the comment for this ops and remove unnecessary test. > > Signed-off-by: Patrick Delaunay Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP

Re: [PATCH v3 05/14] env: nowhere: add .load ops

2020-06-26 Thread Tom Rini
On Thu, Jun 25, 2020 at 09:59:49AM +0200, Patrick Delaunay wrote: > Add the ops .load for nowhere ENV backend to load the > default environment. > > This ops is needed for the command 'env load' > > > > Signed-off-by: Patrick Delaunay Reviewed-by: Tom Rini -- Tom signature.asc

Re: [PATCH v3 03/14] env: sf: avoid space in backend name

2020-06-26 Thread Tom Rini
On Thu, Jun 25, 2020 at 09:59:47AM +0200, Patrick Delaunay wrote: > Remove space in ENV backend name for SPI Flash (SF) > to avoid issue with env select command. > > Signed-off-by: Patrick Delaunay Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 04/14] env: correctly handle env_load_prio

2020-06-26 Thread Tom Rini
On Thu, Jun 25, 2020 at 09:59:48AM +0200, Patrick Delaunay wrote: > Only update gd->env_load_prio in generic function env_load() > and no more in the weak function env_get_location() which is > called in many place (for example in env_driver_lookup, even > for ENVOP_SAVE operation). > > This

Re: [PATCH v3 08/14] cmd: env: add env select command

2020-06-26 Thread Tom Rini
On Thu, Jun 25, 2020 at 09:59:52AM +0200, Patrick Delaunay wrote: > Add the new command 'env select' to force the persistent storage > of environment, saved in gd->env_load_prio. > > Signed-off-by: Patrick Delaunay [snip] > + /* search priority by driver */ > + for (prio = 0; (drv =

Re: microSD Breakout Port

2020-06-26 Thread Tom Rini
On Thu, Jun 25, 2020 at 08:13:08PM +, Faruk Kılavuz wrote: > Hello > > This is my first mail. I tried running uart-0 with microsd breakout method. I > have added the following codes to open the F port. > > diff --git a/arch/arm/include/asm/arch-sunxi/gpio.h >

Re: [PATCH] rk3399: Add BOOTENV_SF command

2020-06-26 Thread Tom Rini
On Thu, Jun 25, 2020 at 08:32:10PM +0530, Jagan Teki wrote: > On Mon, Jun 8, 2020 at 7:47 PM Jagan Teki wrote: > > > > Add missing BOOTENV_SF command in rk3399 config. > > > > Fix it. > > > > Fixes: f263b860acf8 ("rk3399: Enable SF distro bootcmd") > > Signed-off-by: Jagan Teki > > Reported-by:

Re: [PATCH 1/1] gitlab: show skipped Python tests

2020-06-26 Thread Tom Rini
On Wed, Jun 24, 2020 at 02:04:37PM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 24 Jun 2020 at 09:53, Tom Rini wrote: > > > > On Wed, Jun 24, 2020 at 09:17:51AM -0600, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Wed, 24 Jun 2020 at 07:56, Heinrich Schuchardt > > > wrote: > > > > >

Re: [PATCH v3 1/1] phy: add support for stingray PAXB PHY controller

2020-06-26 Thread Tom Rini
On Thu, Jun 25, 2020 at 10:57:09PM +0530, Rayagonda Kokatanur wrote: > Hi Tom, > > > On Sun, Apr 12, 2020 at 8:46 PM Rayagonda Kokatanur > wrote: > > > > On Thu, Apr 9, 2020 at 7:11 PM Tom Rini wrote: > > > > > > On Thu, Apr 02, 2020 at 04:08:12PM +0530, Rayagonda Kokatanur wrote: > > > > > >

Re: [PATCH 1/4] arm: kirkwood: convert LaCie boards to DM_SPI_FLASH

2020-06-26 Thread Tom Rini
On Thu, Jun 25, 2020 at 12:28:56AM +0200, Simon Guinot wrote: > This patch converts the following Kirkwood-based LaCie boards to DM, > DM_SPI and DM_SPI_FLASH: > > - d2 Network v2 > - Internet Space v2 > - 2Big Network v2 > - Network Space v2 > - Network Space Lite v2 > - Network Space Max v2 >

Re: [RFC 0/4] drivers: footprint reduction proposal

2020-06-26 Thread Walter Lozano
Hi Tom, On 22/6/20 12:25, Walter Lozano wrote: Hi Tom, On 22/6/20 11:20, Tom Rini wrote: On Mon, Jun 22, 2020 at 11:12:40AM -0300, Walter Lozano wrote: Hi Tom, On 19/6/20 18:48, Tom Rini wrote: On Fri, Jun 19, 2020 at 06:11:36PM -0300, Walter Lozano wrote: Based on several reports and

Re: [PATCH v3 13/15] include/configs: ns3: add env variables for Linux boot

2020-06-26 Thread Rayagonda Kokatanur
On Fri, Jun 26, 2020 at 6:42 AM Simon Glass wrote: > > On Wed, 10 Jun 2020 at 04:42, Rayagonda Kokatanur > wrote: > > > > From: Bharat Gooty > > > > Add env variables and commands for booting Linux. > > > > Signed-off-by: Bharat Gooty > > Signed-off-by: Rayagonda Kokatanur > > --- > >

[PATCH 1/1] ARM: mx6: make CAAM usable on the i.MX6 boards

2020-06-26 Thread Heinrich Schuchardt
Even if the HAB fuse is not set we want to be able to use the Cryptographic Accelerator and Assurance Module (CAAM) for generating random numbers. So SYS_FSL_HAS_SEC should be selected even if IMX_HAB is not set. arch_misc_init() has to be called to initialize the CAAM. Signed-off-by: Heinrich

Re: [PATCH v3 6/6] crypto/fsl: add RNG support

2020-06-26 Thread Heinrich Schuchardt
On 6/25/20 2:19 PM, Michael Walle wrote: > Register the random number generator with the rng subsystem in u-boot. > This way it can be used by EFI as well as for the 'rng' command. > > Signed-off-by: Michael Walle > --- > drivers/crypto/fsl/Kconfig | 14 ++ > drivers/crypto/fsl/Makefile |

Re: [PATCH v3 05/15] board: ns3: add api to save boot parameters passed from BL31

2020-06-26 Thread Rayagonda Kokatanur
On Fri, Jun 26, 2020 at 6:41 AM Simon Glass wrote: > > On Wed, 10 Jun 2020 at 04:41, Rayagonda Kokatanur > wrote: > > > > From: Abhishek Shah > > > > Add API to save boot parameters passed from BL31 > > > > Use assembly implementation of save_boot_params instead of c function. > > Because

Re: [PATCH v3 0/6] crypto/fsl: add RNG support

2020-06-26 Thread Heinrich Schuchardt
On 6/25/20 11:01 PM, Michael Walle wrote: > Am 2020-06-25 18:03, schrieb Heinrich Schuchardt: >> On 25.06.20 16:36, Heinrich Schuchardt wrote: >>> On 25.06.20 14:18, Michael Walle wrote: First, improve the compatibility on newer Era CAAMs. These introduced new version registers.

Re: [PATCH v3 15/15] MAINTAINERS: update maintainers for broadcom ns3 platform

2020-06-26 Thread Rayagonda Kokatanur
Hi Peter, On Fri, Jun 26, 2020 at 7:57 PM Peter Tyser wrote: > > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 1fd975c72f..0c72deaa44 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -11,7 +11,7 @@ Descriptions of section entries: > > Type is one of: git, hg, quilt,

Re: [PATCH v3 15/15] MAINTAINERS: update maintainers for broadcom ns3 platform

2020-06-26 Thread Peter Tyser
> diff --git a/MAINTAINERS b/MAINTAINERS > index 1fd975c72f..0c72deaa44 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -11,7 +11,7 @@ Descriptions of section entries: > Type is one of: git, hg, quilt, stgit, topgit > S: Status, one of the following: > Supported:

Re: [PATCH U-BOOT v3 00/30] PLEASE TEST fs: btrfs: Re-implement btrfs support using code from btrfs-progs

2020-06-26 Thread Tom Rini
On Thu, Jun 25, 2020 at 07:43:20PM -0600, Simon Glass wrote: > Hi Marek, > > On Wed, 24 Jun 2020 at 10:03, Marek Behún wrote: > > > > Hello, > > > > this is a cleaned up version of Qu's patches that reimplements U-Boot's > > btrfs driver with code from btrfs-progs. > > > > I have tested this

Re: [PATCH v6 3/4] riscv: cpu: correctly handle the setting of CPU_FEAT_MMU bit

2020-06-26 Thread Bin Meng
On Fri, Jun 26, 2020 at 8:41 PM Sagar Shrikant Kadam wrote: > > The conditional check to read "mmu-type" from the device tree > is not rightly handled due to which the cpu feature doesn't include > CPU_FEAT_MMU even if it's corresponding entry is present in the device > tree. > > The

Re: [PATCH v6 2/4] uclass: cpu: fix to display proper CPU features

2020-06-26 Thread Bin Meng
Hi Sagar, On Fri, Jun 26, 2020 at 8:40 PM Sagar Shrikant Kadam wrote: > > The cmd "cpu detail" fetches uninitialized cpu feature information > and thus displays wrong / inconsitent details as below. > For eg: FU540-C000 doesn't have any microcode, yet the cmd display's it. > > => cpu detail >

Re: [PATCH v4 02/14] dtoc: add missing code comments

2020-06-26 Thread Walter Lozano
Hi Simon, On 25/6/20 22:42, Simon Glass wrote: On Wed, 24 Jun 2020 at 22:10, Walter Lozano wrote: Add missing information about internal class members in order to make the code easier to follow. Signed-off-by: Walter Lozano --- tools/dtoc/dtb_platdata.py | 3 +++ 1 file changed, 3

Re: [PATCH v4 12/14] arm: dts: include gpio nodes for card detect

2020-06-26 Thread Walter Lozano
Hi Adam, On 26/6/20 09:26, Adam Ford wrote: On Thu, Jun 25, 2020 at 11:37 PM Adam Ford wrote: On Wed, Jun 24, 2020 at 11:11 PM Walter Lozano wrote: Several MMC drivers use GPIO for card detection with cd-gpios property in the MMC node pointing to a GPIO node. However, as U-Boot tries to

Re: [PATCH v3 7/7] configs: ns3: enable sp805 watchdog driver

2020-06-26 Thread Stefan Roese
On 25.06.20 10:15, Rayagonda Kokatanur wrote: Enable sp805 watchdog driver for ns3. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass Reviewed-by: Stefan Roese Thanks, Stefan

[PATCH v6 2/4] uclass: cpu: fix to display proper CPU features

2020-06-26 Thread Sagar Shrikant Kadam
The cmd "cpu detail" fetches uninitialized cpu feature information and thus displays wrong / inconsitent details as below. For eg: FU540-C000 doesn't have any microcode, yet the cmd display's it. => cpu detail 1: cpu@1 rv64imafdc ID = 1, freq = 999.100 MHz: L1 cache, MMU,

[PATCH v6 4/4] riscv: cpu: check and append L1 cache to cpu features

2020-06-26 Thread Sagar Shrikant Kadam
All cpu cores within FU540-C000 having split I/D caches. Set the L1 cache feature bit using the i-cache-size or d-cache-size as one of the property from device tree indicating that L1 cache is present on the cpu core. => cpu detail 1: cpu@1 rv64imafdc ID = 1, freq = 999.100 MHz: L1

[PATCH v6 3/4] riscv: cpu: correctly handle the setting of CPU_FEAT_MMU bit

2020-06-26 Thread Sagar Shrikant Kadam
The conditional check to read "mmu-type" from the device tree is not rightly handled due to which the cpu feature doesn't include CPU_FEAT_MMU even if it's corresponding entry is present in the device tree. The initialization of cpu features is now taken care in cpu-uclass driver, so no need to

[PATCH v6 0/4] update clock handler and proper cpu features

2020-06-26 Thread Sagar Shrikant Kadam
U-Boot cmd "cpu detail" shows inconsistent CPU features. The current "cpu detail" sometimes shows "Microcode" as a feature, which is not the case with FU540-C000 on HiFive Unleashed board. Patch 1: add cpu node aliases. Patch 2: Init CPU information to avoid inconsistent cpu information. Patch

[PATCH v6 1/4] riscv: dts: hifive-unleashed-a00: add cpu aliases

2020-06-26 Thread Sagar Shrikant Kadam
Add cpu aliases to U-Boot specific dtsi for hifive-unleashed. Without aliases we see that the CPU device sequence numbers are set randomly and the cpu list/detail command will show it as follows: => cpu list 1: cpu@1 rv64imafdc 2: cpu@2 rv64imafdc 3: cpu@3 rv64imafdc 0:

Re: [PATCH v4 12/14] arm: dts: include gpio nodes for card detect

2020-06-26 Thread Adam Ford
On Thu, Jun 25, 2020 at 11:37 PM Adam Ford wrote: > > On Wed, Jun 24, 2020 at 11:11 PM Walter Lozano > wrote: > > > > Several MMC drivers use GPIO for card detection with cd-gpios property in > > the MMC node pointing to a GPIO node. However, as U-Boot tries to save > > space by keeping only

RE: [PATCH v5 3/3] riscv: cpu: check and append L1 cache to cpu features

2020-06-26 Thread Sagar Kadam
Hi Bin, > -Original Message- > From: Bin Meng > Sent: Friday, June 26, 2020 5:51 PM > To: Sagar Kadam ; U-Boot Mailing List b...@lists.denx.de> > Cc: Rick Chen ; Jagan Teki > ; Pragnesh Patel > ; Anup Patel ; Simon > Glass ; Ye Li ; Peng Fan > ; Sean Anderson > Subject: Re: [PATCH v5

Re: [PATCH v5 3/3] riscv: cpu: check and append L1 cache to cpu features

2020-06-26 Thread Bin Meng
Hi Sagar, On Thu, Jun 25, 2020 at 7:11 PM Bin Meng wrote: > > On Thu, Jun 25, 2020 at 4:12 PM Sagar Shrikant Kadam > wrote: > > > > All cpu cores within FU540-C000 having split I/D caches. > > Set the L1 cache feature bit using the i-cache-size or d-cache-size > > as one of the property from

[PATCH] cmd: add a panic command

2020-06-26 Thread Heiko Stuebner
From: Heiko Stuebner Even in boot scripts it may be needed to "panic" when all options are exhausted and the device specification specifies hanging instead of resetting the board. So add a new panic command that just wraps around the core panic call in uboot and can take an optional message.

Re: [PATCH v3 12/15] board: ns3: limit U-boot relocation within 16MB memory

2020-06-26 Thread Rayagonda Kokatanur
On Fri, Jun 26, 2020 at 6:42 AM Simon Glass wrote: > > On Wed, 10 Jun 2020 at 04:42, Rayagonda Kokatanur > wrote: > > > > From: Bharat Kumar Reddy Gooty > > > > By default re-location happens to higher address of DDR, > > relocation happens to a higher address Thank you, will fix it. > > >

Re: [RFC PATCH 1/3] xhci: Add polling support for USB keyboards

2020-06-26 Thread Matthias Brugger
On 25/06/2020 17:10, Jason Wessel wrote: > The xhci driver was causing intermittent 5 second delays from the USB > keyboard polling hook. Executing something like a "sleep 1" for > example would sleep for 5 seconds, unless an event occurred on > the USB bus to shorten the delay. > > Modeled

Re: [RFC PATCH 3/3] common/usb.c: Work around keyboard reporting "USB device not accepting new address"

2020-06-26 Thread Matthias Brugger
On 25/06/2020 17:10, Jason Wessel wrote: > When resetting the rpi3 board sometimes it will display: > USB device not accepting new address (error=0) > > After the message appears, the usb keyboard will not work. It seems > that the configuration actually did succeed however. Checking

Re: [PATCH] video: check hardware version of DSI

2020-06-26 Thread Philippe CORNU
Hi Yannick, Many thanks for your patch, Reviewed-by: Philippe Cornu Philippe :-) On 6/24/20 10:43 AM, Yannick Fertre wrote: > Check the hardware version of DSI. Versions 1.30 & 1.31 are only > supported. > > Signed-off-by: Yannick Fertre > --- > drivers/video/stm32/stm32_dsi.c | 10

Re: [PATCH v3 02/15] arm: cpu: armv8: add L3 memory flush support

2020-06-26 Thread Rayagonda Kokatanur
Hi Simon, On Fri, Jun 26, 2020 at 7:13 AM Simon Glass wrote: > > Hi Rayagonda, > > On Fri, 19 Jun 2020 at 10:55, Rayagonda Kokatanur > wrote: > > > > Hi Simon, > > > > On Wed, Jun 17, 2020 at 8:42 AM Simon Glass wrote: > > > > > > On Wed, 10 Jun 2020 at 04:41, Rayagonda Kokatanur > > > wrote:

RE: [PATCH 5/5] riscv: sifive: fu540: Add gpio-restart support

2020-06-26 Thread Pragnesh Patel
>-Original Message- >From: Bin Meng >Sent: 23 June 2020 11:00 >To: Rick Chen ; Simon Glass ; >Pragnesh Patel ; Sagar Kadam >; U-Boot Mailing List >Cc: Bin Meng >Subject: [PATCH 5/5] riscv: sifive: fu540: Add gpio-restart support > >[External Email] Do not click links or attachments

RE: [PATCH 4/5] riscv: qemu: Add syscon reboot and poweroff support

2020-06-26 Thread Pragnesh Patel
>-Original Message- >From: Bin Meng >Sent: 23 June 2020 11:00 >To: Rick Chen ; Simon Glass ; >Pragnesh Patel ; Sagar Kadam >; U-Boot Mailing List >Cc: Bin Meng >Subject: [PATCH 4/5] riscv: qemu: Add syscon reboot and poweroff support > >[External Email] Do not click links or attachments

RE: [PATCH 3/5] riscv: Do not build reset.c if SYSRESET is on

2020-06-26 Thread Pragnesh Patel
>-Original Message- >From: Bin Meng >Sent: 23 June 2020 11:00 >To: Rick Chen ; Simon Glass ; >Pragnesh Patel ; Sagar Kadam >; U-Boot Mailing List >Cc: Bin Meng >Subject: [PATCH 3/5] riscv: Do not build reset.c if SYSRESET is on > >[External Email] Do not click links or attachments

[PATCH 3/3] asm/u-boot.h: remove bd_t definitions

2020-06-26 Thread Masahiro Yamada
All the users of bd_t were converted to struct bd_info. Remove the definitions. Signed-off-by: Masahiro Yamada --- arch/nds32/include/asm/u-boot.h | 5 ++--- arch/riscv/include/asm/u-boot.h | 5 ++--- include/asm-generic/u-boot.h| 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-)

[PATCH 2/3] treewide: convert bd_t to struct bd_info manually

2020-06-26 Thread Masahiro Yamada
Some code was not converted by coccinelle, somehow. I manually fixed up the remaining, and comments, README docs. Signed-off-by: Masahiro Yamada --- arch/m68k/cpu/mcf523x/cpu.c | 2 +- arch/m68k/cpu/mcf52x2/cpu.c | 2 +- arch/m68k/cpu/mcf532x/cpu.c | 2 +-

RE: [PATCH 2/5] sysreset: syscon: Support value property

2020-06-26 Thread Pragnesh Patel
>-Original Message- >From: Bin Meng >Sent: 23 June 2020 11:00 >To: Rick Chen ; Simon Glass ; >Pragnesh Patel ; Sagar Kadam >; U-Boot Mailing List >Cc: Bin Meng >Subject: [PATCH 2/5] sysreset: syscon: Support value property > >[External Email] Do not click links or attachments unless you