Re: [U-Boot] [RESEND][PATCH v1 0/3] Add STM32MP157 regulator driver

2018-04-29 Thread Jaehoon Chung
Hi, On 04/27/2018 12:11 AM, Patrice CHOTARD wrote: > it misses one patch, sorry > i ressend it right now "[RESEND][PATCH v1 0/4] " are right? Best Regards, Jaehoon Chung > > Patrice > > On 04/26/2018 04:42 PM, Patrice Chotard wrote: >> >> This series : >>_ adds stpmu1 regulator drive

Re: [U-Boot] dm: mmc: socfpga: call dwmci_probe()

2018-04-29 Thread Jaehoon Chung
On 04/27/2018 05:48 PM, Marek Vasut wrote: > On 04/27/2018 10:35 AM, Jaehoon Chung wrote: >> Dear Marek, >> >> On 04/26/2018 09:01 PM, Marek Vasut wrote: >>> On 04/26/2018 12:30 PM, Jaehoon Chung wrote: Hi, On 03/06/2018 05:07 PM, linux-kernel-...@beckhoff.com wrote: > From: Patr

Re: [U-Boot] u-boot 2018 SPI SPL

2018-04-29 Thread Mehmet Ali İPİN
Dear Fabio, Windows 10 tried but could not load the device driver of our eMMC (micron tech MTFC4GLDDQ). Then I programmed SPL and u-boot.img into eMMC with u-boot commands; even SPI flash based SPL see the MMC1(eMMC), u-boot did not run correctly. As shown below, I put printf/puts messages in

Re: [U-Boot] [PATCH 2/2] spi: kirkwood: Full dm conversion

2018-04-29 Thread Jagan Teki
On Fri, Apr 27, 2018 at 2:21 PM, Simon Guinot wrote: > On Thu, Apr 26, 2018 at 11:30:00AM +0530, Jagan Teki wrote: >> On Thu, Mar 15, 2018 at 5:03 PM, Jagan Teki >> wrote: >> > kirkwood now support dt along with platform data, >> > respective boards need to switch into dm for the same. >> >> Add

Re: [U-Boot] mainline u-boot on radxarock (rockchip rk3188) from SDcard

2018-04-29 Thread Trevor Woerner
On Sun 2018-04-29 @ 01:35:18 AM, Trevor Woerner wrote: > I am able to generate a bootable image (bootloader, parameter, kernel, > filesystem) for my radxarock (pro) on an SDcard if I use the bootloader from > https://github.com/radxa/u-boot-rockchip. When I try to use mainline > u-boot_2008.01 I w

Re: [U-Boot] image: Display FIT signature for configs

2018-04-29 Thread Clément Péron
> I think this is fine, but can you please re-post with a Signed off by > line? Thanks! > -- > Tom Yes I will, and also missed to substitute "image" by "configuration" in the comments, Thanks, Clement ___ U-Boot mailing list U-Boot@lists.denx.de https

[U-Boot] [PATCH v2 1/1] efi_loader: if EFI_LOADER is enabled, enable CFB_CONSOLE_ANSI

2018-04-29 Thread Heinrich Schuchardt
EFI applications like GRUB issue ANSI sequences for setting colors and for positioning. So if the EFI subsystem is enabled, we should also enable ANSI control sequences by default. Signed-off-by: Heinrich Schuchardt --- v2 Use 'imply' instead of 'default if'. --- lib/efi_loader/Kconfig |

Re: [U-Boot] [U-Boot, 2/2] tools: mkenvimage: Fix possible segfault on stdin input

2018-04-29 Thread Tom Rini
On Fri, Apr 20, 2018 at 03:29:31PM +0200, Alexander Dahl wrote: > The size of 'filebuf' was not increased as more and more bytes are read > from stdin, but 'filebuf' was always reallocated to the same fix size. > This works as long as only less bytes than the initial buffer size come > in, for mor

Re: [U-Boot] [U-Boot, v2, 7/8] Consolidate __assert_failed into one implementation

2018-04-29 Thread Tom Rini
On Thu, Apr 19, 2018 at 04:32:56AM +, Alex Kiernan wrote: > We had two implementations of __assert_failed which were almost identical, > combine them into one. > > Signed-off-by: Alex Kiernan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, 1/2] tools: mkenvimage: Fix read() stdin error handling

2018-04-29 Thread Tom Rini
On Fri, Apr 20, 2018 at 03:29:30PM +0200, Alexander Dahl wrote: > On success read() returns the number of bytes read or zero for EOF. On > error -1 is returned and errno is set, so the right way to test if read > had failed is to test the return value instead of errno. > > Signed-off-by: Alexande

Re: [U-Boot] tools: mkimage: Check for datafile when type is script

2018-04-29 Thread Tom Rini
On Sun, Apr 22, 2018 at 05:11:17AM +, Alex Kiernan wrote: > If generating a script image and no datafile has been passed in, mkimage > dies with SIGSEGV: > > #0 __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:32 > #1 0x00403818 in main > at tools/mkimage.c:503

Re: [U-Boot] test: dm: regmap: fix license header

2018-04-29 Thread Tom Rini
On Fri, Apr 27, 2018 at 01:07:21AM +0900, Masahiro Yamada wrote: > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/l

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

2018-04-29 Thread Tom Rini
On Fri, Apr 27, 2018 at 06:32:53PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit 275d80a4c2fb63890f3f4c16b7ad481064e650a0: > > Merge git://git.denx.de/u-boot-usb (2018-04-22 09:30:36 -0400) > > are available in the Gi

Re: [U-Boot] [U-Boot,v2,6/8] spl: Disable printf if not required

2018-04-29 Thread Tom Rini
On Thu, Apr 19, 2018 at 04:32:55AM +, Alex Kiernan wrote: > Now we have a guard for printf, disable it in the build if it's not > selected. > > Signed-off-by: Alex Kiernan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, v1, 2/2] serial: serial_stm32: Rename status register flags

2018-04-29 Thread Tom Rini
On Fri, Apr 20, 2018 at 08:59:07AM +0200, Patrice Chotard wrote: > Uart status register is named USART_ISR on STM32F7, STM32H7 > and STM32MP1 SoCs family, but USART_SR only on STM32F4 SoCs. > > Use USART_ISR_ prefix instead of USART_SR_ . > > Signed-off-by: Patrice Chotard Applied to u-boot/ma

Re: [U-Boot] [U-Boot, v2, 4/8] spl: ti: Avoid serial calls when serial support is disabled

2018-04-29 Thread Tom Rini
On Thu, Apr 19, 2018 at 04:32:53AM +, Alex Kiernan wrote: > If CONFIG_SPL_SERIAL_SUPPORT is not set, then the build will fail: > > board/ti/am335x/built-in.o: In function `spl_start_uboot': > board/ti/am335x/board.c:247: undefined reference to `serial_tstc' > board/ti/am335x/board.c:247: unde

Re: [U-Boot] [U-Boot,v1,1/2] serial: serial_stm32: Enable overrun

2018-04-29 Thread Tom Rini
On Fri, Apr 20, 2018 at 08:59:06AM +0200, Patrice Chotard wrote: > Enable uart overrun feature which allows to benefits of uart > FIFO usage. > > Previously overrun management was disabled, this has to effect > to bypassed the uart FIFO usage even if FIFO was enabled. > In particular configuratio

Re: [U-Boot] [U-Boot, v2, 5/8] spl: Split sprintf, strto* from SPL serial in Kconfig

2018-04-29 Thread Tom Rini
On Thu, Apr 19, 2018 at 04:32:54AM +, Alex Kiernan wrote: > When SPL serial is disabled, callers who need sprintf or strtoul fail > because their inclusion is guarded by CONFIG_SPL_SERIAL_SUPPORT/ > CONFIG_TPL_SERIAL_SUPPORT. > > Split printf, sprintf and strto into their own entries and then

Re: [U-Boot] [U-Boot, v2, 1/8] Cleanup CONFIG_SPL_SERIAL_SUPPORT migration

2018-04-29 Thread Tom Rini
On Thu, Apr 19, 2018 at 04:32:50AM +, Alex Kiernan wrote: > CONFIG_SPL_SERIAL_SUPPORT had already been migrated to Kconfig, but > existed in some include files; fix those up here. > > Signed-off-by: Alex Kiernan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP sig

Re: [U-Boot] [U-Boot, v2, 8/8] spl: disk: usb: Add dependencies to sprintf/strto*

2018-04-29 Thread Tom Rini
On Thu, Apr 19, 2018 at 04:32:57AM +, Alex Kiernan wrote: > If SPL serial support is disabled nothing brings in sprintf, snprintf > or simple_strtoul: > > env/built-in.o: In function `regex_callback': > env/attr.c:128: undefined reference to `sprintf' > disk/built-in.o: In function `blk

Re: [U-Boot] [U-Boot, v2, 2/8] spl: ti: Avoid preloader_console_init if !CONFIG_SPL_SERIAL_SUPPORT

2018-04-29 Thread Tom Rini
On Thu, Apr 19, 2018 at 04:32:51AM +, Alex Kiernan wrote: > If CONFIG_SPL_SERIAL_SUPPORT is disabled then the build fails because > serial_init is undefined. Guard preloader_console_init() appropriately > to fix this. > > Signed-off-by: Alex Kiernan Applied to u-boot/master, thanks! -- To

Re: [U-Boot] [U-Boot, v2, 3/8] spl: Add dependency on serial to Ymodem

2018-04-29 Thread Tom Rini
On Thu, Apr 19, 2018 at 04:32:52AM +, Alex Kiernan wrote: > Building with Ymodem support requires serial in SPL/TPL, add that > dependency here. > > Signed-off-by: Alex Kiernan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, 1/2] ARM: qemu-arm: Dynamically determine timer frequency

2018-04-29 Thread Tom Rini
On Thu, Apr 12, 2018 at 04:24:45AM +0300, Tuomas Tynkkynen wrote: > After commit 46fc679ede5f69 ("arm: timer: get frequency for arch timer > armv7 in cp15 cntfrq") the ARM architected timer driver knows how to > determine the timer frequency at runtime by reading the CNTFRQ register, > so we don't

Re: [U-Boot] [U-Boot,2/2] arm: move SYS_ARCH_TIMER to KConfig

2018-04-29 Thread Tom Rini
On Thu, Apr 12, 2018 at 04:24:46AM +0300, Tuomas Tynkkynen wrote: > From: Andre Przywara > > SYS_ARCH_TIMER guards the usage of the ARM Generic Timer (aka arch > timer) in U-Boot. > At the moment it is mandatory for ARMv8 and used by a few ARMv7 boards. > Add a proper Kconfig symbol to express t

Re: [U-Boot] image: Display FIT signature for configs

2018-04-29 Thread Tom Rini
On Fri, Apr 13, 2018 at 11:11:45AM +0200, Clément Péron wrote: > The signature/hash information are displayed for images but nor for > configurations. > > Add subnodes printing in fit_conf_print() like it's done in fit_image_print() > --- > common/image-fit.c | 11 +++ > 1 file changed,

Re: [U-Boot] [PATCH 1/1] video: if EFI_LOADER is enabled, enable CFB_CONSOLE_ANSI

2018-04-29 Thread Heinrich Schuchardt
On 04/29/2018 10:52 PM, Alexander Graf wrote: > > >> Am 29.04.2018 um 22:43 schrieb Heinrich Schuchardt : >> >> EFI applications like GRUB issue ANSI sequences for setting colors >> and for positioning. So if the EFI subsystem is enabled, we should >> also enable ANSI control sequences by default

Re: [U-Boot] [PATCH 1/1] video: if EFI_LOADER is enabled, enable CFB_CONSOLE_ANSI

2018-04-29 Thread Alexander Graf
> Am 29.04.2018 um 22:43 schrieb Heinrich Schuchardt : > > EFI applications like GRUB issue ANSI sequences for setting colors > and for positioning. So if the EFI subsystem is enabled, we should > also enable ANSI control sequences by default. > > Signed-off-by: Heinrich Schuchardt > --- > dri

[U-Boot] [PATCH 1/1] video: if EFI_LOADER is enabled, enable CFB_CONSOLE_ANSI

2018-04-29 Thread Heinrich Schuchardt
EFI applications like GRUB issue ANSI sequences for setting colors and for positioning. So if the EFI subsystem is enabled, we should also enable ANSI control sequences by default. Signed-off-by: Heinrich Schuchardt --- drivers/video/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/dr

[U-Boot] [PATCH v3] dm: core: add functions to get memory-mapped I/O addresses

2018-04-29 Thread Daniel Schwierzeck
From: Álvaro Fernández Rojas Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Daniel Schwierzeck Signed-off-by: Daniel Schwierzeck --- This replaces/updates patch 01/17 from patch series https://patchwork.ozlabs.org/cover/889542/. The update fixes some issues with Sandbox and adds unit-test

[U-Boot] [PATCH 1/1] efi_loader: always check parameters in efi_cout_query_mode()

2018-04-29 Thread Heinrich Schuchardt
If we cannot determine the size of the serial terminal we still have to check the parameters of efi_cout_query_mode(). Querying the size of the serial terminal drains the keyboard buffer. So make sure we do this during the initialization and not in the midst of an EFI application. Signed-off-by:

[U-Boot] [PATCH 2/2] efi_selftest: updating the cursor position

2018-04-29 Thread Heinrich Schuchardt
The test case for text output is updated to check correct updating of the cursor position. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/efi_selftest_textoutput.c | 78 ++ 1 file changed, 78 insertions(+) diff --git a/lib/efi_selftest/efi_selftest_textoutpu

[U-Boot] [PATCH 1/2] efi_loader: updating the cursor position

2018-04-29 Thread Heinrich Schuchardt
The current coding advances the column by the number of UTF-8 bytes. The column should be increased by one per unicode character. The UEFI spec provides advance rules for U+, U+0008, U+000A, and U000D. All other characters, including control characters U+0007 (bel) and U+0009 (tab), have to in

[U-Boot] [PATCH 0/2] efi_loader: updating the cursor position

2018-04-29 Thread Heinrich Schuchardt
The current updating of the cursor position does not conform with the UEFI spec. The current coding advances the column by the number of UTF-8 bytes. The column should be increased by one per unicode character. The UEFI spec provides advance rules for U+, U+0008, U+000A, and U000D. All other

[U-Boot] [PATCH v3 6/7] bootcount: display5: spl: Extend DISPLAY5 board SPL to support bootcount checking

2018-04-29 Thread Lukasz Majewski
This patch is necessary for providing basic bootcount checking in the case of using "falcon" boot mode in that board. It forces u-boot proper boot, when we exceed the number of errors. Signed-off-by: Lukasz Majewski Reviewed-by: Stefan Roese --- Changes in v3: - The bootcount_error now accept

[U-Boot] [PATCH v3 4/7] bootcount: Rewrite autoboot to use wrapper functions from bootcount.h

2018-04-29 Thread Lukasz Majewski
The code has been refactored to use common wrappers from bootcount.h header. Signed-off-by: Lukasz Majewski --- Changes in v3: - New patch Changes in v2: - None common/autoboot.c | 23 +-- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/common/autoboot.c b/

[U-Boot] [PATCH v3 5/7] bootcount: spl: Extend SPL to support bootcount incrementation

2018-04-29 Thread Lukasz Majewski
This patch adds support for incrementation of the bootcount in SPL. Such feature is necessary when we do want to use this feature with 'falcon' boot mode (which loads OS directly in SPL). Signed-off-by: Lukasz Majewski --- Changes in v3: - Remove not needed #ifdefs - Add enum bootcount_context

[U-Boot] [PATCH v3 7/7] bootcount: display5: config: Enable boot count feature in the display5 board

2018-04-29 Thread Lukasz Majewski
The boot count is enabled in both SPL and proper u-boot. Signed-off-by: Lukasz Majewski Reviewed-by: Stefan Roese --- Changes in v3: - None Changes in v2: - None configs/display5_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/display5_defconfig b/configs/display5_

[U-Boot] [PATCH v3 3/7] bootcount: Add function wrappers to handle bootcount increment and error checking

2018-04-29 Thread Lukasz Majewski
Those two functions can be used to provide easy bootcount management. Signed-off-by: Lukasz Majewski --- Changes in v3: - Unify those functions to also work with common/autoboot.c code - Add enum bootcount_context to distinguish between u-boot proper and SPL Changes in v2: - None include/boo

[U-Boot] [PATCH v3 2/7] bootcount: Add include guards into bootcount.h file

2018-04-29 Thread Lukasz Majewski
This patch adds missing include guards for bootcount.h file. Signed-off-by: Lukasz Majewski Reviewed-by: Stefan Roese --- Changes in v3: - None Changes in v2: - New patch include/bootcount.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/bootcount.h b/include/bootcount.h ind

[U-Boot] [PATCH v3 1/7] bootcount: spl: Enable bootcount support in SPL

2018-04-29 Thread Lukasz Majewski
New, SPL related config option - CONFIG_SPL_BOOTCOUNT_LIMIT has been added to allow drivers/bootcount code re-usage in SPL. This code is necessary to use and setup bootcount in SPL in the case of falcon boot mode. Signed-off-by: Lukasz Majewski Reviewed-by: Stefan Roese --- Changes in v3: -

[U-Boot] [PATCH v3 0/7] Provide SPL support for bootcount (in the case of using falcon boot mode)

2018-04-29 Thread Lukasz Majewski
This patch series provides support for controlling bootcount limits in SPL. Moreover, the common code has been identified and reused in the common/autoboot.c file. It also enables this feature on display5 board to present usage patterns. This patch has been applied on top of u-boot/master: SHA1 :

Re: [U-Boot] [PATCH 1/1] arm: armv7: enable unaligned access

2018-04-29 Thread Heinrich Schuchardt
On 03/30/2018 02:00 AM, Heinrich Schuchardt wrote: > On 03/30/2018 01:36 AM, Siarhei Siamashka wrote: >> On Thu, 29 Mar 2018 23:33:50 +0200 >> Heinrich Schuchardt wrote: >> >>> We use the command bootefi to run UEFI executables like GRUB and iPXE. >>> The UEFI spec requires that unaligned access i