Re: [U-Boot] [PATCH v5 3/5] test/py: remove hacks for non-zero RAM base address in tests

2018-06-29 Thread Stephen Warren
On 06/29/2018 09:25 AM, Stephen Warren wrote: On 06/29/2018 01:41 AM, Quentin Schulz wrote: Some functions have different behaviour when the given address is 0 (assumed to be NULL by the function). find_ram_base() does not return 0 anymore so it's safe to remove those offsets. Patches 1-3,

Re: [U-Boot] [U-Boot,1/1] lib: div64: fix typeo in include/div64.h

2018-06-29 Thread Tom Rini
On Thu, Jun 28, 2018 at 07:55:46PM +0200, Heinrich Schuchardt wrote: > %s/reminder/remainder/ > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list

Re: [U-Boot] [U-Boot, 3/4] ARM: mach-omap2: omap5/dra7: Enable ACTLR[0] (Enable invalidates of BTB) to facilitate CVE_2017-5715 WA in OS

2018-06-29 Thread Tom Rini
On Tue, Jun 12, 2018 at 03:24:10PM -0500, Nishanth Menon wrote: > Enable CVE_2017_5715 and since we have our own v7_arch_cp15_set_acr > function to setup the bits, we are able to override the settings. > > Without this enabled, Linux kernel reports: > CPU0: Spectre v2: firmware did not set

Re: [U-Boot] [U-Boot, 4/4] ARM: mach-omap2: omap3/am335x: Enable ACR::IBE on Cortex-A8 SoCs for CVE-2017-5715

2018-06-29 Thread Tom Rini
On Tue, Jun 12, 2018 at 03:24:11PM -0500, Nishanth Menon wrote: > Enable CVE-2017-5715 option to set the IBE bit. This enables kernel > workarounds necessary for the said CVE. > > With this enabled, Linux reports: > CPU0: Spectre v2: using BPIALL workaround > > This workaround may need to be

[U-Boot] [PATCH 07/16] pico-imx7d: Add support for update SPL using DFU

2018-06-29 Thread Otavio Salvador
From: Fabio Berton Add spl entry on dfu_alt_info to be able to update U-Boot with SPL for pico imx7d board. Signed-off-by: Fabio Berton Signed-off-by: Otavio Salvador --- include/configs/pico-imx7d.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 04/16] pico-imx7d: Add default DFU targets

2018-06-29 Thread Otavio Salvador
Signed-off-by: Otavio Salvador --- configs/pico-imx7d_defconfig | 3 ++- include/configs/pico-imx7d.h | 7 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configs/pico-imx7d_defconfig b/configs/pico-imx7d_defconfig index e456aedb50..04823ca439 100644 ---

[U-Boot] [PATCH 03/16] pico-imx7d: Add GPT partitioning support

2018-06-29 Thread Otavio Salvador
This allow the use of: > run setup_emmc inside of the U-Boot prompt to do the partitioning of the disk. Signed-off-by: Otavio Salvador --- configs/pico-imx7d_defconfig | 2 +- include/configs/pico-imx7d.h | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 16/16] pico-imx7d: Add new pico-pi config

2018-06-29 Thread Otavio Salvador
The new config skips the boot menu which asks which board is in use. This is useful to allow direct booting of image without user iteration. Signed-off-by: Otavio Salvador --- configs/pico-pi-imx7d_defconfig | 59 + 1 file changed, 59 insertions(+) create mode

Re: [U-Boot] [PATCH] cmd: fastboot: Validate user input

2018-06-29 Thread Sam Protsenko
Hi Simon, On 27 June 2018 at 02:18, Simon Glass wrote: > Hi Sam, > > On 26 June 2018 at 10:20, Sam Protsenko wrote: >> In case when user provides '-' as USB controller index, like this: >> >> => fastboot - >> >> data abort occurs in strcmp() function in do_fastboot(), here: >> >> if

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-06-29 Thread Lukasz Majewski
Hi Tom, > On Thu, Jun 28, 2018 at 09:30:19PM -0500, Derald D. Woods wrote: > > On Thu, Jun 28, 2018 at 10:47:36AM -0500, Adam Ford wrote: > > > On Wed, Jun 27, 2018 at 4:41 PM Tom Rini > > > wrote: > > > > > > > > On Sat, Jun 23, 2018 at 07:59:30AM -0600, Simon Glass wrote: > > > > > The

[U-Boot] [PATCH v2] cmd: fastboot: Validate user input

2018-06-29 Thread Sam Protsenko
In case when user provides '-' as USB controller index, like this: => fastboot - data abort occurs in strcmp() function in do_fastboot(), here: if (!strcmp(argv[1], "udp")) (tested on BeagleBone Black). That's because argv[1] is NULL when user types in the '-', and null pointer

[U-Boot] [PATCH 05/16] pico-imx7d: Add fastboot support

2018-06-29 Thread Otavio Salvador
From: Fabio Estevam fastboot tool is a convenient way to flash the eMMC, so add support for it. Examples of usages: On the pico-imx7d U-Boot prompt: => fastboot 0 On the Linux PC connected via USB: 1. Retrieving the U-Boot version $ sudo fastboot getvar bootloader-version -i 0x0525

[U-Boot] [PATCH 08/16] pico-imx7d: Add bootmenu to choose the baseboard

2018-06-29 Thread Otavio Salvador
Currently the baseboards do not offer a way to autodetect which one is in use, so we ask the user if no value has been set. Signed-off-by: Otavio Salvador --- configs/pico-imx7d_defconfig | 3 ++- include/configs/pico-imx7d.h | 12 +++- 2 files changed, 13 insertions(+), 2

[U-Boot] [PATCH 10/16] pico-imx7d: Enable CONFIG_ARMV7_BOOT_SEC_DEFAULT

2018-06-29 Thread Otavio Salvador
From: Fabio Estevam Currently the CAAM driver fails to be probed: caam 3090.caam: Entropy delay = 3200 caam 3090.caam: failed to acquire DECO 0 caam 3090.caam: failed to instantiate RNG CAAM needs to be initialized in secure world, so enable CONFIG_ARMV7_BOOT_SEC_DEFAULT to allow

[U-Boot] [PATCH 14/16] pico-imx7d: README: Use dfu-util to flash U-Boot

2018-06-29 Thread Otavio Salvador
The DFU allows a more user friendly use as the details where the bootloader is installed are abstracted. Signed-off-by: Otavio Salvador --- board/technexion/pico-imx7d/README | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/board/technexion/pico-imx7d/README

Re: [U-Boot] [PATCH] fw_printenv: Don't bail out directly after one env read error

2018-06-29 Thread Tom Rini
On Fri, Jun 29, 2018 at 12:57:45PM +0200, Wolfgang Denk wrote: > Dear Joe, > > In message > you > wrote: > > > > > When using a redundant environment a read error should simply mean to > > > not use that copy instead of giving up completely. The other copy may > > > be just fine. > > > > > >

[U-Boot] [PATCH 02/16] pico-imx7d: Fix common distro configuration behavior

2018-06-29 Thread Otavio Salvador
This sets DISTRO_CONFIG and BOOTCOMMAND, as well as add a `finduuid` environment helper to allow it to properly work with Yocto Project and other distributions using extlinux autogenerated configuration files. Signed-off-by: Otavio Salvador --- configs/pico-imx7d_defconfig | 13 +

[U-Boot] [PATCH 01/16] pico-imx7d: Convert to distro config

2018-06-29 Thread Otavio Salvador
From: Fabio Estevam Instead of keeping a custom environment, use a more generic approach by switching to disto config. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- include/configs/pico-imx7d.h | 55 +--- 1 file changed, 14 insertions(+), 41

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-06-29 Thread Adam Ford
On Fri, Jun 29, 2018 at 2:09 PM Tom Rini wrote: > > On Thu, Jun 28, 2018 at 09:30:19PM -0500, Derald D. Woods wrote: > > On Thu, Jun 28, 2018 at 10:47:36AM -0500, Adam Ford wrote: > > > On Wed, Jun 27, 2018 at 4:41 PM Tom Rini wrote: > > > > > > > > On Sat, Jun 23, 2018 at 07:59:30AM -0600,

[U-Boot] [PATCH 06/16] pico-imx7d: Add SPL support

2018-06-29 Thread Otavio Salvador
From: Fabio Estevam Convert pico-imx7d to SPL support. There are two variants of pico-imx7d SOMs: - One with 512MB of RAM - One with 1GB of RAM The 512MB module contains two Hynix H5TC2G63GFR-PBA. The 1GB module contains two Hynix H5TC4G63GFR-PBA. The RAM size is determined in runtime by

[U-Boot] [PATCH 15/16] pico-imx7d: README: Drop old instructions about secure mode

2018-06-29 Thread Otavio Salvador
Our default config already has the secure mode supported, so the manual step is not required anymore. Signed-off-by: Otavio Salvador --- board/technexion/pico-imx7d/README | 17 - 1 file changed, 17 deletions(-) diff --git a/board/technexion/pico-imx7d/README

[U-Boot] [PATCH 12/16] pico-imx7d: Allow default fdtfile to be overridden by defconfig

2018-06-29 Thread Otavio Salvador
This allow the addition of extra default configurations for each baseboard, removing the boot menu when user boots for the first time. Signed-off-by: Otavio Salvador --- configs/pico-imx7d_defconfig | 1 + include/configs/pico-imx7d.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-06-29 Thread Tom Rini
On Thu, Jun 28, 2018 at 09:30:19PM -0500, Derald D. Woods wrote: > On Thu, Jun 28, 2018 at 10:47:36AM -0500, Adam Ford wrote: > > On Wed, Jun 27, 2018 at 4:41 PM Tom Rini wrote: > > > > > > On Sat, Jun 23, 2018 at 07:59:30AM -0600, Simon Glass wrote: > > > > The time has come to migrate all

Re: [U-Boot] [U-Boot, 2/4] ARM: Introduce ability to enable invalidate of BTB with ICIALLU on Cortex-A15 for CVE-2017-5715

2018-06-29 Thread Tom Rini
On Tue, Jun 12, 2018 at 03:24:09PM -0500, Nishanth Menon wrote: > As recommended by Arm in [1], ACTLR[0] (Enable invalidates of BTB) > needs to be set[2] for BTB to be invalidated on ICIALLU. This needs to > be done unconditionally for Cortex-A15 processors. Provide a config > option for

Re: [U-Boot] [U-Boot, 1/4] ARM: Introduce ability to enable ACR::IBE on Cortex-A8 for CVE-2017-5715

2018-06-29 Thread Tom Rini
On Tue, Jun 12, 2018 at 03:24:08PM -0500, Nishanth Menon wrote: > As recommended by Arm in [1], IBE[2] has to be enabled unconditionally > for BPIALL to be functional on Cortex-A8 processors. Provide a config > option for platforms to enable this option based on impact analysis > for products. >

Re: [U-Boot] [PATCH] mx5: Select ARM_CORTEX_A8_CVE_2017_5715

2018-06-29 Thread Fabio Estevam
Hi Tom and Stefano, On Wed, Jun 20, 2018 at 3:08 PM, Fabio Estevam wrote: > From: Fabio Estevam > > On a 4.18-rc1 kernel the following warning is seen on i.MX51 and > i.MX53: > > CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, > system vulnerable > > Select the

[U-Boot] [PATCH v1 5/6] microblaze: Support for watchdog_reset in Microblaze init

2018-06-29 Thread Shreenidhi Shedi
Signed-off-by: Shreenidhi Shedi --- Changes in v1: None .../microblaze-generic/microblaze-generic.c | 43 +-- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c

[U-Boot] [PATCH v1 3/6] microblaze: Cosmetic changes in Microblaze related files

2018-06-29 Thread Shreenidhi Shedi
Signed-off-by: Shreenidhi Shedi --- Changes in v1: None arch/microblaze/include/asm/io.h | 92 +++ .../microblaze-generic/microblaze-generic.c | 8 +- board/xilinx/microblaze-generic/xparameters.h | 4 +- include/configs/microblaze-generic.h | 2 +- 4

[U-Boot] [PATCH v1 2/6] microblaze: Guard do_reset by CONFIG_SYSRESET

2018-06-29 Thread Shreenidhi Shedi
Signed-off-by: Shreenidhi Shedi --- Changes in v1: None board/xilinx/microblaze-generic/microblaze-generic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c index

[U-Boot] [PATCH v1 1/6] microblaze: Use default implementation from include/linux/io.h

2018-06-29 Thread Shreenidhi Shedi
Signed-off-by: Shreenidhi Shedi --- Changes in v1: - Removed few macros which aren't needed anymore - Few cosmetic changes - Converted Xilinx Axi Watchdog driver to driver model arch/microblaze/include/asm/io.h | 3 --- 1 file changed, 3 deletions(-) diff --git

Re: [U-Boot] [PATCH] mx5: Select ARM_CORTEX_A8_CVE_2017_5715

2018-06-29 Thread Fabio Estevam
Hi Tom, On Fri, Jun 29, 2018 at 6:30 PM, Tom Rini wrote: >> I saw that Tom has just applied Nishanth Menon's series. >> >> Can this one also be applied for 2018.07? > > I can pick it up, or it can be in a PR, thanks! As Stefano's tree do not contain Nishanth's series, maybe it would be easier

[U-Boot] [PATCH 1/2] dm: mmc: sunxi: Add A10/A20 compatible strings

2018-06-29 Thread Adam Sampson
Commit dd27918c2252 ("dm: mmc: sunxi: Add support for driver model") only added the allwinner,sun5i-a13-mmc compatible string for this driver. The DM initialisation code here also works with (at least) A10 and A20, so add the appropriate compatible strings as per Linux 4.17's driver. Tested on

[U-Boot] [PATCH 2/2] dm: sunxi: Use DM for MMC and SATA on all A10 boards

2018-06-29 Thread Adam Sampson
Use the driver model for MMC and SATA, in preparation for CONFIG_BLK defaulting to y. Tested on A10 Cubieboard. Signed-off-by: Adam Sampson --- I imagine an A13 version (no DM_SCSI needed) would work as well, but I don't have an A13 machine to test with. arch/arm/mach-sunxi/Kconfig | 2 ++ 1

[U-Boot] [PATCH v2 01/11] sandbox: eth-raw: Correct valid socket test in send/recv

2018-06-29 Thread Joe Hershberger
In open, the socket is correctly checked to be -1 in the error case. In send and recv, we checked for 0, but that is a valid socket number. Correct this by checking for -1 as a bad socket everywhere. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v2: None

Re: [U-Boot] [PATCH v3 2/3] doc: dtbinding: Add file system firmware loader binding document

2018-06-29 Thread Simon Glass
Hi Tien Fong, On 28 June 2018 at 01:58, Chee, Tien Fong wrote: > On Thu, 2018-06-28 at 01:04 -0700, Chee, Tien Fong wrote: >> On Wed, 2018-06-27 at 14:03 -0700, Simon Glass wrote: >> > >> > Hi Tien Fong, >> > >> > On 27 June 2018 at 01:32, Chee, Tien Fong > > > >> > wrote: >> > > >> > > >> > >

Re: [U-Boot] [PATCH v2 08/11] sandbox: eth-raw: Add a function to ask the host about localhost

2018-06-29 Thread Simon Glass
On 29 June 2018 at 20:20, Joe Hershberger wrote: > Instead of doing a simple string compare against "lo", look for the flag > that indicates a localhost interface. > > Signed-off-by: Joe Hershberger > --- > > Changes in v2: None > > arch/sandbox/cpu/eth-raw-os.c | 27

Re: [U-Boot] [PATCH v5 2/5] test/py: return a RAM address different from 0 as it can be interpreted as NULL

2018-06-29 Thread Simon Glass
On 29 June 2018 at 00:41, Quentin Schulz wrote: > Some functions test that the given address is not NULL (0) and fail or > have a different behaviour if that's the case (e.g. hexport_r). > > Let's make the RAM base address to be not zero by setting it to 2MiB if > that's the case. > > 2MiB is

Re: [U-Boot] [PATCH 2/2] patman: Split alias entries on arbitrary whitespace

2018-06-29 Thread Simon Glass
On 27 June 2018 at 06:38, Adam Sampson wrote: > Previously the first three words in a git-mailrc alias entry could only > be separated by spaces. git-send-email and Mutt both allow arbitrary > whitespace here. > > Signed-off-by: Adam Sampson > --- > > tools/patman/settings.py | 2 +- > 1 file

Re: [U-Boot] [PATCH v5 1/5] env: add the same prefix to error messages to make it detectable by tests

2018-06-29 Thread Simon Glass
On 29 June 2018 at 00:41, Quentin Schulz wrote: > The error message should start with `## Error: ` so that it's easily > detectable by tests without needing to have a complex regexp for > matching all possible error message patterns. > > Let's add the `## Error: ` prefix to the error messages

Re: [U-Boot] [PATCH v2 11/11] sandbox: eth-raw: Add a SIMPLE_BUS to enumerate host interfaces

2018-06-29 Thread Simon Glass
On 29 June 2018 at 20:21, Joe Hershberger wrote: > Ask the OS for each of its interfaces and for each one, bind a U-Boot > device and then probe it. This will allocate the priv data structure > that is then populated. > > Signed-off-by: Joe Hershberger > --- > > Changes in v2: None > >

Re: [U-Boot] [PATCH v2 09/11] sandbox: eth-raw: Allow interface to be specified by index

2018-06-29 Thread Simon Glass
On 29 June 2018 at 20:21, Joe Hershberger wrote: > With systemd stable interface names, eth0 will almost never exist. > Instead of using that name in the sandbox.dts, use an index. > > Signed-off-by: Joe Hershberger > --- > > Changes in v2: None > > arch/sandbox/cpu/eth-raw-os.c | 7

[U-Boot] [PATCH 1/1] efi_driver: set DM_FLAG_NAME_ALLOCED flag

2018-06-29 Thread Heinrich Schuchardt
Set the DM_FLAG_NAME_ALLOCED flag to avoid a memory leak when the block device is removed. Signed-off-by: Heinrich Schuchardt --- lib/efi_driver/efi_block_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efi_driver/efi_block_device.c b/lib/efi_driver/efi_block_device.c index

Re: [U-Boot] [PATCH v3 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-06-29 Thread Simon Glass
On 27 June 2018 at 07:13, Michal Simek wrote: > On 22.6.2018 14:25, Jean-Jacques Hiblot wrote: >> In some cases it can be useful to be able to bind a device to a driver from >> the command line. >> The obvious example is for versatile devices such as USB gadget. >> Another use case is when the

Re: [U-Boot] [PATCH v3 6/7] device: expose the functions used to remove and unbind children of a device

2018-06-29 Thread Simon Glass
On 22 June 2018 at 05:25, Jean-Jacques Hiblot wrote: > Also add a 'drv' parameter to filter the children to remove/unbind. > Exporting those functions is a preparatory work for the addition of the > bind/unbind commands. > > Signed-off-by: Jean-Jacques Hiblot > > --- > > Changes in v3: > - New >

Re: [U-Boot] [PATCH] mx5: Select ARM_CORTEX_A8_CVE_2017_5715

2018-06-29 Thread Tom Rini
On Fri, Jun 29, 2018 at 06:26:55PM -0300, Fabio Estevam wrote: > Hi Tom and Stefano, > > On Wed, Jun 20, 2018 at 3:08 PM, Fabio Estevam wrote: > > From: Fabio Estevam > > > > On a 4.18-rc1 kernel the following warning is seen on i.MX51 and > > i.MX53: > > > > CPU0: Spectre v2: firmware did not

[U-Boot] [PATCH v1 4/6] microblaze: Delete Xilinx watchdog related macros

2018-06-29 Thread Shreenidhi Shedi
Signed-off-by: Shreenidhi Shedi --- Changes in v1: None board/xilinx/microblaze-generic/xparameters.h | 4 include/configs/microblaze-generic.h | 10 -- 2 files changed, 14 deletions(-) diff --git a/board/xilinx/microblaze-generic/xparameters.h

[U-Boot] [PATCH v1 6/6] watchdog: Convert Xilinx Axi watchdog driver to driver model

2018-06-29 Thread Shreenidhi Shedi
Signed-off-by: Shreenidhi Shedi --- Changes in v1: None drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/xilinx_tb_wdt.c | 107 --- 2 files changed, 91 insertions(+), 24 deletions(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index

Re: [U-Boot] [PATCH 1/2] arm: timer: factor out FSL arch timer erratum workaround

2018-06-29 Thread André Przywara
Hi, On 06/29/2018 11:18 AM, Emmanuel Vadot wrote: > On 2018-06-28 16:37, Andre Przywara wrote: >> Hi, >> >> On 28/06/18 15:27, Jagan Teki wrote: >>> On Wed, Jun 27, 2018 at 6:12 AM, Andre Przywara >>> wrote: At the moment we have the workaround for the Freescale arch timer erratum

[U-Boot] [UBOOT PATCH v5 1/4] spi: xilinx: Read reg base address from DTS file

2018-06-29 Thread Vipul Kumar
From: Michal Simek This patch added support to read register base address from DTS file. Signed-off-by: Michal Simek Signed-off-by: Vipul Kumar --- Changes in v5: - No change --- drivers/spi/xilinx_spi.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git

[U-Boot] [UBOOT PATCH v5 4/4] spi: xilinx_spi: convert to livetree

2018-06-29 Thread Vipul Kumar
Update the xilinx spi driver to support a live tree. Signed-off-by: Vipul Kumar --- Changes in v5: - No change --- drivers/spi/xilinx_spi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 8621738..2b5f2cf 100644

[U-Boot] [UBOOT PATCH v5 2/4] spi: xilinx_spi: Modify transfer logic xilinx_spi_xfer() function

2018-06-29 Thread Vipul Kumar
This patch modify xilinx_spi_xfer() function and add rxfifo() and txfifo() functions to add the modularity so that these functions can be used by other functions within the same file. This patch also added support to read fifo_size from dts. Signed-off-by: Vipul Kumar Signed-off-by: Siva Durga

[U-Boot] [UBOOT PATCH v5 0/4] spi:xilinx_spi: Modify xilinx spi driver

2018-06-29 Thread Vipul Kumar
This series of patches do the following: - This patch added support to get reg base address from DTS file - Added rxfifo() and txfifo() functions to add the modularity - Added support to read JEDEC-id twice at the boot time - Added live-tree support Changes in v2: - Split single patch into the

[U-Boot] [PATCH v2 06/11] net: sandbox: Convert sandbox mock eth driver to livetree

2018-06-29 Thread Joe Hershberger
Use the dev_ functions to access DT properties. Signed-off-by: Joe Hershberger --- Changes in v2: - go back to u8_array - move DT accesses to ofdata_to_platdata() drivers/net/sandbox.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/net/sandbox.c

[U-Boot] [PATCH v2 08/11] sandbox: eth-raw: Add a function to ask the host about localhost

2018-06-29 Thread Joe Hershberger
Instead of doing a simple string compare against "lo", look for the flag that indicates a localhost interface. Signed-off-by: Joe Hershberger --- Changes in v2: None arch/sandbox/cpu/eth-raw-os.c | 27 +++ arch/sandbox/include/asm/eth-raw-os.h | 8

[U-Boot] [PATCH v2 11/11] sandbox: eth-raw: Add a SIMPLE_BUS to enumerate host interfaces

2018-06-29 Thread Joe Hershberger
Ask the OS for each of its interfaces and for each one, bind a U-Boot device and then probe it. This will allocate the priv data structure that is then populated. Signed-off-by: Joe Hershberger --- Changes in v2: None arch/sandbox/cpu/eth-raw-os.c | 10 ++

[U-Boot] [PATCH v2 00/11] sandbox: net: Fix sandbox eth drivers

2018-06-29 Thread Joe Hershberger
It seems as sandbox moved to livetree these drivers were not updated. Heinrich suggested correctly that at this point we should be enumerating network interface names, not hard-coding eth0. Also, there were a few bugs that needed fixing. Changes in v2: - New patch - go back to u8_array - move DT

[U-Boot] [PATCH v2 05/11] net: Correct comment in Kconfig

2018-06-29 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v2: None drivers/net/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index e88f056d84..5f26a0004a 100644 --- a/drivers/net/Kconfig +++

Re: [U-Boot] [PATCH v2 04/11] sandbox: eth-raw: Make sure descriptors are always initialized

2018-06-29 Thread Simon Glass
On 29 June 2018 at 20:20, Joe Hershberger wrote: > If we let descriptors equal 0, we can end up closing STDIN. Make sure > they start out as -1. > > Signed-off-by: Joe Hershberger > --- > > Changes in v2: None > > arch/sandbox/cpu/eth-raw-os.c | 5 +++-- > 1 file changed, 3 insertions(+), 2

Re: [U-Boot] [PATCH v2 10/11] sandbox: eth-raw: Make random MAC addresses available to eth-raw

2018-06-29 Thread Simon Glass
On 29 June 2018 at 20:21, Joe Hershberger wrote: > We don't necessarily know how many MAC addresses we'll need, so implement > a ROM read so we always have something valid. > > Signed-off-by: Joe Hershberger > --- > > Changes in v2: None > > drivers/net/sandbox-raw.c | 10 ++ > 1 file

Re: [U-Boot] [PATCH v2 07/11] net: sandbox-raw: Convert raw eth driver to livetree

2018-06-29 Thread Simon Glass
On 29 June 2018 at 20:20, Joe Hershberger wrote: > Signed-off-by: Joe Hershberger > --- > > Changes in v2: > - move DT accesses to ofdata_to_platdata() > - store the host interface details in priv > - switch to dev_read_string() > > arch/sandbox/cpu/eth-raw-os.c | 28

Re: [U-Boot] [PATCH v2 05/11] net: Correct comment in Kconfig

2018-06-29 Thread Heinrich Schuchardt
On 06/30/2018 05:20 AM, Joe Hershberger wrote: > Signed-off-by: Joe Hershberger > Reviewed-by: Simon Glass > --- > > Changes in v2: None > > drivers/net/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig > index

[U-Boot] [PATCH 0/5] efi_loader: complete implementation of GetTime()

2018-06-29 Thread Heinrich Schuchardt
The EFI runtime service GetTime() is used to read the time form the real time clock. The RTC drivers are made usable even if U-Boot is built without CONFIG_CMD_DATE. RTC drivers not complying to the driver model are now supported by the EFI subsystem. The implementation of the GetTime() runtime

[U-Boot] [PATCH v2 09/11] sandbox: eth-raw: Allow interface to be specified by index

2018-06-29 Thread Joe Hershberger
With systemd stable interface names, eth0 will almost never exist. Instead of using that name in the sandbox.dts, use an index. Signed-off-by: Joe Hershberger --- Changes in v2: None arch/sandbox/cpu/eth-raw-os.c | 7 +++ arch/sandbox/include/asm/eth-raw-os.h | 9 +

[U-Boot] [PATCH v2 02/11] sandbox: Fix format of fake-host-hwaddr in test.dts

2018-06-29 Thread Joe Hershberger
test.dts specified the fake MAC address as a u32 array. Instead it should be a u8 array. Signed-off-by: Joe Hershberger --- Changes in v2: - New patch arch/sandbox/dts/test.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/sandbox/dts/test.dts

[U-Boot] [PATCH v2 07/11] net: sandbox-raw: Convert raw eth driver to livetree

2018-06-29 Thread Joe Hershberger
Signed-off-by: Joe Hershberger --- Changes in v2: - move DT accesses to ofdata_to_platdata() - store the host interface details in priv - switch to dev_read_string() arch/sandbox/cpu/eth-raw-os.c | 28 +++- arch/sandbox/include/asm/eth-raw-os.h | 10 --

[U-Boot] [PATCH v2 03/11] net: Only call halt on a driver that has been init'ed

2018-06-29 Thread Joe Hershberger
With driver model, we were not checking if the state of the device was marked as active before calling the halt function. Check that the device is probed and also marked as active. This avoids the case where we were calling halt on the first device in net_init() and the driver would operate on

[U-Boot] [PATCH v2 04/11] sandbox: eth-raw: Make sure descriptors are always initialized

2018-06-29 Thread Joe Hershberger
If we let descriptors equal 0, we can end up closing STDIN. Make sure they start out as -1. Signed-off-by: Joe Hershberger --- Changes in v2: None arch/sandbox/cpu/eth-raw-os.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/cpu/eth-raw-os.c

[U-Boot] [PATCH v2 10/11] sandbox: eth-raw: Make random MAC addresses available to eth-raw

2018-06-29 Thread Joe Hershberger
We don't necessarily know how many MAC addresses we'll need, so implement a ROM read so we always have something valid. Signed-off-by: Joe Hershberger --- Changes in v2: None drivers/net/sandbox-raw.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/sandbox-raw.c

Re: [U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32

2018-06-29 Thread Zengtao (B)
HI Marek: >-Original Message- >From: Marek Vasut [mailto:ma...@denx.de] >Sent: Friday, June 29, 2018 5:52 PM >To: Zengtao (B) >Cc: u-boot@lists.denx.de >Subject: Re: [PATCH] usb: ohci: change the NUM_EDs from 8 to 32 > >On 06/29/2018 11:47 AM, Zengtao (B) wrote: >> Hi Marek: >> >>>

Re: [U-Boot] build fail due to dependence error

2018-06-29 Thread Simon Glass
Hi, On 28 June 2018 at 01:41, Dr. Philipp Tomsich wrote: > Kever, > > is the link for ‘asm’ set up correctly? > > Thanks, > Philipp. > > On 28 Jun 2018, at 10:38, Kever Yang wrote: > > Hi Simon, > > Do you have any idea about this error? > > > CC lib/asm-offsets.s > CC

Re: [U-Boot] [PATCH v3 5/7] dm: convert device_get_global_by_of_offset() to device_get_global_by_ofnode()

2018-06-29 Thread Simon Glass
On 22 June 2018 at 05:25, Jean-Jacques Hiblot wrote: > Also add device_find_global_by_ofnode() that also find a device based on > the OF node, but doesn't probe the device. > > Signed-off-by: Jean-Jacques Hiblot > > --- > > Changes in v3: > - New > > arch/arm/mach-rockchip/rk3188-board-spl.c |

Re: [U-Boot] [PATCH] cmd: fit_image: Add default property for FIT format scripts

2018-06-29 Thread Simon Glass
On 22 June 2018 at 07:58, Alex Kiernan wrote: > When sourcing a FIT format script, if we've not been told the unit name > to use, look for a default property at the root of /images to work out > which unit we should use. > > Signed-off-by: Alex Kiernan > --- > > cmd/source.c | 31

[U-Boot] [PATCH v1 0/6] This patch series contains the the changes related to

2018-06-29 Thread Shreenidhi Shedi
Xilinx Axi Watchdog driver conversion to driver model. All other changes are necessary for getting this done. [PATCH 1/6] We no more need redundant io related macros [PATCH 2/6] Guard the board specific do_reset based on configuartions [PATCH 3/6] Cosmetic changes, based on checkpatch results

Re: [U-Boot] [PATCH v2] cmd: fastboot: Validate user input

2018-06-29 Thread Simon Glass
On 29 June 2018 at 11:59, Sam Protsenko wrote: > In case when user provides '-' as USB controller index, like this: > > => fastboot - > > data abort occurs in strcmp() function in do_fastboot(), here: > > if (!strcmp(argv[1], "udp")) > > (tested on BeagleBone Black). > > That's because

Re: [U-Boot] [PATCH v2 02/11] sandbox: Fix format of fake-host-hwaddr in test.dts

2018-06-29 Thread Simon Glass
On 29 June 2018 at 20:20, Joe Hershberger wrote: > test.dts specified the fake MAC address as a u32 array. Instead it > should be a u8 array. > > Signed-off-by: Joe Hershberger > --- > > Changes in v2: > - New patch > > arch/sandbox/dts/test.dts | 8 > 1 file changed, 4 insertions(+),

Re: [U-Boot] [PATCH v2 06/11] net: sandbox: Convert sandbox mock eth driver to livetree

2018-06-29 Thread Simon Glass
On 29 June 2018 at 20:20, Joe Hershberger wrote: > Use the dev_ functions to access DT properties. > > Signed-off-by: Joe Hershberger > --- > > Changes in v2: > - go back to u8_array > - move DT accesses to ofdata_to_platdata() > > drivers/net/sandbox.c | 16 > 1 file changed,

Re: [U-Boot] [PATCH v2 03/11] net: Only call halt on a driver that has been init'ed

2018-06-29 Thread Simon Glass
On 29 June 2018 at 20:20, Joe Hershberger wrote: > With driver model, we were not checking if the state of the device was > marked as active before calling the halt function. Check that the device > is probed and also marked as active. This avoids the case where we were > calling halt on the

Re: [U-Boot] [PATCH 1/2] git-mailrc: Replace tabs with spaces in alias entries

2018-06-29 Thread Simon Glass
On 27 June 2018 at 06:38, Adam Sampson wrote: > patman's _ReadAliasFile only splits on spaces, not tabs, so the entries > for dinh and maxime weren't being recognised as valid. I'll fix patman > in a separate patch, but this makes all the entries consistent. > > Signed-off-by: Adam Sampson > ---

[U-Boot] [UBOOT PATCH v5 3/4] spi: xilinx_spi: Added support to read JEDEC-id twice at the boot time

2018-06-29 Thread Vipul Kumar
This patch is for the startup block issue in the spi controller. SPI clock is passing through STARTUP block to FLASH. STARTUP block don't provide clock as soon as QSPI provides command. So, first command fails. This patch added support to read JEDEC id in xilinx_spi_xfer (). Signed-off-by: Vipul

Re: [U-Boot] [PATCH v2 11/11] sandbox: eth-raw: Add a SIMPLE_BUS to enumerate host interfaces

2018-06-29 Thread Heinrich Schuchardt
On 06/30/2018 05:21 AM, Joe Hershberger wrote: > Ask the OS for each of its interfaces and for each one, bind a U-Boot > device and then probe it. This will allocate the priv data structure > that is then populated. > > Signed-off-by: Joe Hershberger > --- > > Changes in v2: None > >

[U-Boot] [PATCH 5/5] efi_selftest: unit test for GetTime()

2018-06-29 Thread Heinrich Schuchardt
Provide a unit test for the GetTime() runtime service. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile | 1 + lib/efi_selftest/efi_selftest_rtc.c | 67 + 2 files changed, 68 insertions(+) create mode 100644

[U-Boot] [PATCH 1/5] rtc: remove CONFIG_CMD_DATE dependency

2018-06-29 Thread Heinrich Schuchardt
The EFI subsystem accesses the real time clock and is enabled by default. So we should drop any CONFIG_CMD_DATE dependency from the real time clock drivers. Signed-off-by: Heinrich Schuchardt --- drivers/rtc/at91sam9_rtt.c | 4 drivers/rtc/davinci.c | 2 -- drivers/rtc/ds1302.c

[U-Boot] [PATCH 4/5] efi_selftest: support printing leading zeroes

2018-06-29 Thread Heinrich Schuchardt
Allow specifying the precision when printing integers, e.g. efi_st_printf("%.4u-%.2u-%.2u\n", year, month, day); Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/efi_selftest_console.c | 33 - 1 file changed, 22 insertions(+), 11 deletions(-) diff --git

[U-Boot] [PATCH 3/5] efi_loader: complete implementation of GetTime()

2018-06-29 Thread Heinrich Schuchardt
Implement the missing parts of the GetTime() runtime service. Support CONFIG_DM_RTC=n. Fill seconds. Fill daylight saving time flag correctly. Provide dummy values for capabilities. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_runtime.c | 101 +-- 1

[U-Boot] [PATCH 2/5] efi_loader: remove unused efi_get_time_init()

2018-06-29 Thread Heinrich Schuchardt
Remove unused function efi_get_time_init(). Initialization of the RTC has to be done in board bring up not in the EFI subsystem. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c| 3 --- include/efi_loader.h | 1 - lib/efi_loader/efi_runtime.c | 5 - 3 files

Re: [U-Boot] [PATCH v3 3/7] uclass: Add dev_get_uclass_index() to get the uclass/index of a device

2018-06-29 Thread Simon Glass
Hi Jean-Jacques, On 22 June 2018 at 05:25, Jean-Jacques Hiblot wrote: > > This function is the reciprocal of uclass_find_device(). > It will be used to print the index information in dm tree dump. > > Signed-off-by: Jean-Jacques Hiblot > > --- > > Changes in v3: > - update commit log > - fixed

Re: [U-Boot] CONFIG_BOOTDELAY and env_default.h

2018-06-29 Thread Simon Glass
+Tom Hi Alex, On 29 June 2018 at 02:31, Alex Kiernan wrote: > > I've just been digging into a problem where I've got both > CONFIG_ENV_IS_NOWHERE set and CONFIG_BOOTDELAY set to -2 and it turns > out in env_default.h we have: > > #if defined(CONFIG_BOOTDELAY) && (CONFIG_BOOTDELAY >= 0) >

[U-Boot] [PATCH v3] dm: sunxi: Use DM for MMC and SATA on all A20 boards

2018-06-29 Thread Adam Sampson
Generalise the change in commit 3936514b82e8 ("dm: sunxi: Move Linksprite_pcDuino3 to use DM for MMC, SATA") so it applies to all A20 boards: use the driver model for MMC and SATA, in preparation for CONFIG_BLK defaulting to y. Tested on Linksprite_pcDuino3_Nano. Signed-off-by: Adam Sampson

[U-Boot] [PATCH 11/16] pico-imx7d: Do not override addrmap5

2018-06-29 Thread Otavio Salvador
From: Fabio Estevam The addrmap5 value is the same for the 512MB and 1GB variants, so there is no need to override it. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- board/technexion/pico-imx7d/spl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[U-Boot] [PATCH 13/16] pico-imx7d: Enable auxiliary code support

2018-06-29 Thread Otavio Salvador
This enables the "bootaux" command so a firmware can be loaded inside the M4 MCU. Signed-off-by: Otavio Salvador --- configs/pico-imx7d_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/pico-imx7d_defconfig b/configs/pico-imx7d_defconfig index af2a776005..57312b1fcb 100644

[U-Boot] [PATCH 09/16] pico-imx7d: Add Falcon mode support

2018-06-29 Thread Otavio Salvador
From: Fabio Estevam Falcon mode boots the kernel directly from SPL, without loading the full U-Boot. As pico-imx7d does not have a GPIO for selecting Falcon versus normal mode, enter in Falcon mode when the customer selects the CONFIG_SPL_OS_BOOT option in menuconfig. Signed-off-by: Fabio

[U-Boot] [PATCH v5 1/5] env: add the same prefix to error messages to make it detectable by tests

2018-06-29 Thread Quentin Schulz
The error message should start with `## Error: ` so that it's easily detectable by tests without needing to have a complex regexp for matching all possible error message patterns. Let's add the `## Error: ` prefix to the error messages since it's the one already in use. Suggested-by: Stephen

Re: [U-Boot] [PATCH 2/2] arm: timer: sunxi: add Allwinner timer erratum workaround

2018-06-29 Thread Jagan Teki
On Wed, Jun 27, 2018 at 6:12 AM, Andre Przywara wrote: > The Allwinner A64 SoCs suffers from an arch timer implementation erratum, > where sometimes the lower 11 bits of the counter value erroneously > become all 0's or all 1's [1]. This leads to sudden jumps, both forwards and > backwards, with

Re: [U-Boot] [PATCH] sf: Enable FSR polling on N25Q256(A)

2018-06-29 Thread Marek Vasut
On 06/28/2018 04:29 PM, Jagan Teki wrote: > On Mon, Jun 18, 2018 at 1:18 PM, Jagan Teki wrote: >> On Tue, May 29, 2018 at 2:30 PM, Marek Vasut wrote: >>> On 05/29/2018 06:52 AM, Jagan Teki wrote: + Siva On Fri, May 25, 2018 at 1:28 AM, Marek Vasut wrote: > The N25Q256(A)

Re: [U-Boot] [UBOOT PATCH v4 3/4] spi: xilinx_spi: Added support to read JEDEC-id twice at the boot time

2018-06-29 Thread Jagan Teki
On Thu, Jun 28, 2018 at 1:14 PM, Vipul Kumar wrote: > This patch is for the startup block issue in the spi controller. > SPI clock is passing through STARTUP block to FLASH. STARTUP block > don't provide clock as soon as QSPI provides command. So, first > command fails. > > This patch added

[U-Boot] [PATCH v5 4/5] cmd: nvedit: env import can now import only variables passed as parameters

2018-06-29 Thread Quentin Schulz
While the `env export` can take as parameters variables to be exported, `env import` does not have such a mechanism of variable selection. Let's add the ability to add parameters at the end of the command for variables to be imported. Every env variable from the env to be imported passed by

[U-Boot] [PATCH v5 5/5] test/py: add test for whitelist of variables while importing environment

2018-06-29 Thread Quentin Schulz
This tests that the importing of an environment with a specified whitelist works as intended. If there are variables passed as parameter to the env import command, those only should be imported in the current environment. For each variable passed as parameter, if - foo is bar in current env

[U-Boot] [PATCH v5 3/5] test/py: remove hacks for non-zero RAM base address in tests

2018-06-29 Thread Quentin Schulz
Some functions have different behaviour when the given address is 0 (assumed to be NULL by the function). find_ram_base() does not return 0 anymore so it's safe to remove those offsets. Suggested-by: Stephen Warren Signed-off-by: Quentin Schulz --- added in v5

[U-Boot] [PATCH v5 2/5] test/py: return a RAM address different from 0 as it can be interpreted as NULL

2018-06-29 Thread Quentin Schulz
Some functions test that the given address is not NULL (0) and fail or have a different behaviour if that's the case (e.g. hexport_r). Let's make the RAM base address to be not zero by setting it to 2MiB if that's the case. 2MiB is chosen because it represents the size of an ARM LPAE/v8 section.

Re: [U-Boot] [PATCH v2] dm: sunxi: Use DM for MMC and SATA on all A20 boards

2018-06-29 Thread Maxime Ripard
On Thu, Jun 28, 2018 at 11:06:40PM +0100, Adam Sampson wrote: > Generalise the change in commit 3936514b82e8 ("dm: sunxi: Move > Linksprite_pcDuino3 to use DM for MMC, SATA") so it applies to all A20 > boards: use the driver model for MMC and SATA, in preparation for > CONFIG_BLK defaulting to y.

  1   2   >