Re: [U-Boot] [RESEND PATCH 1/2] dm: core: add missing dev_count_phandle_with_args()

2017-12-04 Thread Patrice CHOTARD
Hi Simon On 12/02/2017 04:28 AM, Simon Glass wrote: > Hi Patrice, > > On 29 November 2017 at 01:06, wrote: >> From: Patrice Chotard >> >> Add missing dev_count_phandle_with_args() to avoid >> compilation issue. >> >> Signed-off-by: Patrice Chotard >> --- >> drivers/core/read.c | 7 +++ >

Re: [U-Boot] [U-Boot, v2] efi_loader: initialise partition_signature memory

2017-12-04 Thread Alexander Graf
> Zero partition_signature in the efi_device_path_hard_drive_path > structure when signature_type is 0 (no signature) as required by the > UEFI specification. > > This is required so that efi_dp_match() will work as expected > when doing memcmp() comparisons. Previously uninitialised memory > wou

Re: [U-Boot] efi_loader helloworld.efi: Fix building with -Os

2017-12-04 Thread Alexander Graf
> Depending on your compiler, when compiling the hello world efi binary > with -Os, gcc might think it's a smart idea to replace common patterns > such as memory copies with explicit calls to memcpy(). > > While that sounds great at first, we don't have any memcpy() available > in our helloworld b

Re: [U-Boot] efi_loader: add missing breaks

2017-12-04 Thread Alexander Graf
> Otherwise with GUID partition types you would end up with things like: > > > .../HD(Part0,Sig6252c819-4624-4995-8d16-abc9cd5d4130)/HD(Part0,MBRType=02,SigType=02) > > Signed-off-by: Rob Clark Thanks, applied to efi-next Alex ___ U-Boot mailing

Re: [U-Boot] efi_loader: Fix partition offsets

2017-12-04 Thread Alexander Graf
> Commit 884bcf6f65 (efi_loader: use proper device-paths for partitions) tried > to introduce the el torito scheme to all partition table types: Spawn > individual disk objects for each partition on a disk. > > Unfortunately, that code ended up creating partitions with offset=0 which > meant > th

Re: [U-Boot] efi_loader: Exit in efi_set_bootdev() upon invalid "desc"

2017-12-04 Thread Alexander Graf
> When trying to load an image from a non-existent USB key, U-Boot v2017.11 > crashes on my x86 platform: > > => load usb 0:1 0300 abc > General Protection > EIP: 0010:[<7b59030d>] EFLAGS: 00010286 > Original EIP :[] > ... > > This used to work in v2017.09. Testing has shown, that this bug wa

[U-Boot] [PATCH] armv8: layerscape: refine port register configuration

2017-12-04 Thread Yuantian Tang
These PP2C and PP3C registers control the configuration of the PHY control OOB timing for the COMINIT/COMWAKE parameters respectively for sata port. Overwrite default values with calculated ones to get better OOB timing. Signed-off-by: Tang Yuantian --- arch/arm/cpu/armv8/fsl-layerscape/soc.c

Re: [U-Boot] [RFC PATCH 01/13] serial: s5p: rework Samsung UART driver to get rid of uart.h

2017-12-04 Thread Andre Przywara
Hi Simon, On 02/12/17 03:30, Simon Glass wrote: > On 29 November 2017 at 18:24, Andre Przywara wrote: >> At the moment the serial_s5p driver takes care of both Exynos UARTs >> as well as those from older Samsung SoCs (s3c/s5p series). >> Looking more closely the only difference between those two

[U-Boot] [PATCH v2 4/5] treewide: convert assert() to BUG_ON()

2017-12-04 Thread Masahiro Yamada
We do not need multiple ways to do the same thing. Instead of assert(), use BUG_ON() from Linux. The logic is opposite, but Coccinelle is of great help for such a conversion. We could simply convert assert(x) to BUG_ON(!x) for all expressions "x", but I did a bit better job by converting assert(

[U-Boot] [PATCH v2 0/5] Remove assert()

2017-12-04 Thread Masahiro Yamada
assert() is almost used in the same way as BUG_ON(), except: - the logic is opposite - currently, assert() is compiled only when DEBUG is defined Coccinelle can easily convert assert() to BUG_ON(), but the problem is it would grow the image size. In v2, I introduced CONFIG_ENABLE_BUG_CHECKS.

Re: [U-Boot] efi_loader: Exit in efi_set_bootdev() upon invalid "desc"

2017-12-04 Thread Stefan Roese
Hi Alex, On 04.12.2017 09:59, Alexander Graf wrote: When trying to load an image from a non-existent USB key, U-Boot v2017.11 crashes on my x86 platform: => load usb 0:1 0300 abc General Protection EIP: 0010:[<7b59030d>] EFLAGS: 00010286 Original EIP :[] ... This used to work in v2017.09.

[U-Boot] [PATCH 1/1] efi_loader: comments for dp_part_fill()

2017-12-04 Thread Heinrich Schuchardt
Add a description for dp_part_fill(). Reword a comment in the function. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_device_path.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c index 64

Re: [U-Boot] EFI: incorrect device paths

2017-12-04 Thread Heinrich Schuchardt
On 11/25/2017 02:49 AM, Heinrich Schuchardt wrote: > Hello Emmanuel, > > yesterday you reported on the u-boot ICS channel that you saw an > incorrect device path for the SD card on your BananaPi M2 > (/venHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/Usb(0x6,0x0)/HD(Part0,MBRType=01)). > > > In dp_fi

Re: [U-Boot] efi_loader: Exit in efi_set_bootdev() upon invalid "desc"

2017-12-04 Thread Alexander Graf
> Am 04.12.2017 um 12:52 schrieb Stefan Roese : > > Hi Alex, > > On 04.12.2017 09:59, Alexander Graf wrote: >>> When trying to load an image from a non-existent USB key, U-Boot v2017.11 >>> crashes on my x86 platform: >>> >>> => load usb 0:1 0300 abc >>> General Protection >>> EIP: 0010:[<

Re: [U-Boot] [PATCH] imx: Unify CONFIG_BOOTDELAY

2017-12-04 Thread Stefano Babic
On 01/12/2017 21:33, Fabio Estevam wrote: > Hi Stefano, > > On Mon, Nov 20, 2017 at 11:54 AM, Fabio Estevam wrote: >> In order to provide a consistent user experience for imx board users, >> remove the custom CONFIG_BOOTDELAY values from defconfig files, so that >> all boards can use the default

Re: [U-Boot] [PATCH 00/23] imx: add i.MX8M support and i.MX8MQ EVK

2017-12-04 Thread Stefano Babic
Hi Peng, On 01/12/2017 04:28, Peng Fan wrote: > Hi Stefano, > > I plan to send out V2 patchset today or tommorw. > Sorry for late answer - I gon on with review for V2. > About > https://patchwork.ozlabs.org/patch/842122/ imx: mx8m: add ddr > register memory map > https://patchwork.

Re: [U-Boot] [PATCH] ARM: uniphier: clean up board_init

2017-12-04 Thread Masahiro Yamada
2017-11-29 15:01 GMT+09:00 Masahiro Yamada : > Remove unnecessary DECLARE_GLOBAL_DATA_PTR and header includes. > > has been replaced with and . > > Signed-off-by: Masahiro Yamada > --- > Applied to u-boot-uniphier. -- Best Regards Masahiro Yamada

Re: [U-Boot] [PATCH] mtd: nand: denali: remove bogus __maybe_unused

2017-12-04 Thread Masahiro Yamada
2017-11-29 19:18 GMT+09:00 Masahiro Yamada : > denali_setup_data_interface() is always used. > > I put __maybe_unused for a temporal use, then forgot to delete it. > > Signed-off-by: Masahiro Yamada > --- > Applied to u-boot-uniphier. -- Best Regards Masahiro Yamada ___

Re: [U-Boot] [PATCH] mtd: nand: denali: remove ad-hoc board_nand_init() entry

2017-12-04 Thread Masahiro Yamada
2017-11-29 19:19 GMT+09:00 Masahiro Yamada : > This driver is highly dependent on the configuration from denali_dt.c > Please enable CONFIG_NAND_DENALI_DT if you use this driver. > > Signed-off-by: Masahiro Yamada Applied to u-boot-uniphier. -- Best Regards Masahiro Yamada __

Re: [U-Boot] [PATCH 1/4] mtd: nand: Rename nand.h into rawnand.h

2017-12-04 Thread Masahiro Yamada
2017-11-30 13:45 GMT+09:00 Masahiro Yamada : > This header was renamed to rawnand.h in Linux. > > The following is the corresponding commit in Linux. > > commit d4092d76a4a4e57b65910899948a83cc8646c5a5 > Author: Boris Brezillon > Date: Fri Aug 4 17:29:10 2017 +0200 > > mtd: nand: Ren

Re: [U-Boot] arm socfpga: Revert "spi: cadence_qspi_apb: Support 32 bit AHB address"

2017-12-04 Thread Frank Mori Hess
Since your commit broke my platform to fix yours, shouldn't it be reverted and TI platforms use your pending patch queue? On Dec 3, 2017 23:14, "Vignesh R" wrote: On Sunday 03 December 2017 09:29 PM, Frank Mori Hess wrote: > This reverts commit dac3bf20fb2c9b03476be0d73db620f62ab3cee1. > > My

[U-Boot] [GIT PULL] u-boot-uniphier/master

2017-12-04 Thread Masahiro Yamada
Hi Tom, Please pull a little more NAND and UniPhier updates. The following changes since commit 02907004294d981fff9a7305ad9c6d8a0138f205: Merge git://git.denx.de/u-boot-rockchip (2017-12-01 19:08:30 -0500) are available in the git repository at: git://git.dex.de/u-boot-uniphier.git maste

Re: [U-Boot] [PATCH v3 5/6] binman: add ROM image signing for Bay Trail SoC

2017-12-04 Thread Anatolij Gustschin
Hi Bin, On Mon, 4 Dec 2017 14:30:03 +0800 Bin Meng bmeng...@gmail.com wrote: ... > > diff --git a/arch/x86/dts/u-boot.dtsi b/arch/x86/dts/u-boot.dtsi > > index 7e37d4f394..98e2309108 100644 > > --- a/arch/x86/dts/u-boot.dtsi > > +++ b/arch/x86/dts/u-boot.dtsi > > @@ -15,6 +15,13 @@ > >

Re: [U-Boot] [PATCH 2/3] efi_loader: correctly setup device paths for block devices

2017-12-04 Thread Mark Kettenis
xypron.g...@gmx.de schreef op 2017-12-03 22:20: On Sunday, December 3, 2017 8:24:39 PM CET Mark Kettenis wrote: Heinrich Schuchardt schreef op 2017-12-02 13:42: > For each block device we have to setup: > - a device path for the block device > - a partition device path for the block device with

Re: [U-Boot] [RFC PATCH] test: py: Disable sleep test for qemu targets

2017-12-04 Thread Michal Simek
On 1.12.2017 23:44, Tom Rini wrote: > On Fri, Dec 01, 2017 at 10:07:54AM -0700, Stephen Warren wrote: >> On 12/01/2017 08:19 AM, Michal Simek wrote: >>> Hi, >>> >>> On 1.12.2017 16:06, Heinrich Schuchardt wrote: On 12/01/2017 03:46 PM, Michal Simek wrote: > Qemu for arm32/arm64 h

Re: [U-Boot] [RFC PATCH] test: py: Disable sleep test for qemu targets

2017-12-04 Thread Tom Rini
On Mon, Dec 04, 2017 at 02:55:45PM +0100, Michal Simek wrote: > On 1.12.2017 23:44, Tom Rini wrote: > > On Fri, Dec 01, 2017 at 10:07:54AM -0700, Stephen Warren wrote: > >> On 12/01/2017 08:19 AM, Michal Simek wrote: > >>> Hi, > >>> > >>> On 1.12.2017 16:06, Heinrich Schuchardt wrote: > >

Re: [U-Boot] [PATCH] ARM: zynq: Fix SPL SD boot mode

2017-12-04 Thread Michal Simek
Hi, On 1.12.2017 18:30, Gerald Van Baren wrote: > Hi Michal, > > On Fri, Dec 1, 2017 at 8:13 AM, Michal Simek > wrote: > >> This patch is fixing two issues: >> 1. Insufficient stack size for fat fs buffers >> 2. Insufficient space in malloc area >> >> Tested on zc702 and zc706. >> >> Signed-off

Re: [U-Boot] [RFC PATCH] test: py: Disable sleep test for qemu targets

2017-12-04 Thread Michal Simek
On 4.12.2017 15:03, Tom Rini wrote: > On Mon, Dec 04, 2017 at 02:55:45PM +0100, Michal Simek wrote: >> On 1.12.2017 23:44, Tom Rini wrote: >>> On Fri, Dec 01, 2017 at 10:07:54AM -0700, Stephen Warren wrote: On 12/01/2017 08:19 AM, Michal Simek wrote: > Hi, > > On 1.12.2017 16:06, H

Re: [U-Boot] [PATCH] fpga: allow programming fpga from FIT image for all FPGA drivers

2017-12-04 Thread Michal Simek
Hi, On 2.12.2017 04:29, Simon Glass wrote: > Hi Michal, > > On 29 November 2017 at 03:00, Michal Simek wrote: >> On 29.11.2017 06:20, Goldschmidt Simon wrote: >>> On 28.11.2017 14:46, Michal Simek wrote: On 28.11.2017 10:08, Goldschmidt Simon wrote: > Simon Goldschmidt wrote: >> Hi

Re: [U-Boot] [PULL] efi patch queue 2017-12-04

2017-12-04 Thread Tom Rini
On Mon, Dec 04, 2017 at 12:08:30AM +0100, Alexander Graf wrote: > Hi Tom, > > This is my current patch queue for efi. Please pull. > > Alex > > > The following changes since commit 9804d88630cdb22f5f0ace05ac05942928410fd9: > > Merge branch 'rmobile-mx' of git://git.denx.de/u-boot-sh (2017-

Re: [U-Boot] [U-Boot, PATCHv4] env: enable accessing the environment in an EXT4 partition

2017-12-04 Thread Tom Rini
On Mon, Nov 27, 2017 at 08:19:20PM +0100, Jorge Ramirez-Ortiz wrote: > For example to store the environment in a file named "/uboot.env" in MMC > "0", where partition "1" contains the EXT4 filesystem, the following > configs should be added to the board's default config: > > CONFIG_ENV_IS_IN_EX

Re: [U-Boot] [RFC PATCH] test: py: Disable sleep test for qemu targets

2017-12-04 Thread Tom Rini
On Mon, Dec 04, 2017 at 03:21:04PM +0100, Michal Simek wrote: > On 4.12.2017 15:03, Tom Rini wrote: > > On Mon, Dec 04, 2017 at 02:55:45PM +0100, Michal Simek wrote: > >> On 1.12.2017 23:44, Tom Rini wrote: > >>> On Fri, Dec 01, 2017 at 10:07:54AM -0700, Stephen Warren wrote: > On 12/01/2017 0

[U-Boot] [PATCH] efi_stub: Fix GDT_NOTSYS check

2017-12-04 Thread Alexander Graf
The get_codeseg32() wants to know if a passed in descriptor has flag GDT_NOTSYS set (desc & GDT_NOTSYS), not whether desc and GDT_NOTSYS are not != 0 (desk && GDT_NOTSYS). This is an obvious typo. Fix it up. Signed-off-by: Alexander Graf --- lib/efi/efi_stub.c | 2 +- 1 file changed, 1 insertio

[U-Boot] [PATCH] efi_stub: Use efi_uintn_t

2017-12-04 Thread Alexander Graf
Commit f5a2a93892f ("efi_loader: consistently use efi_uintn_t in boot services") changed the internal EFI API header without adapting its existing EFI stub users. Let's adapt the EFI stub as well. Fixes: f5a2a93892f ("efi_loader: consistently use efi_uintn_t in boot services") Signed-off-by: Alexa

[U-Boot] [PATCH] tools: omapimage: fix corner-case in byteswap path

2017-12-04 Thread Philipp Tomsich
Since commit 2614a208471e ("common: command: tempory buffer should have size of command line buf"), there have been consistent Travis CI failures on my builds (interestingly not for Tom, even though building the same commit id) due to a SEGV in building the byteswapped omapimage: arm: p

Re: [U-Boot] arm socfpga: Revert "spi: cadence_qspi_apb: Support 32 bit AHB address"

2017-12-04 Thread Vignesh R
Hi, On 04-Dec-17 6:41 PM, Frank Mori Hess wrote: > Since your commit broke my platform to fix yours, shouldn't it be > reverted and TI platforms use your pending patch queue? > Socfpga DT defined ahb base as 0xffa0 while masked upper bits in the code, which was confusing. And seems that my p

Re: [U-Boot] [PATCH] armv8: layerscape: refine port register configuration

2017-12-04 Thread York Sun
On 12/04/2017 01:31 AM, Yuantian Tang wrote: > These PP2C and PP3C registers control the configuration of the PHY > control OOB timing for the COMINIT/COMWAKE parameters respectively > for sata port. Overwrite default values with calculated ones to get > better OOB timing. > > Signed-off-by: Tang

Re: [U-Boot] [PATCH v2 1/5] Move CONFIG_PANIC_HANG to Kconfig

2017-12-04 Thread York Sun
On 12/03/2017 07:39 PM, Masahiro Yamada wrote: > Freescale (NXP) boards have lots of defconfig files per board. > I used "imply PANIC_HANG" for them. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: > - Re-run tools/moveconfig.py based on commit 02907004294d9 Freescape/NXP has mult

Re: [U-Boot] arm socfpga: Revert "spi: cadence_qspi_apb: Support 32 bit AHB address"

2017-12-04 Thread Frank Mori Hess
On Mon, Dec 4, 2017 at 11:41 AM, Vignesh R wrote: > Hi, > > On 04-Dec-17 6:41 PM, Frank Mori Hess wrote: >> Since your commit broke my platform to fix yours, shouldn't it be >> reverted and TI platforms use your pending patch queue? >> > > Socfpga DT defined ahb base as 0xffa0 while masked upp

[U-Boot] [PATCH 1/3] efi_loader: return status from efi_setup_loaded_image()

2017-12-04 Thread Heinrich Schuchardt
efi_setup_loaded_image() should return an error code indicating if an error has occurred. An error occurs if a protocol cannot be installed. Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 8 +--- lib/efi_loader/efi_boottime.c | 11 +++ 2 files changed, 12 in

[U-Boot] [PATCH 2/3] efi_loader: new function efi_delete_handle()

2017-12-04 Thread Heinrich Schuchardt
Provide a function to remove a handle from the object list after removing all protocols. To avoid forward declarations other functions have to move up in the coding. Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 2 + lib/efi_loader/efi_boottime.c | 186 +++

[U-Boot] [PATCH 0/3] efi_loader: avoid use after free

2017-12-04 Thread Heinrich Schuchardt
A use after free may occur if efi_load_image() fails. Heinrich Schuchardt (3): efi_loader: return status from efi_setup_loaded_image() efi_loader: new function efi_delete_handle() efi_loader: error handling in efi_load_image() include/efi_loader.h | 10 +- lib/efi_loader/efi_boot

[U-Boot] [PATCH 3/3] efi_loader: error handling in efi_load_image()

2017-12-04 Thread Heinrich Schuchardt
If a failure occurs when trying to load an image, it is insufficient to free() the EFI object. We must remove it from the object list, too. Otherwise a use after free will occur the next time we iterate over the object list. Furthermore errors in setting up the image should be handled. Signed-off

Re: [U-Boot] arm socfpga: Revert "spi: cadence_qspi_apb: Support 32 bit AHB address"

2017-12-04 Thread Vignesh R
On 04-Dec-17 10:31 PM, Frank Mori Hess wrote: > On Mon, Dec 4, 2017 at 11:41 AM, Vignesh R wrote: >> Hi, >> >> On 04-Dec-17 6:41 PM, Frank Mori Hess wrote: >>> Since your commit broke my platform to fix yours, shouldn't it be >>> reverted and TI platforms use your pending patch queue? >>> >> >>

Re: [U-Boot] [RFC PATCH] test: py: Disable sleep test for qemu targets

2017-12-04 Thread Stephen Warren
On 12/04/2017 08:30 AM, Tom Rini wrote: On Mon, Dec 04, 2017 at 03:21:04PM +0100, Michal Simek wrote: On 4.12.2017 15:03, Tom Rini wrote: On Mon, Dec 04, 2017 at 02:55:45PM +0100, Michal Simek wrote: On 1.12.2017 23:44, Tom Rini wrote: On Fri, Dec 01, 2017 at 10:07:54AM -0700, Stephen Warren

Re: [U-Boot] [PATCH v4 0/5] spi: cadence_spi: Adopt Linux DT bindings

2017-12-04 Thread Vignesh R
+ Jagan, On 16-Nov-17 7:33 PM, Jason Rush wrote: > Adopt the Linux DT bindings. This also fixes an issue > with the indaddrtrig register on the Cadence QSPI > device being programmed with the wrong value for the > socfpga arch. > Could we get these fixes in v2018.01-rc1/rc2? > Tested on Terasic

Re: [U-Boot] [PATCH v2] test/py: Setup variables based on HUSH selection

2017-12-04 Thread Stephen Warren
On 11/30/2017 09:25 AM, Michal Simek wrote: From: Stephen Warren After adding our small zynq uboot which has hush parser off same variable tests start to failed. Use quotes only when hush is enabled. Reported-by: Michal Simek Signed-off-by: Stephen Warren --- Changes in v2: - code taken fro

Re: [U-Boot] [PATCH] gpt: add part-uuid and part-num subcommands

2017-12-04 Thread Andrey Yurovsky
Hi Lukasz, On Tue, Nov 14, 2017 at 1:45 AM, Lukasz Majewski wrote: > Hi Andrey, > >> Hi Lukasz, >> >> On Thu, Nov 9, 2017 at 2:28 PM, Lukasz Majewski >> wrote: >> > On Thu, 9 Nov 2017 07:34:44 -0800 >> > Andrey Yurovsky wrote: >> > >> >> On Thu, Nov 9, 2017 at 1:55 AM, Lukasz Majewski >> >> wr

Re: [U-Boot] [U-Boot, PATCHv4] env: enable accessing the environment in an EXT4 partition

2017-12-04 Thread Jorge Ramirez
On 12/04/2017 04:23 PM, Tom Rini wrote: On Mon, Nov 27, 2017 at 08:19:20PM +0100, Jorge Ramirez-Ortiz wrote: For example to store the environment in a file named "/uboot.env" in MMC "0", where partition "1" contains the EXT4 filesystem, the following configs should be added to the board's defau

[U-Boot] [PATCH] api: bootelf: go: flush cache before starting

2017-12-04 Thread Emmanuel Vadot
From: Warner Losh Some application might load some code at location that contain stale cache entries. Before running a elf or raw binary, flush the caches if they are enabled. Reviewed-by: Tom Rini Signed-off-by: Emmanuel Vadot --- api/api.c | 5 + cmd/boot.c | 4 cmd/elf.c | 5 +++

Re: [U-Boot] [PATCH] arm: Make gcc 6.0 or later a hard requirement now.

2017-12-04 Thread Tom Rini
On Sat, Dec 02, 2017 at 08:12:02PM -0500, Tom Rini wrote: > Move the warning to an error as we have been promising would happen in > this release. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] omap2: set the ethaddr as well as the usbethaddr env var to ensure static MAC

2017-12-04 Thread Tom Rini
On Thu, Nov 23, 2017 at 01:14:17PM +, Peter Robinson wrote: > The kernel gets the ethernet MAC from the ethaddr variable, the omap boards > for > devices with USB based eth adapters just set the usbethaddr which doesn't > appear > to get passed to the kernel. The same Raspberry Pi code sets

Re: [U-Boot] [U-Boot,2/5] test: overlay: Use cmd_ut_category()

2017-12-04 Thread Tom Rini
On Sat, Nov 25, 2017 at 11:57:30AM -0700, Simon Glass wrote: > Adjust the code to use the common test-execution function. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot m

Re: [U-Boot] [U-Boot, u-boot, v3, 3/5] board: p212: use common ethernet init function

2017-12-04 Thread Tom Rini
On Mon, Nov 27, 2017 at 10:16:18AM +0100, Neil Armstrong wrote: > Switch P212 Ethernet init to the common Ethernet init function. > > Reviewed-by: Simon Glass > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, u-boot, v3, 1/5] ARM: arch-meson: add ethernet common init function

2017-12-04 Thread Tom Rini
On Mon, Nov 27, 2017 at 10:16:16AM +0100, Neil Armstrong wrote: > Introduce a generic common Ethernet Hardware init function > common to all Amlogic GX SoCs with support for the > Internal PHY enable for GXL SoCs. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom si

Re: [U-Boot] [U-Boot, 1/5] test: Add a command function for test execution

2017-12-04 Thread Tom Rini
On Sat, Nov 25, 2017 at 11:57:29AM -0700, Simon Glass wrote: > The logic to either iterate through a list of tests or pick a named test > is common to at lest two test suits. Move this logic into a new function > and call it from the environment tests. > > Signed-off-by: Simon Glass Applied to

Re: [U-Boot] armv8: shrink exception table code

2017-12-04 Thread Tom Rini
On Mon, Nov 27, 2017 at 12:47:09AM +, Andre Przywara wrote: > In the moment our exception entry code needs 34 instructions, so we > can't use put it directly into the table entry, which offers "only" > 32 instructions there. Right now we just put an unconditional branch > there, then use a mac

Re: [U-Boot] [U-Boot, u-boot, v3, 4/5] arm: Add LibreTech CC support based on Meson GXL family

2017-12-04 Thread Tom Rini
On Mon, Nov 27, 2017 at 10:16:19AM +0100, Neil Armstrong wrote: > This adds platform code for the Libre Computer CC "Le Potato" board based on a > Meson GXL (S905X) SoC with the Meson GXL configuration. > > This initial submission supports UART, MMC/SDCard and Ethernet with the > Internal RMII PH

Re: [U-Boot] [U-Boot, 3/5] test: compression: Put test variables in a struct

2017-12-04 Thread Tom Rini
On Sat, Nov 25, 2017 at 11:57:31AM -0700, Simon Glass wrote: > At present the test setup is somewhat mixed with the test itself. But if > the test setup fails (which it should not) then the test is actually > invalid. Put all the test buffers and sizes in a struct and separate out > the core code

Re: [U-Boot] [U-Boot, 1/2] libfdt: move fdt_find_regions() to fdt_region.c from fdt_wip.c

2017-12-04 Thread Tom Rini
On Mon, Nov 27, 2017 at 04:06:06PM +0900, Masahiro Yamada wrote: > All the other fdt_*_region() functions are located in fdt_region.c, > while only fdt_find_regions() was added to fdt_wip.c, strangely. > > Move it to the suitable place. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Simon Gl

Re: [U-Boot] drivers: firmware: psci: use pr_* log functions instead of printf()

2017-12-04 Thread Tom Rini
On Wed, Nov 29, 2017 at 03:04:40PM +0900, Masahiro Yamada wrote: > In Linux, the warning messages are printed out by pr_warn(). > > We can use Linux-like log functions in tree-wide. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom sign

Re: [U-Boot] [U-Boot, u-boot, v3, 5/5] arm: Add Khadas VIM support based on Meson GXL family

2017-12-04 Thread Tom Rini
On Mon, Nov 27, 2017 at 10:16:20AM +0100, Neil Armstrong wrote: > This adds platform code for the Khadas VIM board based on a > Meson GXL (S905X) SoC with the Meson GXL configuration. > > This initial submission supports UART, MMC/SDCard and Ethernet with the > Internal RMII PHY. > > The meson-g

Re: [U-Boot] [U-Boot,2/5] test: overlay: Use cmd_ut_category()

2017-12-04 Thread Tom Rini
On Sat, Nov 25, 2017 at 11:57:30AM -0700, Simon Glass wrote: > Adjust the code to use the common test-execution function. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot m

Re: [U-Boot] [U-Boot, 2/2] libfdt: migrate fdt_wip.c to a wrapper of scripts/dtc/libfdt/fdt_wip.c

2017-12-04 Thread Tom Rini
On Mon, Nov 27, 2017 at 04:06:07PM +0900, Masahiro Yamada wrote: > Now, lib/libfdt/fdt_wip.c is the same as scripts/dtc/libfdt/fdt_wip.c > > Change the former to a wrapper of the latter. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, 4/5] test/py: Allow any unit test suite to be found

2017-12-04 Thread Tom Rini
On Sat, Nov 25, 2017 at 11:57:32AM -0700, Simon Glass wrote: > The u-boot.sym file is scanned to find unit test suites for execution. At > present it only finds those whose names start with 'dm' or 'env'. This > code is buried in the bowels of the test code so when adding a new suite > it is not e

Re: [U-Boot] omap3: evm: Explicitly use DISTRO_DEFAULTS features at startup

2017-12-04 Thread Tom Rini
On Wed, Nov 29, 2017 at 03:28:55AM +, Derald D. Woods wrote: > [primary] Check MMC 0:1 for /extlinux/extlinux.conf and boot > [fallback 1] Check MMC 0:1 zImage and run mmcbootz > [fallback 2] Check MMC 0:1 uImage and run mmcboot > [fallback 3] Check NAND partitions and run nandboot > > If 'ex

Re: [U-Boot] [U-Boot, 5/5] test: compression: Convert to unit test framework

2017-12-04 Thread Tom Rini
On Sat, Nov 25, 2017 at 11:57:33AM -0700, Simon Glass wrote: > Adjust this test to use the unit test framework. Drop the two existing > commands for running the tests and replace them with a single > 'ut compression' command, with sub-commands. > > Signed-off-by: Simon Glass Applied to u-boot/m

Re: [U-Boot] [U-Boot, u-boot, v3, 2/5] board: odroid-c2: use common ethernet init function

2017-12-04 Thread Tom Rini
On Mon, Nov 27, 2017 at 10:16:17AM +0100, Neil Armstrong wrote: > Switch Odroid-C2 Ethernet init to the common Ethernet init function. > > Reviewed-by: Simon Glass > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,v3,1/1] add support for Raspberry Pi Zero W

2017-12-04 Thread Tom Rini
On Sun, Nov 26, 2017 at 01:38:53PM +0400, Dmitry Korunov wrote: > Signed-off-by: Dmitry Korunov 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/lis

Re: [U-Boot] armv8: mmu: fix page table mapping

2017-12-04 Thread Tom Rini
On Tue, Nov 28, 2017 at 10:31:28AM +0800, Peng Fan wrote: > To page mapping the lowest 2 bits needs to be 0x3. > If not fix this, the final lowest 3 bits for page mapping is 0x1 > which is marked as reserved. > > Signed-off-by: Peng Fan > Reviewed-by: York Sun Applied to u-boot/master, thanks!

Re: [U-Boot] [GIT PULL] u-boot-uniphier/master

2017-12-04 Thread Tom Rini
On Mon, Dec 04, 2017 at 10:23:11PM +0900, Masahiro Yamada wrote: > Hi Tom, > > Please pull a little more NAND and UniPhier updates. > > > > The following changes since commit 02907004294d981fff9a7305ad9c6d8a0138f205: > > Merge git://git.denx.de/u-boot-rockchip (2017-12-01 19:08:30 -0500) >

Re: [U-Boot] arm64 :show_regs: show the address before relocation

2017-12-04 Thread Tom Rini
On Tue, Nov 28, 2017 at 10:08:08AM +0800, Peng Fan wrote: > After relocation, when error happends, it is hard to track > ELR and LR with asm file objdumped from elf file. > > So subtract the gd->reloc_off the reflect the compliation address. > > Signed-off-by: Peng Fan > Reviewed-by: Simon Glas

Re: [U-Boot] Please pull u-boot-cfi-flash/master

2017-12-04 Thread Tom Rini
On Mon, Dec 04, 2017 at 07:44:50AM +0100, Stefan Roese wrote: > Hi Tom, > > please pull this one CFI driver fix from York. > > Thanks, > Stefan > > The following changes since commit b06c46de632c55f4c39d404c6f0f65e414b31050: > > Merge tag 'xilinx-for-v2018.01' of git://www.denx.de/git/u-boot

Re: [U-Boot] scripts: spl: fix typo

2017-12-04 Thread Tom Rini
On Thu, Nov 30, 2017 at 10:07:07AM +0800, Peng Fan wrote: > Typo fix: CONIFG->CONFIG > > Signed-off-by: Peng Fan > Cc: Tom Rini > Cc: Simon Glass > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, u-boot, v2] ARM: arch-meson: build memory banks using reported memory from registers

2017-12-04 Thread Tom Rini
On Mon, Nov 27, 2017 at 10:35:46AM +0100, Neil Armstrong wrote: > As discussed at [1], the Amlogic Meson GX SoCs can embed a BL31 firmware > and a secondary BL32 firmware. > Since mid-2017, the reserved memory address of the BL31 firmware was moved > and grown for security reasons. > > But mainli

Re: [U-Boot] [PATCH] arm: Make gcc 6.0 or later a hard requirement now.

2017-12-04 Thread Stephen Warren
On 12/02/2017 06:12 PM, Tom Rini wrote: Move the warning to an error as we have been promising would happen in this release. Oh. This has broken my U-Boot build/test system. I guess it's entirely my fault for interpreting the "2018.01" warning as "you'll need to fix this in Jan 2018", not "yo

[U-Boot] [PATCH 1/2] distro_bootcmd: Add command to run FreeBSD

2017-12-04 Thread Emmanuel Vadot
Add commands that scans for the FreeBSD loader and run it if found. FreeBSD has two loader: ubldr which is an ELF binary and ubldr.bin which is a PIE binary. Signed-off-by: Emmanuel Vadot --- include/config_distro_bootcmd.h | 32 1 file changed, 32 insertions(+)

[U-Boot] [PATCH 2/2] kconfig: Add a DISTRO_FREEBSD option

2017-12-04 Thread Emmanuel Vadot
Add a FreeBSD option that enables the API and the data cache command as both are needed to boot the FreeBSD loader. Signed-off-by: Emmanuel Vadot --- common/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index c50d6ebb2a..acf20ade1d 10064

Re: [U-Boot] [PATCH] arm: Make gcc 6.0 or later a hard requirement now.

2017-12-04 Thread Tom Rini
On Mon, Dec 04, 2017 at 12:02:20PM -0700, Stephen Warren wrote: > On 12/02/2017 06:12 PM, Tom Rini wrote: > >Move the warning to an error as we have been promising would happen in > >this release. > > Oh. This has broken my U-Boot build/test system. I guess it's entirely my > fault for interpretin

Re: [U-Boot] [PATCH 1/2] distro_bootcmd: Add command to run FreeBSD

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 08:06 PM, Emmanuel Vadot wrote: > Add commands that scans for the FreeBSD loader and run it if found. > FreeBSD has two loader: ubldr which is an ELF binary and ubldr.bin which > is a PIE binary. > > Signed-off-by: Emmanuel Vadot > --- > include/config_distro_bootcmd.h | 32 +++

[U-Boot] [PATCH 1/1] efi_loader: add comments to memory functions

2017-12-04 Thread Heinrich Schuchardt
Add comments describing memory functions. Fix the formatting of a function declaration. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 44 ++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_memory.

Re: [U-Boot] [PATCH] efi_stub: Use efi_uintn_t

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 04:33 PM, Alexander Graf wrote: > Commit f5a2a93892f ("efi_loader: consistently use efi_uintn_t in boot > services") changed the internal EFI API header without adapting its existing > EFI stub users. Let's adapt the EFI stub as well. > > Fixes: f5a2a93892f ("efi_loader: consistently

Re: [U-Boot] [PATCH] fpga: allow programming fpga from FIT image for all FPGA drivers

2017-12-04 Thread Goldschmidt Simon
Hi, On 4.12.2017 15:27, Michal Simek wrote: > [..] > ok. Then applied to my xilinx tree. Great to hear that, thanks! Which release will this be in? Does it fit into 2018.01 or has that window already closed? Thanks, Simon ___ U-Boot mailing list U-Bo

Re: [U-Boot] [PATCH 1/5] mx6slevk: imximage.cfg: Handle the CONFIG_SECURE_BOOT case

2017-12-04 Thread Breno Matheus Lima
Hi Stefano, Just a gentle ping on this series. Thanks, Breno Lima 2017-11-27 23:34 GMT-02:00 Peng Fan : > > >> -Original Message- >> From: Breno Lima [mailto:brenomath...@gmail.com] >> Sent: Tuesday, November 28, 2017 7:03 AM >> To: Fabio Estevam ; sba...@denx.de >> Cc: Peng Fan ; u-boot

Re: [U-Boot] u-boot Licensing exception with OpenSSL

2017-12-04 Thread Tom Rini
On Sat, Nov 25, 2017 at 12:50:47PM -0800, Vagrant Cascadian wrote: > There are a few targets (clearfog, turris_omnia) and features (signing > in mkimage) in the Debian build of u-boot that have been avoided due to > lack of clarity on Licensing issues regarding GPL and OpenSSL > compatibility issu

[U-Boot] [PATCH v4 00/15] log: Add a new logging feature

2017-12-04 Thread Simon Glass
U-Boot currently has fairly rudimentary logging features. A basic printf() provides console output and debug() provides debug output which is activated if DEBUG is defined in the file containing the debug() statements. It would be useful to have a few more features: - control of debug output at r

[U-Boot] [PATCH v4 01/15] Revert "sandbox: remove os_putc() and os_puts()"

2017-12-04 Thread Simon Glass
While sandbox works OK without the special-case code, it does result in console output being stored in the pre-console buffer while sandbox starts up. If there is a crash or a problem then there is no indication of what is going on. For ease of debugging it seems better to revert this change. Thi

[U-Boot] [PATCH v4 04/15] Move debug and logging support to a separate header

2017-12-04 Thread Simon Glass
Before adding new features, move these definitions to a separate header to avoid further cluttering common.h. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v4: None Changes in v3: None Changes in v2: None include/common.h | 46 +-- inc

[U-Boot] [PATCH v4 07/15] Drop the log buffer

2017-12-04 Thread Simon Glass
This does not appear to be used by any boards. Before introducing a new log system, remove this old one. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v4: None Changes in v3: None Changes in v2: None cmd/Makefile | 1 - cmd/log.c

[U-Boot] [PATCH v4 12/15] log: Plumb logging into the init sequence

2017-12-04 Thread Simon Glass
Set up logging both before and after relocation. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v4: None Changes in v3: None Changes in v2: None common/board_f.c | 5 - common/board_r.c | 2 ++ common/log.c | 1 + inc

[U-Boot] [PATCH v4 05/15] mtdparts: Correct use of debug()

2017-12-04 Thread Simon Glass
The debug() macro now evaluates its expression so does not need #ifdef protection. In fact the current code causes a warning with the new log implementation. Adjust the code to fix this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v4: None Changes in v3: None Changes in v2:

[U-Boot] [PATCH v4 09/15] log: Add a console driver

2017-12-04 Thread Simon Glass
It is useful to display log messages on the console. Add a simple driver to handle this. Note that this driver outputs to the console, which may be serial or video. It does not specifically select serial output. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v4: None Changes i

[U-Boot] [PATCH v4 03/15] Revert "sandbox: Drop special case console code for sandbox"

2017-12-04 Thread Simon Glass
While sandbox works OK without the special-case code, it does result in console output being stored in the pre-console buffer while sandbox starts up. If there is a crash or a problem then there is no indication of what is going on. For ease of debugging it seems better to revert this change also.

[U-Boot] [PATCH v4 02/15] sandbox: Adjust pre-console address to avoid conflict

2017-12-04 Thread Simon Glass
We cannot use sandbox memory at 0 since other things use memory at that address. Move it up out of the way. Note that the pre-console buffer is currently disabled with sandbox, but this change will avoid confusion if it is manually enabled. Signed-off-by: Simon Glass --- Changes in v4: None Cha

[U-Boot] [PATCH v4 08/15] log: Add an implementation of logging

2017-12-04 Thread Simon Glass
Add the logging header file and implementation with some configuration options to control it. Signed-off-by: Simon Glass --- Changes in v4: - Add an extra tab in the debug_cond() macro - Handle casting uclass ID to lgo category (for clang) Changes in v3: None Changes in v2: - Add a comment as t

[U-Boot] [PATCH v4 06/15] usb: Correct use of debug()

2017-12-04 Thread Simon Glass
With clang this gives a warning because hubsts appears to be used before it is set, even if ultimately it is not used. Simplify the code to avoid this problem. Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to correct use of debug() in usb_hub.c Changes in v3: None Changes in v2:

[U-Boot] [PATCH v4 10/15] log: Add a 'log level' command

2017-12-04 Thread Simon Glass
Add a command for adjusting the log level. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v4: None Changes in v3: None Changes in v2: None cmd/Kconfig | 7 +++ cmd/Makefile | 1 + cmd/log.c| 55 +++ 3 files change

[U-Boot] [PATCH v4 11/15] log: Add a test command

2017-12-04 Thread Simon Glass
Add a command which exercises the logging system. Signed-off-by: Simon Glass --- Changes in v4: - Handle casting uclass ID to lgo category (for clang) Changes in v3: None Changes in v2: - Fix function called when test command is selected - Fix help output for 'log test' - Rename LOGL_WARN to LO

[U-Boot] [PATCH v4 15/15] log: Add documentation

2017-12-04 Thread Simon Glass
Add documentation for the log system. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v4: None Changes in v3: - Rebase to master Changes in v2: - Drop the special log() functions from the README doc/README.log | 214 + 1

[U-Boot] [PATCH v4 14/15] log: test: Add a pytest for logging

2017-12-04 Thread Simon Glass
Add a test which tries out various filters and options to make sure that logging works as expected. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: - Change log levels to match new header - Only execute log tests if CONFIG_LOG is enabled - Rename LOGL_WARN t

  1   2   >