Re: [U-Boot] [PATCH 1/1] arm: mvebu: Add CRS305-1G-4S board

2019-05-02 Thread Stefan Roese
Hi Luka, On 02.05.19 18:35, Luka Kovacic wrote: CRS305-1G-4S has a switch chip with an integrated CPU (98DX3236) and like some of the other simillar boards requires bin_hdr. bin_hdr (DDR3 init stage) is currently retrieved from the stock bootloader and compiled into the kwb image. Adds

Re: [U-Boot] [PATCH u-boot-marvell v3 14/17] arm: mvebu: turris_omnia: add RESET button handling

2019-05-02 Thread Stefan Roese
On 02.05.19 16:53, Marek Behún wrote: There is a Factory RESET button on the back side of the Turris Omnia router. When user presses this button before powering the device up and keeps it pressed, the microcontroller prevents the main CPU from booting and counts how long the RESET button is

[U-Boot] Pull request for UEFI sub-system for v2019.07-rc2

2019-05-02 Thread Heinrich Schuchardt
The following changes since commit b4ee6daad7a2604ca9466b2ba48de86cc27d381f: Merge tag 'u-boot-imx-20190426' of git://git.denx.de/u-boot-imx (2019-05-01 07:25:51 -0400) are available in the Git repository at: git://git.denx.de/u-boot-efi.git tags/efi-2019-07-rc2 for you to fetch changes

Re: [U-Boot] [PATCH u-boot-marvell v3 16/17] arm: mvebu: turris_omnia: add GPIO support to defconfig

2019-05-02 Thread Stefan Roese
On 02.05.19 16:53, Marek Behún wrote: Add support for the gpio command and driver for the I2C connected pca9538 controller, to be able to determine if SFP module is present in the Turris Omnia router. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan

Re: [U-Boot] [PATCH u-boot-marvell v3 17/17] arm: mvebu: turris_omnia: enable defconfig options needed by vendor

2019-05-02 Thread Stefan Roese
On 02.05.19 16:53, Marek Behún wrote: This options will be enabled by default by CZ.NIC shipped U-Boot. Enable them in defconfig. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH v3 2/2] sunxi: Enable EMAC on the Bananapi M3

2019-05-02 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The Bananapi M3 has an RTL8211E PHY connected to the EMAC using RGMII. The PHY is powered by DCDC1 through SW @ 3.3V. The board is designed to use 3.3V with RGMII, instead of the standard reduced voltage of 2.5V we see everywhere. DLDO3, which provides the I/O voltages, is

[U-Boot] [PATCH v3 0/2] sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY

2019-05-02 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Hi everyone, This series enables EMAC (Ethernet controller) on two A83T boards, the Cubietruck Plus and Bananapi M3. This series is now based on sunxi/next, which has patches that convert sun8i-emac to use the common CLK and DM_RESET framework. The two patches enable the

[U-Boot] [PATCH v3 1/2] sunxi: Enable EMAC on the Cubietruck Plus

2019-05-02 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The Cubietruck Plus has an RTL8211E PHY connected to the EMAC using RGMII. The PHY is powered by DLDO4 @ 3.3V, while the I/O pins are powered by DLDO3 @ 2.5V. This patch enables the EMAC and Realtek PHY drivers in the defconfig. The device tree file already has the EMAC

[U-Boot] Raspberry Pi's MAC address locked to the first device the SD card boots on

2019-05-02 Thread Timothy Froehlich
We've had a problem the past few days that we've traced back to U-Boot. We're generating images using Yocto with Mender's update routine. The issue is the first time a clean image is booted on a Raspberry Pi, the mac address gets permanently saved to the ethaddr env variable. It's a combination of

Re: [U-Boot] [PATCH v2] board/BuR/zynq/brsmarc2: initial commit

2019-05-02 Thread Tom Rini
On Thu, May 02, 2019 at 08:34:32PM +0200, Hannes Schmelzer wrote: > > On 5/2/19 6:06 PM, Michal Simek wrote: > >Hi, > Hi Michal, > >On 02. 05. 19 5:14, Hannes Schmelzer wrote: > >>diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile > >>index dfa5b02..2b00129 100644 > >>---

Re: [U-Boot] [PATCH v2] board/BuR/zynq/brsmarc2: initial commit

2019-05-02 Thread Hannes Schmelzer
On 5/2/19 6:06 PM, Michal Simek wrote: Hi, Hi Michal, On 02. 05. 19 5:14, Hannes Schmelzer wrote: diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index dfa5b02..2b00129 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -208,6 +208,8 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \

[U-Boot] [PATCH v2 2/3] Remove fit-dtb.blob* in clean target.

2019-05-02 Thread Vagrant Cascadian
Support for compressed fit-dtb.blob was added in: commit 95f4bbd581cf ("lib: fdt: Allow LZO and GZIP DT compression in U-Boot") Adjust Makefile to also clean compressed blobs. Signed-off-by: Vagrant Cascadian --- Changes in v2: - Mention commit where compressed fit-dtb.blob were

[U-Boot] [PATCH v2 3/3] Set time and umask on fit-dtb.blob to ensure reproducibile builds.

2019-05-02 Thread Vagrant Cascadian
Support for compressed fit-dtb.blob was added in: commit 95f4bbd581cf ("lib: fdt: Allow LZO and GZIP DT compression in U-Boot") When building compressed (lzop, gzip) fit-dtb.blob images, the compression tool may embed the time or umask in the image. Work around this by manually setting the

[U-Boot] [PATCH v2 0/3] Tidy up support for compressed fit-dtb.blob.

2019-05-02 Thread Vagrant Cascadian
Support for compressed fit-dtb.blob was added in: commit 95f4bbd581cf ("lib: fdt: Allow LZO and GZIP DT compression in U-Boot") This introduces reproducibility issues as the timestamp and umask may be embedded in the output when using gzip, lzop or possibly other compression tools if added

[U-Boot] [PATCH v2 1/3] Add fit-dtb.blob* to .gitignore.

2019-05-02 Thread Vagrant Cascadian
Support for compressed fit-dtb.blob was added in: commit 95f4bbd581cf ("lib: fdt: Allow LZO and GZIP DT compression in U-Boot") Adjust .gitignore to also exclude compressed blobs. Signed-off-by: Vagrant Cascadian --- Changes in v2: - Mention commit where compressed fit-dtb.blob were

[U-Boot] [BUG] Linux kernel oops when booting from U-Boot via GRUB-EFI on qemu-x86_defconfig

2019-05-02 Thread Heinrich Schuchardt
Today I tried to boot Debian Buster on qemu-x86_defconfig via GRUB-efi and got an oops in drivers/firmware/efi/runtime-wrappers.c when trying to enter SetVariable(). Did this ever work? [0.210599] Calibrating delay loop (skipped) preset value.. 3992.42 BogoMIPS (lpj=7984856) [0.211971]

[U-Boot] [PATCH 0/1] [RESEND] Add MikroTik CRS305-1G-4S+IN board support

2019-05-02 Thread Luka Kovacic
This patch adds support for the MikroTik CRS305-1G-4S+IN switch. CRS305-1G-4S has a switch chip with an integrated CPU (98DX3236) and like some of the other simillar boards requires bin_hdr. bin_hdr (DDR3 init stage) is currently retrieved from the stock bootloader and compiled into the kwb

[U-Boot] [PATCH 1/1] [RESEND] arm: mvebu: Add CRS305-1G-4S board

2019-05-02 Thread Luka Kovacic
CRS305-1G-4S has a switch chip with an integrated CPU (98DX3236) and like some of the other simillar boards requires bin_hdr. bin_hdr (DDR3 init stage) is currently retrieved from the stock bootloader and compiled into the kwb image. Adds support for U-Boot, enable UART, SPI, Winbond SPI flash

Re: [U-Boot] [PATCH 1/3] Add fit-dtb.blob* to .gitignore to also exclude compressed blobs.

2019-05-02 Thread Vagrant Cascadian
On 2019-05-02, Marek Vasut wrote: > On 5/2/19 2:42 AM, Vagrant Cascadian wrote: >> Signed-off-by: Vagrant Cascadian >> --- > > Commit message is missing on this and 2/3 patch , otherwise the series > looks good, thanks. I'm not sure what more to add that isn't already in the subject line...

[U-Boot] [PATCH 1/1] arm: mvebu: Add CRS305-1G-4S board

2019-05-02 Thread Luka Kovacic
CRS305-1G-4S has a switch chip with an integrated CPU (98DX3236) and like some of the other simillar boards requires bin_hdr. bin_hdr (DDR3 init stage) is currently retrieved from the stock bootloader and compiled into the kwb image. Adds support for U-Boot, enable UART, SPI, Winbond SPI flash

[U-Boot] [PATCH 0/1] Add MikroTik CRS305-1G-4S+IN board support

2019-05-02 Thread Luka Kovacic
This patch adds support for the MikroTik CRS305-1G-4S+IN switch. CRS305-1G-4S has a switch chip with an integrated CPU (98DX3236) and like some of the other simillar boards requires bin_hdr. bin_hdr (DDR3 init stage) is currently retrieved from the stock bootloader and compiled into the kwb

Re: [U-Boot] [PATCH 1/3] Add fit-dtb.blob* to .gitignore to also exclude compressed blobs.

2019-05-02 Thread Marek Vasut
On 5/2/19 6:44 PM, Vagrant Cascadian wrote: > On 2019-05-02, Marek Vasut wrote: >> On 5/2/19 2:42 AM, Vagrant Cascadian wrote: >>> Signed-off-by: Vagrant Cascadian >>> --- >> >> Commit message is missing on this and 2/3 patch , otherwise the series >> looks good, thanks. > > I'm not sure what

Re: [U-Boot] WaRP7 nok on master

2019-05-02 Thread Fabio Estevam
Hi Lukas, On Thu, May 2, 2019 at 1:58 PM Auer, Lukas wrote: > Yes, I will send a patch for this. Do you prefer setting the default > value for i.MX in one place (in arch/arm/mach-imx/Kconfig) or > individually for each sub-family (for example in arch/arm/mach- > imx/mx7/Kconfig for i.MX7)? I

Re: [U-Boot] WaRP7 nok on master

2019-05-02 Thread Auer, Lukas
Hi Fabio, On Thu, 2019-05-02 at 11:08 -0300, Fabio Estevam wrote: > Hi Lukas, > > On Thu, May 2, 2019 at 7:21 AM Auer, Lukas > wrote: > > > I was able to reproduce the issue on my side. With the patch, U-Boot > > probes the drivers for devices under simple-bus device tree nodes in > > the

[U-Boot] [PATCH v3 15/18] x86: Update the memory map a little

2019-05-02 Thread Simon Glass
The memory map currently omits the environment and the MRC region. Add these in for completeness. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None doc/README.x86 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/README.x86 b/doc/README.x86

Re: [U-Boot] [PATCH v2 49/50] x86: Add a way to jump from TPL to SPL

2019-05-02 Thread Simon Glass
Hi Bin, On Wed, 1 May 2019 at 10:17, Bin Meng wrote: > > Hi Simon, > > On Fri, Apr 26, 2019 at 12:00 PM Simon Glass wrote: > > > > When TPL finishes it needs to jump to SPL with the stack set up correctly. > > Add a function to handle this. > > > > Signed-off-by: Simon Glass > > --- > > > >

[U-Boot] [PATCH v3 13/18] Revert "pci: Scale MAX_PCI_REGIONS based on CONFIG_NR_DRAM_BANKS"

2019-05-02 Thread Simon Glass
This reverts commit aec4298ccb337106fd0115b91d846a022fdf301d. Unfortunately this has a dramatic impact on the pre-relocation memory used on x86 platforms (increasing it by 2KB) since it increases the overhead for each PCI device from 220 bytes to 412 bytes. The offending line is in

[U-Boot] [PATCH v3 18/18] x86: samus: Add a target to boot through TPL

2019-05-02 Thread Simon Glass
Add a version of samus which supports booting from TPL to SPL and then to U-Boot. This allows TPL to select from an A or B SPL to support verified boot with field upgrade. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: - Sort defconfig and adjust it to

[U-Boot] [PATCH v3 14/18] x86: Enable the RTC on all boards

2019-05-02 Thread Simon Glass
With the move to Kconfig this option should be set in Kconfig, not in the config header file. Move it. Signed-off-by: Simon Glass --- Changes in v3: - Drop unnecessary change to chromebook_link_defconfig Changes in v2: - Add new patch to enable the RTC in Kconfig arch/Kconfig

[U-Boot] [PATCH v3 05/18] x86: sysreset: Implement the get_last() method

2019-05-02 Thread Simon Glass
Add a default implementation of this method which always indicates that the last reset was a power-on reset. This is the most likely type of reset and without a PCH-specific driver we cannot determine any other type. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None

Re: [U-Boot] [PATCH v2 05/50] cros_ec: Use a hyphen in the uclass name

2019-05-02 Thread Simon Glass
Hi Bin, On Wed, 1 May 2019 at 06:00, Bin Meng wrote: > > Hi Simon, > > On Fri, Apr 26, 2019 at 11:59 AM Simon Glass wrote: > > > > Device-tree rules require that aliases use a hyphen rather than a > > underscore. Update the uclass name to fit with this. > > > > This allows device-tree aliases

[U-Boot] [PATCH v3 16/18] x86: broadwell: Update PCH to work in TPL

2019-05-02 Thread Simon Glass
The early init should only happen once. Update the probe method to deal with TPL, SPL and U-Boot proper. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: - Add a new patch to update PCH to work in TPL arch/x86/cpu/broadwell/pch.c | 12 +--- 1

[U-Boot] [PATCH v3 12/18] x86: samus: Increase the pre-reloc memory again

2019-05-02 Thread Simon Glass
This is again too small, so increase it slightly. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None configs/chromebook_samus_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/chromebook_samus_defconfig

[U-Boot] [PATCH v3 07/18] x86: samus: Update device tree for SPL

2019-05-02 Thread Simon Glass
Add tags to allow required nodes to be present in SPL / TPL. Also enable the sysreset driver. Signed-off-by: Simon Glass --- Changes in v3: - Remove unneeded pch-reset node Changes in v2: None arch/x86/dts/chromebook_samus.dts | 33 +++ 1 file changed, 29

[U-Boot] [PATCH v3 11/18] x86: Fix device-tree indentation

2019-05-02 Thread Simon Glass
With the use of a phandle we can outdent the device tree nodes a little. Fix this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None arch/x86/dts/u-boot.dtsi | 147 +++ 1 file changed, 73 insertions(+), 74

[U-Boot] [PATCH v3 17/18] x86: Add a way to jump from TPL to SPL

2019-05-02 Thread Simon Glass
When TPL finishes it needs to jump to SPL with the stack set up correctly. Add a function to handle this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: - Add a new patch allowing jumping from TPL to SPL arch/x86/cpu/start.S | 13 + 1 file

[U-Boot] [PATCH v3 08/18] x86: samus: Update device tree for verified boot

2019-05-02 Thread Simon Glass
Add nvdata drivers for the TPM and RTC as used on samus. These are needed for Chromium OS verified boot on samus. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None arch/x86/dts/chromebook_samus.dts | 22 +- 1 file changed, 21

[U-Boot] [PATCH v3 09/18] x86: Update device tree for TPL

2019-05-02 Thread Simon Glass
Add TPL binaries to the device x86 binman desciption. When enabled, TPL will start first, doing the 16-bit init, then jump to SPL and finally U-Boot proper. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Add a comment about the hard-coded text base

[U-Boot] [PATCH v3 06/18] x86: Add documention on the samus flashmap

2019-05-02 Thread Simon Glass
There are quite a few variables which control where things appear in the final ROM image. Add a flashmap in the documentation to make this easier to figure out. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None doc/README.x86 | 14 ++ 1

[U-Boot] [PATCH v3 10/18] x86: Update device tree for Chromium OS verified boot

2019-05-02 Thread Simon Glass
The standard image generated by U-Boot on x86 is u-boot.rom. Add a separate image called image.bin for verified boot. This supports verification in TPL of which SPL/U-Boot to start, then jumping to the correct one, with SPL setting up the SDRAM and U-Boot proper providing the user interface if

[U-Boot] [PATCH v3 03/18] x86: sysreset: Separate out the EFI code

2019-05-02 Thread Simon Glass
The EFI implementation of reset sits inside the driver and is called directly from outside the driver, breaking the normal driver-model conventions. Worse, it passed NULL as the device pointer, hoping that the called function won't use it, which breaks as soon as code is added to use it. Separate

[U-Boot] [PATCH v3 04/18] x86: sysreset: Implement power-off if available

2019-05-02 Thread Simon Glass
On modern x86 devices we can power the system off using the power- management features of the PCH. Add an implementation for this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: - Use acpi_s3.h header for constants (and tidy up header order) - Fix multi-line comment format

[U-Boot] [PATCH v3 01/18] cros_ec: Use a hyphen in the uclass name

2019-05-02 Thread Simon Glass
Device-tree rules require that aliases use a hyphen rather than a underscore. Update the uclass name to fit with this. This allows device-tree aliases to be used to refer to cros-ec devices, for example: aliases { cros-ec0 = cros-ec1 = }; Signed-off-by:

[U-Boot] [PATCH v3 02/18] x86: Add a simple TPL implementation

2019-05-02 Thread Simon Glass
Add the required CPU code so that TPL builds correctly. Also update the SPL code to deal with being booted from TPL. Reviewed-by: Bin Meng Signed-off-by: Simon Glass --- Changes in v3: - Rebase to x86/master Changes in v2: None arch/x86/include/asm/spl.h| 17 -

[U-Boot] [PATCH v3 00/18] x86: Add support for booting from TPL

2019-05-02 Thread Simon Glass
At present SPL is used on 64-bit platforms, to allow SPL to be built as a 32-bit program and U-Boot proper to be built as 64-bit. However it is useful to be able to use SPL on any x86 platform, where U-Boot needs to be updated in the field. Then SPL can select which U-Boot to run (A or B) and

Re: [U-Boot] [PATCH v2 45/50] Revert "pci: Scale MAX_PCI_REGIONS based on CONFIG_NR_DRAM_BANKS"

2019-05-02 Thread Simon Glass
Hi Thierry, On Thu, 2 May 2019 at 03:25, Thierry Reding wrote: > > On Thu, May 02, 2019 at 12:09:49AM +0800, Bin Meng wrote: > > +Thierry > > > > On Fri, Apr 26, 2019 at 12:00 PM Simon Glass wrote: > > > > > > This reverts commit aec4298ccb337106fd0115b91d846a022fdf301d. > > > > > >

Re: [U-Boot] [PATCH v2 4/4] lib: uuid: Fix unseeded PRNG on RANDOM_UUID=y

2019-05-02 Thread Heinrich Schuchardt
On 5/2/19 2:27 PM, Eugeniu Rosca wrote: The random uuid values (enabled via CONFIG_RANDOM_UUID=y) on our platform are always the same. Below is consistent on each cold boot: => ### interrupt autoboot => env default -a; gpt write mmc 1 $partitions; print uuid_gpt_misc ...

Re: [U-Boot] [PATCH v2] board/BuR/brsmarc1: initial commit

2019-05-02 Thread Hannes Schmelzer
On 5/2/19 2:46 PM, Felix Brack wrote: Hi Hannes, Hi Felix, On 02.05.19 14:09, Hannes Schmelzer wrote: This commit adds support for the B brsmarc1 SoM. The SoM is based on TI's AM335x SoC. Mainly vxWorks 6.9.4.x is running on the board, doing some PLC stuff on various carrier boards.

Re: [U-Boot] [PATCH 1/2 v2] fit: Support compression for non-kernel components (e.g. FDT)

2019-05-02 Thread Simon Glass
Hi Julius, On Thu, 18 Apr 2019 at 15:09, Julius Werner wrote: > > This patch adds support for compressing non-kernel image nodes in a FIT > image (kernel nodes could already be compressed previously). This can > reduce the size of FIT images and therefore improve boot times > (especially when an

Re: [U-Boot] [PATCH] board: toradex: drop support.arm maintainer email

2019-05-02 Thread Marcel Ziswiler
Hi Tom Sorry, this is a v2 and the only change is Stefan's ack being added. Please apply, thanks! Cheers Marcel On Thu, 2019-05-02 at 17:14 +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Drop Toradex ARM Support from maintainer > email > list as this just clogs our support

[U-Boot] [PATCH v2 4/6] imx8qm: fix cpu frequency reporting

2019-05-02 Thread Marcel Ziswiler
CPU frequency reporting failed with the following error message being printed: sc_pm_get_clock_rate: resource:507 clk:2: res:3 Could not read CPU frequency: -22 CPU: NXP i.MX8QM RevB A53 at 0 MHz Fix this by differentiating between the A35 as found on the i.MX 8QXP and the A53 as found on the

[U-Boot] [PATCH v2 3/6] clk: imx8qm: fix usdhc2 clocks

2019-05-02 Thread Marcel Ziswiler
Trying to bring up uSDHC2 the following error message was observed: MMC: imx8_clk_set_rate(Invalid clk ID #60) imx8_clk_set_rate(Invalid clk ID #60) usdhc@5b03 - probe failed: -22 This commit fixes this by properly setting resp. clocks. Signed-off-by: Marcel Ziswiler Reviewed-by: Max

[U-Boot] [PATCH v2 5/6] imx8: fuse: fix fuse driver

2019-05-02 Thread Marcel Ziswiler
This fixes the i.MX 8 fuse driver to actually build for i.MX 8QM as well. Signed-off-by: Marcel Ziswiler Reviewed-by: Max Krummenacher --- Changes in v2: None drivers/misc/imx8/fuse.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c

[U-Boot] [PATCH v2 2/6] arm: dts: imx8qm: add support for i2c0, i2c1, i2c2, i2c3 and i2c4

2019-05-02 Thread Marcel Ziswiler
From: Marcel Ziswiler Add support for i2c0, i2c1, i2c2, i2c3 and i2c4. Signed-off-by: Marcel Ziswiler Reviewed-by: Max Krummenacher --- Changes in v2: None arch/arm/dts/fsl-imx8qm.dtsi | 75 1 file changed, 75 insertions(+) diff --git

[U-Boot] [PATCH v2 6/6] board: toradex: add apalis imx8qm 4gb wb it v1.0b module support

2019-05-02 Thread Marcel Ziswiler
From: Marcel Ziswiler This commit adds initial support for the Toradex Apalis iMX8QM 4GB WB IT V1.0B module. Unlike the V1.0A early access samples exclusively booting from SD card, they are now strapped to boot from eFuses which are factory fused to properly boot from their on-module eMMC.

[U-Boot] [PATCH v2 0/6] apalis imx8qm 4gb wb it v1.0b module support

2019-05-02 Thread Marcel Ziswiler
This series adds support for more lpuart instances, support for i2c0, i2c1, i2c2, i2c3, i2c4, fixes support for uSDHC2, fixes CPU frequency reporting, fixes fuse driver and last but not least introduces support for the Toradex Apalis iMX8QM 4GB WB IT V1.0B module. This series is available

[U-Boot] [PATCH v2 1/6] arm: dts: imx8qm: add lpuart1, lpuart2, lpuart3, lpuart4

2019-05-02 Thread Marcel Ziswiler
From: Marcel Ziswiler Add support for lpuart1, lpuart2, lpuart3 and lpuart4. Signed-off-by: Marcel Ziswiler Reviewed-by: Max Krummenacher --- Changes in v2: None arch/arm/dts/fsl-imx8qm.dtsi | 80 1 file changed, 80 insertions(+) diff --git

[U-Boot] [PATCH v6 2/2] board: toradex: add colibri imx8qxp 2gb wb it v1.0b module support

2019-05-02 Thread Marcel Ziswiler
From: Marcel Ziswiler This commit adds initial support for the Toradex Colibri iMX8QXP 2GB WB IT V1.0B module. Unlike the V1.0A early access samples exclusively booting from SD card, they are now strapped to boot from eFuses which are factory fused to properly boot from their on-module eMMC.

[U-Boot] [PATCH v6 0/2] colibri imx8qxp 2gb wb it v1.0b module support

2019-05-02 Thread Marcel Ziswiler
This series fixes building for i.MX8 without SPL and adds support for more lpuart instances, cleans-up and extends the Toradex SKU handling and last but not least introduces support for the Toradex Colibri iMX8QXP 2GB WB IT V1.0B module. This series is available together with the last few

[U-Boot] [PATCH v6 1/2] imx: fix building for i.mx8 without spl

2019-05-02 Thread Marcel Ziswiler
From: Marcel Ziswiler Building with Travis CI complained and stopped with the following error: +cc1: fatal error: opening output file spl/u-boot-spl.cfgout: No such file or directory +compilation terminated. This fixes commit caceb739ea07 ("imx: build flash.bin for i.MX8") which took SPL being

[U-Boot] [PATCH] board: toradex: drop support.arm maintainer email

2019-05-02 Thread Marcel Ziswiler
From: Marcel Ziswiler Drop Toradex ARM Support from maintainer email list as this just clogs our support ticketing system. Signed-off-by: Marcel Ziswiler Acked-by: Stefan Agner --- board/toradex/colibri-imx6ull/MAINTAINERS | 1 - board/toradex/colibri_imx7/MAINTAINERS| 1 - 2 files

[U-Boot] [PATCH u-boot-marvell v3 09/17] arm: mvebu: turris_omnia: move ATSHA204A from defconfig to Kconfig

2019-05-02 Thread Marek Behún
This driver is required for Turris Omnia to read ethernet addresses. Move the dependency from turris_omnia_defconfig to Kconfig. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- arch/arm/mach-mvebu/Kconfig | 1 + board/CZ.NIC/turris_omnia/turris_omnia.c | 11 ---

[U-Boot] [PATCH u-boot-marvell v3 07/17] arm: mvebu: turris_omnia: refactor I2C accessing code

2019-05-02 Thread Marek Behún
Refactor code which accesses the microcontroller and EEPROM via I2C. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_omnia/turris_omnia.c | 205 --- 1 file changed, 109 insertions(+), 96 deletions(-) diff --git

[U-Boot] [PATCH u-boot-marvell v3 12/17] arm: mvebu: turris_*: remove watchdog include

2019-05-02 Thread Marek Behún
Since board watchdog is now unified and not handled in board files, remove the unnecessary includes. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_mox/turris_mox.c | 4 board/CZ.NIC/turris_omnia/turris_omnia.c | 4 2 files changed, 8 deletions(-)

[U-Boot] [PATCH u-boot-marvell v3 06/17] arm: mvebu: turris_omnia: add SCSI as boot target

2019-05-02 Thread Marek Behún
If SCSI is enabled, U-Boot should try to boot also from SCSI device on Turris Omnia. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- include/configs/turris_omnia.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/turris_omnia.h

[U-Boot] [PATCH u-boot-marvell v3 13/17] arm: mvebu: turris_omnia: fix regdomain env var setting

2019-05-02 Thread Marek Behún
The regdomain environment variable is set according to value read from EEPROM. This has to be done in board_late_init, after the environment variables are read from SPI. Select CONFIG_BOARD_LATE_INIT in Kconfig for the Turris Omnia target. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese

[U-Boot] [PATCH u-boot-marvell v3 08/17] arm: mvebu: turris_omnia: fix checkpatch warnings

2019-05-02 Thread Marek Behún
Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_omnia/turris_omnia.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c index

[U-Boot] [PATCH u-boot-marvell v3 10/17] arm: mvebu: turris_omnia: refactor more code

2019-05-02 Thread Marek Behún
Refactor RAM size reading from EEPROM in preparation for next patch. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_omnia/turris_omnia.c | 58 1 file changed, 28 insertions(+), 30 deletions(-) diff --git

[U-Boot] [PATCH u-boot-marvell v3 11/17] arm: mvebu: turris_omnia: print board info as Turris Mox

2019-05-02 Thread Marek Behún
Unify the way how Omnia and Mox print board information (RAM size and serial number). Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_omnia/turris_omnia.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH u-boot-marvell v3 17/17] arm: mvebu: turris_omnia: enable defconfig options needed by vendor

2019-05-02 Thread Marek Behún
This options will be enabled by default by CZ.NIC shipped U-Boot. Enable them in defconfig. Signed-off-by: Marek Behún --- configs/turris_omnia_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index

[U-Boot] [PATCH u-boot-marvell v3 05/17] arm: mvebu: turris_omnia: move I2C dependencies to Kconfig

2019-05-02 Thread Marek Behún
The I2C dependencies are defined in include/configs/turris_omnia.h, because Turris Omnia won't boot correctly without I2C support. Move these dependencies to Kconfig, so that they are selected if Turris Omnia is selected as target. Signed-off-by: Marek Behún Reviewed-by: Heiko Schocher

[U-Boot] [PATCH u-boot-marvell v3 16/17] arm: mvebu: turris_omnia: add GPIO support to defconfig

2019-05-02 Thread Marek Behún
Add support for the gpio command and driver for the I2C connected pca9538 controller, to be able to determine if SFP module is present in the Turris Omnia router. Signed-off-by: Marek Behún --- configs/turris_omnia_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git

[U-Boot] [PATCH u-boot-marvell v3 15/17] i2c: mvtwsi: fix reading status register after interrupt

2019-05-02 Thread Marek Behún
The twsi_wait function reads the control register for interrupt flag, and if interrupt flag is present, it immediately reads status register. On our device this sometimes causes bad value being read from status register, as if the value was not yet updated. My theory is that the controller does

[U-Boot] [PATCH u-boot-marvell v3 14/17] arm: mvebu: turris_omnia: add RESET button handling

2019-05-02 Thread Marek Behún
There is a Factory RESET button on the back side of the Turris Omnia router. When user presses this button before powering the device up and keeps it pressed, the microcontroller prevents the main CPU from booting and counts how long the RESET button is being pressed (and indicates this by

[U-Boot] [PATCH u-boot-marvell v3 03/17] arm: mvebu: turris_omnia: use AHCI and SATA driver model

2019-05-02 Thread Marek Behún
Enable AHCI, SCSI and SATA for compliance with the driver model migration. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- configs/turris_omnia_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index

[U-Boot] [PATCH u-boot-marvell v3 01/17] arm: mvebu: turris_omnia: remove redundant code

2019-05-02 Thread Marek Behún
The i2c slave disabling is done by mvtwsi driver and is not needed here. Signed-off-by: Marek Behún Acked-by: Heiko Schocher Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_omnia/turris_omnia.c | 13 - 1 file changed, 13 deletions(-) diff --git

[U-Boot] [PATCH u-boot-marvell v3 04/17] arm: mvebu: turris_omnia: remove legacy macros from board header

2019-05-02 Thread Marek Behún
These are not needed if MMC and SCSI DM drivers are used. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- include/configs/turris_omnia.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h index

[U-Boot] [PATCH u-boot-marvell v3 00/17] Fixes for Turris Omnia

2019-05-02 Thread Marek Behún
Hi, this is the third version of my fixes for Turris Omnia. Added since v2: - patch 16: adds GPIO support so that boot script can recognize if SFP module is inserted and select appropriate device tree for kernel - patch 17: enable CONFIG_FIT and other options needed by

[U-Boot] [PATCH u-boot-marvell v3 02/17] arm: mvebu: turris_omnia: add XHCI to defconfig

2019-05-02 Thread Marek Behún
Add XHCI_HOST and XHCI_MVEBU to defconfig, so that user's can by default boot from USB on Turris Omnia. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- configs/turris_omnia_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/turris_omnia_defconfig

Re: [U-Boot] [PATCH v3] ARM: am335x: Add phyCORE AM335x R2 support

2019-05-02 Thread Marek Vasut
On 5/2/19 11:52 AM, Niel Fourie wrote: [...] > +++ b/board/phytec/phycore_am335x_r2/board.c > @@ -0,0 +1,263 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * board.c > + * > + * Board functions for Phytec phyCORE-AM335x R2 (pcl060) based boards > + * > + * Copyright (C) 2011, Texas

Re: [U-Boot] WaRP7 nok on master

2019-05-02 Thread Fabio Estevam
Hi Lukas, On Thu, May 2, 2019 at 7:21 AM Auer, Lukas wrote: > I was able to reproduce the issue on my side. With the patch, U-Boot > probes the drivers for devices under simple-bus device tree nodes in > the pre-relocation device model. The default value of > CONFIG_SYS_MALLOC_LEN (0x400)

[U-Boot] [PATCH] cmd: pxe: add board specific PXE default path

2019-05-02 Thread Marek Behún
The list of PXE default paths contains ARCH and SOC specific paths, but one PXE server can serve different board with the same ARCH and SOC. This is the case for Turris Omnia and Turris Mox, where ARCH=arm and SOC=mvebu. If CONFIG_SYS_BOARD is defined, also try "default-$ARCH-$SOC-$BOARD" path.

[U-Boot] [PATCH] fs: btrfs: fix btrfs methods return values on failure

2019-05-02 Thread Marek Behún
The btrfs implementation methods .ls(), .size() and .read() returns 1 on failure, but the command handlers expect values <0 on failure. For example if given a nonexistent path, the load command currently returns success, and hush scripting does not work. Fix this by setting return values of

Re: [U-Boot] [PATCH v2] board/BuR/brsmarc1: initial commit

2019-05-02 Thread Felix Brack
Hi Hannes, On 02.05.19 14:09, Hannes Schmelzer wrote: > This commit adds support for the B brsmarc1 SoM. > > The SoM is based on TI's AM335x SoC. > Mainly vxWorks 6.9.4.x is running on the board, > doing some PLC stuff on various carrier boards. > > Signed-off-by: Hannes Schmelzer > > --- >

[U-Boot] [PATCH v2 4/4] lib: uuid: Fix unseeded PRNG on RANDOM_UUID=y

2019-05-02 Thread Eugeniu Rosca
The random uuid values (enabled via CONFIG_RANDOM_UUID=y) on our platform are always the same. Below is consistent on each cold boot: => ### interrupt autoboot => env default -a; gpt write mmc 1 $partitions; print uuid_gpt_misc ... uuid_gpt_misc=d117f98e-6f2c-d04b-a5b2-331a19f91cb2 => env

[U-Boot] [PATCH v2 3/4] cmd: gpt: fix and tidy up help message

2019-05-02 Thread Eugeniu Rosca
Apply the following changes: - Guard the 'gpt read' command by 'ifdef CONFIG_CMD_GPT_RENAME', since 'gpt read' is not available on CMD_GPT_RENAME=n - Prefix the {read,swap,rename} commands with one space for consistency - Prefix the 'guid' commands with 'gpt' for consistency Signed-off-by:

[U-Boot] [PATCH v2 2/4] disk: efi: Fix memory leak on 'gpt verify'

2019-05-02 Thread Eugeniu Rosca
Below is what happens on R-Car H3ULCB-KF using clean U-Boot v2019.04-00810-g6aebc0d11a10 and r8a7795_ulcb_defconfig: => ### interrupt autoboot => gpt verify mmc 1 No partition list provided - only basic check Verify GPT: success! => ### keep calling 'gpt verify mmc 1' => ### on 58th call,

[U-Boot] [PATCH v2 1/4] disk: efi: Fix memory leak on 'gpt guid'

2019-05-02 Thread Eugeniu Rosca
Below is what happens on R-Car H3ULCB-KF using clean U-Boot v2019.04-00810-g6aebc0d11a10 and r8a7795_ulcb_defconfig: => ### interrupt autoboot => gpt guid mmc 1 21200400-0804-0146-9dcc-a8c51255994f success! => ### keep calling 'gpt guid mmc 1' => ### on 59th call, we are out of memory: =>

[U-Boot] [PATCH v2 0/4] Misc EFI/GPT/UUID fixes

2019-05-02 Thread Eugeniu Rosca
This is a collection of fixes addressing issues on R-Car H3ULCB-KF. All have been tested on H3ULCB-KF and boot-tested on sandbox. Changes in v2: - Reworded the description and summary line of ("lib: uuid: Improve randomness of uuid values on RANDOM_UUID=y") to emphasize it is a fix rather

[U-Boot] [PATCH v2] board/BuR/zynq/brsmarc2: initial commit

2019-05-02 Thread Hannes Schmelzer
This commit adds the first of a few more Xilinx ZYNQ based SoM boards. The SoM is based on Xilinx Zynq 7000 SoC. Mainly vxWorks 6.9.4.x is running on the board, doing some PLC stuff on various carrier boards. Signed-off-by: Hannes Schmelzer --- Changes in v2: - fix SDPX tag in

[U-Boot] [PATCH v2] board/BuR/brppt2: initial commit

2019-05-02 Thread Hannes Schmelzer
This commit adds support for the brppt2 board. The board is based on the i.mx6 dual-lite SoC. Signed-off-by: Hannes Schmelzer --- Changes in v2: - fix SDPX tag in Make-files/rules arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx6dl-brppt2.dts | 278 +

[U-Boot] [PATCH v2] board/BuR/brsmarc1: initial commit

2019-05-02 Thread Hannes Schmelzer
This commit adds support for the B brsmarc1 SoM. The SoM is based on TI's AM335x SoC. Mainly vxWorks 6.9.4.x is running on the board, doing some PLC stuff on various carrier boards. Signed-off-by: Hannes Schmelzer --- Changes in v2: - fix style issue in arch/arm/mach-omap2/am33xx/Kconfig -

Re: [U-Boot] [PATCH v3] ARM: am335x: Add phyCORE AM335x R2 support

2019-05-02 Thread Heiko Schocher
Hello Niel, Am 02.05.2019 um 11:52 schrieb Niel Fourie: Support for Phytech phyCORE AM335x R2 SOM (PCL060) on the Phytec phyBOARD-Wega AM335x. CPU : AM335X-GP rev 2.1 Model: Phytec AM335x phyBOARD-WEGA DRAM: 256 MiB NAND: 256 MiB MMC: OMAP SD/MMC: 0 eth0: ethernet@4a10 Working: -

Re: [U-Boot] [PATCH] board/BuR/brppt2: initial commit

2019-05-02 Thread Tom Rini
On Thu, May 02, 2019 at 01:41:55PM +0200, Hannes Schmelzer wrote: > This commit adds support for the brppt2 board. The board is based on the > i.mx6 dual-lite SoC. > > Signed-off-by: Hannes Schmelzer Same comment about Makefile / config.mk and SPDX tags, thanks! -- Tom signature.asc

Re: [U-Boot] [PATCH] board/BuR/zynq/brsmarc2: initial commit

2019-05-02 Thread Tom Rini
On Thu, May 02, 2019 at 01:38:22PM +0200, Hannes Schmelzer wrote: > This commit adds the first of a few more Xilinx ZYNQ based SoM boards. > > The SoM is based on Xilinx Zynq 7000 SoC. > Mainly vxWorks 6.9.4.x is running on the board, > doing some PLC stuff on various carrier boards. > >

Re: [U-Boot] [PATCH u-boot-marvell v2 14/15] arm: mvebu: turris_omnia: add RESET button handling

2019-05-02 Thread Stefan Roese
On 02.05.19 13:53, Marek Behún wrote: On Thu, 2 May 2019 11:43:12 +0200 Stefan Roese wrote: Please do so. If someone whats to disable this functionality or change the reset button bootcmd, then he/she/it must do some changes (defconfig or code). So should I remove the options from Kconfig

Re: [U-Boot] [PATCH] board/BuR/brsmarc1: initial commit

2019-05-02 Thread Tom Rini
On Thu, May 02, 2019 at 11:01:48AM +0200, Hannes Schmelzer wrote: > This commit adds support for the B brsmarc1 SoM. > > The SoM is based on TI's AM335x SoC. > Mainly vxWorks 6.9.4.x is running on the board, > doing some PLC stuff on various carrier boards. > > Signed-off-by: Hannes Schmelzer

Re: [U-Boot] [PATCH u-boot-marvell v2 14/15] arm: mvebu: turris_omnia: add RESET button handling

2019-05-02 Thread Marek Behún
On Thu, 2 May 2019 11:43:12 +0200 Stefan Roese wrote: > Please do so. If someone whats to disable this functionality or change > the reset button bootcmd, then he/she/it must do some changes > (defconfig or code). So should I remove the options from Kconfig or enable them by default? BTW: We

[U-Boot] [PATCH] board/BuR/zynq/brsmarc2: initial commit

2019-05-02 Thread Hannes Schmelzer
This commit adds the first of a few more Xilinx ZYNQ based SoM boards. The SoM is based on Xilinx Zynq 7000 SoC. Mainly vxWorks 6.9.4.x is running on the board, doing some PLC stuff on various carrier boards. Signed-off-by: Hannes Schmelzer --- arch/arm/dts/Makefile |

[U-Boot] U-Boot bootefi MVPP2 Bug

2019-05-02 Thread Sven Auhagen
Hi everyone, I discovered a problem when using upstream U-Boot with Kernel 5.0 and MVPP2 when booting with the bootefi command on the Macchiatobin. The Macchiatobin runs ARM64 based Armada 8040. How to reproduce this: 1. Compile and flush upstream U-Boot: UBOOT_VERSION=v2019.04

  1   2   >