[U-Boot] [RFC 9/9] lib: crypto: add rsa public key parser

2019-09-02 Thread AKASHI Takahiro
Imported from linux kernel v5.0. Signed-off-by: AKASHI Takahiro --- include/crypto/internal/rsa.h | 62 +++ lib/crypto/Makefile | 10 - lib/crypto/rsa_helper.c | 81 +++ lib/crypto/rsapubkey.asn1 | 4 ++ 4 files

[U-Boot] [RFC 7/9] lib: crypto: add x509 parser

2019-09-02 Thread AKASHI Takahiro
Imported from linux kernel v5.0. Signed-off-by: AKASHI Takahiro --- lib/Kconfig | 1 + lib/Makefile | 1 + lib/crypto/Kconfig| 10 + lib/crypto/Makefile | 17 + lib/crypto/x509.asn1 | 60 lib/crypto/x509_akid.asn1

[U-Boot] [RFC 8/9] lib: crypto: add pkcs7 message parser

2019-09-02 Thread AKASHI Takahiro
Imported from linux kernel v5.0. Signed-off-by: AKASHI Takahiro --- include/crypto/pkcs7.h| 51 +++ lib/crypto/Kconfig| 9 + lib/crypto/Makefile | 11 + lib/crypto/pkcs7.asn1 | 135 lib/crypto/pkcs7_parser.c | 690 ++

[U-Boot] [RFC 5/9] lib: crypto: add public key utility

2019-09-02 Thread AKASHI Takahiro
Imported from linux kernel v5.0. Signed-off-by: AKASHI Takahiro --- include/crypto/public_key.h| 89 + include/keys/asymmetric-type.h | 92 + lib/crypto/Kconfig | 19 + lib/crypto/Makefile| 10 + lib/crypto/asymmetric_type.c | 655

[U-Boot] [RFC 6/9] lib: crypto: add public_key_verify_signature()

2019-09-02 Thread AKASHI Takahiro
Signed-off-by: AKASHI Takahiro --- include/crypto/public_key.h | 2 +- lib/crypto/Makefile | 2 +- lib/crypto/public_key_local.c | 69 +++ 3 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 lib/crypto/public_key_local.c diff --git

[U-Boot] [RFC 3/9] lib: add asn1 decoder

2019-09-02 Thread AKASHI Takahiro
Imported from linux kernel v5.0. Signed-off-by: AKASHI Takahiro --- lib/Kconfig| 6 + lib/Makefile | 1 + lib/asn1_decoder.c | 520 + 3 files changed, 527 insertions(+) create mode 100644 lib/asn1_decoder.c diff --git a/lib/Kconfig

[U-Boot] [RFC 4/9] lib: add oid registry utility

2019-09-02 Thread AKASHI Takahiro
Imported from linux kernel v5.0. Signed-off-by: AKASHI Takahiro --- include/linux/oid_registry.h | 103 + lib/Kconfig | 5 + lib/Makefile | 16 +++ lib/build_OID_registry | 207 +++ lib/oid_registry.c

[U-Boot] [RFC 2/9] Makefile: add build script for asn1 parsers

2019-09-02 Thread AKASHI Takahiro
This rule will be used to build x509 and pkcs7 parsers. Signed-off-by: AKASHI Takahiro --- scripts/Makefile.build | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index f7a041296d3d..9357d310e50b 100644 ---

[U-Boot] [RFC 1/9] cmd: add asn1_compiler

2019-09-02 Thread AKASHI Takahiro
Imported from linux kernel v5.0. This host command will be used to create a ASN1 parser, for example, for pkcs7 or x509. Signed-off-by: AKASHI Takahiro --- cmd/Kconfig |3 + include/linux/asn1.h | 69 ++ include/linux/asn1_ber_bytecode.h | 93 ++

[U-Boot] [RFC 0/9] import x509/pkcs7 parsers from linux

2019-09-02 Thread AKASHI Takahiro
Asn1 parsers of x509 certificates and pkcs7 messages are required to implement image authentication and variable authentication as part of UEFI secure boot feature. As we discussed before in the thread[1], most people insisted that we should re-use corresponding source code from Linux repository

[U-Boot] [PATCH] cmd: env: correct a wrong comment of do_env_set_efi()

2019-09-02 Thread AKASHI Takahiro
Correct a function name in comments. Signed-off-by: AKASHI Takahiro --- cmd/nvedit_efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/nvedit_efi.c b/cmd/nvedit_efi.c index a9ecb3ee4dc3..4532124c33d0 100644 --- a/cmd/nvedit_efi.c +++ b/cmd/nvedit_efi.c @@ -381,7 +381,7

[U-Boot] [PATCH] cmd: env: extend "env [set|print] -e" to manage UEFI variables

2019-09-02 Thread AKASHI Takahiro
With this patch, when setting UEFI variable with "env set -e" command, we will be able to - specify vendor guid with "-guid guid", - specify variable attributes, BOOTSERVICE_ACCESS, RUNTIME_ACCESS, TIME_BASED_AUTHENTICATED_WRITE_ACCESS respectively with "-bs", "-rt" and "-at", - append a

[U-Boot] [PATCH] efi_loader: variable: support APPEND_WRITE

2019-09-02 Thread AKASHI Takahiro
If EFI_VARIABLE_APPEND_WRITE is specified in attributes at efi_set_variable(), specified data will be appended to the variable's original value. Attributes other than APPEND_WRITE should not be modified. With this patch, APPEND_WRITE test in 'variables' selftest will pass. Signed-off-by: AKASHI

[U-Boot] [PATCH v2 1/1] x86: efi_loader: Fix invalid address return from efi_alloc()

2019-09-02 Thread Park, Aiden
This issue can be seen on 32bit operation when one of E820_RAM type entries is greater than 4GB memory space. The efi_alloc() finds a free memory in the conventional memory which is greater than 4GB. But, it does type cast to 32bit address space and eventually returns invalid address.

Re: [U-Boot] U-Boot: Environment flags broken for U-Boot

2019-09-02 Thread Heiko Schocher
Hello Patrick, Am 02.09.2019 um 17:35 schrieb Patrick DELAUNAY: Hi Heiko, From: Heiko Schocher Sent: lundi 2 septembre 2019 16:03 Hello Patrick, I am just testing U-Boot Environment flags and they do not work anymore with current mainline U-Boot ... I should have made some tbot test for

Re: [U-Boot] [PATCH 2/3] mmc: fsl_esdhc: clean up code

2019-09-02 Thread Y.b. Lu
Hi Lukasz, Sorry for my late response. Please see my comments inline. > -Original Message- > From: Lukasz Majewski > Sent: Friday, August 23, 2019 4:45 PM > To: Y.b. Lu > Cc: u-boot@lists.denx.de; Peng Fan > Subject: Re: [U-Boot] [PATCH 2/3] mmc: fsl_esdhc: clean up code > > On Mon,

Re: [U-Boot] [PATCH 5/5] doc: rockchip: use idbloader.img for rk3399

2019-09-02 Thread Kever Yang
On 2019/8/24 上午1:29, Matwey V. Kornilov wrote: Makefile now produces ready-to-deploy idbloader.img file. u-boot has support for TPL at rk3399 platform for all boards, so there is not reason to refer binary loaders. Signed-off-by: Matwey V. Kornilov --- doc/README.rockchip | 6 -- 1

Re: [U-Boot] [PATCH] imx: apalis_imx6: select MX6Q via Kconfig

2019-09-02 Thread Peng Fan
> Subject: [PATCH] imx: apalis_imx6: select MX6Q via Kconfig > > Toradex Apalis iMX6 modules are available in the iMX6D and iMX6Q variants, > which are quite similar and already managed via only one dtb in u-boot > (imx6-apalis.dtb). Select MX6Q via Kconfig by default in order to > automatically

Re: [U-Boot] [PATCH] apalis_imx6: allocate specific region of memory to OP-TEE

2019-09-02 Thread Peng Fan
> Subject: [PATCH] apalis_imx6: allocate specific region of memory to OP-TEE > > OP-TEE uses the memory region defined by the maximum DRAM address > minus CONFIG_OPTEE_TZDRAM_SIZE, so subtract > CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size to avoid > conflicts. > > Signed-off-by:

Re: [U-Boot] [PATCH] apalis_imx6: add board_fit_config_name_match to support FIT in SPL

2019-09-02 Thread Peng Fan
> Subject: [PATCH] apalis_imx6: add board_fit_config_name_match to support > FIT in SPL > > Only one dtb is currently supported, so match with imx6-apalis. > > Signed-off-by: Ricardo Salveti > --- > board/toradex/apalis_imx6/apalis_imx6.c | 10 ++ > 1 file changed, 10 insertions(+) >

Re: [U-Boot] [PATCH 2/5] doc: rockchip: use idbloader.img for rk3288

2019-09-02 Thread Kever Yang
Hi Matwey,     Could you merge patch 2/3/5 into one patch? I think they are the one update for the same reason, no need to split into 3 patches. Thanks, - Kever On 2019/8/24 上午1:29, Matwey V. Kornilov wrote: Makefile now produces ready-to-deploy idbloader.img file. Signed-off-by: Matwey

Re: [U-Boot] [PATCH] spl: imx: only use HAB if spl fit signature is not enabled

2019-09-02 Thread Peng Fan
> Subject: [PATCH] spl: imx: only use HAB if spl fit signature is not enabled > > There is no need to use HAB for FIT signature validation when > SPL_FIT_SIGNATURE is also enabled, as that will be validated via the normal > U-Boot signed FIT image flow. > > This allows having SPL validated by

Re: [U-Boot] [PATCH] apalis_imx6: fix broken fsl_esdhc_imx conversion

2019-09-02 Thread Peng Fan
> Subject: [PATCH] apalis_imx6: fix broken fsl_esdhc_imx conversion > > Commit e37ac717d796 ("Convert to use fsl_esdhc_imx for i.MX platforms") > converted FSL_ESDHC to FSL_ESDHC_IMX, but the config check for > apalis_imx6 wasn't updated accordantly. > > Signed-off-by: Ricardo Salveti > --- >

Re: [U-Boot] [PATCH 1/5] rockchip, Makefile: add idbloader.img target【请注意,邮件由u-boot-boun...@lists.denx.de代发】

2019-09-02 Thread Kever Yang
Hi Matwey, On 2019/8/24 上午1:29, Matwey V. Kornilov wrote: Many Rockchip platforms require the same u-boot deploy procedure when TPL and SPL both enabled. The following examples are taken from doc/README.rockchip and board/theobroma-systems/lion_rk3368/README: RK3288: ./tools/mkimage -n

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

2019-09-02 Thread uboot
Hi Tom, Please pull some riscv updates: - Skip unavailable hart in the get_count(). - fu540 set serial env from otp. - fu540 add mmc0 as a boot target device. - Update fix_rela_dyn and add absolute reloc addend. - Andestech PLIC driver will skip unavailable hart. - Support Andestech V5L2 cache

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-09-02 Thread Peng Fan
Hi Jun, > Subject: Re: [PATCH 0/3] Support distro boot in pico-imx7d BL33 case > > Jun Nie 于2019年8月8日周四 下午12:04写道: > > > > Jun Nie 于2019年7月16日周二 下午3:43写道: > > > > > > Support distro boot in pico-imx7d BL33 case with changing the > > > enviroment variables. While the other two patches are for

Re: [U-Boot] [PATCH v3] imx: support i.MX8QM ROM 7720 a1 board

2019-09-02 Thread Peng Fan
> Subject: Re: [PATCH v3] imx: support i.MX8QM ROM 7720 a1 board > > On 02/09/19, Peng Fan wrote: > > > Subject: [PATCH v3] imx: support i.MX8QM ROM 7720 a1 board > > > > > > +echo "ATF_LOAD_ADDR=$ATF_LOAD_ADDR" >&2 echo > > > +"BL33_LOAD_ADDR=$BL33_LOAD_ADDR" >&2 > > > + > > > > This is no

Re: [U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-09-02 Thread AKASHI Takahiro
On Mon, Sep 02, 2019 at 01:19:06PM +0200, Heinrich Schuchardt wrote: > On 9/2/19 12:30 PM, Matthias Brugger wrote: > >+Alex, Lukas, Heinrich, Bin and Simon > > > >On 31/07/2019 10:16, Jun Nie wrote: > >>Matthias Brugger 于2019年7月31日周三 下午4:05写道: > >>> > >>> > >>> > >>>On 11/07/2019 05:55, Jun Nie

Re: [U-Boot] [PATCH 1/1] net: nfs: remove superfluous packed attribute

2019-09-02 Thread Bin Meng
On Tue, Sep 3, 2019 at 6:05 AM Heinrich Schuchardt wrote: > > With GCC 9.2.1 net/nfs.c leads to multiple errors of type > address-of-packed-member. > > net/nfs.c: In function ‘rpc_req’: > net/nfs.c:199:18: error: taking address of packed member of > ‘struct rpc_t’ may result in an unaligned

Re: [U-Boot] [PATCH 1/1] net: nfs: remove superfluous conversions

2019-09-02 Thread Bin Meng
On Tue, Sep 3, 2019 at 5:55 AM Heinrich Schuchardt wrote: > > rpc_pkt.u.call.data is an array of uint32_t. There is no need to convert > it to uint32_t *. > > memcpy() expects void * as it 1st and 2nd argument. There is no point in > converting pointers to char * before passing them to memcpy().

[U-Boot] [PATCH] apalis_imx6: add board_fit_config_name_match to support FIT in SPL

2019-09-02 Thread Ricardo Salveti
Only one dtb is currently supported, so match with imx6-apalis. Signed-off-by: Ricardo Salveti --- board/toradex/apalis_imx6/apalis_imx6.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c index

[U-Boot] [PATCH] apalis_imx6: allocate specific region of memory to OP-TEE

2019-09-02 Thread Ricardo Salveti
OP-TEE uses the memory region defined by the maximum DRAM address minus CONFIG_OPTEE_TZDRAM_SIZE, so subtract CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size to avoid conflicts. Signed-off-by: Ricardo Salveti --- board/toradex/apalis_imx6/apalis_imx6.c | 5 + 1 file changed, 5

[U-Boot] [PATCH] imx: apalis_imx6: select MX6Q via Kconfig

2019-09-02 Thread Ricardo Salveti
Toradex Apalis iMX6 modules are available in the iMX6D and iMX6Q variants, which are quite similar and already managed via only one dtb in u-boot (imx6-apalis.dtb). Select MX6Q via Kconfig by default in order to automatically enable the HAS_CAAM and MX6_SMP features. Signed-off-by: Ricardo

[U-Boot] [PATCH] spl: imx: only use HAB if spl fit signature is not enabled

2019-09-02 Thread Ricardo Salveti
There is no need to use HAB for FIT signature validation when SPL_FIT_SIGNATURE is also enabled, as that will be validated via the normal U-Boot signed FIT image flow. This allows having SPL validated by HAB and the payloads to follow being validated with FIT signatures only. Signed-off-by:

[U-Boot] [PATCH] apalis_imx6: fix broken fsl_esdhc_imx conversion

2019-09-02 Thread Ricardo Salveti
Commit e37ac717d796 ("Convert to use fsl_esdhc_imx for i.MX platforms") converted FSL_ESDHC to FSL_ESDHC_IMX, but the config check for apalis_imx6 wasn't updated accordantly. Signed-off-by: Ricardo Salveti --- board/toradex/apalis_imx6/apalis_imx6.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[U-Boot] [PATCH 1/1] net: nfs: remove superfluous packed attribute

2019-09-02 Thread Heinrich Schuchardt
With GCC 9.2.1 net/nfs.c leads to multiple errors of type address-of-packed-member. net/nfs.c: In function ‘rpc_req’: net/nfs.c:199:18: error: taking address of packed member of ‘struct rpc_t’ may result in an unaligned pointer value [-Werror=address-of-packed-member] 199 | p = (uint32_t

[U-Boot] [PATCH 1/1] net: nfs: remove superfluous conversions

2019-09-02 Thread Heinrich Schuchardt
rpc_pkt.u.call.data is an array of uint32_t. There is no need to convert it to uint32_t *. memcpy() expects void * as it 1st and 2nd argument. There is no point in converting pointers to char * before passing them to memcpy(). In ntohl(data[1]) != 0 calling ntohl() is superfluous. If the value

[U-Boot] [BUG] net: nfs: -Werror=address-of-packed-member

2019-09-02 Thread Heinrich Schuchardt
Hello Joe, GCC 9.2.1 (of Debian Bullseye) produces the warnings below when building pine64-lts_defconfig. Is it really necessary to define struct rpc_t as packed? The structure is composed out of uint32_t only. So shouldn't it be naturally packed without the attribute? net/nfs.c: In function

Re: [U-Boot] [EXT] Re: [RFC/RESEND 01/22] arm: introduce ARCH_THUNDERX

2019-09-02 Thread Matthias Brugger
Hi Suneel, On 27/08/2019 02:59, Chandrakala Chavva wrote: > Tim, > > It was scheduled to post the patches on August 15th, it got delayed as Suneel > got sick, he will post in 2 weeks. > Hope you are fine again. Do you have an update about the patches? Best regards, Matthias > Chandra >

[U-Boot] Using CONFIG_ENV_FLAGS_LIST

2019-09-02 Thread Claudius Heine
Hi, I am currently looking into variable flags in order to make some variables read-only for secure boot. The idea is that the u-boot binary is signed, while the environment file/partition is not. So the built-in default environment of u-boot can be trusted, while the external environment

Re: [U-Boot] [PATCH] mmc: dw_mmc: fix timeout calculate method

2019-09-02 Thread Tom Rini
On Mon, Sep 02, 2019 at 12:24:42PM +, Alexey Brodkin wrote: > Hi Kever, > > > -Original Message- > > From: Kever Yang > > Sent: Monday, September 2, 2019 11:05 AM > > To: Alexey Brodkin > > Cc: tr...@konsulko.com; eugeniy.palt...@synopsys.com; Simon Glass > > ; Peng Fan > > ;

Re: [U-Boot] [PATCH] mx53loco: Fix U-Boot corruption after saving the environment

2019-09-02 Thread Fabio Estevam
Hi Tom, On Fri, Aug 30, 2019 at 3:14 PM Tom Rini wrote: > Are there more i.mx platforms that are not setting BOARD_SIZE_LIMIT > today? I assume there are, sadly. Can you audit and catch the rest of Yes, only a very few i.MX boards set BOARD_SIZE_LIMIT currently. > these likely problems, and

Re: [U-Boot] U-Boot: Environment flags broken for U-Boot

2019-09-02 Thread Patrick DELAUNAY
Hi Heiko, > From: Heiko Schocher > Sent: lundi 2 septembre 2019 16:03 > > Hello Patrick, > > I am just testing U-Boot Environment flags and they do not work anymore with > current mainline U-Boot ... I should have made some tbot test for it, but did > not > found yet time for it ... > >

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

2019-09-02 Thread Bin Meng
On Mon, Sep 2, 2019 at 10:34 PM Michal Simek wrote: > > From: T Karthik Reddy > > This patch adds functions dev_read_u64_default & dev_read_u64 > to read unsigned 64-bit values from devicetree. > > Signed-off-by: T Karthik Reddy > Signed-off-by: Michal Simek > --- > > Changes in v2: > - Moved

[U-Boot] [PATCH v2 2/2] mmc: sdhci: Add support for dt caps & caps mask

2019-09-02 Thread Michal Simek
From: T Karthik Reddy The sdhci capabilities registers can be incorrect. The sdhci-caps-mask and sdhci-caps dt properties specify which bits of the registers are incorrect and what their values should be. This patch makes the sdhci driver use those properties to correct the caps. Also use

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

2019-09-02 Thread Michal Simek
From: T Karthik Reddy This patch adds functions dev_read_u64_default & dev_read_u64 to read unsigned 64-bit values from devicetree. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- Changes in v2: - Moved newly added 64-bit funtion definations & prototypes below 32-bit

[U-Boot] [PATCH v2 0/2] Add sdhci dt caps & caps mask support

2019-09-02 Thread Michal Simek
Hi, This patch series adds support for reading 64-bit dt properties & add support sdhci dt caps & caps mask. Thanks, Michal Changes in v2: - Moved newly added 64-bit funtion definations & prototypes below 32-bit functions. T Karthik Reddy (2): dm: core: Add functions to read 64-bit dt

Re: [U-Boot] [PATCH] arm: omap2: am43xx: Enable CONFIG_DM_USB

2019-09-02 Thread Tom Rini
On Thu, Aug 29, 2019 at 07:08:59PM +0530, suni...@techveda.org wrote: > From: Suniel Mahesh > > Enable CONFIG_DM_USB to remove compile warning for > am43xx based targets: > > = WARNING == > This board does not use CONFIG_DM_USB. Please update > the board

Re: [U-Boot] [PATCH] Makefile: fix newline escaping for CONFIG_DEFAULT_ENV_FILE

2019-09-02 Thread Tom Rini
On Wed, Aug 28, 2019 at 11:00:46AM +, Rasmus Villemoes wrote: > I wanted this to be compatible with mkenvimage, including the ability > to embed newlines in variables by escaping them. But I failed to check > that it works more than once. > > Fixes: f3d8f7dd73a (Allow providing default

Re: [U-Boot] [PULL] u-boot-sh/master

2019-09-02 Thread Tom Rini
On Thu, Aug 29, 2019 at 02:07:11PM +0200, Marek Vasut wrote: > The following changes since commit 1e60ccd94318fb86610e1e28512b2aaac5f4b069: > > Merge branch '2019-08-20-master-imports' (2019-08-20 21:40:12 -0400) > > are available in the Git repository at: > >

Re: [U-Boot] [PATCH 3/3] configs: enable CONFIG_BLOCK_CACHE for mt7623n_bpir2

2019-09-02 Thread Tom Rini
On Tue, Aug 27, 2019 at 03:32:20PM +0800, Weijie Gao wrote: > This patch enables CONFIG_BLOCK_CACHE for mt7623n_bpir2. > > Signed-off-by: Weijie Gao Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot

Re: [U-Boot] [PATCH] board_f: fix noncached reservation calculation

2019-09-02 Thread Tom Rini
On Tue, Aug 27, 2019 at 11:54:31AM -0600, Stephen Warren wrote: > From: Stephen Warren > > The current code in reserve_noncached() has two issues: > > 1) The first update of gd->start_addr_sp always rounds down to a section > start. However, the equivalent calculation in

Re: [U-Boot] [PATCH] Makefile: clean build generated SPL binary for TI AM65x

2019-09-02 Thread Tom Rini
On Tue, Aug 27, 2019 at 01:27:56PM +0530, suni...@techveda.org wrote: > From: Suniel Mahesh > > TI AM65x platforms (evm and HS) generate an SPL image > 'tispl.bin*' and there is no rule for cleanup. > Added entry for cleanup in clean target. > > Signed-off-by: Suniel Mahesh Applied to

Re: [U-Boot] [PATCH 1/3] Revert "blk: Invalidate block cache when switching hwpart"

2019-09-02 Thread Tom Rini
On Tue, Aug 27, 2019 at 03:32:18PM +0800, Weijie Gao wrote: > This reverts commit 0ebe112d09b48230ba4be833cd3504b06997d9a4. > > Most block devices have only one hwpart. Multiple hwparts only found used > by eMMC devices in u-boot. The mmc driver do blk_dselect_hwpart() at the > beginning of

Re: [U-Boot] [PATCH] Revert "vexpress64: fvp dram: add DRAM configuration"

2019-09-02 Thread Tom Rini
On Tue, Aug 27, 2019 at 11:56:49AM +0100, Ryan Harkin wrote: > This reverts commit fc04b923541d984b1544056fd3bfa8129d4e5aac where the > FVP DRAM configuration was added. > > Signed-off-by: Ryan Harkin > Acked-by: Sudeep Holla Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [PATCH 1/1] siemens: avoid out of bound access

2019-09-02 Thread Tom Rini
On Thu, Aug 22, 2019 at 09:58:26PM +0200, Heinrich Schuchardt wrote: > char num[1]; > sprintf(num, "%d", i); > > leads to a buffer overrun. > > Simplify the overly complex coding. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Bin Meng > Acked-by: Heiko Schocher Applied to

Re: [U-Boot] [PATCH 2/3] mmc: invalidate block cache after hwpart switched successfully

2019-09-02 Thread Tom Rini
On Tue, Aug 27, 2019 at 03:32:19PM +0800, Weijie Gao wrote: > eMMC device has multiple hw partitions both address from zero. However the > mmc driver lacks block cache invalidation for switch hwpart. This causes a > problem that data of current hw partition is cached before switching to > another

[U-Boot] U-Boot: Environment flags broken for U-Boot

2019-09-02 Thread Heiko Schocher
Hello Patrick, I am just testing U-Boot Environment flags and they do not work anymore with current mainline U-Boot ... I should have made some tbot test for it, but did not found yet time for it ... Here log with current mainline: => printenv heiko heiko=changed => env flags Available

[U-Boot] [PATCH] arm: imx6: cm_fx6: Enable DM SPI and SPI_FLASH, fix SPL build errors

2019-09-02 Thread sunil . m
From: Suniel Mahesh Enable driver model for SPI and SPI_FLASH to remove the following compile warning on CM-FX6 SOM: = WARNING == This board does not use CONFIG_DM_SPI_FLASH. Please update the board to use CONFIG_SPI_FLASH before the v2019.07 release.

Re: [U-Boot] [PATCH 1/2] arm: dts: Import and update DT for Khadas VIM3

2019-09-02 Thread Neil Armstrong
On 02/09/2019 14:45, Andreas Färber wrote: > Hi Neil, > > Am 02.09.19 um 14:10 schrieb Neil Armstrong: >> On 02/09/2019 14:03, Andreas Färber wrote: >>> Am 02.09.19 um 12:03 schrieb Neil Armstrong: On 02/09/2019 04:28, Andreas Färber wrote: > In Linux meson-g12-common.dtsi was introduced

Re: [U-Boot] [PATCH 1/2] arm: dts: Import and update DT for Khadas VIM3

2019-09-02 Thread Andreas Färber
Hi Neil, Am 02.09.19 um 14:10 schrieb Neil Armstrong: > On 02/09/2019 14:03, Andreas Färber wrote: >> Am 02.09.19 um 12:03 schrieb Neil Armstrong: >>> On 02/09/2019 04:28, Andreas Färber wrote: In Linux meson-g12-common.dtsi was introduced as well as new g12b nodes and headers, as

[U-Boot] [PATCH v2 4/4] arm: meson: Recognize A311D SoC

2019-09-02 Thread Andreas Färber
Values imported from Linux driver, but in correct numeric order. Khadas VIM3 prints: Amlogic Meson G12B (A311D) Revision 29:b (10:2) Cc: Christian Hewitt Signed-off-by: Andreas Färber --- v2: New arch/arm/mach-meson/board-info.c | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v2 2/4] configs: Add Khadas VIM3 defconfig

2019-09-02 Thread Andreas Färber
Derived from odroid-n2_defconfig and README.odroid-n2. Reviewed-by: Neil Armstrong Signed-off-by: Andreas Färber --- v1 -> v2: * Fixed branch name in README board/amlogic/w400/MAINTAINERS| 1 + board/amlogic/w400/README.khadas-vim3 | 132 ++

[U-Boot] [PATCH v2 3/4] arm: meson: Tidy SoC information output

2019-09-02 Thread Andreas Färber
Write SoC instead of Soc. The Linux driver is not affected. Fixes: f41d723b9f ("ARM: meson: display Amlogic SoC Information") Signed-off-by: Julien Masson Signed-off-by: Andreas Färber --- v2: New arch/arm/mach-meson/board-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH v2 1/4] arm: dts: Import and update DT for Khadas VIM3

2019-09-02 Thread Andreas Färber
In Linux meson-g12-common.dtsi was introduced as well as new g12b nodes and headers, as dependencies of new meson-g12b-a311d-khadas-vim3.dts. Copied from next-20190830. Signed-off-by: Andreas Färber --- v1 -> v2: * Mention linux-next tag for DT/header import (Neil) arch/arm/dts/Makefile

[U-Boot] [PATCH v2 0/4] amlogic: Add Khadas VIM3 support

2019-09-02 Thread Andreas Färber
Hi Neil, This mini-series adds initial support for Amlogic A311D based Khadas VIM3. v2 fixes an oversight and adds some cleanups. Regards, Andreas v1 -> v2: * Fixed branch name in README * Mention linux-next tag for DT/header import (Neil) * Avoid "Unknown" SoC output for A311D, fixing a typo

Re: [U-Boot] [PATCH] mmc: dw_mmc: fix timeout calculate method

2019-09-02 Thread Alexey Brodkin
Hi Kever, > -Original Message- > From: Kever Yang > Sent: Monday, September 2, 2019 11:05 AM > To: Alexey Brodkin > Cc: tr...@konsulko.com; eugeniy.palt...@synopsys.com; Simon Glass > ; Peng Fan > ; u-boot@lists.denx.de > Subject: Re: [PATCH] mmc: dw_mmc: fix timeout calculate method >

[U-Boot] [PATCH] arc: emsdp: Add more platform-specific compiler options

2019-09-02 Thread Alexey Brodkin
Even though EM SDP is FPGA-based board and different FPGA images (known as .bit-files) are awailable for the board still there's a common subset of options we may rely on for all configs. These are: * Normalizer * Swap instructions * Simple multiplier * Barrel-shifter * Floating-point unit

Re: [U-Boot] [PATCH] arc: libgcc: Import __udivdi3 & __udivmoddi4 to allow 64-bit division

2019-09-02 Thread Alexey Brodkin
Hi, > -Original Message- > From: Alexey Brodkin > Sent: Monday, September 2, 2019 12:43 PM > To: u-boot@lists.denx.de > Cc: uboot-snps-...@synopsys.com; linux-snps-...@lists.infradead.org; Alexey > Brodkin > ; Kever Yang > Subject: [PATCH] arc: libgcc: Import __udivdi3 & __udivmoddi4

Re: [U-Boot] [PATCH 1/2] arm: dts: Import and update DT for Khadas VIM3

2019-09-02 Thread Neil Armstrong
Hi Andreas On 02/09/2019 14:03, Andreas Färber wrote: > Hi Neil, > > Am 02.09.19 um 12:03 schrieb Neil Armstrong: >> On 02/09/2019 04:28, Andreas Färber wrote: >>> In Linux meson-g12-common.dtsi was introduced as well as new g12b nodes >>> and headers, as dependencies of new

Re: [U-Boot] [PATCH 1/2] arm: dts: Import and update DT for Khadas VIM3

2019-09-02 Thread Andreas Färber
Hi Neil, Am 02.09.19 um 12:03 schrieb Neil Armstrong: > On 02/09/2019 04:28, Andreas Färber wrote: >> In Linux meson-g12-common.dtsi was introduced as well as new g12b nodes >> and headers, as dependencies of new meson-g12b-a311d-khadas-vim3.dts. > > Can you precise the Linux commit ID you

[U-Boot] [PATCH V2 3/4] ARM: omapl138_lcdk: Enable DM_GPIO and DM and GPIO Commands

2019-09-02 Thread Adam Ford
The da8xx GPIO driver is available with DM_GPIO support. This patch enables the CMD_GPIO, CMD_DM, and DM_GPIO and DA8XX_GPIO. Signed-off-by: Adam Ford --- V2: Fix GPIO redefinition warning by making the max number of GPIOS's be consistent diff --git

[U-Boot] [PATCH V2 4/4] ARM: omapl138_lcdk: Enable Pinctrl

2019-09-02 Thread Adam Ford
The single pinctrl supports the da8xx, so this patch enables pinctrl in U-Boot. Signed-off-by: Adam Ford --- V2: No change diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index c74d78b547..266f2c251c 100644 --- a/configs/omapl138_lcdk_defconfig +++

[U-Boot] [PATCH V2 2/4] ARM: omapl138_lcdk: Disable SPL_DM_USB

2019-09-02 Thread Adam Ford
The USB was just recently enabled, so it is unlikely anyone is using it in SPL, so this patch removes it from SPL to further reduce the SPL code size. Signed-off-by: Adam Ford --- V2: No Change diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index

[U-Boot] [PATCH V2 1/4] ARM: omapl138_lcdk: Remove dead code

2019-09-02 Thread Adam Ford
The header it littered with #ifdefs and #defines and that appear to be legacy associations to the older da850-evm and in some cases obsolete with either Kconfig or DM migrations. This patch removes these legacy references. Signed-off-by: Adam Ford --- V2: No Change diff --git

Re: [U-Boot] [PATCH v4 2/4] USB: host: Add the USB3 host driver

2019-09-02 Thread Sherry Sun
Hi Vignesh, > > Hi Sherry, > > [...] > >> AFAIK, U-Boot does not support runtime switching of USB port to host > >> from device and vice versa. This is the case for existing driver like > DWC3/MUSB etc. > >> > >> Ideally we would need a role switch driver that unbinds and rebinds > >> host vs

Re: [U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-09-02 Thread Heinrich Schuchardt
On 9/2/19 12:30 PM, Matthias Brugger wrote: +Alex, Lukas, Heinrich, Bin and Simon On 31/07/2019 10:16, Jun Nie wrote: Matthias Brugger 于2019年7月31日周三 下午4:05写道: On 11/07/2019 05:55, Jun Nie wrote: Enable verified boot from FIT image with select configs and specify boot script image node in

Re: [U-Boot] [PATCH v3] imx: support i.MX8QM ROM 7720 a1 board

2019-09-02 Thread Oliver Graute
On 02/09/19, Peng Fan wrote: > > Subject: [PATCH v3] imx: support i.MX8QM ROM 7720 a1 board > > > > +echo "ATF_LOAD_ADDR=$ATF_LOAD_ADDR" >&2 echo > > +"BL33_LOAD_ADDR=$BL33_LOAD_ADDR" >&2 > > + > > This is no needed. > ok I`ll remove it > > +config SYS_VENDOR > > + default "freescale" > >

Re: [U-Boot] [PATCH] avb: verify: return fail if there is no uuid in partition info

2019-09-02 Thread Igor Opaniuk
Hi Kever, On Mon, Sep 2, 2019 at 11:01 AM Kever Yang wrote: > > There is not always have uuid in disk_partition_t, we can only get from > partitions info when PARTITION_UUIDS is available. > > Signed-off-by: Kever Yang > --- > > common/avb_verify.c | 4 > 1 file changed, 4 insertions(+) >

Re: [U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-09-02 Thread Matthias Brugger
+Alex, Lukas, Heinrich, Bin and Simon On 31/07/2019 10:16, Jun Nie wrote: > Matthias Brugger 于2019年7月31日周三 下午4:05写道: >> >> >> >> On 11/07/2019 05:55, Jun Nie wrote: >>> Enable verified boot from FIT image with select configs >>> and specify boot script image node in FIT image, the FIT >>> image

[U-Boot] [PATCH 2/7] arm: dts: imx8qxp-mek: add u-boot, dm-spl for lpuart0

2019-09-02 Thread Peng Fan
lpuart0 is the uart used by SPL and U-Boot proper, and DM_SERIAL is enabled. Since uclass power domain is also enabled, to make lpuart work properly, need add u-boot,dm-spl for lpuart power domain and its parent. Signed-off-by: Peng Fan --- arch/arm/dts/fsl-imx8qxp-mek-u-boot.dtsi | 8

[U-Boot] [PATCH 5/7] misc: scu: Increase the timeout for MU communication

2019-09-02 Thread Peng Fan
From: Ye Li When power on some sources in Video system, current timeout 10ms is too short and returns before SCU response. So increase the timeout to 1s. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/misc/imx8/scu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 6/7] power: domain: make imx8-power-domain.c legacy

2019-09-02 Thread Peng Fan
The current i.MX8 power domain driver is based on i.MX vendor power domain tree which will retire later. The Linux upstream use a single pd node for power domain driver, and U-Boot will adopt that. When U-Boot i.MX8 dts synced with Linux Kernel upstream and related driver ready, the legacy driver

[U-Boot] [PATCH 4/7] misc: imx8: scu: simplify code to make it extendable

2019-09-02 Thread Peng Fan
clk and pinctrl will be get(probed) during each device probe, we don't need to probe them in scu driver. Only need to bind the sub-nodes (clk and iomuxc) of MU node with their drivers. So drop the code to probe the clk/pinctrl, and this patch will make it easy to add more subnodes.

[U-Boot] [PATCH 7/7] power: domain: add i.MX8 scu power domain driver

2019-09-02 Thread Peng Fan
The power domain tree is not accepted by Linux Kernel upstream. only a single pd node is used currently, as following: pd: imx8qx-pd { compatible = "fsl,imx8qm-scu-pd", "fsl,scu-pd"; #power-domain-cells = <1>; }; So

[U-Boot] [PATCH 3/7] arm: dts: imx8qm-mek: add u-boot, dm-spl for lpuart0

2019-09-02 Thread Peng Fan
lpuart0 is the uart used by SPL and U-Boot proper, and DM_SERIAL is enabled. Since uclass power domain is also enabled, to make lpuart work properly, need add u-boot,dm-spl for lpuart power domain and its parent. Signed-off-by: Peng Fan --- arch/arm/dts/fsl-imx8qm-mek-u-boot.dtsi | 8

[U-Boot] [PATCH 1/7] imx8qm: mek: enable dm-spl for pm

2019-09-02 Thread Peng Fan
with u-boot,dm-spl added for imx8qm-pm node, and SPL_SIMPLE_BUS enabled, the bind and probe code in board file could be removed. Also we need to enlarge SYS_MALLOC_F_LEN to avoid calloc fail. Signed-off-by: Peng Fan --- arch/arm/dts/fsl-imx8qm-mek-u-boot.dtsi | 5 +

[U-Boot] [PATCH] core: device: support multiple power domains for one device

2019-09-02 Thread Peng Fan
When device has multiple power domains, power_domain_get could not able to support that. So let's iterate each power domain and enable it. Signed-off-by: Peng Fan --- drivers/core/device.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/core/device.c

Re: [U-Boot] [PATCH 2/2] configs: Add Khadas VIM3 defconfig

2019-09-02 Thread Neil Armstrong
On 02/09/2019 05:02, Andreas Färber wrote: > Am 02.09.19 um 04:28 schrieb Andreas Färber: >> diff --git a/board/amlogic/w400/README.khadas-vim3 >> b/board/amlogic/w400/README.khadas-vim3 >> new file mode 100644 >> index 00..39b2b06000 >> --- /dev/null >> +++

Re: [U-Boot] [PATCH 1/2] arm: dts: Import and update DT for Khadas VIM3

2019-09-02 Thread Neil Armstrong
Hi Andreas, On 02/09/2019 04:28, Andreas Färber wrote: > In Linux meson-g12-common.dtsi was introduced as well as new g12b nodes > and headers, as dependencies of new meson-g12b-a311d-khadas-vim3.dts. Can you precise the Linux commit ID you sync'ed from ? The best would be to sync from the v2

[U-Boot] [PATCH] arc: libgcc: Import __udivdi3 & __udivmoddi4 to allow 64-bit division

2019-09-02 Thread Alexey Brodkin
As reported by Kever here [1] we were unable to compile 64-bit division code due to missing definition of __udivdi3(). Import its implementation and __udivmoddi4() as its direct dependency from today's libgcc [2]. [1] https://patchwork.ozlabs.org/patch/1146845/ [2]

[U-Boot] Please pull from u-boot-i2c

2019-09-02 Thread Heiko Schocher
Hello Tom, one late pull request for u-boot-i2c as I missed Pengs patch... The following changes since commit 877294b56a52f1cb60bbfa7e4722fcc33451f7b2: Merge tag 'efi-2019-10-rc4' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi (2019-08-29 07:26:42 -0400) are available in the Git

Re: [U-Boot] [PATCH 2/2] dm: spi: Check cs number before accessing slaves

2019-09-02 Thread Bin Meng
On Thu, Aug 29, 2019 at 10:10 PM Bin Meng wrote: > > In spi_get_bus_and_cs() only bus number is checked before accessing > slaves. We should check cs number as well. > > Signed-off-by: Bin Meng > --- > > drivers/spi/spi-uclass.c | 6 ++ > 1 file changed, 6 insertions(+) > Ping?

Re: [U-Boot] [PATCH 1/2] dm: spi: Return 0 if driver does not implement ops->cs_info

2019-09-02 Thread Bin Meng
On Thu, Aug 29, 2019 at 10:10 PM Bin Meng wrote: > > If an SPI controller driver does not implement ops->cs_info, that > probably means any chip select number could be valid, hence let's > return 0 for spi_cs_info(). > > Signed-off-by: Bin Meng > --- > > drivers/spi/spi-uclass.c | 7 +++ >

Re: [U-Boot] [PATCH v2] i2c: mxc: add CONFIG_CLK support

2019-09-02 Thread Heiko Schocher
Hello Peng, Am 27.08.2019 um 11:55 schrieb Peng Fan: Hi Heiko, Subject: [PATCH v2] i2c: mxc: add CONFIG_CLK support Would you pick up this patch? Thanks, Peng. When CONFIG_CLK enabled, use CLK UCLASS for clk related settings. Signed-off-by: Peng Fan --- V2: use clk_get_rate when

Re: [U-Boot] [PATCH v2 01/16] rockchip: Add cpu-info

2019-09-02 Thread Kever Yang
On 2019/8/27 上午2:20, Jagan Teki wrote: Add cpu information for rockchip soc. This would help to print the SoC family number, with associated temparature, clock and reason for reset etc. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang Thanks, - Kever ---

Re: [U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-09-02 Thread Jun Nie
Jun Nie 于2019年7月11日周四 上午11:56写道: > > Enable verified boot from FIT image with select configs > and specify boot script image node in FIT image, the FIT > image is verified before it is run. > > Code that reusing dtb in firmware is disabled, so that > the dtb with pubic key packed in u-boot.bin

[U-Boot] [PATCH 1/1] env: net: U_BOOT_ENV_CALLBACKs should not depend on CMD_NET

2019-09-02 Thread Heinrich Schuchardt
Some environment variables are relevant for networking. For these U_BOOT_ENV_CALLBACKs have been defined. When the corresponding environment variable is updated the callback updates the state of the network sub-system. In the UEFI subsystem we can use the network even if CONFIG_CMD_NET is not

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-09-02 Thread Jun Nie
Jun Nie 于2019年8月8日周四 下午12:04写道: > > Jun Nie 于2019年7月16日周二 下午3:43写道: > > > > Support distro boot in pico-imx7d BL33 case with changing the enviroment > > variables. While the other two patches are for polishing clock code and > > for feature enablement. > > > > Jun Nie (3): > > pico-imx7d: add

Re: [U-Boot] [PATCH] mmc: dw_mmc: fix timeout calculate method

2019-09-02 Thread Kever Yang
Hi Alexey, On 2019/8/30 下午9:28, Alexey Brodkin wrote: Hi Kever, [snip] I think this tree does not including this patch, Peng drop it because of this issue, so you need to apply this patch in your branch to reproduce the problem. I have send out V2 patch for this fix with only using 32bit

  1   2   >