Re: [U-Boot] [PATCH] tools/file2include: don't use malloc.h for malloc

2018-11-17 Thread Heinrich Schuchardt
On 11/18/18 3:03 AM, Jonathan Gray wrote: > stdlib.h is the header for malloc since at least c89/c90. > Previously this would fail to build on OpenBSD and fallback to the wrong > header: > > In file included from u-boot/tools/file2include.c:21: > u-boot/include/malloc.h:875:5: error:

Re: [U-Boot] [PATCH v2 4/4] usb: am335x_evm: Disable CONFIG_SPL_DM_USB

2018-11-17 Thread Marek Vasut
On 11/16/2018 12:04 PM, Sven Schwermer wrote: > This configuration doesn't use USB in the SPL, so we need to disable > driver model for USB in the SPL. > > Signed-off-by: Sven Schwermer How many other boards will need such a patch ? > --- > configs/am335x_evm_defconfig | 3 ++- > 1 file

Re: [U-Boot] [PATCH v2 3/4] usb: storage: s/CONFIG_BLK/CONFIG_IS_ENABLED(BLK)/

2018-11-17 Thread Marek Vasut
On 11/17/2018 12:14 PM, Sven Schwermer wrote: Commit message is missing. > Signed-off-by: Sven Schwermer [...] -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 2/4] usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/

2018-11-17 Thread Marek Vasut
On 11/15/2018 08:50 AM, Sven Schwermer wrote: Commit message is missing, please fix. > Signed-off-by: Sven Schwermer > --- > common/usb.c | 14 +++--- > common/usb_hub.c | 16 > common/usb_kbd.c | 4 ++-- [...] --

Re: [U-Boot] [PATCH v2 1/4] usb: Introduce CONFIG_SPL_DM_USB

2018-11-17 Thread Marek Vasut
On 11/17/2018 12:37 PM, Sven Schwermer wrote: > This allows building the SPL without driver model for USB. > > Signed-off-by: Sven Schwermer > --- > common/Makefile | 2 +- > drivers/usb/Kconfig | 5 + > drivers/usb/common/Makefile | 2 +- > drivers/usb/host/Makefile |

[U-Boot] [PATCH] mmc: Do not issue CMD 6 on SD 1.00 and SD 1.01

2018-11-17 Thread Marek Vasut
According to SD Specifications Part 1 Physical Layer Simplified Specification Version 6.00 August 29, 2018, section 4.3.10 (Switch Function Command) and section 5.6 (SCR register), SD cards version 1.00 and 1.01 do not support the SD CMD 6. Currently, U-Boot will issue CMD 6 unconditionally in

[U-Boot] [PATCH] tools/file2include: don't use malloc.h for malloc

2018-11-17 Thread Jonathan Gray
stdlib.h is the header for malloc since at least c89/c90. Previously this would fail to build on OpenBSD and fallback to the wrong header: In file included from u-boot/tools/file2include.c:21: u-boot/include/malloc.h:875:5: error: function-like macro 'CONFIG_IS_ENABLED' is not defined

Re: [U-Boot] [PATCH v3 7/8] net: remove CONFIG_MCAST_TFTP

2018-11-17 Thread Chris Packham
On Sun, 18 Nov 2018, 5:49 AM Simon Goldschmidt < simon.k.r.goldschm...@gmail.com wrote: > On 17.11.2018 17:05, Joe Hershberger wrote: > > Hi Simon, > > > > Thanks for tackling this. > > > > On Sat, Nov 17, 2018 at 6:31 AM Simon Goldschmidt > > wrote: > >> This option seems unused as no mainline

Re: [U-Boot] [PATCH v3 7/8] net: remove CONFIG_MCAST_TFTP

2018-11-17 Thread Simon Goldschmidt
On 17.11.2018 17:05, Joe Hershberger wrote: Hi Simon, Thanks for tackling this. On Sat, Nov 17, 2018 at 6:31 AM Simon Goldschmidt wrote: This option seems unused as no mainline board enables it and it does not compile since some years. Additionally, it has a potential buffer underrun issue

Re: [U-Boot] [PATCH 2/2] net: designware: clear padding bytes

2018-11-17 Thread Joe Hershberger
On Sat, Nov 17, 2018 at 3:26 AM Simon Goldschmidt wrote: > > Short frames are padded to the minimum allowed size of 60 bytes. > However, the designware driver sends old data in these padding bytes. > It is common practice to zero out these padding bytes ro prevent > leaking memory contents to

Re: [U-Boot] [PATCH v3 7/8] net: remove CONFIG_MCAST_TFTP

2018-11-17 Thread Joe Hershberger
Hi Simon, Thanks for tackling this. On Sat, Nov 17, 2018 at 6:31 AM Simon Goldschmidt wrote: > > This option seems unused as no mainline board enables it and it does > not compile since some years. > > Additionally, it has a potential buffer underrun issue (reported as > a side node in

Re: [U-Boot] [PATCH 1/2] net: designware: fix tx packet length

2018-11-17 Thread Joe Hershberger
On Sat, Nov 17, 2018 at 3:25 AM Simon Goldschmidt wrote: > > The designware driver has a bug in setting the tx length into the dma > descriptor: it always or's the length into the descriptor without > zeroing out the length mask before. > > This results in occasional packets being transmitted

Re: [U-Boot] mips-relocs tool conflicts with CONFIG_OF_SEPRATE

2018-11-17 Thread Daniel Schwierzeck
Am Sa., 17. Nov. 2018, 15:43 hat 袁建鹏 geschrieben: > Hi > > > > > I'm adding a new board support to u-boot-2018.09. When I boot the device,I > got an error msg: > > No valid device tree binary found - please append one to U-Boot > binary, use u-boot-dtb.bin or define CONFIG_OF_EMBED. For

[U-Boot] mips-relocs tool conflicts with CONFIG_OF_SEPRATE

2018-11-17 Thread 袁建鹏
Hi I'm adding a new board support to u-boot-2018.09. When I boot the device,I got an error msg: No valid device tree binary found - please append one to U-Boot binary, use u-boot-dtb.bin or define CONFIG_OF_EMBED. For sandbox, use -d After some debugging, I found the reason: the

Re: [U-Boot] [PATCH] video: add command cls

2018-11-17 Thread Anatolij Gustschin
Hi Patrick, On Sat, 17 Nov 2018 14:50:26 +0100 Anatolij Gustschin ag...@denx.de wrote: ... > Thanks for the patch! But I think we should remove this existing > lcd specific cls and add a common command under cmd/cls.c. I'll > submit a path for this. Please test using this patch [1]. [1]

[U-Boot] [PATCH] cmd: add clear screen 'cls' command

2018-11-17 Thread Anatolij Gustschin
Add common clear screen command for configurations CONFIG_DM_VIDEO, CONFIG_LCD and CONFIG_CFB_CONSOLE. Remove the existing cls command implementation from lcd.c code and activate the command for all boards enabling CONFIG_LCD for compatibility reasons. Signed-off-by: Anatolij Gustschin ---

[U-Boot] [PATCH 1/1] cmd: add exception command

2018-11-17 Thread Heinrich Schuchardt
The 'exception' command allows to test exception handling. This implementation supports ARM, x86, RISC-V and the following exceptions: * 'breakpoint' - prefetch abort exception (ARM 32bit only) * 'unaligned' - data abort exception (ARM only) * 'undefined' - undefined instruction exception

Re: [U-Boot] [PATCH v1 5/6] usb: host: replace xhci-keystone driver by the generic dwc3 driver

2018-11-17 Thread Tom Rini
On Fri, Nov 16, 2018 at 04:34:01PM +0100, Jean-Jacques Hiblot wrote: > The keystone platforms can use the generic DC3 driver. Removing the > keystone-spcecific xchi driver and add the configuration options to enable > the generic DWC3 driver on all K2 platforms. > > Signed-off-by: Jean-Jacques

Re: [U-Boot] [PATCH] sunxi: Update MAINTAINERS file for recent boards

2018-11-17 Thread Tom Rini
On Fri, Nov 16, 2018 at 09:33:25AM -0500, Tom Rini wrote: > Add entries for the pine64-lts and pinebook configs. > > Cc: Vasily Khoruzhick > Cc: Andre Przywara > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH] configs: Enable THUMB2 on various ARM boards

2018-11-17 Thread Tom Rini
On Fri, Nov 16, 2018 at 01:34:53PM -0500, Tom Rini wrote: > The clearfog, corvus, wb45n and picosam9g45 configs are close to > exceeding their size limits, so enable THUMB2 builds on them to reclaim > space. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [PATCH v1 4/6] PHY: Add phy driver for the keystone USB PHY

2018-11-17 Thread Tom Rini
On Fri, Nov 16, 2018 at 04:34:00PM +0100, Jean-Jacques Hiblot wrote: > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v1 3/6] ARM: dts: k2g-evm: enable USB0 and USB1

2018-11-17 Thread Tom Rini
On Fri, Nov 16, 2018 at 04:33:59PM +0100, Jean-Jacques Hiblot wrote: > Signed-off-by: Jean-Jacques Hiblot Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [U-Boot,v3] Ability to modify distro boot filename

2018-11-17 Thread Tom Rini
On Tue, Nov 06, 2018 at 12:23:53PM +, Martyn Welch wrote: > Add in the ability to modify the distro boot filename. Whilst not > immediately useful in normal usage, it allows an alternative > configuration to be provided when other u-boot functionality is used, such > as bootcount limit, to

Re: [U-Boot] [U-Boot, 1/3] fs: Makefile: Add fs.c under SPL as well as it is needed for fs_loader

2018-11-17 Thread Tom Rini
On Mon, Nov 05, 2018 at 11:34:52AM +0530, Keerthy wrote: > Add fs.c under SPL as well as it is needed for fs_loader > > Signed-off-by: Keerthy > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v1 6/6] configs: k2g_evm: Enable DFU on K2G EVM

2018-11-17 Thread Tom Rini
On Fri, Nov 16, 2018 at 04:34:02PM +0100, Jean-Jacques Hiblot wrote: > The K2G evm uses the generic DWC3 driver. DFU can thus be enabled. > Enabling DFU for easier firmware update. > > Signed-off-by: Jean-Jacques Hiblot > Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP

Re: [U-Boot] [PATCH v1 1/6] usb: dwc3-generic: make it compatible with "ti, keystone-dwc3"

2018-11-17 Thread Tom Rini
On Fri, Nov 16, 2018 at 04:33:57PM +0100, Jean-Jacques Hiblot wrote: > Signed-off-by: Jean-Jacques Hiblot Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [U-Boot, 1/2] image-sig: Ensure that hashed-nodes is null-terminated

2018-11-17 Thread Tom Rini
On Wed, Nov 07, 2018 at 02:51:45PM -0500, Tom Rini wrote: > From: Konrad Beckmann > > A specially crafted FIT image leads to memory corruption in the stack > when using the verified boot feature. The function fit_config_check_sig > has a logic error that makes it possible to write past the end

Re: [U-Boot] [U-Boot,3/3] misc: fs_loader: Fix compiler warning

2018-11-17 Thread Tom Rini
On Mon, Nov 05, 2018 at 11:34:54AM +0530, Keerthy wrote: > Fix compiler warning > > drivers/misc/fs_loader.c:193:9: warning: format ‘%d’ expects > argument of type ‘int’, but argument 5 has type ‘size_t > {aka long unsigned int}’ [-Wformat=] > > Signed-off-by: Keerthy > Reviewed-by: Simon

Re: [U-Boot] [PATCH v1 2/6] board: ks2_evm: Enable the USB clocks if DM_USB is used

2018-11-17 Thread Tom Rini
On Fri, Nov 16, 2018 at 04:33:58PM +0100, Jean-Jacques Hiblot wrote: > Signed-off-by: Jean-Jacques Hiblot Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [U-Boot, 2/2] fdt_region: Ensure that depth never goes below -1

2018-11-17 Thread Tom Rini
On Wed, Nov 07, 2018 at 02:51:46PM -0500, Tom Rini wrote: > From: Konrad Beckmann > > A specially crafted FIT image makes it possible to overflow the stack > with controlled values when using the verified boot feature. Depending > on the memory layout, this could be used to overwrite

Re: [U-Boot] serial: ns16550: add setconfig support

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 09:28:08PM +0100, Simon Goldschmidt wrote: > Add possibility to update the serial parity used. > > Signed-off-by: Simon Goldschmidt > Reviewed-by: Simon Glass > Reviewed-by: Hannes Schmelzer Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot, 2/3] misc: fs_loader: Use device_get_global_by_ofnode to get to node

2018-11-17 Thread Tom Rini
On Mon, Nov 05, 2018 at 11:34:53AM +0530, Keerthy wrote: > Instead of two staged ofnode_to_offset followed by > device_get_global_by_of_offset approach, direcly use the > device_get_global_by_ofnode to fetch the device. > > Signed-off-by: Keerthy > Reviewed-by: Simon Glass Applied to

Re: [U-Boot] dm: serial: fix comment on dm_serial_ops setconfig

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 09:08:16PM +0100, Simon Goldschmidt wrote: > The comment on this function prototype describes nonexistent > parameters. It seems to be copied from 'setparity'. > > Update it to match its the parameter list. > > Signed-off-by: Simon Goldschmidt > Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH] video: add command cls

2018-11-17 Thread Anatolij Gustschin
Hi Patrick, On Thu, 8 Nov 2018 18:24:32 +0100 Patrick Delaunay patrick.delau...@st.com wrote: > Implement the existing command cls, for clear screen, > when CONFIG_DM_VIDEO is activated. > > This command was defined for old LCD framework (not dm) in > common/lcd.c:251 > U_BOOT_CMD(cls,

Re: [U-Boot] [U-Boot, v4, 04/10] armv7R: K3: am654: Add support to start ATF from R5 SPL

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:05PM +0530, Lokesh Vutla wrote: > Considering the boot time requirements, Cortex-A core > should be able to start immediately after SPL on R5. > Add support for the same. > > Reviewed-by: Tom Rini > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks!

Re: [U-Boot] [U-Boot,1/2] i2c: stm32f7: cosmetic: clean the driver

2018-11-17 Thread Tom Rini
On Mon, Oct 29, 2018 at 03:31:55PM +0100, Patrick Delaunay wrote: > Solve alignments issues in the driver to avoid > checkpatch error. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v4, 01/10] ram: Introduce K3 AM654 DDR Sub System driver

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:02PM +0530, Lokesh Vutla wrote: > K3 based AM654 devices has DDR memory subsystem that comprises > Synopys DDR controller, Synopsis DDR phy and wrapper logic to > intergrate these blocks into the device. This DDR subsystem > provides an interface to external SDRAM

Re: [U-Boot] [U-Boot, v4, 02/10] armv7R: K3: am654: Enable MPU regions

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:03PM +0530, Lokesh Vutla wrote: > Enable MPU regions for AM654 evm: > - Region0: 0x - 0x: Device memory, not executable > - Region1: 0x41c0 - 0x4240: Normal, executable, WB, Write alloc > - Region2: 0x8000 - 0x: Normal, executable,

Re: [U-Boot] [U-Boot, v4, 06/11] pinctrl: stm32: Add get_pins_count() ops

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 02:10:18PM +0200, Patrice Chotard wrote: > Add get_pins_count ops to obtain the number of pins > owns by a pin-controller. > On STM32 SoCs bindings, each pin-controller owns > several gpio banks. Each GPIO bank can own up to 16 pins. > > To obtain the total pins count,

Re: [U-Boot] [U-Boot, v4, 09/10] configs: am65x_evm_r5: Add initial support

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:10PM +0530, Lokesh Vutla wrote: > Add initial defconfig support for AM65x > that runs on R5. > > Reviewed-by: Tom Rini > Signed-off-by: Lokesh Vutla > Signed-off-by: Andreas Dannenberg > Signed-off-by: Keerthy Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, v4, 06/10] board: ti: am654: r5: Add initial support for am654

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:07PM +0530, Lokesh Vutla wrote: > Add initial support for AM654 based EVM running on R5. > > Reviewed-by: Tom Rini > Signed-off-by: Lokesh Vutla > Signed-off-by: Andreas Dannenberg Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot, 2/2] ARM: am3517_evm: Remove SPL_OF_CONTROL and OF_PLATDATA

2018-11-17 Thread Tom Rini
On Sun, Oct 28, 2018 at 08:49:57AM -0500, Adam Ford wrote: > After the recomendation, some testing shows like these are unnecessary. > > Suggested-by: Jean-Jacques Hiblot > Signed-off-by: Adam Ford > > diff --git a/configs/am3517_evm_defconfig b/configs/am3517_evm_defconfig > index

Re: [U-Boot] [U-Boot,v4,11/11] test/py: test pinmux command

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 02:10:23PM +0200, Patrice Chotard wrote: > Add pinmux test which test the following commands: > - pinmux list > - pinmux dev > - pinmux status > > Signed-off-by: Patrice Chotard > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot, v4, 03/10] armv7R: K3: am654: Add support for generating build targets

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:04PM +0530, Lokesh Vutla wrote: > Update Makefiles to generate: > - tiboot3.bin: Image format that can be processed by ROM. > > Below is the tiboot3.bin image format that is required by ROM: > >___ > |X509

Re: [U-Boot] [U-Boot,v4,05/11] cmd: pinmux: Add pinmux command

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 02:10:17PM +0200, Patrice Chotard wrote: > pinmux command allows to : > - list all pin-controllers available on platforms > - select a pin-controller > - display the muxing of all pins of the current pin-controller >or all pin-controllers depending of given options

Re: [U-Boot] [U-Boot, v3, 2/2] arm: Make arch specific memcpy thumb-safe.

2018-11-17 Thread Tom Rini
On Thu, Apr 26, 2018 at 08:18:10PM +0200, Klaus Goger wrote: > The current arch implementation of memcpy cannot be called > from thumb code, because it does not use bx instructions on return. > This patch addresses that. Note, that this patch does not touch > the hot loop of memcpy, so

Re: [U-Boot] ARM: DTS: Resync am3517-evm.dts with Linux 4.19

2018-11-17 Thread Tom Rini
On Sun, Oct 21, 2018 at 09:09:01AM -0500, Adam Ford wrote: > Some minor changes have been made to the AM3517-evm and the underlying > am3517.dtsi files. This patch re-sync's the DTS and DTSI files with > Linux. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/am3517-evm.dts

Re: [U-Boot] [U-Boot, v4, 03/11] dm: uclass: Add uclass_next_device_err() to return a valid device

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 02:10:15PM +0200, Patrice Chotard wrote: > Similarly to uclass_first_device_err(), add uclass_next_device_err() > which returns an error if there are no next devices in that uclass. > > Signed-off-by: Patrice Chotard > Reviewed-by: Simon Glass Applied to u-boot/master,

Re: [U-Boot] mtd: nand: lpc32xx slc: disable DMA support in SPL builds

2018-11-17 Thread Tom Rini
On Fri, Oct 19, 2018 at 03:21:18AM +0300, Vladimir Zapolskiy wrote: > Testing and analysis shows that at the moment LPC32xx NAND SLC driver > can not get PL080 DMA backbone support in SPL build, because SPL NAND > loaders operate with subpage (ECC step to be precisely) reads, and > this is not

Re: [U-Boot] [U-Boot, 2/2] i2c: stm32f7: change setup struct to const

2018-11-17 Thread Tom Rini
On Mon, Oct 29, 2018 at 03:31:56PM +0100, Patrick Delaunay wrote: > Change static array to const when it is useful to save memory > (move stm32f7_setup=0x18 from .data to .rodata section) > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot, v4, 05/10] armv7R: K3: am654: Add support for triggering ddr init from SPL

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:06PM +0530, Lokesh Vutla wrote: > In SPL, DDR should be made available by the end of board_init_f() > so that apis in board_init_r() can use ddr. Adding support > for triggering DDR initialization from board_init_f(). > > Reviewed-by: Tom Rini > Signed-off-by:

Re: [U-Boot] [U-Boot, v4, 07/11] pinctrl: stm32: Add get_pin_name() ops

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 02:10:19PM +0200, Patrice Chotard wrote: > Add get_pin_name ops to obtain a pin name given a > pin index of a specified pin-controller. > > Signed-off-by: Patrice Chotard > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] ARM: am3517_evm: Build for Thumb

2018-11-17 Thread Tom Rini
On Sun, Oct 21, 2018 at 10:50:59AM -0500, Adam Ford wrote: > In an effort to free up more resources in SPL and U-Boot, building > for Thumb shrinks the code side. > > Before: > > text data bss dec hex filename > 685588 25808275724 987120 f0ff0 u-boot > >

Re: [U-Boot] [U-Boot, 1/2] ARM: omap3_logic: Remove SPL_OF_CONTROL and OF_PLATDATA

2018-11-17 Thread Tom Rini
On Sun, Oct 28, 2018 at 08:49:56AM -0500, Adam Ford wrote: > After the recomendation, some testing shows like these are unnecessary. > > Suggested-by: Jean-Jacques Hiblot > Signed-off-by: Adam Ford > > diff --git a/configs/omap35_logic_defconfig b/configs/omap35_logic_defconfig > index

Re: [U-Boot] [U-Boot, v4, 02/11] dm: pinctrl: Add pinctrl_get_pin_name and pinctrl_get_pins_count

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 02:10:14PM +0200, Patrice Chotard wrote: > Add pinctrl_get_pin_name() and pinctrl_get_pins_count() methods > to obtain pin's name and pin's muxing given a pin reference. > > This will be used by the new pinmux command. > > Signed-off-by: Patrice Chotard > Reviewed-by:

Re: [U-Boot] [U-Boot, v4, 08/10] armv7r: dts: am654: Add initial support

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:09PM +0530, Lokesh Vutla wrote: > Add R5 specific dts for am654-evm. > > Signed-off-by: Lokesh Vutla > Signed-off-by: Andreas Dannenberg > Signed-off-by: Keerthy > Signed-off-by: Schuyler Patton > Signed-off-by: James Doublesin > Reviewed-by: Tom Rini Applied

Re: [U-Boot] [U-Boot, v4, 08/11] pinctrl: stm32: Add get_pin_muxing() ops

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 02:10:20PM +0200, Patrice Chotard wrote: > Add get_pin_muxing() ops to obtain the pin muxing description > a given pin index. > > Signed-off-by: Patrice Chotard > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot, v4, 04/11] dm: uclass: Add uclass_foreach_dev_probe

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 02:10:16PM +0200, Patrice Chotard wrote: > Add uclass_foreach_dev_probe() which iterates through > devices of a given uclass. Devices are probed if necessary > and are ready to use. > > Signed-off-by: Patrice Chotard > Reviewed-by: Simon Glass Applied to u-boot/master,

Re: [U-Boot] [U-Boot,v4,07/10] arm: dts: k3: Sync dts from Linux

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:08PM +0530, Lokesh Vutla wrote: > Sync the k3-am654 specific dts files from Linux next with tag > 20181019. This changes are in queue for Linux v4.20-rc1 > > Reviewed-by: Tom Rini > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, v4, 10/10] board: ti: am65x: Update README to add R5 build support

2018-11-17 Thread Tom Rini
On Fri, Nov 02, 2018 at 07:51:11PM +0530, Lokesh Vutla wrote: > Update the README file to add r5 build support and system > firmware support. > > Reviewed-by: Tom Rini > Signed-off-by: Lokesh Vutla > Signed-off-by: Andreas Dannenberg Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] w1-eeprom: Add support for Maxim DS2502 add only memory

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 10:21:19AM +0200, Martin Fuzzey wrote: > Signed-off-by: Martin Fuzzey Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [U-Boot,v4,09/11] gpio: stm32f7: Add ops get_function

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 02:10:21PM +0200, Patrice Chotard wrote: > This patch adds gpio get_function ops support. > This function reports the state of a gpio. > > Signed-off-by: Christophe Kerello > Reviewed-by: Simon Glass > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks!

Re: [U-Boot] [U-Boot, v4, 01/11] dm: pinctrl: Add get_pin_muxing() ops

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 02:10:13PM +0200, Patrice Chotard wrote: > Add get_pin_muxing() which allows to display the muxing > of a given pin belonging to a pin-controller. > > Signed-off-by: Patrice Chotard > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] configs: am3517_evm: Use default OMAP3 memory settings

2018-11-17 Thread Tom Rini
On Sun, Oct 21, 2018 at 10:34:49AM -0500, Adam Ford wrote: > The AM3517 is mostly am omap3, so this partch removes the custom > memory configurations and just uses the default common entries > for omap3 and armv7. > > Signed-off-by: Adam Ford > > diff --git a/include/configs/am3517_evm.h

Re: [U-Boot] [U-Boot, v4, 10/11] pinctrl: sandbox: Add get_pin_muxing ops support

2018-11-17 Thread Tom Rini
On Wed, Oct 24, 2018 at 02:10:22PM +0200, Patrice Chotard wrote: > Add get_pin_mux ops support to display the pin muxing > description of the sandbox_pins[] > > Signed-off-by: Patrice Chotard > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] ARM: omap3_logic: Make CONFIG_SYS_TEXT_BASE match README.omap3

2018-11-17 Thread Tom Rini
On Sun, Oct 21, 2018 at 01:58:39PM -0500, Adam Ford wrote: > README.omap3 has two options. For option 1, CONFIG_SYS_TEXT_BASE > is set to 0x8010. Option 2 lists 0x80008000. The existing > value is neither of these, so this patch makes it equivalent to > Option 1. > > Signed-off-by: Adam

Re: [U-Boot] mtd: nand: lpc32xx mlc: predefine number of NAND chips to support

2018-11-17 Thread Tom Rini
On Fri, Oct 19, 2018 at 03:21:05AM +0300, Vladimir Zapolskiy wrote: > Build option CONFIG_SYS_MAX_NAND_CHIPS is used by NXP LPC32xx NAND MLC > driver only, as a preparation for potential removal or replacement of > the option the change predefines CONFIG_SYS_MAX_NAND_CHIPS to 1, same > value is

Re: [U-Boot] gpio: pca953x: Clear the polarity invert register at init

2018-11-17 Thread Tom Rini
On Thu, Oct 18, 2018 at 04:16:46PM +0200, Anatolij Gustschin wrote: > From: Ye Li > > The pca953x_gpio driver uses default value of polarity inversion > register. For some devices like PCA9557 and MAX7310, their polarity > inversion register default value is 0xf0. So for high 4 ports, when >

Re: [U-Boot] clk: Allow clock defaults to be set also during re-reloc state

2018-11-17 Thread Tom Rini
On Wed, Oct 17, 2018 at 01:43:14PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > The earlier commit f4fcba5c5ba ("clk: implement clk_set_defaults()") > which introduced the functionality for setting clock defaults such as > rates and parents will skip the processing when executing

Re: [U-Boot] [U-Boot,2/3] bcm6858: add initial support

2018-11-17 Thread Tom Rini
On Thu, Oct 11, 2018 at 06:31:58PM +0200, Philippe Reynes wrote: > This add the initial support of the broadcom bcm6858 SoC family, > only the cpu, dram and uart are supported. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot,3/3] bcm968580xref: add initial support

2018-11-17 Thread Tom Rini
On Thu, Oct 11, 2018 at 06:31:59PM +0200, Philippe Reynes wrote: > This add the initial support of the broadcom reference > board bcm968580xref with a bcm6858 SoC. > > This board has 512 MB of ram, 256 MB of flash (nand), > 2 usb port, 1 uart, 4 ethernet ports (LAN), 1 ethernet port (WAN). > >

Re: [U-Boot] [U-Boot, v3] arm: at91: wdt: Convert watchdog driver to dm/dt

2018-11-17 Thread Tom Rini
On Tue, Oct 09, 2018 at 11:46:40AM -0700, Prasanthi Chellakumar wrote: > Convert the Watchdog driver for AT91SAM9x processors to support > the driver model and device tree. Changes "CONFIG_AT91SAM9_WATCHDOG" > to new "CONFIG_WDT_AT91" Kconfig option. > > Signed-off-by: Prasanthi Chellakumar

Re: [U-Boot] [U-Boot,1/3] serial: bcm6858: add serial support

2018-11-17 Thread Tom Rini
On Thu, Oct 11, 2018 at 06:31:57PM +0200, Philippe Reynes wrote: > This driver add the support of serial on bcm6858. > It's based on serial for bcm6345. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v1, 3/3] ARMv8: SError exception handling in PSCI exception vectors

2018-11-17 Thread Tom Rini
On Mon, Aug 20, 2018 at 10:57:36AM -0700, chee.hong@intel.com wrote: > From: Chee Hong Ang > > Allow platform vendors to handle SError interrupt exceptions from > ARMv8 PSCI exception vectors by overriding this weak function > 'plat_error_handler'. > > Signed-off-by: Chee Hong Ang

Re: [U-Boot] [U-Boot, 1/1] cmd/bdinfo: correct output of numerical values

2018-11-17 Thread Tom Rini
On Thu, Oct 11, 2018 at 01:15:01PM +0200, Heinrich Schuchardt wrote: > Display all digits on 64bit systems. Currently we print only the lower > 32 bits. Examples of values that can exceed 32 bits are the size and start of > memory banks. > > For fdt_blob use the same output method as for other

Re: [U-Boot] [U-Boot, v1, 2/3] ARMv8: Add EL3 exception handling for ARMv8's Kconfig

2018-11-17 Thread Tom Rini
On Mon, Aug 20, 2018 at 10:57:35AM -0700, chee.hong@intel.com wrote: > From: Chee Hong Ang > > Kconfig option to allow all External Abort and SError exception > taken to EL3. > > Signed-off-by: Chee Hong Ang Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot, v1, 1/3] ARMv8: Enable all asynchronous abort exceptions taken to EL3

2018-11-17 Thread Tom Rini
On Mon, Aug 20, 2018 at 10:57:34AM -0700, chee.hong@intel.com wrote: > From: Chee Hong Ang > > Allow EL3 to handle all the External Abort and SError interrupt > exception occur in all exception levels. > > Signed-off-by: Chee Hong Ang Applied to u-boot/master, thanks! -- Tom

[U-Boot] [PATCH v3 5/8] bootm: use new common function lmb_init_and_reserve

2018-11-17 Thread Simon Goldschmidt
This reduces duplicate code only. Signed-off-by: Simon Goldschmidt --- 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 8bf84ebcb7..31e4f0f794 100644 --- a/common/bootm.c +++ b/common/bootm.c

[U-Boot] [PATCH v3 2/8] fdt: parse "reserved-memory" for memory reservation

2018-11-17 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 v2: - this patch is

[U-Boot] [PATCH v3 7/8] net: remove CONFIG_MCAST_TFTP

2018-11-17 Thread Simon Goldschmidt
This option seems unused as no mainline board enables it and it does not compile since some years. Additionally, it has a potential buffer underrun issue (reported as a side node in CVE-2018-18439). Instead of trying to fix a thing noone seems to use, let's rather drop dead code. Signed-off-by:

[U-Boot] [PATCH v3 8/8] tftp: prevent overwriting reserved memory

2018-11-17 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 v2: - this patch is new in v2 net/tftp.c | 66

[U-Boot] [PATCH v3 6/8] lmb: remove unused extern declaration

2018-11-17 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 v2: - this patch is new in v2 include/lmb.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index

[U-Boot] [PATCH v3 3/8] lib: lmb: extend lmb for checks at load time

2018-11-17 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 v3 1/8] lib: lmb: reserving overlapping regions should fail

2018-11-17 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. Signed-off-by:

[U-Boot] [PATCH v3 4/8] fs: prevent overwriting reserved memory

2018-11-17 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 v2: None fs/fs.c | 56 ---

[U-Boot] [PATCH v3 0/8] Fix CVE-2018-18440 and CVE-2018-18439

2018-11-17 Thread Simon Goldschmidt
This series fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by adding restrictions to the 'load' command and fixes CVE-2018-18439 ("insufficient boundary checks in network image boot") by adding restrictions to the tftp code. The functions from lmb.c are used to

[U-Boot] [PATCH v2 3/4] usb: storage: s/CONFIG_BLK/CONFIG_IS_ENABLED(BLK)/

2018-11-17 Thread Sven Schwermer
Signed-off-by: Sven Schwermer --- common/usb_storage.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/common/usb_storage.c b/common/usb_storage.c index c9a99b1ca2..8c889bb1a6 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -66,7

[U-Boot] [PATCH v2 4/4] usb: am335x_evm: Disable CONFIG_SPL_DM_USB

2018-11-17 Thread Sven Schwermer
This configuration doesn't use USB in the SPL, so we need to disable driver model for USB in the SPL. Signed-off-by: Sven Schwermer --- configs/am335x_evm_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig

[U-Boot] [PATCH v2 1/4] usb: Introduce CONFIG_SPL_DM_USB

2018-11-17 Thread Sven Schwermer
This allows building the SPL without driver model for USB. Signed-off-by: Sven Schwermer --- common/Makefile | 2 +- drivers/usb/Kconfig | 5 + drivers/usb/common/Makefile | 2 +- drivers/usb/host/Makefile | 5 +++-- 4 files changed, 10 insertions(+), 4 deletions(-)

[U-Boot] [PATCH v2 2/4] usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/

2018-11-17 Thread Sven Schwermer
Signed-off-by: Sven Schwermer --- common/usb.c | 14 +++--- common/usb_hub.c | 16 common/usb_kbd.c | 4 ++-- common/usb_storage.c | 6 +++--- drivers/usb/dwc3/core.c | 2 +-

[U-Boot] [PATCH v2 0/4] usb: Introduce CONFIG_SPL_DM_USB

2018-11-17 Thread Sven Schwermer
This solves the dependency problem I described in [1]. [1]: http://u-boot.10912.n7.nabble.com/-td347224.html Version 2: * Globally replace CONFIG_DM_USB * Split the CONFIG_DM_USB replacement into separate patch * Fix am335x_evm build Sven Schwermer (4): usb: Introduce CONFIG_SPL_DM_USB

Re: [U-Boot] [PATCH v5 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629

2018-11-17 Thread Frank Wunderlich
got it...on this sd-card i had no uEnv.txt and did not check for its existance but tried to load it... created a uenv.txt and not more problem. i have to change my environment to check for file first before do the other steps sorry for inconveniences regards Frank > Gesendet: Samstag, 17.

Re: [U-Boot] [PATCH] mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name()

2018-11-17 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Fri, 16 Nov 2018 23:15:42 +0100: > The environment is not guaranteed to contain a valid mtdids variable > when called from mtd_search_alternate_name(). Call get_mtdids() instead > of env_get("mtdids"). > > Fixes: ff4afa8a981e ("mtd: uboot: search for an

Re: [U-Boot] [PATCH v3 1/1] dm: video: correctly set the cursor position

2018-11-17 Thread Anatolij Gustschin
On Sat, 10 Nov 2018 19:55:48 +0100 Heinrich Schuchardt xypron.g...@gmx.de wrote: > The terminal escape sequence ESC [ ; H is used to set the cursor > position. According to the ECMA 48 standard the upper left corner in the > escape sequences is [1, 1]. The video uclass uses [0, 0] as upper left

Re: [U-Boot] [PATCH v5 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629

2018-11-17 Thread Frank Wunderlich
v3 has the same problem if i use same uEnv.txt and disable bootmenu in include/configs/mt7623.h #define CONFIG_MENU_SHOW #define CONFIG_BOOTDELAY 3 without the change in header i come directly to my bootmenu-entry 0 defined here and not to bootmenu (seems it is selected instead of running

Re: [U-Boot] [PATCH 2/2] imx: bootaux: fix stack and pc assignment on 64-bit platforms

2018-11-17 Thread Peng Fan
> -Original Message- > From: Gary Bisson [mailto:gary.bis...@boundarydevices.com] > Sent: 2018年11月15日 0:55 > To: u-boot@lists.denx.de > Cc: sba...@denx.de; Fabio Estevam ; Peng Fan > ; dl-linux-imx ; Gary Bisson > > Subject: [PATCH 2/2] imx: bootaux: fix stack and pc assignment on 64-bit

Re: [U-Boot] [PATCH 1/2] imx: mx8m: add memory mapping for CAAM and TCM

2018-11-17 Thread Peng Fan
> -Original Message- > From: Gary Bisson [mailto:gary.bis...@boundarydevices.com] > Sent: 2018年11月15日 0:55 > To: u-boot@lists.denx.de > Cc: sba...@denx.de; Fabio Estevam ; Peng Fan > ; dl-linux-imx ; Gary Bisson > > Subject: [PATCH 1/2] imx: mx8m: add memory mapping for CAAM and TCM >

Re: [U-Boot] [PATCH v5 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629

2018-11-17 Thread Frank Wunderlich
Hi, tested this patchset on top of 2018-11 final and got an issue. if i bootup this uboot, enter console and make a printenv, uboot gets stuck with strange chars after printing then env because my env got load from emmc by default i had reset my env and writing it again (env default

[U-Boot] [PATCH v2 3/8] lib: lmb: extend lmb for checks at load time

2018-11-17 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 v2 8/8] tftp: prevent overwriting reserved memory

2018-11-17 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 v2: - this patch is new in v2 net/tftp.c | 66

  1   2   >