Re: [U-Boot] [PATCH v5 00/25] riscv: Adding RISC-V CPU and timer driver

2018-12-14 Thread Rick Chen
Hi Bin > > From: Bin Meng [mailto:bmeng...@gmail.com] > > Sent: Friday, December 14, 2018 9:22 AM > > To: Rick Jian-Zhi Chen(陳建志); Simon Glass; Lukas Auer; Anup Patel; U-Boot > > Mailing List > > Subject: Re: [PATCH v5 00/25] riscv: Adding RISC-V CPU and timer driver > > > > Hi Rick, > > > > On

Re: [U-Boot] [PATCH 1/9] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2018-12-14 Thread Chee, Tien Fong
On Wed, 2018-11-28 at 18:55 +0100, Marek Vasut wrote: > On 11/28/2018 05:17 PM, Chee, Tien Fong wrote: > > > > On Wed, 2018-11-28 at 16:10 +0100, Marek Vasut wrote: > > > > > > On 11/28/2018 03:49 PM, Chee, Tien Fong wrote: > > > > > > > > > > > > On Tue, 2018-11-27 at 13:07 +0100, Marek Vasut

Re: [U-Boot] [PATCH 16/16] MAINTAINERS: Add an entry for SPI NOR

2018-12-14 Thread Vignesh R
On 13/12/18 2:31 AM, Jagan Teki wrote: > On Wed, Dec 12, 2018 at 11:19 PM Vignesh R > wrote: >> >> Add myself as co-maintainer for U-Boot SPI NOR subsystem >> >> Signed-off-by: Vignesh R mailto:vigne...@ti.com>> >> --- >> Jagan, >> >> If you agree, I can help in

Re: [U-Boot] [PATCH] net: fix env flags for eth10addr and above

2018-12-14 Thread Simon Goldschmidt
+Tom On Sun, Dec 9, 2018 at 9:51 PM Simon Goldschmidt wrote: > > Am 22.11.2018 um 17:06 schrieb Simon Goldschmidt: > > With CONFIG_REGEX enabled, ETHADDR_WILDCARD is set up for up to 10 > > interfaces (0..9) as the number can only have one digit. > > > > On boards with more than 10 interfaces,

Re: [U-Boot] [PATCH] net: remove duplicate definition of ETHADDR_WILDCARD

2018-12-14 Thread Simon Goldschmidt
+ Tom On Sun, Dec 9, 2018 at 9:51 PM Simon Goldschmidt wrote: > > Am 22.11.2018 um 16:58 schrieb Simon Goldschmidt: > > ETHADDR_WILDCARD is defined as the same value in both env_flags.h > > and env_callback.h > > > > As env_callback.h includes env_flags.h, remove the duplicate definition > >

[U-Boot] [RESEND PATCH 1/2] ARM: qemu-arm: enable usb mass storage in default configuration

2018-12-14 Thread AKASHI Takahiro
This is a preparatory patch so that USB boot will be supported in distro boot script by default. Signed-off-by: AKASHI Takahiro --- configs/qemu_arm64_defconfig | 1 + configs/qemu_arm_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/qemu_arm64_defconfig

[U-Boot] [RESEND PATCH 0/2] uefi: support USB boot in distro boot

2018-12-14 Thread AKASHI Takahiro
# This patch set is the exact same exept dropping v1's patch#1 # Please also think of applying my removable disk support[1]. I think that it will be nice if we can install a distro linux from, say, USB memory with ISO image, to a hard disk off the shelf. Even with the current u-boot, we can do

[U-Boot] [RESEND PATCH v2 3/6] efi: hii: add guid package support

2018-12-14 Thread AKASHI Takahiro
Allow for handling GUID package in HII database protocol. Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 9 lib/efi_loader/efi_hii.c | 48 +++- 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/include/efi_api.h

Re: [U-Boot] [PATCH] qemu-arm: Add persistent environment support

2018-12-14 Thread Daniel Thompson
On Fri, Dec 14, 2018 at 08:00:11PM +0900, Takahiro Akashi wrote: > On Thu, Dec 13, 2018 at 02:43:58AM +0200, Tuomas Tynkkynen wrote: > > Hi Sumit, Takahiro, > > > > On Wed, 12 Dec 2018 10:42:56 +0900 > > Takahiro Akashi wrote: > > > > > On Tue, Dec 11, 2018 at 06:04:05PM +0530, Sumit Garg

Re: [U-Boot] [PATCH v2 0/2] SiFive UART support

2018-12-14 Thread Anup Patel
On Tue, Dec 11, 2018 at 8:32 PM Anup Patel wrote: > > This patchset adds SiFive UART driver for SiFive UART > found on SiFive boards. > > The driver is tested on QEMU sifive_u machine. In fact, > with this patchset same U-Boot binary boots on QEMU virt > machine and QEMU sifive_u machine in both

[U-Boot] [RESEND PATCH 2/2] ARM: qemu-arm: enable USB boot in distro boot with UEFI

2018-12-14 Thread AKASHI Takahiro
With this patch which adds a removable USB mass storage to a list of bootable devices, USB boot is supported in distro boot if UEFI is configured. Signed-off-by: AKASHI Takahiro --- include/configs/qemu-arm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/qemu-arm.h

[U-Boot] [RESEND PATCH v2 4/6] efi: hii: add keyboard layout package support

2018-12-14 Thread AKASHI Takahiro
Allow for handling keyboard layout package in HII database protocol. A package can be added or deleted in HII database protocol, but we don't set 'current' keyboard layout as there is no driver that requests a keyboard layout. Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 11

[U-Boot] [RESEND PATCH v2 1/6] lib: add u16_strcpy/strdup functions

2018-12-14 Thread AKASHI Takahiro
From: "Akashi, Takahiro" Add u16_strcpy() and u16_strdup(). The latter function will be used later in implementing efi HII database protocol. Signed-off-by: Akashi Takahiro --- include/charset.h | 23 +++ lib/charset.c | 29 + 2 files

[U-Boot] [RESEND PATCH v2 6/6] efi_selftest: add HII database protocols test

2018-12-14 Thread AKASHI Takahiro
This efi_selftest tests HII database protocol and HII string protocol. Signed-off-by: AKASHI Takahiro --- lib/efi_selftest/Makefile|1 + lib/efi_selftest/efi_selftest_hii.c | 1046 ++ lib/efi_selftest/efi_selftest_hii_data.c | 452 ++ 3

[U-Boot] [RESEND PATCH v2 5/6] efi: hii: add HII config routing/access protocols

2018-12-14 Thread AKASHI Takahiro
This patch is a place holder for HII configuration routing protocol and HII configuration access protocol. Signed-off-by: AKASHI Takahiro --- include/efi_api.h | 157 include/efi_loader.h| 4 + lib/efi_loader/Makefile | 2 +-

[U-Boot] [PATCH v1] mmc: fsl_esdhc: make get_cd work well in dm_mmc_ops

2018-12-14 Thread Yinbo Zhu
This patch is to make get_cd work well when DM_MMC enabled Signed-off-by: Yinbo Zhu --- drivers/mmc/fsl_esdhc.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 4528345..bbde8cf 100644 --- a/drivers/mmc/fsl_esdhc.c

Re: [U-Boot] [PATCH] qemu-arm: Add persistent environment support

2018-12-14 Thread Takahiro Akashi
On Thu, Dec 13, 2018 at 02:43:58AM +0200, Tuomas Tynkkynen wrote: > Hi Sumit, Takahiro, > > On Wed, 12 Dec 2018 10:42:56 +0900 > Takahiro Akashi wrote: > > > On Tue, Dec 11, 2018 at 06:04:05PM +0530, Sumit Garg wrote: > > > On Mon, 26 Nov 2018 at 16:51, Sumit Garg > > > wrote: > > > > > > >

Re: [U-Boot] [PATCH 03/16] spi: Add non DM version of SPI_MEM

2018-12-14 Thread Vignesh R
Hi, On 14/12/18 3:32 PM, Jagan Teki wrote: > On Thu, Dec 13, 2018 at 2:19 PM Vignesh R wrote: >> >> >> >> On 13/12/18 1:55 AM, Jagan Teki wrote: >>> On Wed, Dec 12, 2018 at 11:08 PM Vignesh R wrote: Add non DM version of SPI_MEM to support easy migration to new SPI NOR framework.

[U-Boot] [PATCH 2/2] efi_selftest: fix variables test for GetNextVariableName()

2018-12-14 Thread AKASHI Takahiro
There is a bug in efi variables test. Fix it with some cosmetic improvements. Please note that efi variables test still fails at QueryVariableInfo() and GetVariable(), but this is not due to a change in this patch. ==8<== Testing EFI API implementation Selected test: 'variables' Setting

[U-Boot] [PATCH 1/2] efi_loader: implement GetNextVariableName()

2018-12-14 Thread AKASHI Takahiro
The current GetNextVariableName() is a placeholder. With this patch, it works well as expected. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_variable.c | 116 +- 1 file changed, 115 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_variable.c

Re: [U-Boot] [PATCH 03/16] spi: Add non DM version of SPI_MEM

2018-12-14 Thread Jagan Teki
On Thu, Dec 13, 2018 at 2:19 PM Vignesh R wrote: > > > > On 13/12/18 1:55 AM, Jagan Teki wrote: > > On Wed, Dec 12, 2018 at 11:08 PM Vignesh R wrote: > >> > >> Add non DM version of SPI_MEM to support easy migration to new SPI NOR > >> framework. This can be removed once DM_SPI conversion is

Re: [U-Boot] [PATCH] evb_rk3399: revert CONFIG_SYS_MMC_ENV_DEV to 0

2018-12-14 Thread Philipp Tomsich
+Kever Max, > On 14.12.2018, at 09:21, Max Kellermann wrote: > > On 2018/12/13 22:59, Philipp Tomsich > wrote: >> On 04.12.2018, at 12:00, Max Kellermann wrote: >>> >>> This was changed to 1 in commit 0717dde057e, but a few months later, >>> commit 5f9411af37b swapped the order of eMMC and

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-14 Thread Jagan Teki
On Wed, Dec 12, 2018 at 11:02 PM Vignesh R wrote: > > U-Boot SPI NOR support (sf layer) is quite outdated as it does not > support 4 byte addressing opcodes, SFDP table parsing and different types of > quad mode enable sequences. Many newer flashes no longer support BANK > registers used by sf

Re: [U-Boot] [PATCH 1/1] usb: musb-new: sunxi: Fix null pointer access

2018-12-14 Thread Jagan Teki
On Thu, Dec 13, 2018 at 7:00 PM Marek Vasut wrote: > > On 12/13/2018 08:14 AM, Stefan Mavrodiev wrote: > > > > On 12/5/18 3:16 PM, Marek Vasut wrote: > >> On 12/05/2018 02:06 PM, Stefan Mavrodiev wrote: > >>> On 12/5/18 2:57 PM, Marek Vasut wrote: > On 12/05/2018 01:49 PM, Stefan Mavrodiev

Re: [U-Boot] [PATCH 1/1] arm: sunxi: Add NULL pointer check

2018-12-14 Thread Maxime Ripard
On Fri, Dec 14, 2018 at 03:48:18PM +0530, Jagan Teki wrote: > On Wed, Dec 5, 2018 at 5:58 PM Stefan Mavrodiev wrote: > > > > Current driver doesn't check if the destination pointer is NULL. > > This cause the data from the FIFO to be stored inside the internal > > SDRAM ( address 0 ). > > > > The

Re: [U-Boot] [PATCH 1/1] arm: sunxi: Add NULL pointer check

2018-12-14 Thread Maxime Ripard
On Thu, Dec 13, 2018 at 09:12:57AM +0200, Stefan Mavrodiev wrote: > > On 12/6/18 8:41 AM, Stefan Mavrodiev wrote: > > > > On 12/5/18 5:46 PM, Maxime Ripard wrote: > > > On Wed, Dec 05, 2018 at 02:27:57PM +0200, Stefan Mavrodiev wrote: > > > > Current driver doesn't check if the destination

Re: [U-Boot] [PATCH 03/16] spi: Add non DM version of SPI_MEM

2018-12-14 Thread Jagan Teki
On Thu, Dec 13, 2018 at 5:25 AM Boris Brezillon wrote: > > On Thu, 13 Dec 2018 04:40:30 +0530 > Jagan Teki wrote: > > > > > I do really understand your intention about the real question. > > - Any code or generic code will add in U-Boot should be driver-model > > driven, are you agree this

[U-Boot] [RESEND PATCH v2 0/6] subject: efi_loader: add HII database protocol

2018-12-14 Thread AKASHI Takahiro
HII database protocol is the last missing (major?) piece of code so that we can run unmodified EDKII's shell and UEFI SCT on EFI-enabled u-boot. The original code was initially written by Leif and Rob a year ago[1], and now I'm reworking it. The implementation has not been much enhanced from the

[U-Boot] [RESEND PATCH v2 2/6] efi_loader: Initial HII database protocols

2018-12-14 Thread AKASHI Takahiro
From: Leif Lindholm This patch provides enough implementation of the following protocols to run EDKII's Shell.efi and UEFI SCT: * EfiHiiDatabaseProtocol * EfiHiiStringProtocol Not implemented are: * ExportPackageLists() * RegisterPackageNotify()/UnregisterPackageNotify() *

Re: [U-Boot] [PATCH v3 7/7] MIPS: bootm: Add support for Vcore III linux kernel

2018-12-14 Thread Gregory CLEMENT
Hi Daniel, On lun., déc. 10 2018, Daniel Schwierzeck wrote: > Am 05.12.18 um 18:10 schrieb Gregory CLEMENT: >> The kernels built for the Vcore III linux kernel have different >> expectation in the way the data were passed. >> >> Unlike with yamon, the command line is expected to be a single

[U-Boot] [PATCH] hashtable: fix length calculation in hexport_r

2018-12-14 Thread AKASHI Takahiro
The commit below incorrectly fixed hexport_r(); > size = totlen + 1; One extra byte is necessary to NULL-terminate a whole buffer, "resp." Fixes: f1b20acb4a03 ("hashtable: Fix length calculation in hexport_r") Signed-off-by: AKASHI Takahiro --- lib/hashtable.c | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH v3] rockchip: rk3288-evb: dts: remove 'vmmc' from emmc node

2018-12-14 Thread Philipp Tomsich
> On 14.12.2018, at 02:37, Kever Yang wrote: > > This is a sync with kernel mainline dts. > > The U-Boot eMMC does not need to care about the power for Rockchip > SoCs, because if the board is using eMMC, the power will default on > (for bootrom), so the 'vmmc', 'vqmmc' is only useful for SD

Re: [U-Boot] [PATCH 1/1] arm: sunxi: Add NULL pointer check

2018-12-14 Thread Jagan Teki
On Wed, Dec 5, 2018 at 5:58 PM Stefan Mavrodiev wrote: > > Current driver doesn't check if the destination pointer is NULL. > This cause the data from the FIFO to be stored inside the internal > SDRAM ( address 0 ). > > The patch add simple check if the destination pointer is NULL. > >

Re: [U-Boot] [U-Boot, v2] Enable expression support for CONFIG_BOARD_SIZE_LIMIT

2018-12-14 Thread Tom Rini
On Fri, Dec 07, 2018 at 08:27:51PM +0100, Wolfgang Denk wrote: > So far, the use of CONFIG_BOARD_SIZE_LIMIT would only work with > plain numeric constants. Extend it to allow for expressions, so one > can for example use > > #define CONFIG_BOARD_SIZE_LIMIT (768 << 10) > > in the board

[U-Boot] [PATCH v6 9/9] tftp: prevent overwriting reserved memory

2018-12-14 Thread Simon Goldschmidt
This fixes CVE-2018-18439 ("insufficient boundary checks in network image boot") by using lmb to check for a valid range to store received blocks. Signed-off-by: Simon Goldschmidt --- Changes in v6: None Changes in v5: None Changes in v4: - this was patch 8, is now patch 7 - lines changed

[U-Boot] [PATCH v6 8/9] lmb: remove unused extern declaration

2018-12-14 Thread Simon Goldschmidt
lmb.h includes an extern declaration of "struct lmb lmb;" which is not used anywhere, so remove it. Signed-off-by: Simon Goldschmidt --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v2: - this patch is new in v2 include/lmb.h | 2 -- 1 file changed, 2 deletions(-)

Re: [U-Boot] [PATCH v2 1/2] bootcount: add uclass for bootcount

2018-12-14 Thread Philipp Tomsich
Simon, > On 14.12.2018, at 17:06, Simon Glass wrote: > > Hi Philipp, > > On Fri, 14 Dec 2018 at 09:04, Philipp Tomsich > > wrote: >> >> >> >> On 14.12.2018, at 16:37, Simon Glass wrote: >> >> Hi, >> >> On Mon, 10 Dec 2018 at 18:07, Simon

[U-Boot] [PATCH v6 7/9] bootm: use new common function lmb_init_and_reserve

2018-12-14 Thread Simon Goldschmidt
This reduces duplicate code only. Signed-off-by: Simon Goldschmidt --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v2: None common/bootm.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common/bootm.c b/common/bootm.c index

Re: [U-Boot] [PULL] Please pull u-boot-imx: u-boot-imx-20181214

2018-12-14 Thread Fabio Estevam
Hi Tom, On Fri, Dec 14, 2018 at 8:06 PM Tom Rini wrote: > I replied to Wolfgang's patch with the problem and I suggest that > pico-7d simply stop using >> as it's not going to work once we Kconfig > migrate anyhow. pico-imx7d does not use >>. I sent 5 different versions of this patch and the

Re: [U-Boot] [PULL] Please pull u-boot-imx: u-boot-imx-20181214

2018-12-14 Thread Tom Rini
On Fri, Dec 14, 2018 at 08:09:18PM -0200, Fabio Estevam wrote: > Hi Tom, > > On Fri, Dec 14, 2018 at 8:06 PM Tom Rini wrote: > > > I replied to Wolfgang's patch with the problem and I suggest that > > pico-7d simply stop using >> as it's not going to work once we Kconfig > > migrate anyhow. >

Re: [U-Boot] [PATCH] ARM: mach-omap2: omap3: Fix GPIO clocking in SPL

2018-12-14 Thread Liam O'Shaughnessey
Not sure why, but this patch didn't work for me on omap3_overo and would like to NAK this patch. I needed to change to: #if defined(CONFIG_OMAP3_GPIO2) On Fri, Dec 14, 2018 at 12:49 PM Adam Ford wrote: > OMAP3_GPIO_x is needed to enable each GPIO bank on the OMAP3 > boards. At one point, the

Re: [U-Boot] [PATCH] ARM: mach-omap2: omap3: Fix GPIO clocking in SPL

2018-12-14 Thread Adam Ford
On Fri, Dec 14, 2018 at 4:21 PM Liam O'Shaughnessey wrote: > > Not sure why, but this patch didn't work for me on omap3_overo and would like > to NAK this patch. I needed to change to: > > #if defined(CONFIG_OMAP3_GPIO2) > blah! I forgot to add the CONFIG_ prefix. My bad. A V2 is now

[U-Boot] [PATCH] test: bootcount: add bootcount-uclass test

2018-12-14 Thread Philipp Tomsich
Add a test for the bootcount uclass, which uses the RTC bootcount backend (i.e. drivers/bootcount/rtc.c is implictly also tested). Signed-off-by: Philipp Tomsich --- arch/sandbox/dts/test.dts | 6 ++ configs/sandbox_defconfig | 11 +++ test/dm/Makefile | 1 +

[U-Boot] [PATCH 1/1] tests: enable DT overlay tests by default

2018-12-14 Thread Heinrich Schuchardt
Enable device tree overlay tests by default if unit tests are selected. Overlays have been mainlined in the device tree compiler so there is no reason anymore to disable the tests by default. Signed-off-by: Heinrich Schuchardt --- test/overlay/Kconfig | 5 ++--- 1 file changed, 2

[U-Boot] [PATCH v2 1/1] tests: enable DT overlay tests by default

2018-12-14 Thread Heinrich Schuchardt
Enable device tree overlay tests by default if unit tests are selected and the runtime is configured via device tree. Overlays have been mainlined in the device tree compiler so there is no reason anymore to disable the tests by default. Signed-off-by: Heinrich Schuchardt --- We cannot select

Re: [U-Boot] [PULL] Please pull u-boot-imx: u-boot-imx-20181214

2018-12-14 Thread Tom Rini
gt; >> > >> > >> The following changes since commit > >> c49aff3e66b930aa06936afee401cf5e19377958: > >> > >> Merge branch 'master' of git://git.denx.de/u-boot-sunxi (2018-12-07 > >> 19:02:01 -0500) > >> > >> are available in th

[U-Boot] [PATCH V2] ARM: mach-omap2: omap3: Fix GPIO clocking in SPL

2018-12-14 Thread Adam Ford
OMAP3_GPIO_x is needed to enable each GPIO bank on the OMAP3 boards. At one point, the #ifdef's were replaced with if CONFIG_IS_ENABLED but this won't work for people who need OMAP3_GPIO_x in SPL since the SPL prefix for this option isn't used in Kconfig. This patch moves the check to #if defined

[U-Boot] [PATCH v6 4/9] fdt: parse "reserved-memory" for memory reservation

2018-12-14 Thread Simon Goldschmidt
boot_fdt_add_mem_rsv_regions() adds reserved memory sections to an lmb struct. Currently, it only parses regions described by /memreserve/ entries. Extend this to the more commonly used scheme of the "reserved-memory" node. Signed-off-by: Simon Goldschmidt --- Changes in v6: - fix compiling

[U-Boot] SPL boot on linaro qemu

2018-12-14 Thread Matthew Weber
Does anyone happen to know why I'd see the following output when trying to boot the latest uboot configs/omap3_overo_defconfig target's SPL in a SD image on linaro's qemu? U-Boot SPL 2018.09 (Dec 14 2018 - 15:15:38 -0600) SPL: failed to boot from all boot devices After manually setting the boot

[U-Boot] [PATCH] MAINTAINERS: update NXP i.MX mail list address

2018-12-14 Thread Peng Fan
Update NXP i.MX mail list address Signed-off-by: Peng Fan --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 0cec39c542..fe2a1c9db5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -123,7 +123,7 @@ F: drivers/spi/bcmstb_spi.c ARM

Re: [U-Boot] Quick question on i.MX8MQ

2018-12-14 Thread Peng Fan
Hi Sergey, > -Original Message- > From: Sergey Kubushyn [mailto:k...@koi8.net] > Sent: 2018年12月15日 7:38 > To: U-Boot list > Cc: Peng Fan > Subject: Quick question on i.MX8MQ > > I'm working on a i.MX8MQ port to our new device that is in very advanced > manufacturing stage. It is not a

[U-Boot] [PATCH v6 6/9] fs: prevent overwriting reserved memory

2018-12-14 Thread Simon Goldschmidt
This fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by using lmb to check the load size of a file against reserved memory addresses. Signed-off-by: Simon Goldschmidt --- Changes in v6: - fixed NULL pointer access in 'fdt_blob' passed to

Re: [U-Boot] [BeagleBone Black] Possible bug in U-Boot efi loader for BeagleBone Black

2018-12-14 Thread Heinrich Schuchardt
On 12/14/18 3:58 PM, Dominik Adamski wrote: > On 12/12/18 7:11 PM, Heinrich Schuchardt wrote: >> On 12/12/18 3:02 PM, Dominik Adamski wrote: >>> Hello, >>> I think that I have found a bug in U-Boot UEFI implementation for >>> BeagleBone Black board. >>> >>> I have tested U-Boot UEFI implementation

Re: [U-Boot] MIPS (mt7688): EBase change in U-Boot breaks Linux

2018-12-14 Thread Paul Burton
Hi Stefan, On Fri, Dec 14, 2018 at 07:56:59AM +0100, Stefan Roese wrote: > > Does this Linux patch help by any chance? > > > > https://git.linux-mips.org/cgit/linux-mti.git/commit/?h=eng-v4.20=39e4d339a4540b66e9d9a8ea0da9ee41a21473b4 > > > > I'm not sure I remember why I didn't get that

[U-Boot] [PATCH] Makefile: output migration warnings to stderr

2018-12-14 Thread Chris Packham
Output the device model migration warnings to stderr. This allows tools like buildman to pick them up rather than suppressing them along with the normal build output on stdout. Signed-off-by: Chris Packham --- One odd behaviour is that when a board has multiple warnings the header/trailer lines

[U-Boot] [PATCH v6 2/9] lmb: fix allocation at end of address range

2018-12-14 Thread Simon Goldschmidt
The lmb code fails if base + size of RAM overflows to zero. Fix this by calculating end as 'base + size - 1' instead of 'base + size' where appropriate. Added tests to assert this is fixed. Signed-off-by: Simon Goldschmidt --- Changes in v6: None Changes in v5: - this patch is new in v5

[U-Boot] [PATCH v6 5/9] lib: lmb: extend lmb for checks at load time

2018-12-14 Thread Simon Goldschmidt
This adds two new functions, lmb_alloc_addr and lmb_get_unreserved_size. lmb_alloc_addr behaves like lmb_alloc, but it tries to allocate a pre-specified address range. Unlike lmb_reserve, this address range must be inside one of the memory ranges that has been set up with lmb_add.

[U-Boot] [PATCH v6 3/9] lib: lmb: reserving overlapping regions should fail

2018-12-14 Thread Simon Goldschmidt
lmb_add_region handles overlapping regions wrong: instead of merging or rejecting to add a new reserved region that overlaps an existing one, it just adds the new region. Since internally the same function is used for lmb_alloc, change lmb_add_region to reject overlapping regions. Also, to keep

[U-Boot] [PATCH] ARM: mach-omap2: omap3: Fix GPIO clocking in SPL

2018-12-14 Thread Adam Ford
OMAP3_GPIO_x is needed to enable each GPIO bank on the OMAP3 boards. At one point, the #ifdef's were replaced with if CONFIG_IS_ENABLED but this won't work for people who need OMAP3_GPIO_x in SPL since the SPL prefix for this option isn't used in Kconfig. This patch moves the check to #if defined

[U-Boot] [PATCH 1/1] test: tests for u16_strdup() and u16_strcpy()

2018-12-14 Thread Heinrich Schuchardt
Provide unit tests for u16_strdup() and u16_strcpy(). Cc: AKASHI Takahiro Signed-off-by: Heinrich Schuchardt --- This patch is a follow up to Takahiro's patch "lib: add u16_strcpy/strdup functions" https://lists.denx.de/pipermail/u-boot/2018-December/352019.html --- test/unicode_ut.c | 23

Re: [U-Boot] [PATCH] evb_rk3399: revert CONFIG_SYS_MMC_ENV_DEV to 0

2018-12-14 Thread Max Kellermann
On 2018/12/13 22:59, Philipp Tomsich wrote: > On 04.12.2018, at 12:00, Max Kellermann wrote: > > > > This was changed to 1 in commit 0717dde057e, but a few months later, > > commit 5f9411af37b swapped the order of eMMC and SD card by assigning > > indexed aliases to `` and ``. > > If this is

Re: [U-Boot] [PATCH v1 3/4] ARM: vf610: ddrmc: fix initialization completion detection

2018-12-14 Thread Stefan Agner
Lukasz, Stefano, On 04.12.2018 12:20, Stefan Agner wrote: > On 04.12.2018 11:59, Lukasz Majewski wrote: >> Hi Stefan, >> >>> From: Stefan Agner >>> >>> The CR80 register has multiple interrupt bits, the code is supposed >>> to check bit 8 but instead uses a logical and. In most cases this >>>

Re: [U-Boot] [PATCH] net: fix env flags for eth10addr and above

2018-12-14 Thread Tom Rini
On Fri, Dec 14, 2018 at 09:56:19AM +0100, Simon Goldschmidt wrote: > +Tom > > On Sun, Dec 9, 2018 at 9:51 PM Simon Goldschmidt > wrote: > > > > Am 22.11.2018 um 17:06 schrieb Simon Goldschmidt: > > > With CONFIG_REGEX enabled, ETHADDR_WILDCARD is set up for up to 10 > > > interfaces (0..9) as

[U-Boot] [PATCH] Restore compatibility of image type IDs

2018-12-14 Thread Stefano Babic
Commit a2b96ece5be146f4995d737f047e5bbb76079b8f breaks the enumeration of the Image Types. New image types can be appended, but they cannot be inserted in the list else backward compatibility is broken. This restores the images types as before 2018.11 and move i.MX8 related images at the end.

Re: [U-Boot] [PATCH 1/1] arm: sunxi: Add NULL pointer check

2018-12-14 Thread Stefan Mavrodiev
On 12/14/18 11:25 AM, Maxime Ripard wrote: On Thu, Dec 13, 2018 at 09:12:57AM +0200, Stefan Mavrodiev wrote: On 12/6/18 8:41 AM, Stefan Mavrodiev wrote: On 12/5/18 5:46 PM, Maxime Ripard wrote: On Wed, Dec 05, 2018 at 02:27:57PM +0200, Stefan Mavrodiev wrote: Current driver doesn't check if

Re: [U-Boot] [PATCH] Restore compatibility of image type IDs

2018-12-14 Thread Philipp Tomsich
Stefano, > On 14.12.2018, at 15:04, Stefano Babic wrote: > > Commit a2b96ece5be146f4995d737f047e5bbb76079b8f breaks the enumeration > of the Image Types. New image types can be appended, but they cannot be > inserted in the list else backward compatibility is broken. > This restores the images

Re: [U-Boot] [PATCH 1/1] arm: sunxi: Add NULL pointer check

2018-12-14 Thread Jagan Teki
On Fri, Dec 14, 2018 at 4:19 PM Maxime Ripard wrote: > > On Fri, Dec 14, 2018 at 03:48:18PM +0530, Jagan Teki wrote: > > On Wed, Dec 5, 2018 at 5:58 PM Stefan Mavrodiev wrote: > > > > > > Current driver doesn't check if the destination pointer is NULL. > > > This cause the data from the FIFO to

[U-Boot] sunxi: regression in dram init for h3 board

2018-12-14 Thread Karl Palsson
Hi, The commit: a8011eb84dfac5187cebf00ed8bc981bdb5c1fa1 Author: Olliver Schinagl Date: Wed Nov 21 20:05:25 2018 +0200 sunxi: board: Print error after power initialization fails causes a regression in DRAM init/detection on (at least) the sunxi H3 nanopi board I have. (The exact board

Re: [U-Boot] buildman and "echo" output?

2018-12-14 Thread Tom Rini
On Fri, Dec 14, 2018 at 08:21:36PM +1300, Chris Packham wrote: > Hi Tom, Simon, > > On Fri, Dec 14, 2018 at 5:01 AM Tom Rini wrote: > > > > Hey Simon, > > > > How hard would it be to have buildman notice and print out the echo'd > > warnings we have in the toplevel Makefile? By which I mean if

Re: [U-Boot] [PATCH v5 0/9] Fix CVE-2018-18440 and CVE-2018-18439

2018-12-14 Thread Simon Goldschmidt
On Tue, Dec 11, 2018 at 10:05 PM Simon Goldschmidt wrote: > > Am 11.12.2018 um 21:10 schrieb Tom Rini: > > On Tue, Dec 11, 2018 at 04:19:44PM +0100, Simon Goldschmidt wrote: > >> Hi Tom, > >> > >> [truncated the CC list a bit since I got "too many recipients" errors last > >> time] > >> > >> Am

Re: [U-Boot] [PATCH v1] tools: logos: crop Toradex logo slightly

2018-12-14 Thread Tom Rini
On Fri, Dec 14, 2018 at 02:26:22PM +0100, Stefan Agner wrote: > On 14.12.2018 14:20, Tom Rini wrote: > > On Fri, Dec 14, 2018 at 02:13:46PM +0100, Stefan Agner wrote: > >> Hi Tom, > >> > >> On 08.12.2018 17:48, Lukasz Majewski wrote: > >> > Hi Stefan, > >> > > >> >> From: Stefan Agner > >> >> >

[U-Boot] [PULL] Please pull u-boot-imx: u-boot-imx-20181214

2018-12-14 Thread Stefano Babic
/u-boot-imx-20181214 for you to fetch changes up to 5d0f0b567c78197db6f2f47c89a18b44ade28284: pico-imx7d: Increase the CONFIG_ENV_OFFSET size (2018-12-14 14:30:57 +0100) imx for 2019.01 - introduce support for i.MX8M - fix size

Re: [U-Boot] [PATCH v1] tools: logos: crop Toradex logo slightly

2018-12-14 Thread Stefano Babic
On 14/12/18 14:30, Tom Rini wrote: > On Fri, Dec 14, 2018 at 02:26:22PM +0100, Stefan Agner wrote: >> On 14.12.2018 14:20, Tom Rini wrote: >>> On Fri, Dec 14, 2018 at 02:13:46PM +0100, Stefan Agner wrote: Hi Tom, On 08.12.2018 17:48, Lukasz Majewski wrote: > Hi Stefan, >

[U-Boot] [PATCH v1] ARM: vf610: ddrmc: program Dummy DDRBYTE1/2

2018-12-14 Thread Stefan Agner
From: Stefan Agner The Vybrid reference manual VFXXXRM Rev. 0 10/2016 states in chapter 5.2.6.1 DUMMY PADS (DDR/QuadSPI) that those pads need to be programed for correct operation of DDR. Assume the default DDR pin configuration which seems to work well on a Colibri VF50. Signed-off-by: Stefan

Re: [U-Boot] [PATCH] arm: ti: boot: Increase system partition size

2018-12-14 Thread Sam Protsenko
Hi Praneeth, On Fri, Dec 14, 2018 at 1:37 AM Bajjuri, Praneeth wrote: > > Sam, > > On 12/11/2018 10:26 AM, Bajjuri, Praneeth wrote: > > > > On 12/11/2018 10:20 AM, Sam Protsenko wrote: > >> Android code base is growing, so since Android "Pie" the size of > >> system.img grew up to be about 740

Re: [U-Boot] [PATCH v5 0/9] Fix CVE-2018-18440 and CVE-2018-18439

2018-12-14 Thread Tom Rini
On Fri, Dec 14, 2018 at 02:06:38PM +0100, Simon Goldschmidt wrote: > On Tue, Dec 11, 2018 at 10:05 PM Simon Goldschmidt > wrote: > > > > Am 11.12.2018 um 21:10 schrieb Tom Rini: > > > On Tue, Dec 11, 2018 at 04:19:44PM +0100, Simon Goldschmidt wrote: > > >> Hi Tom, > > >> > > >> [truncated the CC

Re: [U-Boot] [PATCH] net: remove duplicate definition of ETHADDR_WILDCARD

2018-12-14 Thread Tom Rini
On Fri, Dec 14, 2018 at 09:55:32AM +0100, Simon Goldschmidt wrote: > + Tom > > > On Sun, Dec 9, 2018 at 9:51 PM Simon Goldschmidt > wrote: > > > > Am 22.11.2018 um 16:58 schrieb Simon Goldschmidt: > > > ETHADDR_WILDCARD is defined as the same value in both env_flags.h > > > and env_callback.h >

Re: [U-Boot] [PATCH] net: remove duplicate definition of ETHADDR_WILDCARD

2018-12-14 Thread Simon Goldschmidt
On Fri, Dec 14, 2018 at 2:28 PM Tom Rini wrote: > > On Fri, Dec 14, 2018 at 09:55:32AM +0100, Simon Goldschmidt wrote: > > + Tom > > > > > > On Sun, Dec 9, 2018 at 9:51 PM Simon Goldschmidt > > wrote: > > > > > > Am 22.11.2018 um 16:58 schrieb Simon Goldschmidt: > > > > ETHADDR_WILDCARD is

Re: [U-Boot] [PATCH] imx6: apalis: Make the boot process more generic

2018-12-14 Thread Stefano Babic
Hi Petr, On 01/12/18 14:00, Petr Štetiar wrote: > I'm preparing support for Apalis imx6 boards in OpenWrt and I've ended > up with quite huge patchset against upstream U-Boot 2018.03, so I'm > trying to propose more generic way of boot process handling. > > In OpenWrt we usually have kernel,

Re: [U-Boot] [PATCH] Restore compatibility of image type IDs

2018-12-14 Thread Stefano Babic
On 14/12/18 15:18, Philipp Tomsich wrote: > Stefano, > >> On 14.12.2018, at 15:04, Stefano Babic wrote: >> >> Commit a2b96ece5be146f4995d737f047e5bbb76079b8f breaks the enumeration >> of the Image Types. New image types can be appended, but they cannot be >> inserted in the list else backward

Re: [U-Boot] [PATCH v1] tools: logos: crop Toradex logo slightly

2018-12-14 Thread Stefan Agner
Hi Tom, On 08.12.2018 17:48, Lukasz Majewski wrote: > Hi Stefan, > >> From: Stefan Agner >> >> The current bitmap is a bit larger than necessary, it has a black >> border around the Toradex logo. Crop the logo slightly which safes >> some space, useful especially on Colibri VFxx. > > I can

Re: [U-Boot] [PATCH v1] tools: logos: crop Toradex logo slightly

2018-12-14 Thread Tom Rini
On Fri, Dec 14, 2018 at 02:13:46PM +0100, Stefan Agner wrote: > Hi Tom, > > On 08.12.2018 17:48, Lukasz Majewski wrote: > > Hi Stefan, > > > >> From: Stefan Agner > >> > >> The current bitmap is a bit larger than necessary, it has a black > >> border around the Toradex logo. Crop the logo

Re: [U-Boot] [PATCH V2 08/15] tools: add i.MX8M image support

2018-12-14 Thread Stefano Babic
Hi Peng, On 20/11/18 11:19, Peng Fan wrote: > i.MX8M bootable image type is like i.MX6/7, but there is signed HDMI > firmware image in front of A53 bootable image, which is also has an IVT > header. > > Here we also include fit image to generate a bootable image. > > Signed-off-by: Peng Fan >

Re: [U-Boot] [PATCH v1] tools: logos: crop Toradex logo slightly

2018-12-14 Thread Stefan Agner
On 14.12.2018 14:20, Tom Rini wrote: > On Fri, Dec 14, 2018 at 02:13:46PM +0100, Stefan Agner wrote: >> Hi Tom, >> >> On 08.12.2018 17:48, Lukasz Majewski wrote: >> > Hi Stefan, >> > >> >> From: Stefan Agner >> >> >> >> The current bitmap is a bit larger than necessary, it has a black >> >>

Re: [U-Boot] [PATCH 03/16] spi: Add non DM version of SPI_MEM

2018-12-14 Thread Jagan Teki
On Fri, Dec 14, 2018 at 4:26 PM Vignesh R wrote: > > Hi, > > On 14/12/18 3:32 PM, Jagan Teki wrote: > > On Thu, Dec 13, 2018 at 2:19 PM Vignesh R wrote: > >> > >> > >> > >> On 13/12/18 1:55 AM, Jagan Teki wrote: > >>> On Wed, Dec 12, 2018 at 11:08 PM Vignesh R wrote: > > Add non DM

[U-Boot] [PATCH v3 1/2] drivers: serial: Add SiFive UART driver

2018-12-14 Thread Anup Patel
This patch adds SiFive UART driver. The driver is 100% DM driver and it determines input clock using clk framework. Signed-off-by: Anup Patel Reviewed-by: Palmer Dabbelt Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/serial/Kconfig | 13 ++ drivers/serial/Makefile|

[U-Boot] [PATCH v3 2/2] riscv: qemu: Imply SIFIVE_SERIAL for emulation

2018-12-14 Thread Anup Patel
This patch enables SiFive UART driver for QEMU RISC-V emulation by implying SIFIVE_SERIAL on BOARD_SPECIFIC_OPTIONS. Signed-off-by: Anup Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- board/emulation/qemu-riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v3 0/2] SiFive UART support

2018-12-14 Thread Anup Patel
This patchset adds SiFive UART driver for SiFive UART found on SiFive boards. The driver is tested on QEMU sifive_u machine. In fact, with this patchset same U-Boot binary boots on QEMU virt machine and QEMU sifive_u machine in both M-mode and S-mode. The patches are based upon latest RISC-V

[U-Boot] [PATCH] ARM: at91: Convert SPL_GENERATE_ATMEL_PMECC_HEADER to Kconfig

2018-12-14 Thread Derald D. Woods
This commit converts the following items to Kconfig: CONFIG_ATMEL_NAND_HWECC CONFIG_ATMEL_NAND_HW_PMECC CONFIG_PMECC_CAP CONFIG_PMECC_SECTOR_SIZE CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER [PMECC References] https://www.at91.com/linux4sam/bin/view/Linux4SAM/PmeccConfigure

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-14 Thread Stefan Roese
On 14.12.18 17:27, Vignesh R wrote: On 14-Dec-18 9:44 PM, Simon Goldschmidt wrote: Am Fr., 14. Dez. 2018, 16:59 hat Vignesh R mailto:vigne...@ti.com>> geschrieben: On 14/12/18 3:43 PM, Jagan Teki wrote: > On Wed, Dec 12, 2018 at 11:02 PM Vignesh R mailto:vigne...@ti.com>> wrote:

[U-Boot] Quick question on i.MX8MQ

2018-12-14 Thread Sergey Kubushyn
I'm working on a i.MX8MQ port to our new device that is in very advanced manufacturing stage. It is not a board but a self-contained terminal that is going into production really soon (various molds are being done, mechanical parts, wire harnesses and so on) so it would hardly be of general

Re: [U-Boot] [PATCH] ARM: mach-omap2: omap3: Fix GPIO clocking in SPL

2018-12-14 Thread Liam O'Shaughnessey
V2 works for me on omap3_overo. Tested-by: Liam O'Shaughnessy On Fri, Dec 14, 2018 at 2:39 PM Adam Ford wrote: > > On Fri, Dec 14, 2018 at 4:21 PM Liam O'Shaughnessey > wrote: > > > > Not sure why, but this patch didn't work for me on omap3_overo and would > > like to NAK this patch. I

[U-Boot] Please pull u-boot-dm

2018-12-14 Thread Simon Glass
Hi Tom, See here (the one failure seems to be a network error) https://travis-ci.org/sglass68/u-boot/builds/46333 The following changes since commit d117d8f19b0625f88309e47a8a32c2faa384dddc: Merge branch 'master' of git://git.denx.de/u-boot-i2c (2018-12-13 09:36:55 -0500) are available

Re: [U-Boot] [PATCH v2 04/22] dm: sound: Create a uclass for audio codecs

2018-12-14 Thread sjg
An audio codec provides a way to convert digital data to sound and vice versa. Add a simple uclass which just supports setting the parameters for the codec. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/dts/test.dts | 7 - arch/sandbox/include/asm/test.h | 10

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-14 Thread Vignesh R
On 14/12/18 3:43 PM, Jagan Teki wrote: > On Wed, Dec 12, 2018 at 11:02 PM Vignesh R wrote: >> >> U-Boot SPI NOR support (sf layer) is quite outdated as it does not >> support 4 byte addressing opcodes, SFDP table parsing and different types of >> quad mode enable sequences. Many newer flashes no

Re: [U-Boot] [PATCH 1/1] arm: sunxi: Add NULL pointer check

2018-12-14 Thread Maxime Ripard
On Fri, Dec 14, 2018 at 04:14:31PM +0200, Stefan Mavrodiev wrote: > > On 12/14/18 11:25 AM, Maxime Ripard wrote: > > On Thu, Dec 13, 2018 at 09:12:57AM +0200, Stefan Mavrodiev wrote: > > > On 12/6/18 8:41 AM, Stefan Mavrodiev wrote: > > > > On 12/5/18 5:46 PM, Maxime Ripard wrote: > > > > > On

Re: [U-Boot] [PATCH v2 1/2] bootcount: add uclass for bootcount

2018-12-14 Thread Philipp Tomsich
> On 14.12.2018, at 16:37, Simon Glass wrote: > > Hi, > > On Mon, 10 Dec 2018 at 18:07, Simon Glass > wrote: >> >> Hi Philipp, >> >> On Tue, 27 Nov 2018 at 15:00, Philipp Tomsich >> wrote: >>> >>> The original bootcount methods do not provide an interface to DM

Re: [U-Boot] [PATCH v2 1/2] bootcount: add uclass for bootcount

2018-12-14 Thread Simon Glass
Hi Philipp, On Fri, 14 Dec 2018 at 09:04, Philipp Tomsich wrote: > > > > On 14.12.2018, at 16:37, Simon Glass wrote: > > Hi, > > On Mon, 10 Dec 2018 at 18:07, Simon Glass wrote: > > > Hi Philipp, > > On Tue, 27 Nov 2018 at 15:00, Philipp Tomsich > wrote: > > > The original bootcount methods

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-14 Thread Simon Goldschmidt
Am Fr., 14. Dez. 2018, 16:59 hat Vignesh R geschrieben: > On 14/12/18 3:43 PM, Jagan Teki wrote: > > On Wed, Dec 12, 2018 at 11:02 PM Vignesh R wrote: > >> > >> U-Boot SPI NOR support (sf layer) is quite outdated as it does not > >> support 4 byte addressing opcodes, SFDP table parsing and

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-14 Thread Vignesh R
On 14-Dec-18 9:44 PM, Simon Goldschmidt wrote: > > > Am Fr., 14. Dez. 2018, 16:59 hat Vignesh R > geschrieben: > > On 14/12/18 3:43 PM, Jagan Teki wrote: > > On Wed, Dec 12, 2018 at 11:02 PM Vignesh R > wrote: > >> > >>

  1   2   >