[U-Boot] Reprobe devices at run time

2018-06-19 Thread Michal Simek
Hi Simon and other, do we have a way to remove device and probe it again via u-boot prompt? I was grepping u-boot and I didn't find any command for that. I see functionality in the code and several tests but nothing what it is available via command. Thanks, Michal ___

Re: [U-Boot] [PATCH v8 07/30] efi: Split out test init/uninit into functions

2018-06-19 Thread Heinrich Schuchardt
On 06/18/2018 04:08 PM, Simon Glass wrote: > We plan to run more than one EFI test. In order to avoid duplicating code, > create functions which handle preparing for running the test and cleaning > up afterwards. > > Also shorten the awfully long variable names here. > > Signed-off-by: Simon Glas

Re: [U-Boot] [PATCH v8 02/30] efi: sandbox: Adjust memory usage for sandbox

2018-06-19 Thread Heinrich Schuchardt
On 06/18/2018 04:08 PM, Simon Glass wrote: > With sandbox the U-Boot code is not mapped into the sandbox memory range > so does not need to be excluded when allocating EFI memory. Update the EFI > memory init code to take account of that. > > Also use mapmem instead of a cast to convert a memory a

Re: [U-Boot] [PATCH v8 01/30] efi: Don't allow CMD_BOOTEFI_SELFTEST on sandbox

2018-06-19 Thread Heinrich Schuchardt
On 06/18/2018 04:08 PM, Simon Glass wrote: > This does not work at present and gives the following error: > > output: 'ld.bfd: read in flex scanner failed > scripts/Makefile.lib:390: recipe for target > 'lib/efi_selftest/efi_selftest_miniapp_return_efi.so' failed > > It may be possible to figure

Re: [U-Boot] cmd: gpio: Remove dead code from do_gpio

2018-06-19 Thread Michal Simek
On 19.6.2018 20:40, Tom Rini wrote: > On Wed, Jun 13, 2018 at 03:06:49PM +0200, Michal Simek wrote: > >> gpio input/set/clear and toggle commands are already cover that's why >> there is no any other case which should be handled. >> >> Signed-off-by: Michal Simek >> --- >> >> Reported by: Coverit

Re: [U-Boot] [RFC] ARM: rmobile: create DT memory nodes for R8A7795 3.0 and newer

2018-06-19 Thread Marek Vasut
On 06/19/2018 09:11 AM, Laurent Pinchart wrote: > Hi Geert, > > On Tuesday, 19 June 2018 09:58:59 EEST Geert Uytterhoeven wrote: >> On Tue, Jun 19, 2018 at 4:15 AM Laurent Pinchart wrote: >>> On Sunday, 17 June 2018 03:08:02 EEST Marek Vasut wrote: On 06/16/2018 05:44 PM, Laurent Pinchart wro

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-06-19 Thread Marek Vasut
On 06/19/2018 08:39 AM, Masahiro Yamada wrote: > Hi Marek, Hi, > 2018-06-08 5:17 GMT+09:00 Marek Vasut : >> Replace the ad-hoc DMA cache management functions with common bouncebuf, >> since those functions are not handling cases where unaligned buffer is >> passed in, > > > Were you hit by a pr

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

2018-06-19 Thread Marek Vasut
he following changes since commit 378b29cbc6607ad8246b1381bc74ec62bdb19105: Merge git://git.denx.de/u-boot-x86 (2018-06-18 12:59:46 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to 2c84d5218e7e379dce493080a01938530b477611:

[U-Boot] [PATCH] Makefile: Ensure we build with -std=gnu11

2018-06-19 Thread Tom Rini
With the move to using at least gcc-6 for many targets we now have C code that requires the GNU11 C standard to be used in all cases. Signed-off-by: Tom Rini --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fe7bf11970b8..399c5a5b549d

[U-Boot] Make Menuconfig Error

2018-06-19 Thread Duncan Hare
Karsten Thanks for your lasts response. My apologies, I forget my yahoo email does not quite understand RFC email standards. Here's when I'm at with this version of u-boot. root@debian:/home/duncan/archive/u-boot# make clean root@debian:/home/duncan/archive/u-boot# make menuconfig   HOSTCC  scri

[U-Boot] [ANN] U-Boot v2018.07-rc2 released

2018-06-19 Thread Tom Rini
Hey all, It's a day after when I had planned to release v2018.07-rc2, but here we are. The group of patches I applied earlier in the day took a bit longer to sort out, and that means I have a few more things I had hoped to apply still left to look at. I still think at this point we should focus

Re: [U-Boot] U-Boot TFTP protection

2018-06-19 Thread Simon Glass
Hi Stefan, On 15 June 2018 at 00:44, Stefan Johansson wrote: > > Hello, > We have been looking at protecting U-Boot from (malicious) TFTP overwrites. > We want to do this after our ARMv7 U-Boot has relocated. > > The memory map looks like this (I hope): > > --- Top of DRA

Re: [U-Boot] tpm TIS TPMv2.0

2018-06-19 Thread Simon Glass
Hi, On 18 June 2018 at 03:47, Miquel Raynal wrote: > > Hi Martin, > > > > > Nevertheless one question: Why did you define another dts binding > > > > instead of using that one what is already available on the Linux > > > > kernel? There is "tcg,tpm_tis-spi" already defined. > > > > > > I did not

Re: [U-Boot] sandbox: Net: No ethernet found.

2018-06-19 Thread Simon Glass
+Joe On 15 June 2018 at 00:10, Heinrich Schuchardt wrote: > Hello Simon, > > when I run sandbox_defconfig I always get > Net: No ethernet found. > > The dm command shows no driver attached to uclass 21: eth. Why are the > sandbox and sandbox-raw drivers not loaded? > > device_bind_common is not

Re: [U-Boot] [PATCH v2 10/11] efi_loader: Pass address to fs_read()

2018-06-19 Thread Simon Glass
Hi Alex, On 14 June 2018 at 15:55, Alexander Graf wrote: > > > On 14.06.18 23:35, Simon Glass wrote: >> Hi Alex, >> >> On 14 June 2018 at 13:51, Alexander Graf wrote: >>> >>> >>> On 14.06.18 21:01, Simon Glass wrote: On 14 June 2018 at 12:22, Alexander Graf wrote: > The fs_read() funct

Re: [U-Boot] [PATCH 1/1] common: print \n in initr_scsi()

2018-06-19 Thread Simon Glass
Hi Heinrich, On 14 June 2018 at 23:01, Heinrich Schuchardt wrote: > Typically init_scsi() does not output anything. So initr_scsi() should > provide a \n or we may see borked output like > > SCSI: Net: No ethernet found. > > as observed with sandbox_defconfig. > > Signed-off-by: Heinri

Re: [U-Boot] [PATCH] serial: zynq: Use platdata for storing static data instead of priv

2018-06-19 Thread Simon Glass
On 15 June 2018 at 01:32, Michal Simek wrote: > Explanation from Simon Glass > "Private data is created when the device is probed and freed when the > device is removed. > > Platform data is created when the device is bound, and survives > probe/remove cycles. > > Strictly speaking, platform data

Re: [U-Boot] [PATCH v2 02/13] efi.h: Do not use config options

2018-06-19 Thread Simon Glass
Hi Bin, On 15 June 2018 at 03:51, Bin Meng wrote: > Hi Simon, > > On Thu, Jun 14, 2018 at 8:58 PM, Simon Glass wrote: >> Hi Alex, >> >> On 13 June 2018 at 04:17, Alexander Graf wrote: >>> >>> >>> On 13.06.18 03:29, Simon Glass wrote: Hi Bin, Alex, On 12 June 2018 at 09:36, Bin Me

Re: [U-Boot] [PATCH v8 14/30] efi: Don't build sandbox with __attribute__((ms_abi))

2018-06-19 Thread Simon Glass
Hi Alex, On 18 June 2018 at 08:46, Alexander Graf wrote: > On 06/18/2018 04:08 PM, Simon Glass wrote: >> >> There appears to be a bug [1] in gcc when using varargs with this >> attribute. Disable it for sandbox so that functions which use that can >> work correctly, such as install_multiple_proto

Re: [U-Boot] [PATCH] x86: efi-x86_app: Update MAINTAINERS

2018-06-19 Thread Simon Glass
On 18 June 2018 at 19:43, Bin Meng wrote: > Previous rename of efi-x86 target missed the MAINTAINERS update, > which caused the buildman warnings: > > WARNING: no status info for 'efi-x86_app' > WARNING: no maintainers for 'efi-x86_app' > > This updates the board MAINTAINERS to reflect the up-

Re: [U-Boot] [PATCH v8 12/30] sandbox: Try to start the RAM buffer at a particular address

2018-06-19 Thread Simon Glass
Hi Alex, On 18 June 2018 at 08:45, Alexander Graf wrote: > On 06/18/2018 04:08 PM, Simon Glass wrote: >> >> Use a starting address of 256MB which should be available. This helps to >> make sandbox RAM buffers pointers more recognisable. >> >> Signed-off-by: Simon Glass > > > Nak, this has a non-

Re: [U-Boot] [PATCH v3 1/2] dm: mdio: add a uclass for MDIO

2018-06-19 Thread Joe Hershberger
On Tue, Jun 12, 2018 at 11:33 PM, wrote: > From: Ken Ma > > Add a uclass which provides access to MDIO busses and includes > operations required by MDIO. > The implementation is based on the existing mii/phy/mdio data > structures and APIs. > This patch also adds evice tree binding for MDIO bus.

Re: [U-Boot] [PATCH v3 1/2] dm: mdio: add a uclass for MDIO

2018-06-19 Thread Joe Hershberger
On Tue, Jun 12, 2018 at 11:33 PM, wrote: > From: Ken Ma > > Add a uclass which provides access to MDIO busses and includes > operations required by MDIO. > The implementation is based on the existing mii/phy/mdio data > structures and APIs. > This patch also adds evice tree binding for MDIO bus.

Re: [U-Boot] [U-Boot,u-boot,5/5] configs: Update Meson GX configs

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 01:43:41PM +0200, Neil Armstrong wrote: > Enable USB on all Amlogic Meson GXL based board. > Enable Regulator support on all boards. > Enable ADC support on the LibreTech-CC board. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.a

Re: [U-Boot] [U-Boot, v2, 7/8] spi: sandbox: Fix memory leak in sandbox_sf_bind_emul()

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:05:01AM -0600, Simon Glass wrote: > Move the strdup() call so that it is only done when we know we will bind > the device. > > Reported-by: Coverity (CID: 131216) > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: P

Re: [U-Boot] [U-Boot, 1/2] configs: db410c: Set eMMC env partition to BOOT2

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 07:04:40AM +0300, Ramon Fried wrote: > BOOT2 partition is empty and free for using to store the environment. > Use that instead of the default user partition. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signa

Re: [U-Boot] [U-Boot, u-boot, 2/5] config: meson-gx-common: Enable USB boot

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 01:43:38PM +0200, Neil Armstrong wrote: > Add USB as boot target depending on the configuration. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot

[U-Boot] [PATCH v3] x86: Add 64-bit setjmp/longjmp implementation

2018-06-19 Thread Ivan Gorinov
Add setjmp/longjmp functions for x86_64. v3: Removed the FPU control word and MXCSR; Corrected SPDX License Identifier. v2: Added the FPU control word and MXCSR to jmp_buf; Using ENTRY/ENDPROC macros. Ivan Gorinov (1): x86: Add 64-bit setjmp/longjmp implementation arch/x86/cpu/x86_64

Re: [U-Boot] [U-Boot, 2/2] .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 04:21:50PM +0900, Masahiro Yamada wrote: > Follow Linux commit 10b62a2f785a (".gitignore: move *.dtb and *.dtb.S > patterns to the top-level .gitignore"). > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signa

Re: [U-Boot] [U-Boot,u-boot,4/5] meson: use the clock driver

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 01:43:40PM +0200, Neil Armstrong wrote: > From: Beniamino Galvani > > Use the clk framework to initialize clocks from drivers that need them > instead of having hardcoded frequencies and initializations from board > code. > > Signed-off-by: Beniamino Galvani > Signed-of

Re: [U-Boot] [U-Boot, V2] dm: gpio: Add DM compatibility to GPIO driver for Davinci

2018-06-19 Thread Tom Rini
On Sun, Jun 10, 2018 at 10:25:57PM -0500, Adam Ford wrote: > This adds DM_GPIO support for the davinici GPIO driver with > DT support. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/mach-davinci/include/mach/gpio.h > b/arch/arm/mach-davinci/include/mach/gpio.h > index f1d4d9e9e0..d4b25

Re: [U-Boot] [U-Boot,V3] block: Add SPL_BLOCK_CACHE and default n

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 05:17:48PM -0500, Adam Ford wrote: > When enabling BLOCK_CACHE on devices with limited RAM during SPL, > some devices may not boot. This creates an option to enable > block caching in SPL by defaults off. It is dependent on SPL_BLK > > Fixes: 46960ad6d09b ("block: Have B

Re: [U-Boot] [U-Boot, v2, 4/8] fdtgrep: Fix logic of free() in do_fdtgrep()

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:04:58AM -0600, Simon Glass wrote: > This loop never actually exits, but the way the code is written this is > not obvious. Add an explicit error check. > > Reported-by: Coverity (CID: 131280) > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom si

Re: [U-Boot] [U-Boot,v5,2/6] iotrace: add IO region limit

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:23PM +0300, Ramon Fried wrote: > When dealing with a lot of IO regions, sometimes > it makes sense only to trace a specific one. > This patch adds support for region limits. > If region is not set, the iotrace works the same as it was. > If region is set, the iotrace

Re: [U-Boot] [U-Boot, 2/2] configs: dragonboard410c: remove env partition offset

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 07:04:41AM +0300, Ramon Fried wrote: > BOOT2 is not partitioned, no need for partition offset. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mail

[U-Boot] [PATCH v3] x86: Add 64-bit setjmp/longjmp implementation

2018-06-19 Thread Ivan Gorinov
Add setjmp/longjmp functions for x86_64. Signed-off-by: Ivan Gorinov --- arch/x86/cpu/x86_64/setjmp.S | 49 +++ arch/x86/cpu/x86_64/setjmp.c | 19 - arch/x86/include/asm/setjmp.h | 17 +++ 3 files changed, 66 insertions(+), 19

Re: [U-Boot] [U-Boot, u-boot, 3/5] clk: add Amlogic meson clock driver

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 01:43:39PM +0200, Neil Armstrong wrote: > From: Beniamino Galvani > > Introduce a basic clock driver for Amlogic Meson SoCs which supports > enabling/disabling clock gates and getting their frequency. > > Signed-off-by: Beniamino Galvani > Signed-off-by: Neil Armstrong

Re: [U-Boot] [U-Boot, v2, 5/8] avb2.0: add boot states and dm-verity support

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:40PM +0300, Igor Opaniuk wrote: > 1. Add initial support of boot states mode (red, green, yellow) > 2. Add functions for enforcing dm-verity configurations > > Signed-off-by: Igor Opaniuk Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP s

Re: [U-Boot] fs: btrfs: Do not fail when all root_backups are empty

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 02:14:33PM +0300, Yevgeny Popovych wrote: > This is the case when reading freshly created filesystem. > The error message is like the following: > btrfs_read_superblock: No valid root_backup found! > > Since the data from super_roots/root_backups is not actually used -

Re: [U-Boot] [U-Boot, v2, 8/8] doc: avb2.0: add README about AVB2.0 integration

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:43PM +0300, Igor Opaniuk wrote: > Contains: > 1. Overview of Android Verified Boot 2.0 > 2. Description of avb subset of commands > 3. Examples of errors when boot/vendor/system/vbmeta partitions > are tampered > 4. Examples of enabling AVB2.0 on your setup > > Signe

Re: [U-Boot] arm: Do not clear LR on exception in SPL

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 02:04:17PM -0500, Andrew F. Davis wrote: > When an exception or interrupt occurs the link register (LR) may > contain the source of the exception, although we do not print the > value it may still be extracted with a debugger. When in SPL we > loop on getting and exception,

Re: [U-Boot] [U-Boot, v2, 5/8] fdtgrep: Separate out checking of two allocations

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:04:59AM -0600, Simon Glass wrote: > The current code might succeed on the first allocation and fail on the > second. Separate the checks to avoid this problem. > > Of course, free() will never fail and the chances that (when allocating > two small areas) one will succee

Re: [U-Boot] [U-Boot, V4, 1/2] ARM: image: Add option for ignoring ep bit 3

2018-06-19 Thread Tom Rini
On Wed, Jun 13, 2018 at 06:13:32AM +0200, Marek Vasut wrote: > Add option to the booti_setup() which indicates to it that the caller > requires the image to be relocated to the beginning of the RAM and > that the information whether the image can be located anywhere in RAM > at 2 MiB aligned bound

Re: [U-Boot] [U-Boot, v2, 1/8] log: Fix incorect range check in log_get_cat_name()

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:04:55AM -0600, Simon Glass wrote: > This allows access to an element after the end of the array. Fix it. > > Reported-by: Coverity (CID: 173279) > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,V4,2/2] bootm: Handle kernel_noload on arm64

2018-06-19 Thread Tom Rini
On Wed, Jun 13, 2018 at 06:13:33AM +0200, Marek Vasut wrote: > The ARM64 has 2 MiB alignment requirement for the kernel. When using > fitImage, this requirement may by violated, the kernel will thus be > executed from unaligned address and fail to boot. Do what booti does > and run booti_setup() f

Re: [U-Boot] [U-Boot, v2, 6/8] rsa: Fix missing memory leak on error in fdt_add_bignum()

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:05:00AM -0600, Simon Glass wrote: > Thsi function can fail without freeing all its memory. Fix it. > > Reported-by: Coverity (CID: 131217) > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] MAINTAINERS: update ARM Snapdragon

2018-06-19 Thread Tom Rini
On Sun, Jun 10, 2018 at 11:51:41PM +0300, Ramon Fried wrote: > Replace Mateusz as Maintainer for ARM Snapdragon arch. > > Signed-off-by: Ramon Fried > Acked-by: Mateusz Kulikowski Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 7/8] test/py: avb2.0: add tests for avb commands

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:42PM +0300, Igor Opaniuk wrote: > 1. Run AVB 2.0 full verification chain, avb verify > 2. Check if 'avb get_uuid' works, compare results with > 'part list mmc 1' output > 3. Test `avb read` commands, which reads N bytes from a partition > identified by a name > > Sig

Re: [U-Boot] [U-Boot, 3/3] ARM: sunxi: remove empty #ifdef/endif block

2018-06-19 Thread Tom Rini
On Mon, Jun 04, 2018 at 09:45:23PM +1200, Chris Packham wrote: > Whatever code this was guarding has been removed so remove the guards > too. > > Signed-off-by: Chris Packham Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [PATCH] test_avb: Add pymark.buildconfigspec information for the AVB tests

2018-06-19 Thread Tom Rini
On Tue, Jun 19, 2018 at 11:55:08AM -0400, Tom Rini wrote: > Signed-off-by: Tom Rini 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/listinfo/u-boot

Re: [U-Boot] common: Fix cpu nr type which is always unsigned type

2018-06-19 Thread Tom Rini
On Wed, Jun 13, 2018 at 08:56:31AM +0200, Michal Simek wrote: > cpu_cmd() is reading cpu number via simple_strtoul() which is always > unsigned type. > Platform code implementations are not expecting that nr can be negative > and there is not checking in the code for that too. > > This patch is u

Re: [U-Boot] [U-Boot, v2, 8/8] sandbox: swap_case: Increase number of base address regs

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:05:02AM -0600, Simon Glass wrote: > At present the code overruns the bar[] array. Fix this. > > At the same time, drop the leading / from the "/spl" path so that we can > run U-Boot SPL with: > >spl/u-boot-spl > > rather than requiring: > >/path/to/spl/u-boot

Re: [U-Boot] [U-Boot, v5, 6/6] iotrace: fix behaviour when buffer is full

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:27PM +0300, Ramon Fried wrote: > Don't continue updating the offset when buffer is full. > When the buffer size exhausts and there's no space left to write > warn the user and update only the needed size and not both the > offset and needed size. > > Add needed buffe

Re: [U-Boot] [U-Boot,v5,1/6] cmd: iotrace: add set region command

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:22PM +0300, Ramon Fried wrote: > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de htt

Re: [U-Boot] [U-Boot, u-boot, 1/5] adc: meson-saradc: fix regmap_init_mem call

2018-06-19 Thread Tom Rini
On Thu, Jun 14, 2018 at 01:43:37PM +0200, Neil Armstrong wrote: > The SARADC driver was merged after the following commit : > commit d35812368a59 ("regmap: change regmap_init_mem() to take ofnode instead > udevice") > Thus breaking build, this patch fixes the regmap_init_mem accordingly. > > Sig

Re: [U-Boot] [U-Boot, 1/3] configs: Remove empty #ifdef/#ifndef blocks

2018-06-19 Thread Tom Rini
On Mon, Jun 04, 2018 at 09:45:21PM +1200, Chris Packham wrote: > Remove empty #ifdef/#ifndef..#endif blocks where the configuration they > guarded has been completely removed. > > Signed-off-by: Chris Packham Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 2/8] console: Fix handling of NULL global_data

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:04:56AM -0600, Simon Glass wrote: > Both putc() and puts() can be called before global_data is set up. Some of > the code paths don't handle this correctly. Add an explicit test before > any member is accessed. > > Reported-by: Coverity (CID: 169030) > Signed-off-by: Si

Re: [U-Boot] arm: mach-omap2/omap3/clock.c: Enable all GPIO with CMD_GPIO

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 07:56:49PM -0500, Adam Ford wrote: > When CMD_GPIO is enabled the command 'gpio status -a' can cause > a hang or reboot if GPIO banks are not enabled, because it scans > all banks. This patch enables all GPIO banks so 'gpio status -a' > can fully execute. > > Signed-off-b

Re: [U-Boot] db410c: fix alignment of dts file

2018-06-19 Thread Tom Rini
On Sat, Jun 09, 2018 at 11:30:30AM +0300, Ramon Fried wrote: > Alignment was wrong, missing one tab. fix it. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U

Re: [U-Boot] [U-Boot, v5, 3/6] common: iotrace: add timestamp to iotrace records

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:24PM +0300, Ramon Fried wrote: > Add timestamp to each iotrace record to aid in debugging > of IO timing access bugs. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [U-Boot, v2] mmc: sdhci: Fix MMC HS200 tuning command failures

2018-06-19 Thread Tom Rini
On Wed, Jun 13, 2018 at 08:20:39AM +0200, Michal Simek wrote: > From: Siva Durga Prasad Paladugu > > This patch fixes the mmc tuning command failures > when tuning pattern data needs to read back for > comparision against the expected bit pattern. > > Reported-by: Masahiro Yamada > Signed-off-

Re: [U-Boot] gpio: omap_gpio: Name GPIO's by bank and index with DM_GPIO

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 08:05:38PM -0500, Adam Ford wrote: > There are multiple GPIO banks with up to 32 pins / bank. When > using 'gpio status -a' to read the pins, this patch displays > both GPIO_ similar to how the device trees > display in addition to displaying gpio_# > > Signed-off-by: Ada

Re: [U-Boot] [U-Boot, v2, 1/8] avb2.0: add Android Verified Boot 2.0 library

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:36PM +0300, Igor Opaniuk wrote: > Add libavb lib (3rd party library from AOSP), that implements support of > AVB 2.0. This library is used for integrity checking of Android partitions > on eMMC. > > libavb was added as it is and minimal changes were introduced to red

Re: [U-Boot] [U-Boot, v5, 4/6] iotrace: move record definitons to header file

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:25PM +0300, Ramon Fried wrote: > The header definitions are needed for reading > record information in cmd/iotrace.c > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [U-Boot,v5,5/6] cmd: iotrace: add dump trace command

2018-06-19 Thread Tom Rini
On Fri, Jun 08, 2018 at 08:53:26PM +0300, Ramon Fried wrote: > Add dump trace command which dump all trace > buffer content in a much more readable fashion > than md. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Descriptio

Re: [U-Boot] [U-Boot, v2, 4/8] cmd: avb2.0: avb command for performing verification

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:39PM +0300, Igor Opaniuk wrote: > Enable a "avb" command to execute Android Verified > Boot 2.0 operations. It includes such subcommands: > avb init - initialize avb2 subsystem > avb read_rb - read rollback index > avb write_rb - write rollback index > avb is_

Re: [U-Boot] [U-Boot, v2, 6/8] am57xx_hs: avb2.0: add support of AVB 2.0

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:41PM +0300, Igor Opaniuk wrote: > 1. Add vbmeta partition info to android partition layout for am57xx SoC > 2. Add support of AVB 2.0 (including avb subset of commands) for am57xx HS > > Signed-off-by: Igor Opaniuk I re-worded this slightly as it only updates inclu

Re: [U-Boot] [U-Boot, 1/2] .gitignore: sort normal pattern rules alphabetically

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 04:21:49PM +0900, Masahiro Yamada wrote: > Follow Linux commit 1377dd3e2987 (".gitignore: sort normal pattern > rules alphabetically"). > > This would allow us to easily catch duplicated patterns if any. > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thank

Re: [U-Boot] [U-Boot,2/3] m68k: Remove empty #ifdef/#ifndef block

2018-06-19 Thread Tom Rini
On Mon, Jun 04, 2018 at 09:45:22PM +1200, Chris Packham wrote: > Whatever code this was guarding has been removed so remove the guards > too. > > Signed-off-by: Chris Packham Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] mmc: Remove hwpartition help text when command is disabled

2018-06-19 Thread Tom Rini
On Mon, Jun 11, 2018 at 04:20:09PM +, Alex Kiernan wrote: > When the `mmc hwpartition` command is disabled, remove the associated help > text. > > Signed-off-by: Alex Kiernan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [U-Boot, v2, 2/8] avb2.0: integrate avb 2.0 into the build system

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:37PM +0300, Igor Opaniuk wrote: > Integrate libavb into the build system. Introduce CONFIG_LIBAVB > build option. > > Signed-off-by: Igor Opaniuk Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, v2, 3/8] sandbox: Use memcpy() to move overlapping regions

2018-06-19 Thread Tom Rini
On Tue, Jun 12, 2018 at 12:04:57AM -0600, Simon Glass wrote: > The use of strcpy() to remove characters at the start of a string is safe > in U-Boot, since we know the implementation. But in os.c we are using the > C library's strcpy() function, where this behaviour is not permitted. > > Update t

Re: [U-Boot] [U-Boot,v2,3/8] avb2.0: implement AVB ops

2018-06-19 Thread Tom Rini
On Sun, Jun 03, 2018 at 09:56:38PM +0300, Igor Opaniuk wrote: > Implement AVB ops on top of existing mmc subsystem API. Currently there > is a full implementation of such operations, defined by [1] > AVB2.0 specification: > > .read_from_partition() - reads N bytes from a partition identified by >

Re: [U-Boot] cmd: gpio: Remove dead code from do_gpio

2018-06-19 Thread Tom Rini
On Wed, Jun 13, 2018 at 03:06:49PM +0200, Michal Simek wrote: > gpio input/set/clear and toggle commands are already cover that's why > there is no any other case which should be handled. > > Signed-off-by: Michal Simek > --- > > Reported by: Coverity (local) > Not sure how to report this prope

[U-Boot] [PATCH v2 2/2] net: mvneta: zero Tx descriptors on init

2018-06-19 Thread Baruch Siach
From: Rabeeh Khoury Make the initialization sequence consistent with the Linux kernel driver. Reviewed-by: Stefan Roese Acked-by: Joe Hershberger Signed-off-by: Rabeeh Khoury Signed-off-by: Baruch Siach --- v2: No change --- drivers/net/mvneta.c | 1 + 1 file changed, 1 insertion(+) diff -

[U-Boot] [PATCH v2 1/2] net: mvneta: dcache flush TX descriptors at init

2018-06-19 Thread Baruch Siach
From: Rabeeh Khoury This fixes sporadic timeout on initial packet Tx (usually ARP), with an error message like: timeout: packet not sent Reviewed-by: Stefan Roese Tested-by: Chris Packham Acked-by: Joe Hershberger Signed-off-by: Rabeeh Khoury Signed-off-by: Baruch Siach --- v2: Make the

[U-Boot] [PATCH v2 1/1] x86: qemu: do not build car.o with start64.o

2018-06-19 Thread Heinrich Schuchardt
car.o can only be used with start.o, not with start64.o. Signed-off-by: Heinrich Schuchardt --- v2 rebase to current master shorten commit message --- arch/x86/cpu/qemu/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/cpu/qemu/Makefile b/a

Re: [U-Boot] [PATCH] efi_loader: Fix GOP 32bpp exposure

2018-06-19 Thread Heinrich Schuchardt
On 06/19/2018 01:47 PM, Alexander Graf wrote: > We store pixels as BGRA in memory, as can be seen from struct efi_gop_pixel. > So we need to expose the same format to UEFI payloads to actually have them > use the correct colors. > > Reported-by: Fabian Vogt > Signed-off-by: Alexander Graf > ---

Re: [U-Boot] [PATCH V2] eth: dm: fec: Add gpio phy reset binding

2018-06-19 Thread Joe Hershberger
On Sun, Jun 17, 2018 at 8:22 AM, Michael Trimarchi wrote: > Add the missing gpio phy reset binding to the gpio and > reset time configuration > > Signed-off-by: Michael Trimarchi Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de h

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

2018-06-19 Thread Joe Hershberger
On Mon, Jun 18, 2018 at 8:56 AM, 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 devices are not yet ready at startup and >

[U-Boot] [PATCH v2] patman: Support using a particular SMTP server

2018-06-19 Thread Simon Glass
Some environments require providing the '--smtp-server' argument to 'git send-email'. Add support for this. Signed-off-by: Simon Glass --- Changes in v2: - Fix 'get' typo tools/patman/README | 1 + tools/patman/gitutil.py | 6 +- tools/patman/patman.py | 5 - 3 files changed, 10 i

[U-Boot] [PATCH] test_avb: Add pymark.buildconfigspec information for the AVB tests

2018-06-19 Thread Tom Rini
Signed-off-by: Tom Rini --- test/py/tests/test_avb.py | 5 + 1 file changed, 5 insertions(+) diff --git a/test/py/tests/test_avb.py b/test/py/tests/test_avb.py index 770bdde4ad0c..7996e4845db3 100644 --- a/test/py/tests/test_avb.py +++ b/test/py/tests/test_avb.py @@ -23,6 +23,7 @@ mmc_dev =

Re: [U-Boot] [PATCH] efi_loader: Fix GOP 32bpp exposure

2018-06-19 Thread Peter Robinson
On Tue, Jun 19, 2018 at 12:47 PM, Alexander Graf wrote: > We store pixels as BGRA in memory, as can be seen from struct efi_gop_pixel. > So we need to expose the same format to UEFI payloads to actually have them > use the correct colors. > > Reported-by: Fabian Vogt > Signed-off-by: Alexander Gr

Re: [U-Boot] [PATCH v5 0/3] sunxi: fix eMMC stability issues on A64

2018-06-19 Thread Vasily Khoruzhick
On Mon, Jun 18, 2018 at 11:56 PM, Jagan Teki wrote: > > This what[1] I changed on top of your changes, same issue. > > [1] https://paste.ubuntu.com/p/NjYyMk68P6/ It should be tested separately. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.

[U-Boot] [PATCH] efi_loader: Fix GOP 32bpp exposure

2018-06-19 Thread Alexander Graf
We store pixels as BGRA in memory, as can be seen from struct efi_gop_pixel. So we need to expose the same format to UEFI payloads to actually have them use the correct colors. Reported-by: Fabian Vogt Signed-off-by: Alexander Graf --- lib/efi_loader/efi_gop.c | 2 +- 1 file changed, 1 insertio

Re: [U-Boot] [RFC] ARM: rmobile: create DT memory nodes for R8A7795 3.0 and newer

2018-06-19 Thread Magnus Damm
Hi Laurent, On Tue, Jun 19, 2018 at 11:15 AM, Laurent Pinchart wrote: > On Sunday, 17 June 2018 03:08:02 EEST Marek Vasut wrote: >> On 06/16/2018 05:44 PM, Laurent Pinchart wrote: >> > Hi Marek, >> > >> > On Saturday, 16 June 2018 02:42:30 EEST Marek Vasut wrote: >> >> On 06/16/2018 01:21 AM, Lau

[U-Boot] help: how get last command result using scripting

2018-06-19 Thread Michael Nazzareno Trimarchi
Hi all Trying to understand how to get the last result. For example: sspi 1:0.3 24 72; sspi 1:1.3 24 73 Now I need to have the last output of the last command to compare in one script. Any idea? Michael ___ U-Boot mailing list U-Boot@lists.denx

Re: [U-Boot] [U-Boot, v4, 4/5] ARM: HYP/non-sec: enable ARMV7_LPAE if HYP mode is supported

2018-06-19 Thread Alexander Graf
> ARMV7_LPAE is required in order to enable the MMU in HYP mode. > And we really want to enable the MMU in HYP mode such that we can > enable the the caches. Otherwise U-Boot code (such as the EFI > implementation) that runs in HYP mode will run at a snils pace. > > Signed-off-by: Mark Kettenis

Re: [U-Boot] [U-Boot,v4,1/5] ARM: HYP/non-sec: migrate stack

2018-06-19 Thread Alexander Graf
> The current code that switches into HYP mode doesn't bother to set > up a stack for HYP mode. This doesn't work for EFI applications > as they expect a usable stack. Fix this by migrating the stack > pointer from SP_svc to SP_hyp while in Monitor mode. > This restores the stack pointer when we

Re: [U-Boot] [U-Boot, v4, 5/5] Revert "efi_loader: no support for ARMV7_NONSEC=y"

2018-06-19 Thread Alexander Graf
> This reverts commit c524997acb3d322e1bbd36c06ad02ef589705e7c. > > Booting ARMv7 in non-secure mode using bootefi works now. > > Signed-off-by: Mark Kettenis Thanks, applied to efi-next Alex ___ U-Boot mailing list U-Boot@lists.denx.de https://list

Re: [U-Boot] [U-Boot, v4, 2/5] efi_loader: ARM: run EFI payloads non-secure

2018-06-19 Thread Alexander Graf
> If desired (and possible) switch into HYP mode or non-secure SVC mode > before calling the entry point of an EFI application. This allows > U-Boot to provide a usable PSCI implementation and makes it possible > to boot kernels into hypervisor mode using an EFI bootloader. > > Based on diffs fro

Re: [U-Boot] [U-Boot, v4, 3/5] efi_loader: ARM: don't attempt to enter non-secure mode twice

2018-06-19 Thread Alexander Graf
> Multiple EFI binaries may be executed in sequence. So if we already > are in non-secure mode after running the first one we should skip > the switching code since it no longer works once we're non-secure. > > Signed-off-by: Mark Kettenis Thanks, applied to efi-next Alex

Re: [U-Boot] [PATCH v6 0/7] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-06-19 Thread Andre Przywara
Hi, On 19/06/18 07:40, Jagan Teki wrote: > On Wed, May 16, 2018 at 1:30 PM, Andre Przywara > wrote: >> This is an updated version of the series which brings the exact mainline >> Linux device tree files for various Allwinner boards into U-Boot. >> Apart from using the usually more correct refere

Re: [U-Boot] [PATCH v2] x86: Add 64-bit setjmp/longjmp implementation

2018-06-19 Thread Bin Meng
Hi Ivan, On Thu, Jun 7, 2018 at 2:28 AM, Ivan Gorinov wrote: > Add setjmp/longjmp functions for x86_64. > The FPU control word and MXCSR control bits are preserved across calls. > > Signed-off-by: Ivan Gorinov > --- > arch/x86/cpu/x86_64/setjmp.S | 66 > +++

Re: [U-Boot] U-Boot TFTP protection

2018-06-19 Thread Lukasz Majewski
Hi Stefan, > Hello, > We have been looking at protecting U-Boot from (malicious) TFTP > overwrites. We want to do this after our ARMv7 U-Boot has relocated. > > The memory map looks like this (I hope): > > --- Top of DRAM > | U-Boot (Protected) > | --

Re: [U-Boot] [RFC] ARM: rmobile: create DT memory nodes for R8A7795 3.0 and newer

2018-06-19 Thread Geert Uytterhoeven
Hi Laurent, On Tue, Jun 19, 2018 at 9:10 AM Laurent Pinchart wrote: > On Tuesday, 19 June 2018 09:58:59 EEST Geert Uytterhoeven wrote: > > On Tue, Jun 19, 2018 at 4:15 AM Laurent Pinchart wrote: > > > On Sunday, 17 June 2018 03:08:02 EEST Marek Vasut wrote: > > >> On 06/16/2018 05:44 PM, Laurent

[U-Boot] [PATCH 5/6] ARM: dts: uniphier: sync DT with Linux 4.18-rc1

2018-06-19 Thread Masahiro Yamada
Now that the clock-frequency information has been moved to the driver, more DT sync is possible. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11.dtsi | 4 arch/arm/dts/uniphier-ld20.dtsi | 4 arch/arm/dts/uniphier-ld4.dtsi | 4 arch/arm/dts/uniphier-pro4.dtsi | 6 +

[U-Boot] [PATCH 1/6] ARM: uniphier: enable CONFIG_SNI_AVE and disable CONFIG_SMC911X

2018-06-19 Thread Masahiro Yamada
Enable the on-chip ethernet driver for uniphier_{v7,v8}_defconfig. Disable the on-board SMC911x because it has not migrated to the driver model yet - it is not possible to enable DM and non-DM drivers at the same time. The CONFIG_SMC911X for uniphier_ld4_sld8_defconfig is still kept because the on

Re: [U-Boot] [RFC PATCH] fpga: zynq: Add encrypted bitstream support with auto detect

2018-06-19 Thread Siva Durga Prasad Paladugu
Hi Stefan, > -Original Message- > From: ste...@herbrechtsmeier.net [mailto:ste...@herbrechtsmeier.net] > Sent: Friday, June 08, 2018 5:29 PM > To: Siva Durga Prasad Paladugu > Cc: Stefan Herbrechtsmeier ; > u-boot@lists.denx.de; Michal Simek ; > mon...@monstr.eu > Subject: [RFC PATCH] fpg

[U-Boot] [PATCH 4/6] serial: uniphier: set clock rate without clock-frequency property

2018-06-19 Thread Masahiro Yamada
In Linux, the clock rate of the UART is given by the clock driver. If you try to follow that in U-Boot, you would end up with adding more u-boot,dm-pre-reloc properties, and also the clock driver would be too big for SPL, which is used for UniPhier ARMv7 platform. The current solution is to add '

  1   2   >