Re: [U-Boot] [PATCH v5 024/101] sandbox: Add PCI driver and test for p2sb

2019-11-25 Thread Bin Meng
Hi Simon, On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > Add a sandbox driver and PCI-device emulator for p2sb. Also add a test > which uses a simple 'adder' driver to test the p2sb functionality. > > Signed-off-by: Simon Glass > --- > > Changes in v5: None > Changes in v4: > - Drop cha

Re: [U-Boot] [PATCH v5 025/101] x86: Move UCLASS_IRQ into a separate file

2019-11-25 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > Update this uclass to support the needs of the Apollo Lake ITSS. It > supports four operations. > > Move the uclass into a separate directory so that sandbox can use it too. > Add a new Kconfig to control it and enable this on x86. > > Signed

Re: [U-Boot] [PATCH v5 023/101] sandbox: Disable mmio by default in tests

2019-11-25 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > When reseting sandbox for tests, disable mmio support since that is the > default state. > > Signed-off-by: Simon Glass > --- > > Changes in v5: None > Changes in v4: > - Split out into a separate patch > > Changes in v3: None > Changes in v

Re: [U-Boot] [PATCH v5 022/101] pci: Add support for p2sb uclass

2019-11-25 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > The Primary-to-Sideband bus (P2SB) is used to access various peripherals > through memory-mapped I/O in a large chunk of PCI space. The space is > segmented into different channels and peripherals are accessed by > device-specific means withi

Re: [U-Boot] [PATCH v5 021/101] x86: power: Add a 'pmc' command

2019-11-25 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > Add a simple command to show information about the PMC. > > Signed-off-by: Simon Glass > --- > > Changes in v5: None > Changes in v4: None > Changes in v3: > - Rename power-mgr uclass to acpi-pmc > > Changes in v2: None > > arch/Kconfig |

Re: [U-Boot] [PATCH v3 06/16] linux/time.h: include vsprintf.h

2019-11-25 Thread Heinrich Schuchardt
On 11/26/19 4:56 AM, Heinrich Schuchardt wrote: On 11/13/19 1:44 AM, AKASHI Takahiro wrote: Without this commit, time.h possibly causes a build error as asctime_r() uses sprintf(). asctime_r() is not a Linux symbol (as of next-20191119) ctime_r() and asctime_r() are defined as inline function

Re: [U-Boot] [RFC PATCH] spi: spi-nor: Add dual flash support in spi-nor framework

2019-11-25 Thread Michal Simek
On 19. 11. 19 15:20, Ashok Reddy Soma wrote: > Add dual parallel and dual stacked support in spi-nor framework. > Add dual flash support for nor-scan, read and write. > > Signed-off-by: Ashok Reddy Soma > --- > Hi, > > I have added dual parallel and dual stacked related changes to the > spi-nor

Re: [U-Boot] [PATCH v5 020/101] x86: sandbox: Add a PMC emulator and test

2019-11-25 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > Add a simple PMC for sandbox to permit tests to run. > > Signed-off-by: Simon Glass > --- > > Changes in v5: None > Changes in v4: None > Changes in v3: > - Rename power-mgr uclass to acpi-pmc > - Tidy up Makefile rules to reduce duplication

Re: [U-Boot] [PATCH v5 018/101] x86: Drop unnecessary interrupt code for TPL

2019-11-25 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > We don't expect an exception in TPL and don't need to set up interrupts in > TPL. Drop this whole file. > > Signed-off-by: Simon Glass > --- > > Changes in v5: None > Changes in v4: > - Drop the whole interrupt file for TPL > > Changes in v3

Re: [U-Boot] [PATCH v5 017/101] x86: Drop unnecessary cpu code for TPL

2019-11-25 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > We don't need to know every detail about the CPU in TPL. Drop some > superfluous functions to reduce code size. Add a simple CPU detection > algorithm which just supports Intel and AMD, since we only support TPL > on Intel, so far. > > Signed

Re: [U-Boot] [PATCH v5 016/101] x86: timer: Reduce timer code size in TPL on Intel CPUs

2019-11-25 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > Most of the timer-calibration methods are not needed on recent Intel CPUs > and just increase code size. Add an option to use the known-good way to > get the clock frequency in TPL. Size reduction is about 700 bytes. > > Note that version 1 o

[U-Boot] [PATCH] configs/lx2160a: Add CONFIG_ENV_SECT_SIZE in defconfig

2019-11-25 Thread Priyanka Jain
Define CONFIG_ENV_SECT_SIZE as 0x2 in lx2160a related defconfigs: lx2160ardb_tfa_defconfig, lx2160ardb_tfa_SECURE_BOOT_defconfig, lx2160aqds_tfa_defconfig, lx2160aqds_tfa_SECURE_BOOT_defconfig Signed-off-by: Priyanka Jain --- configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 1 + configs/lx2160

Re: [U-Boot] [PATCH v5 015/101] x86: timer: use a timer base of 0

2019-11-25 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > On x86 platforms the timer is reset to 0 when the SoC is reset. Having > this as the timer base is useful since it provides an indication of how > long it takes before U-Boot is running. > > When U-Boot sets the timer base to something else,

Re: [U-Boot] [PATCH v5 013/101] RFC: sandbox: net: Suppress the MAC-address warnings

2019-11-25 Thread Bin Meng
Hi Simon, Joe, On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > These warnings appear every thing sandbox is run (see below) and dwarf the > actual useful output. Suppress them in two ways: > > 1. For the mismatch warnings, only set the ethaddr environment > variables when running tests. >

Re: [U-Boot] [PATCH v5 012/101] board_r: Move early-timer init later

2019-11-25 Thread Bin Meng
Hi Simon, On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > At present the early timer init happens as soon as driver mode is set up. mode -> model > This makes it impossible to do any in that needs driver model but must run in -> thing? > before devices are problem (as needed with Inte

Re: [U-Boot] [PATCH v5 011/101] fdt: Show the preprocessed .dts file on error

2019-11-25 Thread Bin Meng
Hi Simon, On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > When device-tree compilation fails it is sometimes tricky to see which > line is broken, since the input file to dtc is a pre-processed version > of the device tree. > > Add a line that points to the file that needs to be checked:

Re: [U-Boot] [PATCH v5 010/101] x86: spi: Add helper functions for Intel Fast SPI

2019-11-25 Thread Bin Meng
On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > Most x86 CPUs use a mechanism where the SPI flash is mapped into the very > top of 32-bit address space, so that it can be executed in place and read > simply by copying from memory. For an 8MB ROM the mapping starts at > 0xff80. > > Howe

Re: [U-Boot] [PATCH v5 009/101] i2c: designware: Support use in SPL

2019-11-25 Thread Bin Meng
Hi Simon, On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > Allow this driver to set up an IO address in SPL using an 'early-regs' > property. This allows SPL to use the I2C driver without having to enable > the full PCI stack. > > Also split out ofdata_to_platdata in designware driver sinc

Re: [U-Boot] [PATCH v5 007/101] i2c: designware: Tidy up PCI support

2019-11-25 Thread Bin Meng
Hi Simon, On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > This is hacked into the driver at present. It seems better to have it as > a separate driver that uses the base driver. Create a new file and put > the X86 code into it. > > Actually the Baytrail settings should really come from t

Re: [U-Boot] [PATCH v3 01/20] arch: powerpc: add eSDHC node to p1020 dts

2019-11-25 Thread Priyanka Jain
>-Original Message- >From: Yinbo Zhu >Sent: Tuesday, October 15, 2019 2:51 PM >To: Wolfgang Denk ; Priyanka Jain ; >Shengzhou Liu ; u-boot@lists.denx.de >Cc: Yinbo Zhu ; Xiaobo Xie ; >Jiafei Pan ; Prabhakar X >; Bin Meng ; Simon >Goldschmidt ; Adam Ford >; Patrick Delaunay ; Jeremy >Gebb

[U-Boot] pull request u-boot-mpc85xx

2019-11-25 Thread Priyanka Jain
Dear Tom, Please find my pull-request for u-boot-mpc85xx/master https://travis-ci.org/p-priyanka-jain/u-boot/builds/616526169 Summary powerpc: Fix DM_MMC related build warnings by adding eSDHC device module support for T4240RDB, T2080RDB, T1042D4RDB, T1024RDB, P5040DS, P4080DS, P3041DS, P2041RDB,

Re: [U-Boot] [PATCH v3 06/16] linux/time.h: include vsprintf.h

2019-11-25 Thread Heinrich Schuchardt
On 11/13/19 1:44 AM, AKASHI Takahiro wrote: Without this commit, time.h possibly causes a build error as asctime_r() uses sprintf(). asctime_r() is not a Linux symbol (as of next-20191119) ctime_r() and asctime_r() are defined as inline functions. ctime_r() is used in multiple places and so we

Re: [U-Boot] [PATCH v3] armv8: ls1046afrwy: Add support for LS1046AFRWY Rev B board

2019-11-25 Thread Priyanka Jain
>-Original Message- >From: Pramod Kumar >Sent: Monday, November 25, 2019 6:28 PM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; Pramod Kumar > >Subject: [PATCH v3] armv8: ls1046afrwy: Add support for LS1046AFRWY Rev B >board Is it v3?If yes, please add change history > >Add rev B board s

[U-Boot] [PATCH v5] armv8: Add workaround for USB erratum A-050106

2019-11-25 Thread Ran Wang
USB3.0 Receiver needs to enable fixed equalization for each of PHY instances in an SOC. This is similar to erratum A-009007, but this one is for LX2160A, and the register value is different. Signed-off-by: Ran Wang --- Change in v5: - Add paragraph to describe config SYS_FSL_ERRATUM_A0501

Re: [U-Boot] [PATCH 2/3] mtd: rawnand: denali: Allow operation without clock driver

2019-11-25 Thread Masahiro Yamada
On Thu, Nov 21, 2019 at 6:38 AM Marek Vasut wrote: > > The SoCFPGA Gen5 does not have a clock driver yet, let the NAND driver > work without a clock driver by falling back to the default frequencies. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- > drivers/mtd/nand/raw/denali_dt.c |

Re: [U-Boot] [PATCH v3 05/16] include: kernel.h: include printk.h

2019-11-25 Thread Heinrich Schuchardt
On 11/13/19 1:44 AM, AKASHI Takahiro wrote: Adding "printk.h" will help improve portability from linux kernel code (in my case, lib/asn1_decoder.c and others) where printf and nits: %s/printf/printk/g You anyway change the includes in lib/crypto/public_key.c in patch 12/16 and lib/asn1_decode

Re: [U-Boot] [PATCH v2 5/5] board: ti: beagleboneai: enable in am57xx_evm_defconfig

2019-11-25 Thread Lokesh Vutla
On 25/11/19 8:26 PM, Caleb Robey wrote: > Adding the configurations to the evm_defconfig file > > Signed-off-by: Jason Kridner > Signed-off-by: Caleb Robey Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > > --- > > v2 Changes: > - addition of CONFIG_PREBOOT for console confi

Re: [U-Boot] [PATCH v2 4/5] board: ti: beagleboneai: add dts file

2019-11-25 Thread Lokesh Vutla
On 25/11/19 8:26 PM, Caleb Robey wrote: > From: Jason Kridner > > BeagleBoard.org BeagleBone AI is an open source hardware single > board computer based on the Texas Instruments AM5729 SoC featuring > dual-core 1.5GHz Arm Cortex-A15 processor, dual-core C66 digital > signal processor (DSP), qua

Re: [U-Boot] [PATCH v2 3/5] board: ti: beagleboneai: IODELAY and pinmux changes

2019-11-25 Thread Lokesh Vutla
On 25/11/19 8:26 PM, Caleb Robey wrote: > This patch configures the pinmux settings for the BeagleBone AI after > the emmc read has completed. > > Signed-off-by: Jason Kridner > Signed-off-by: Caleb Robey > Cc: Robert Nelson Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh

Re: [U-Boot] [PATCH v2 2/5] board: ti: beagleboneai: add initial support

2019-11-25 Thread Lokesh Vutla
On 25/11/19 8:26 PM, Caleb Robey wrote: > These are necessities for beaglebone ai boot. > > Signed-off-by: Jason Kridner > Signed-off-by: Caleb Robey Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx

Re: [U-Boot] [PATCH v2 1/5] board: ti: beagleboneai: emmc read changes

2019-11-25 Thread Lokesh Vutla
On 25/11/19 8:26 PM, Caleb Robey wrote: > BeagleBoard.org BeagleBone AI rev A1 does not include a board > identifier I2C EEPROM due to a design oversight. These boards have > been put into production and are generally available now. > > The board identifier information, however, has been include

Re: [U-Boot] [PATCH v3 01/16] linux_compat: move kmemdup() from ubifs.c to linux_compat.c

2019-11-25 Thread Heinrich Schuchardt
On 11/13/19 1:44 AM, AKASHI Takahiro wrote: linux_compat.c is the best place for kmemdup(), which is currenly used only in ubifs.c, but will also be used when other kernel files (in my case, lib/crypto/x509_cert_parser.c and pkcs7_parser.c) will be imported. So just move it. Signed-off-by: AKASH

Re: [U-Boot] [PATCH v2 1/6] remoteproc: elf_loader: Add elf resource table load support

2019-11-25 Thread Lokesh Vutla
On 30/10/19 7:08 PM, Fabien Dessenne wrote: > Add rproc_elf_load_rsc_table(), which searches for a resource table in > an elf64/elf32 image, and if found, copies it to device memory. > Add also the elf32 and elf64 variants of this API. > Add a test for this. > > Signed-off-by: Fabien Dessenne

Re: [U-Boot] [PATCH v2 01/16] include: pe.h: add signature-related definitions

2019-11-25 Thread Heinrich Schuchardt
On 11/26/19 1:51 AM, AKASHI Takahiro wrote: The index (IMAGE_DIRECTORY_ENTRY_SECURITY) 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

Re: [U-Boot] [EXT] Re: [PATCHv2 1/2] PCI: layerscape: Add Support for ls2088 PCIe EP mode

2019-11-25 Thread Xiaowei Bao
H Ramon, Thanks for your comments. If we reimplement the PCIe EP driver base on PCIe UCLASS, we must test it in u-boot, but I have no idea how to test the actual device, do I need to implement our own test case, how to verify the cadence-ep actual device? Best regards Xiaowei From: Ramon Frie

Re: [U-Boot] [PATCH 3/3] mtd: rawnand: denali: Do not reset the block on SoCFPGA

2019-11-25 Thread Masahiro Yamada
On Thu, Nov 21, 2019 at 6:38 AM Marek Vasut wrote: > > Legacy kernel versions for SoCFPGA may not implement proper reset > handling. What is "legacy kernel versions" ? > Apply the same approach as SoCFPGA reset driver, check > environment variable "socfpga_legacy_reset_compat", and if it is >

Re: [U-Boot] [PATCH 1/3] mtd: rawnand: denali-spl: Add missing hardware init

2019-11-25 Thread Masahiro Yamada
On Thu, Nov 21, 2019 at 6:37 AM Marek Vasut wrote: > > While the Denali NAND is initialized by the BootROM in SPL, there > are still a couple of settings which are missing. These can trigger > subtle corruption of the data read out of the NAND. Fill these > settings in just like they are filled in

[U-Boot] [PATCH 3/3] dts: rk3308: Enable ethernet function supported for Firefly ROC_RK3308_CC

2019-11-25 Thread David Wu
The Firefly ROC_RK3308_CC use ref_clock of input mode, and rmii pins of m1 group. Signed-off-by: David Wu --- arch/arm/dts/rk3308-roc-cc.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/rk3308-roc-cc.dts b/arch/arm/dts/rk3308-roc-cc.dts index e10aa638a3..b4a54a852c 1

[U-Boot] [PATCH 2/3] arm: dts: Add mac node for rk3308 at dtsi level

2019-11-25 Thread David Wu
The rk3308 only support RMII mode, and if it is output clock mode, better to use ref_clk pin with drive strength 12ma. Signed-off-by: David Wu --- arch/arm/dts/rk3308.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/rk3308.dtsi b/arch/arm/dts/rk3308.d

[U-Boot] [PATCH 1/3] net: gmac_rockchip: Add support for rk3308

2019-11-25 Thread David Wu
Add the glue code to allow the rk3308 variant of the Rockchip gmac to provide network functionality. Signed-off-by: David Wu --- drivers/net/gmac_rockchip.c | 65 + 1 file changed, 65 insertions(+) diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_r

Re: [U-Boot] [PATCH v2 00/16] efi_loader: add secure boot support

2019-11-25 Thread AKASHI Takahiro
Some updates, On Tue, Nov 26, 2019 at 09:51:04AM +0900, AKASHI Takahiro wrote: > 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 wou

Re: [U-Boot] [PATCH v2] cmd: efidebug: fix a build error in show_efi_boot_opt()

2019-11-25 Thread Heinrich Schuchardt
On 11/26/19 2:11 AM, AKASHI Takahiro wrote: I detected the following error in sandbox with Clang on Travis CI: +cmd/efidebug.c:703:15: error: result of comparison of constant 9223372036854775822 with expression of type 'int' is always false [-Werror,-Wtautological-constant-out-of

[U-Boot] [PATCH v2] cmd: efidebug: fix a build error in show_efi_boot_opt()

2019-11-25 Thread AKASHI Takahiro
I detected the following error in sandbox with Clang on Travis CI: +cmd/efidebug.c:703:15: error: result of comparison of constant 9223372036854775822 with expression of type 'int' is always false [-Werror,-Wtautological-constant-out-of-range-compare] +else if (ret == EFI_

Re: [U-Boot] [PATCH] cmd: efidebug: fix a build error in show_efi_boot_opt()

2019-11-25 Thread AKASHI Takahiro
On Tue, Nov 26, 2019 at 02:01:53AM +0100, Heinrich Schuchardt wrote: > On 11/26/19 1:57 AM, AKASHI Takahiro wrote: > >I detected the following error in sandbox with Clang on Travis CI: > > +cmd/efidebug.c:703:15: error: result of comparison of constant > > 9223372036854775822 with expressi

[U-Boot] [PATCH 2/2] pinctrl: rockchip: Add pinctrl support for rk3308

2019-11-25 Thread David Wu
The most pins of rk3308 are 2bits iomux, but the banks's register width is 0x8. Signed-off-by: David Wu --- drivers/pinctrl/rockchip/Makefile | 1 + drivers/pinctrl/rockchip/pinctrl-rk3308.c | 464 ++ .../pinctrl/rockchip/pinctrl-rockchip-core.c | 3 +- drive

[U-Boot] [PATCH 1/2] arm: rockchip: rk3308: Initialize the iomux configuration

2019-11-25 Thread David Wu
When we want to use plus iomux feature, we need to enable them at spl. Signed-off-by: David Wu --- arch/arm/mach-rockchip/rk3308/rk3308.c | 33 ++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3308/rk3308.c b/arch/arm/mach-rockchip/rk3308/rk3308

[U-Boot] Raspberry Pi Compute Module 1 mini-UART

2019-11-25 Thread edrose
Hi, I'm working on a project that uses the Raspberry Pi Compute Module 1. Much like the CM 3, the CM 1 has two UART interfaces - the main UART at ttyAMA0, and a second "mini-UART" at ttyS0. The project uses the main UART since it works better at high speeds, so the console has been bumped over to

Re: [U-Boot] [PATCH] cmd: efidebug: fix a build error in show_efi_boot_opt()

2019-11-25 Thread Heinrich Schuchardt
On 11/26/19 1:57 AM, AKASHI Takahiro wrote: I detected the following error in sandbox with Clang on Travis CI: +cmd/efidebug.c:703:15: error: result of comparison of constant 9223372036854775822 with expression of type 'int' is always false [-Werror,-Wtautological-constant-out-of

Re: [U-Boot] [PATCH v3] arm: add acpi support for the arm

2019-11-25 Thread Heinrich Schuchardt
On 11/26/19 12:40 AM, Simon Glass wrote: Hi, On Mon, 25 Nov 2019 at 15:57, Heinrich Schuchardt wrote: On 11/25/19 3:42 AM, Steven Hao wrote:> 获取 Outlook for iOS *发件人:* Bin Meng *发送时间:* Monday, N

[U-Boot] [PATCH v2 11/16] cmd: env: add "-at" option to "env set -e" command

2019-11-25 Thread AKASHI Takahiro
With "-at" option, EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS will be passed to SetVariable() to authenticate the variable. Signed-off-by: AKASHI Takahiro --- cmd/nvedit.c | 5 +++-- cmd/nvedit_efi.c | 5 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/nvedit

[U-Boot] [PATCH v2 12/16] efi_loader, pytest: set up secure boot environment

2019-11-25 Thread AKASHI Takahiro
A fixture for UEFI secure boot tests (image authentication and variable authentication) is defined. A small file system with test data in a single partition formatted in fat is created. This test requires efitools v1.5.2 or later. If the system's efitools is older, you have to build it on your own

[U-Boot] [PATCH] cmd: efidebug: fix a build error in show_efi_boot_opt()

2019-11-25 Thread AKASHI Takahiro
I detected the following error in sandbox with Clang on Travis CI: +cmd/efidebug.c:703:15: error: result of comparison of constant 9223372036854775822 with expression of type 'int' is always false [-Werror,-Wtautological-constant-out-of-range-compare] +else if (ret == EFI_

[U-Boot] [PATCH v2 15/16] sandbox: add extra configurations for UEFI and related tests

2019-11-25 Thread AKASHI Takahiro
Adding those extra configurations allows us to successfully run UEFI secure boot pytest on Travis CI. Signed-off-by: AKASHI Takahiro --- configs/sandbox64_defconfig | 3 +++ configs/sandbox_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/sandbox64_defconfig b/configs/

[U-Boot] [PATCH v2 13/16] efi_loader, pytest: add UEFI secure boot tests (authenticated variables)

2019-11-25 Thread AKASHI Takahiro
Provide a couple of test cases for variable authentication. Signed-off-by: AKASHI Takahiro --- .../py/tests/test_efi_secboot/test_authvar.py | 282 ++ 1 file changed, 282 insertions(+) create mode 100644 test/py/tests/test_efi_secboot/test_authvar.py diff --git a/test/py/tests/

[U-Boot] [PATCH v2 16/16] travis: add packages for UEFI secure boot test

2019-11-25 Thread AKASHI Takahiro
Pytest for UEFI secure boot will use several host commands. In paricular, Test setup relies on efitools, whose version must be v1.5.2 or later. So fetch a new version of deb package directly. Please note it has a dependency on mtools, which must also be installed along wih efitools. In addition, t

[U-Boot] [PATCH v2 14/16] efi_loader, pytest: add UEFI secure boot tests (image)

2019-11-25 Thread AKASHI Takahiro
Provide test cases for * image authentication for signed images (test_efi_secboot/test_signed.py) * image authentication for unsigned images (test_efi_secboot/test_unsigned.py) Signed-off-by: AKASHI Takahiro --- test/py/tests/test_efi_secboot/test_signed.py | 99 + .../t

[U-Boot] [PATCH v2 05/16] efi_loader: variable: support variable authentication

2019-11-25 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] [PATCH v2 09/16] efi_loader: set up secure boot

2019-11-25 Thread AKASHI Takahiro
The following variable is exported as UEFI specification defines: SignatureSupport: array of GUIDs representing the type of signatures supported by the platform firmware Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_setup.c | 38 +

[U-Boot] [PATCH v2 08/16] efi_loader: image_loader: support image authentication

2019-11-25 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] [PATCH v2 07/16] efi_loader: variable: add VendorKeys variable

2019-11-25 Thread AKASHI Takahiro
The following variable is exported as UEFI specification defines: VendorKeys: whether the system is configured to use only vendor-provided keys or not The value will have to be modified if a platform has its own way of initializing signature database, in particular, PK. Signed-off-by:

[U-Boot] [PATCH v2 06/16] efi_loader: variable: add secure boot state transition

2019-11-25 Thread AKASHI Takahiro
UEFI specification defines several global variables which are related to the current secure boot state. In this commit, those values will be maintained according to operations. Currently, AuditMode and DeployedMode are defined but not implemented. Signed-off-by: AKASHI Takahiro --- lib/efi_loade

[U-Boot] [PATCH v2 03/16] efi_loader: add signature verification functions

2019-11-25 Thread AKASHI Takahiro
In this commit, implemented are a couple of helper functions which will be used to materialize variable authentication as well as image authentication in later patches. Signed-off-by: AKASHI Takahiro --- include/efi_api.h | 87 + include/efi_loader.h | 72 lib/e

[U-Boot] [PATCH v2 10/16] cmd: env: use appropriate guid for authenticated UEFI variable

2019-11-25 Thread AKASHI Takahiro
A 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 | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --

[U-Boot] [PATCH v2 04/16] efi_loader: add signature database parser

2019-11-25 Thread AKASHI Takahiro
efi_signature_parse_sigdb() is a helper function will be used to parse signature database variable and instantiate a signature store structure in later patches. Signed-off-by: AKASHI Takahiro --- include/efi_loader.h | 3 + lib/efi_loader/efi_signature.c | 227 +++

[U-Boot] [PATCH v2 01/16] include: pe.h: add signature-related definitions

2019-11-25 Thread AKASHI Takahiro
The index (IMAGE_DIRECTORY_ENTRY_SECURITY) 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 Taka

[U-Boot] [PATCH v2 02/16] efi_loader: add CONFIG_EFI_SECURE_BOOT config option

2019-11-25 Thread AKASHI Takahiro
Under this configuration, UEFI secure boot support will be added in later patches. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/Kconfig | 16 1 file changed, 16 insertions(+) diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index c7027a967653..fc4199838c98 1006

[U-Boot] [PATCH v2 00/16] efi_loader: add secure boot support

2019-11-25 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

Re: [U-Boot] imx8mq-evk boot regression

2019-11-25 Thread Fabio Estevam
Hi Patrick, On Mon, Nov 25, 2019 at 8:49 PM Patrick Wildt wrote: > > Hi, > > maybe I can find some time tomorrow to have a look at it. One thing > you can try is https://patchwork.ozlabs.org/patch/1197351/ . On my > employer's product this fixes a regression introduced by commit id > 9e09445549

Re: [U-Boot] imx8mq-evk boot regression

2019-11-25 Thread Patrick Wildt
Hi, maybe I can find some time tomorrow to have a look at it. One thing you can try is https://patchwork.ozlabs.org/patch/1197351/ . On my employer's product this fixes a regression introduced by commit id 9e094455495081979cd20ac730a42508717e37b5. But I think that should have hit you somewhere

Re: [U-Boot] [PATCH v3] arm: add acpi support for the arm

2019-11-25 Thread Simon Glass
Hi, On Mon, 25 Nov 2019 at 15:57, Heinrich Schuchardt wrote: > > On 11/25/19 3:42 AM, Steven Hao wrote:> 获取 Outlook for iOS > > > > > *发件人:* Bin Meng > > *发送时间:* Monday, November 25, 2019 10:13:40 AM

[U-Boot] [RFC] Eliminate boards not using CONFIG_DM=y

2019-11-25 Thread Heinrich Schuchardt
Dear maintainers, we have been trying to move to the driver model for several years now. Starting in 2018 we have added warnings to the Makefile that boards not supporting the driver model will be eliminated. Still 24 % of the configuration files have not been converted and do not even use CONFIG

Re: [U-Boot] [PATCH v3] arm: add acpi support for the arm

2019-11-25 Thread Heinrich Schuchardt
On 11/25/19 3:42 AM, Steven Hao wrote:> 获取 Outlook for iOS *发件人:* Bin Meng *发送时间:* Monday, November 25, 2019 10:13:40 AM *收件人:* Steven Hao *抄送:* xypron.g...@gmx.de ; liu...@phytium.com.cn ; ag...@cs

Re: [U-Boot] Please pull u-boot-video

2019-11-25 Thread Tom Rini
On Sun, Nov 24, 2019 at 10:07:40PM +0100, Anatolij Gustschin wrote: > Hi Tom, > > The following changes since commit 9a0cbae22a613dfd55e15565785749b74c19fdf0: > > Merge tag 'u-boot-rockchip-20191124' of > https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip (2019-11-23 20:50:11 > -0500)

Re: [U-Boot] [GIT PULL resed] Raspberry Pi updates for v2020.01

2019-11-25 Thread Tom Rini
On Sun, Nov 24, 2019 at 10:36:30PM +0100, Matthias Brugger wrote: > Hi Tom, > > This is a new pull request for the RPi updates for v2020.01. > > After you noticed that the first pull request broke FAT implementation I > deleted > the corresponding patch series from the pull request. In the mean

Re: [U-Boot] [PATCH 2/2] drivers: usb: host: Add BRCM xHCI driver

2019-11-25 Thread Vladimir Olovyannikov
HI Marek, > On 11/23/19 12:31 AM, Vladimir Olovyannikov wrote: > [...] > > > +#define USBAXI_AWCACHE 0xF > > +#define USBAXI_ARCACHE 0xF > > +#define USBAXI_AWPROT 0x8 > > +#define USBAXI_ARPROT 0x8 > > +#define USBAXIWR_SA_VAL((USBAXI_

Re: [U-Boot] imx8mq-evk boot regression

2019-11-25 Thread Fabio Estevam
Adding Patrick in case he has some suggestions. Thanks On Mon, Nov 25, 2019 at 1:18 PM Fabio Estevam wrote: > > Hi, > > Just tried to boot imx8mq-evk using latest U-Boot master and this is what I > get: > > U-Boot SPL 2020.01-rc3-00070-g9a0cbae22a (Nov 25 2019 - 13:08:24 -0300) > PMIC: PFUZE10

[U-Boot] Reboot is broken on RockPro64 with mainline u-boot and ATF

2019-11-25 Thread Vasily Khoruzhick
Hey guys, Looks like reboot is broken on RockPro64 (RK3399-based) with mainline u-boot and ATF (ATF already has a fix [1]). When I type 'reboot' in linux I get back to u-boot, but subsequent linux boot hangs in most cases. Sometimes I get this warning: [ 62.400363] rcu: INFO: rcu_sched detecte

Re: [U-Boot] [PATCH v2 1/6] remoteproc: elf_loader: Add elf resource table load support

2019-11-25 Thread Patrick DELAUNAY
Hi Fabien, > From: Fabien DESSENNE > Sent: mercredi 30 octobre 2019 14:38 > > Add rproc_elf_load_rsc_table(), which searches for a resource table in an > elf64/elf32 image, and if found, copies it to device memory. > Add also the elf32 and elf64 variants of this API. > Add a test for this. > >

Re: [U-Boot] [PATCH v2 6/6] remoteproc: stm32: load resource table from firmware

2019-11-25 Thread Patrick DELAUNAY
Hi Fabien, > From: Fabien DESSENNE > Sent: mercredi 30 octobre 2019 14:39 > > Load the optional resource table from the firmware, and write its address in > the > dedicated backup register. > > Signed-off-by: Fabien Dessenne Acked-by: Patrick Delaunay Thanks Patrick __

Re: [U-Boot] [PATCH v2 5/6] stm32mp1: remove copro_state environment variable

2019-11-25 Thread Patrick DELAUNAY
Hi Fabien, > From: Fabien DESSENNE > Sent: mercredi 30 octobre 2019 14:39 > > Since the coprocessor state is tracked in a backup register, there is no more > need > for tracking it in an environment variable : remove it. > > Signed-off-by: Fabien Dessenne Acked-by: Patrick Delaunay Thanks

Re: [U-Boot] [PATCH v2 3/6] stm32mp1: reset coprocessor status at cold boot

2019-11-25 Thread Patrick DELAUNAY
Hi Fabien, > From: Fabien DESSENNE > Sent: mercredi 30 octobre 2019 14:39 > > Reset ResourceTableAddress and CoprocessorState at cold boot, preserve these > values at standby wakeup. > > Signed-off-by: Fabien Dessenne Acked-by: Patrick Delaunay Thanks Patrick __

Re: [U-Boot] [PATCH v2 4/6] remoteproc: stm32: track the coprocessor state in a backup register

2019-11-25 Thread Patrick DELAUNAY
Hi Fabien, > From: Fabien DESSENNE > Sent: mercredi 30 octobre 2019 14:39 > > Update the dedicated backup register to track the coprocessor state and rely > on > that register to compute the .is_running() value (which expects a return > value of 0 > -not 1- if the processor is running). > > S

Re: [U-Boot] [PATCH v2 2/6] stm32mp1: declare backup registers for coprocessor

2019-11-25 Thread Patrick DELAUNAY
Hi Fabien, > From: Fabien DESSENNE > Sent: mercredi 30 octobre 2019 14:38 > > Use the backup register #17 as coprocessor resource table address and backup > register #18 as coprocessor state. > > Signed-off-by: Fabien Dessenne Acked-by: Patrick Delaunay Thanks Patrick _

[U-Boot] [PATCH 4/4] boards/km_arm: enable support for Macronix SPI NOR flash

2019-11-25 Thread Holger Brunck
The M25P80 and M25P32 SPI flashes from Numonix/Micron will be replaced by Marconix MX25L80 and MX25L32 flashes. Signed-off-by: Holger Brunck CC: Stefan Roese CC: Valentin Longchamp --- configs/km_kirkwood_128m16_defconfig | 1 + configs/km_kirkwood_defconfig| 1 + configs/kmcoge5un_def

[U-Boot] [PATCH 3/4] arm/km: remove board KMCOGE3UN

2019-11-25 Thread Holger Brunck
This target is out of maintenance and can be removed. Signed-off-by: Holger Brunck CC: Stefan Roese CC: Valentin Longchamp --- board/keymile/km_arm/MAINTAINERS | 1 - board/keymile/km_arm/km_arm.c| 55 +--- configs/mgcoge3un_defconfig | 52

[U-Boot] [PATCH 2/4] km/boards: add MAC address offset as argument to ivm_populate_env

2019-11-25 Thread Holger Brunck
For upcoming SECU board we have different MAC address offsets depending on which functional unit we are running. In this case we need to pass this value to the ivm_populate_env function instead of using the hard coded config option there. Signed-off-by: Holger Brunck CC: Stefan Roese CC: Valenti

[U-Boot] [PATCH 1/4] km/boards: fix typo for MAC address offset config option

2019-11-25 Thread Holger Brunck
This patch only fixes a typo. Signed-off-by: Holger Brunck CC: Stefan Roese CC: Valentin Longchamp --- board/keymile/Kconfig | 2 +- board/keymile/common/ivm.c | 6 +++--- configs/kmcoge5un_defconfig | 2 +- configs/mgcoge3un_defconfig | 2 +- 4 files changed, 6 insertions(+), 6 deletio

Re: [U-Boot] SPDX header might be wrong in 4 files from Android Open Source Project

2019-11-25 Thread Igor Opaniuk
+ Alex Deymo Hi Zdenek On Mon, Nov 25, 2019 at 6:05 PM zdenek.bou...@siemens.com wrote: > > Hello, > > SPDX-License-Identifier: BSD-3-Clause might be wrong in the following 4 files > from Android Open Source Project (AOSP): > > include/android_bootloader_message.h > include/sparse_format.h > in

[U-Boot] [PATCH] spl: fix entry_point equal to load_addr

2019-11-25 Thread Giulio Benetti
At the moment entry_point is set to image_get_load(header) that sets it to "load address" instead of "entry point", assuming entry_point is equal to load_addr, but it's not true. Then load_addr is set to "entry_point - header_size", but this is wrong too since load_addr is not an entry point. So u

[U-Boot] imx8mq-evk boot regression

2019-11-25 Thread Fabio Estevam
Hi, Just tried to boot imx8mq-evk using latest U-Boot master and this is what I get: U-Boot SPL 2020.01-rc3-00070-g9a0cbae22a (Nov 25 2019 - 13:08:24 -0300) PMIC: PFUZE100 ID=0x10 DDRINFO: start DRAM init DDRINFO:ddrphy calibration done DDRINFO: ddrmix config done Normal Boot Trying to boot from

[U-Boot] SPDX header might be wrong in 4 files from Android Open Source Project

2019-11-25 Thread zdenek.bou...@siemens.com
Hello, SPDX-License-Identifier: BSD-3-Clause might be wrong in the following 4 files from Android Open Source Project (AOSP): include/android_bootloader_message.h include/sparse_format.h include/dt_table.h include/android_image.h As you can see in the comments the content is from AOSP. But the

Re: [U-Boot] [EXT] Re: [PATCHv2 1/2] PCI: layerscape: Add Support for ls2088 PCIe EP mode

2019-11-25 Thread Ramon Fried
> > Hi Ramon, > > I need your help on this, could you help explain how to start the PCIe EP > test in > u-boot? Thanks a lot. > > Hi, you just need to run the test suite and it will test the PCIe EP sandbox class automatically. See test/README Why do you care about the EP testing, it's testing the

[U-Boot] [PATCH] drivers: net: fsl_enetc: register internal MDIO bus

2019-11-25 Thread Alex Marginean
This bus is used to access internal SoC PHYs. These PHYs are configured by the ENETC driver directly, but it's useful to have command line access to this MDIO to debug the system especially when using new external PHYs. Signed-off-by: Alex Marginean --- drivers/net/fsl_enetc.c | 15 +++-

Re: [U-Boot] [PATCH 2/5] common: add blkcache init

2019-11-25 Thread Eric Nelson
Hi Angelo, On 11/25/19 2:59 AM, Angelo Dureghello wrote: Hi Eric, On Sun, Nov 24, 2019 at 5:00 PM Eric Nelson wrote: Hi Angelo, On 11/23/19 3:47 PM, Angelo Dureghello wrote: From: Angelo Durgehello On m68k, block_cache list is relocated, but next and prev list pointers are not adjusted t

Re: [U-Boot] [PATCH 2/5] common: add blkcache init

2019-11-25 Thread Eric Nelson
Hi Angelo, On 11/25/19 2:59 AM, Angelo Dureghello wrote: Hi Eric, On Sun, Nov 24, 2019 at 5:00 PM Eric Nelson wrote: Hi Angelo, On 11/23/19 3:47 PM, Angelo Dureghello wrote: From: Angelo Durgehello On m68k, block_cache list is relocated, but next and prev list pointers are not adjusted t

[U-Boot] [PATCH v2 6/6] configs: ls1028a: enable the Ethernet switch driver in defconfig

2019-11-25 Thread Alex Marginean
The switch driver for LS1028A Ethernet switch is now compiled in for both LS1028A boards. Signed-off-by: Alex Marginean --- configs/ls1028aqds_tfa_SECURE_BOOT_defconfig | 3 ++- configs/ls1028aqds_tfa_defconfig | 3 ++- configs/ls1028ardb_tfa_SECURE_BOOT_defconfig | 3 ++- configs/ls

[U-Boot] [PATCH v2 3/6] test: dm: add a simple unit test for DSA class

2019-11-25 Thread Alex Marginean
The test pings the local IP address though different ports of a sandbox DSA device. Port traffic is filtered and the test verifies that ping works only on enabled ports. The additional interfaces require MAC addresses, these have been added to sandbox default environment. Signed-off-by: Alex Marg

[U-Boot] [PATCH v2 5/6] arm: dts: ls1028a: adds Ethernet switch node and its dependencies

2019-11-25 Thread Alex Marginean
The definition follows the DSA binding in kernel and describes the switch, its ports and PHYs. ENETC PF6 is the 2nd Eth controller linked to the switch on LS1028A, it is not used in U-Boot and was disabled. Signed-off-by: Alex Marginean Tested-by: Michael Walle --- arch/arm/dts/fsl-ls1028a-rdb.

[U-Boot] [PATCH v2 4/6] drivers: net: add Felix DSA switch driver

2019-11-25 Thread Alex Marginean
This driver is used for the Ethernet switch integrated into LS1028A NXP. Felix on LS1028A has 4 front panel ports and two internal ports, I/O to/from the switch is done through an ENETC Ethernet interface. The 4 front panel ports are available as Ethernet interfaces and can be used with the typical

[U-Boot] [PATCH v2 2/6] drivers: net: add a DSA sandbox driver

2019-11-25 Thread Alex Marginean
The DSA sandbox driver is used for DSA unit testing. It implements a simple 4 port switch that uses a very simple tag to identify the ports. The DSA driver comes paired with an Ethernet driver that loops packets back and can selectively filter traffic on DSA switch ports. Signed-off-by: Alex Marg

  1   2   >