Re: [PATCH v8 3/3] efi_loader: add PE/COFF image measurement

2021-05-25 Thread Masahisa Kojima
Hi Heinrich, > > > + /* > > > + * Size must be 8-byte aligned and the trailing bytes must be > > > + * zero'ed. Otherwise hash value may be incorrect. > > > + */ > > > + if (!IS_ALIGNED(*efi_size, 8)) { > > > > Why don't you unconditionally copy to a new buffer? Then the

[PATCH v9 1/1] efi_loader: add PE/COFF image measurement

2021-05-25 Thread Masahisa Kojima
"TCG PC Client Platform Firmware Profile Specification" requires to measure every attempt to load and execute a OS Loader(a UEFI application) into PCR[4]. This commit adds the PE/COFF image measurement, extends PCR, and appends measurement into Event Log. Acked-by: Ilias Apalodimas Tested-by:

[PATCH v9 0/1] PE/COFF measurement support

2021-05-25 Thread Masahisa Kojima
This patch series add the PE/COFF measurement support. Extending PCR and Event Log is tested with fTPM running as a OP-TEE TA. Unit test will be added in the separate series. Originally, this patch series have three patches. Two out of three patches are already merged, so this series only contain

Re: [PATCH] env: Leave invalid env for nowhere location

2021-05-25 Thread Kunihiko Hayashi
Hi Tim, How about this fix? You already tested Marek's patch, and I'd like to hear your comment about this patch, or know whether it occurs the issue with CONFIG_ENV_IS_NOWHERE if possible. Thank you, On 2021/05/17 2:19, Marek Vasut wrote: On 5/12/21 4:09 PM, Kunihiko Hayashi wrote: When

[PORT] Help Porting U-BOOT master branch to GT90X V4 sun7i a20 tablet board

2021-05-25 Thread Koray Bilir
hello to the u-boot community, last week i wanted to do some hardware hacking and came across one of my nameless chinese brand sun7i a20 tablets poked around in adb shell, mounted the NANDA partition and to my surprise it was running u-boot v2011 , so i wanted to put a linux kernel on there to see

[PATCH 0/3] J7200: Add support for HS400 speed mode

2021-05-25 Thread Aswath Govindraju
The following series of patches add support for HS400 speed mode on J7200 SoC. For HS400 support to work, the following series of patches depend on, https://patchwork.ozlabs.org/project/uboot/patch/20210405144428.12159-1-a-govindr...@ti.com/ Aswath Govindraju (3): mmc: sdhci_am654: Read

[PATCH 2/3] arm: dts: k3-j7200-main: Add support for HS400 and update delay select values for MMCSD subsystems

2021-05-25 Thread Aswath Govindraju
HS400 speed mode is now supported in J7200 SoC[1]. Therefore add mmc-hs400-1_8v tag in sdhci0 device tree node. Also update the delay values for various speed modes supported, based on the revised january 2021 J7200 datasheet[2]. [1] - section 12.3.6.1.1 MMCSD Features, in

Re: [PATCH v8 3/3] efi_loader: add PE/COFF image measurement

2021-05-25 Thread Masahisa Kojima
On Tue, 25 May 2021 at 21:57, Heinrich Schuchardt wrote: > > On 14.05.21 02:53, Masahisa Kojima wrote: > > "TCG PC Client Platform Firmware Profile Specification" > > requires to measure every attempt to load and execute > > a OS Loader(a UEFI application) into PCR[4]. > > This commit adds the

Re: [PATCH 07/18] mx6memcal: Disable USB GADGET in SPL

2021-05-25 Thread Eric Nelson
Since the proper U-Boot doesn't do anything at the moment, I don't think this hurts much. My usage of mx6memcal generally ends after SPL spits out calibration values, and I suspect the same is true for other users, so Acked-by: Eric Nelson On 5/22/21 5:47 AM, Tom Rini wrote: > As this board

[PATCH] efi_loader: Fix -Wextra warning for EFI TCG2

2021-05-25 Thread Ilias Apalodimas
Compiling with -Wextra produces a number of (harmless) warnings for the EFI TCG2 protocol. Let's fix those in case we ever enable the flag on the EFI subsystem Signed-off-by: Ilias Apalodimas --- lib/efi_loader/efi_tcg2.c | 40 +-- 1 file changed, 22

[PATCH] spi: zynqmp_gqspi: Fix write issue

2021-05-25 Thread Ashok Reddy Soma
Enable manual start in zynqmp_qspi_fill_gen_fifo(). Also enable GQSPI_IXR_GFNFULL_MASK and check for it instead of GQSPI_IXR_GFEMTY_MASK. Add dummy write to genfifo register in chipselect. Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 18 +- 1 file changed,

Re: [PATCH v8 3/3] efi_loader: add PE/COFF image measurement

2021-05-25 Thread Heinrich Schuchardt
On 14.05.21 02:53, Masahisa Kojima wrote: > "TCG PC Client Platform Firmware Profile Specification" > requires to measure every attempt to load and execute > a OS Loader(a UEFI application) into PCR[4]. > This commit adds the PE/COFF image measurement, extends PCR, > and appends measurement into

[PATCH 1/3] mmc: sdhci_am654: Read ti, strobe-sel property from device tree

2021-05-25 Thread Aswath Govindraju
Read the strobe select value from the device tree property ti,strobe-sel, required for HS400 speed mode Fixes: a20008eabd95 ("mmc: am654_sdhci: Add Support for configuring PHY in J721e") Signed-off-by: Aswath Govindraju --- drivers/mmc/am654_sdhci.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [PORT] Help Porting U-BOOT master branch to GT90X V4 sun7i a20 tablet board

2021-05-25 Thread Grzegorz Szymaszek
Hi, You may find some help on the linux-sunxi Wiki: . Consider adding a page for your device as well. Best of luck! -- Grzegorz signature.asc Description: PGP signature

Re: [PATCH] env: Leave invalid env for nowhere location

2021-05-25 Thread Marek Vasut
On 5/12/21 4:09 PM, Kunihiko Hayashi wrote: When CONFIG_ENV_IS_NOWHERE is enabled, env_nowhere_init() sets ENV_INVALID to gd->env_valid, and sets default_environment before relocation to gd->env_addr. After that, env_init() switches gd->env_valid to ENV_VALID by the previous fix. If

Re: [PATCH v2 4/6] net: sun8i-emac: add v3s variant

2021-05-25 Thread Ramon Fried
On Sun, May 23, 2021 at 2:23 AM Andreas Rehn wrote: > > Add variant V3S_EMAC. > Handle pinmux compile time error by skipping goio setup, because > V3s uses internal phy and don't expose pins. > > Signed-off-by: Andreas Rehn > --- > Changes in v2: > - skip pinmux and add proper

Re: [PATCH] net: dwc_eth_qos: Fix needless phy auto-negotiation restarts

2021-05-25 Thread Ramon Fried
On Mon, May 24, 2021 at 1:18 AM Daniil Stas wrote: > > Disabling clk_ck clock leads to link up status loss in phy, which > leads to auto-negotiation restart before each network command > execution. > > This issue is especially big for PXE boot protocol because of > auto-negotiation restarts

[PATCH 3/3] configs: j7200_evm_*_defconfig: Enable configs for HS400 support

2021-05-25 Thread Aswath Govindraju
Enable configs to add support for HS400 speed mode. Signed-off-by: Aswath Govindraju --- configs/j7200_evm_a72_defconfig | 4 ++-- configs/j7200_evm_r5_defconfig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/j7200_evm_a72_defconfig

[PATCH 1/1] efi_loader: path length in efi_dp_from_name()

2021-05-25 Thread Heinrich Schuchardt
Before this patch efi_dp_from_name() only accommodated a maximum file path length of 31 characters. This leads to boot failures due to file name truncation. Allow arbitrary path lengths. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_device_path.c | 9 +++-- 1 file changed, 7

Re: mirroring u-boot mailing list on lore.kernel.org

2021-05-25 Thread Rasmus Villemoes
On 20/05/2021 15.53, Pratyush Yadav wrote: > On 20/05/21 09:16PM, Bin Meng wrote: >> On Thu, May 20, 2021 at 9:05 PM Rasmus Villemoes >> wrote: >>> >>> I don't know if the kernel.org folks would be willing to host an archive >>> of the u-boot mailing list, but it's not entirely unlikely - they do

Pull request for efi-2021-07-rc4

2021-05-25 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit e1bf0336a58cfe873a34c36ff53e5e3806f2d263: Prepare v2021.07-rc3 (2021-05-24 20:53:13 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2021-07-rc4 for you to fetch changes up to

Re: [PATCH 07/18] mx6memcal: Disable USB GADGET in SPL

2021-05-25 Thread Tom Rini
On Tue, May 25, 2021 at 09:19:30AM -0700, Eric Nelson wrote: > Hi Tom, > > On 5/25/21 8:47 AM, Tom Rini wrote: > > On Tue, May 25, 2021 at 07:10:29AM -0700, Eric Nelson wrote: > > > >> Since the proper U-Boot doesn't do anything at the moment, I don't think > >> this hurts much. > >> > >> My

[PULL] u-boot-mips

2021-05-25 Thread Daniel Schwierzeck
Hi Tom, please pull a minor bugfix for MIPS64 Octeon and the removal of qemu_mips boards. Gitlab: https://source.denx.de/u-boot/custodians/u-boot-mips/-/pipelines/7625 Azure: https://dev.azure.com/danielschwierzeck/u-boot/_build/results?buildId=24=results The following changes since commit

Re: [PATCH] fastboot: Fix overflow when calculating chunk size

2021-05-25 Thread Sean Anderson
On 5/13/21 11:54 AM, Sean Anderson wrote: Hi Lukasz, Can this make it into 2020.07? Thanks, ping? Should Tom pick this up instead? --Sean --Sean On 4/16/21 5:58 PM, Sean Anderson wrote: If a chunk was larger than 4GiB, then chunk_data_sz would overflow and blkcnt would not be

[PATCH] net: Remove ne2000 driver

2021-05-25 Thread Tom Rini
With the last user of this driver removed, remove the driver. Signed-off-by: Tom Rini --- doc/README.ne2000 | 27 -- drivers/net/8390.h| 124 -- drivers/net/Makefile | 1 - drivers/net/ne2000.c | 260 - drivers/net/ne2000.h | 94 -

[PATCH 1/1] efi_loader: partition numbers are hexadecimal

2021-05-25 Thread Heinrich Schuchardt
If we want to address partition 15 of virtio block device 11, we have to write: virtio b:f When calling sprintf() we must use %x for the device and partition numbers. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_disk.c | 4 ++-- lib/efi_loader/efi_var_file.c | 2 +- 2

Re: [PATCH 07/18] mx6memcal: Disable USB GADGET in SPL

2021-05-25 Thread Tom Rini
On Tue, May 25, 2021 at 07:10:29AM -0700, Eric Nelson wrote: > Since the proper U-Boot doesn't do anything at the moment, I don't think > this hurts much. > > My usage of mx6memcal generally ends after SPL spits out calibration > values, and I suspect the same is true for other users, so > >

Re: [PATCH] spi: stm32_qspi: Fix short data write operation

2021-05-25 Thread Patrice CHOTARD
Hi Daniil On 5/24/21 2:53 PM, Daniil Stas wrote: > On Mon, 24 May 2021 09:40:05 +0200 > Patrice CHOTARD wrote: > >> Hi Daniil >> >> On 5/24/21 12:24 AM, Daniil Stas wrote: >>> TCF flag only means that all data was sent to FIFO. To check if the >>> data was sent out of FIFO we should also wait

Re: [PATCH] net: Remove ne2000 driver

2021-05-25 Thread Daniel Schwierzeck
Am Dienstag, den 25.05.2021, 11:54 -0400 schrieb Tom Rini: > With the last user of this driver removed, remove the driver. > > Signed-off-by: Tom Rini > --- > doc/README.ne2000 | 27 -- > drivers/net/8390.h| 124 -- > drivers/net/Makefile | 1 - >

Re: [PATCH 07/18] mx6memcal: Disable USB GADGET in SPL

2021-05-25 Thread Eric Nelson
Hi Tom, On 5/25/21 8:47 AM, Tom Rini wrote: > On Tue, May 25, 2021 at 07:10:29AM -0700, Eric Nelson wrote: > >> Since the proper U-Boot doesn't do anything at the moment, I don't think >> this hurts much. >> >> My usage of mx6memcal generally ends after SPL spits out calibration >> values, and I

Re: [PATCH] net: Remove ne2000 driver

2021-05-25 Thread Tom Rini
On Tue, May 25, 2021 at 06:27:27PM +0200, Daniel Schwierzeck wrote: > Am Dienstag, den 25.05.2021, 11:54 -0400 schrieb Tom Rini: > > With the last user of this driver removed, remove the driver. > > > > Signed-off-by: Tom Rini > > --- > > doc/README.ne2000 | 27 -- > >

Re: mirroring u-boot mailing list on lore.kernel.org

2021-05-25 Thread Simon Glass
Hi, On Tue, 25 May 2021 at 01:46, Rasmus Villemoes wrote: > > On 20/05/2021 15.53, Pratyush Yadav wrote: > > On 20/05/21 09:16PM, Bin Meng wrote: > >> On Thu, May 20, 2021 at 9:05 PM Rasmus Villemoes > >> wrote: > >>> > >>> I don't know if the kernel.org folks would be willing to host an

Re: mirroring u-boot mailing list on lore.kernel.org

2021-05-25 Thread Simon Glass
On Tue, 25 May 2021 at 11:47, Rasmus Villemoes wrote: > > On 25/05/2021 19.09, Simon Glass wrote: > > Hi, > > > > On Tue, 25 May 2021 at 01:46, Rasmus Villemoes > > wrote: > >> > >> > >> It's alive: https://lore.kernel.org/u-boot/ > >> > >> Thanks to the folks at kernel.org for accepting this

[PATCH u-boot-marvell 1/5] serial: a37xx: Fix parent clock rate value and divider calculation

2021-05-25 Thread Marek Behún
From: Pali Rohár UART parent clock is by default the platform's xtal clock, which is 25 MHz. The value defined in the driver, though, is 25.8048 MHz. This is a hack for the suboptimal divisor calculation Divisor = UART clock / (16 * baudrate) which does not use rounding division, resulting in

Re: mirroring u-boot mailing list on lore.kernel.org

2021-05-25 Thread Rasmus Villemoes
On 25/05/2021 19.09, Simon Glass wrote: > Hi, > > On Tue, 25 May 2021 at 01:46, Rasmus Villemoes > wrote: >> >> >> It's alive: https://lore.kernel.org/u-boot/ >> >> Thanks to the folks at kernel.org for accepting this and making it >> happen so quickly! > > Indeed! Is it possible to import

[PATCH] net: ravb: Add additional refclk

2021-05-25 Thread Adam Ford
The ethernet requires an external reference clock, and the driver currently assumes the clock is always running. For devices using a programmable clock, this may not be true. Add an optional clock called 'refclk' to open and enable the refclk for hardware running with programmable clocks.

Re: [PORT] Help Porting U-BOOT master branch to GT90X V4 sun7i a20 tablet board

2021-05-25 Thread Koray Bilir
i got some more progress, i got the lvds panel and backlight working with u-boot, i also switched to u-boot 2021.07-rc3-dirty, i have an mmc driver enabled but so far it wasnt able to detect any sdcards that i plugged in maybe the pin configs are wrong, i still havent tried configuring nand , i

Re: [PATCH 07/18] mx6memcal: Disable USB GADGET in SPL

2021-05-25 Thread Eric Nelson
Hi Tom, On 5/25/21 9:45 AM, Tom Rini wrote: > On Tue, May 25, 2021 at 09:19:30AM -0700, Eric Nelson wrote: >> Hi Tom, >> >> On 5/25/21 8:47 AM, Tom Rini wrote: >>> On Tue, May 25, 2021 at 07:10:29AM -0700, Eric Nelson wrote: >>> Since the proper U-Boot doesn't do anything at the moment, I

Re: [PATCH 1/3] test/py: rewrite common tools for SquashFS tests

2021-05-25 Thread Tom Rini
On Sun, May 23, 2021 at 11:31:31PM -0300, Joao Marcos Costa wrote: > Remove the previous OOP approach, which was confusing and incomplete. > Add more test cases by making SquashFS images with various options, > concerning file fragmentation and its compression. Add comments to > properly document

[PATCH u-boot-marvell 4/5] serial: a37xx: Switch to XTAL clock when booting Linux kernel

2021-05-25 Thread Marek Behún
From: Pali Rohár Unfortunately the UART driver in current Linux for Armada 3700 expects UART's parent clock to be XTAL and calculats baudrate divisor according to XTAL clock. Therefore we must switch back to XTAL clock before booting kernel. Implement .remove method for this driver with

[PATCH u-boot-marvell 0/5] Support higher baudrates on Armada 3720 UART

2021-05-25 Thread Marek Behún
This series adds support for more baudrates on Armada 3720 UART (up to 6 MBaud). Marek Behún (1): clk: armada-37xx: Set DM_FLAG_PRE_RELOC Pali Rohár (4): serial: a37xx: Fix parent clock rate value and divider calculation serial: a37xx: Use TBG as parent clock serial: a37xx: Switch to

[PATCH u-boot-marvell 5/5] arm: mvebu: a37xx: Enable more baudrates

2021-05-25 Thread Marek Behún
From: Pali Rohár Extend CONFIG_SYS_BAUDRATE_TABLE and include all standard baudrates and also nonstandard up to the 6 MBaud. U-Boot's A3720 UART driver can use baudrates from 300 Baud to 6 MBaud. This changes all A3720 boards, since all of them include either mvebu_armada-37xx.h or turris_mox.h

[PATCH u-boot-marvell 2/5] clk: armada-37xx: Set DM_FLAG_PRE_RELOC

2021-05-25 Thread Marek Behún
Setting DM_FLAG_PRE_RELOC for Armada 3720 clock drivers (TBG and peripheral clocks) makes it possible for serial driver to retrieve clock rates via clk API. Signed-off-by: Marek Behún --- drivers/clk/mvebu/armada-37xx-periph.c | 1 + drivers/clk/mvebu/armada-37xx-tbg.c| 1 + 2 files

[PATCH u-boot-marvell 3/5] serial: a37xx: Use TBG as parent clock

2021-05-25 Thread Marek Behún
From: Pali Rohár Using TBG clock as parent clock for UART allows us using higher baudrates than 230400. Turris MOX with external FT232RL USB-UART works fine up to 3 MBaud (which is maximum for this USB-UART controller), while EspressoBIN with integrated pl2303 USB-UART also works fine up to 6

Re: problems with boards with CONFIG_DM disabled

2021-05-25 Thread Marek Behun
On Wed, 26 May 2021 01:27:56 +0200 Marek Behun wrote: > Tom, Simon, > > now that LTO is merged I am working on > Support SPI NORs and OF partitions in `mtd list` > > but CI fails for some boards, see > https://github.com/u-boot/u-boot/pull/55 > > The reason is that there are still several

[PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2021-05-25 Thread Andre Przywara
From: Paul Kocialkowski Recent Allwinner platforms (starting with the H3) only use the MUSB controller for peripheral mode and use HCI for host mode. As a result, extra steps need to be taken to properly route USB signals to one or the other. More precisely, the following is required: * Routing

Re: [PATCH 1/3] mmc: sdhci_am654: Read ti, strobe-sel property from device tree

2021-05-25 Thread Jaehoon Chung
On 5/25/21 6:38 PM, Aswath Govindraju wrote: > Read the strobe select value from the device tree property ti,strobe-sel, > required for HS400 speed mode > > Fixes: a20008eabd95 ("mmc: am654_sdhci: Add Support for configuring PHY in > J721e") > Signed-off-by: Aswath Govindraju Reviewed-by:

[PATCH 2/5] rockchip: px30: Add support for using SFC

2021-05-25 Thread Chris Morgan
From: Chris Morgan This patch adds support for setting the correct pin configuration for the Rockchip Serial Flash Controller found on the PX30. Signed-off-by: Chris Morgan --- arch/arm/mach-rockchip/px30/px30.c | 64 ++ 1 file changed, 64 insertions(+) diff --git

[RFC 0/5] rockchip_sfc: add support for Rockchip SFC

2021-05-25 Thread Chris Morgan
From: Chris Morgan Requesting comments for a proposed patchset for adding the Rockchip serial flash controller to u-boot. The goal of these patches is to enable it for the Odroid Go Advance so that it may eventually boot exclusively from the SFC on mainline U-boot (I have tested this and it

[PATCH 3/5] rockchip: px30: add the serial flash controller

2021-05-25 Thread Chris Morgan
From: Chris Morgan Add the serial flash controller to the devicetree for the PX30. Signed-off-by: Chris Morgan --- arch/arm/dts/px30.dtsi | 38 ++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/dts/px30.dtsi b/arch/arm/dts/px30.dtsi index

[PATCH 4/5] mtd: spi-nor-ids: Add XTX XT25F128B

2021-05-25 Thread Chris Morgan
From: Chris Morgan Adds support for XT25F128B used on Odroid Go Advance. Unfortunately this chip uses a continuation code which I cannot seem to parse, so there are likely going to be collisions with chips that use the same manufacturer/ID. Signed-off-by: Chris Morgan ---

[PATCH] tools/fitimage: add missing linebreak for some messages

2021-05-25 Thread Sven Roederer
Add a linebreak to two messages and fix punctuation. Signed-off-by: Sven Roederer --- tools/fit_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/fit_image.c b/tools/fit_image.c index ae30f80783..f4f372ba62 100644 --- a/tools/fit_image.c +++

[PATCH 1/5] spi: rockchip_sfc: add support for Rockchip SFC

2021-05-25 Thread Chris Morgan
From: Chris Morgan This patch adds support for the Rockchip serial flash controller found on the PX30 SoC. It should work the same for all SoCs which use the same serial flash controller IP (referred to as the v3). This is adapted from the SPI subsystem driver from Rockchip's BSP U-boot

[PATCH 5/5] rockchip: px30: add support for SFC for Odroid Go Advance

2021-05-25 Thread Chris Morgan
From: Chris Morgan The Odroid Go Advance uses a Rockchip Serial Flash Controller with an XT25F128B SPI NOR flash chip. This adds support for both. Signed-off-by: Chris Morgan --- arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 8 arch/arm/dts/rk3326-odroid-go2.dts | 22

problems with boards with CONFIG_DM disabled

2021-05-25 Thread Marek Behun
Tom, Simon, now that LTO is merged I am working on Support SPI NORs and OF partitions in `mtd list` but CI fails for some boards, see https://github.com/u-boot/u-boot/pull/55 The reason is that there are still several boards which do not use CONFIG_DM. On the previous version Simon commented

Re: mirroring u-boot mailing list on lore.kernel.org

2021-05-25 Thread Bin Meng
Hi Rasmus, On Tue, May 25, 2021 at 3:46 PM Rasmus Villemoes wrote: > > On 20/05/2021 15.53, Pratyush Yadav wrote: > > On 20/05/21 09:16PM, Bin Meng wrote: > >> On Thu, May 20, 2021 at 9:05 PM Rasmus Villemoes > >> wrote: > >>> > >>> I don't know if the kernel.org folks would be willing to host