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

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

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

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

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:

[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 |

[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 ++

[U-Boot] [PATCH v2 02/16] efi: Move the init check inside efi_init_obj_list()

2017-12-04 Thread Simon Glass
Rather than having the caller check this variable and the callee set it, move all access to the variable inside the function. This reduces the logic needed to call efi_init_obj_list(). Signed-off-by: Simon Glass Reviewed: Heinrich Schuchardt --- Changes

[U-Boot] [PATCH v2 00/16] efi: Enable basic sandbox support for EFI loader

2017-12-04 Thread Simon Glass
A limitation of the EFI loader at present is that it does not build with sandbox. This makes it hard to write tests, since sandbox is used for most testing in U-Boot. This series enables the EFI loader feature. It allows sandbox to build and run a trivial function which calls the EFI API to

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

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

[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:

[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

[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

[U-Boot] [PATCH v2 05/16] efi: Correct header order in efi_memory

2017-12-04 Thread Simon Glass
The headers are not in the correct order. Fix this. Also drop libfdt_env.h since it is not needed. Signed-off-by: Simon Glass --- Changes in v2: - Update commit message to dropping libfdt_env.h lib/efi_loader/efi_memory.c | 5 ++--- 1 file changed, 2 insertions(+), 3

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

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

[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

[U-Boot] [PATCH v2 09/16] efi: sandbox: Add required linker sections

2017-12-04 Thread Simon Glass
The EFI loader code requires certain linker sections to exist. Add these for sandbox so that the EFI loader code will link. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/u-boot.lds | 29 + arch/sandbox/lib/Makefile | 2 +-

[U-Boot] [PATCH v2 12/16] Add a comment for board_quiesce_devices()

2017-12-04 Thread Simon Glass
This exported function should have a comment describing what it does. Also it should really be removed in favour of device_remove(), which handles this sort of thing now. Add a comment with a TODO. Signed-off-by: Simon Glass --- Changes in v2: None include/bootm.h | 6

[U-Boot] [PATCH v2 14/16] efi: Add a comment about duplicated ELF constants

2017-12-04 Thread Simon Glass
These constants are defined in arch-specific code but redefined here. Add a TODO to clean this up. Signed-off-by: Simon Glass --- Changes in v2: None lib/efi_loader/efi_runtime.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/efi_loader/efi_runtime.c

[U-Boot] [PATCH v2 11/16] Define board_quiesce_devices() in a shared location

2017-12-04 Thread Simon Glass
This undocumented function relies on arch-specific code to declare a nop weak version. Add the weak function in common code instead to avoid having to duplicate the same function in each arch. Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 16/16] efi: sandbox: Add a simple 'bootefi test' command

2017-12-04 Thread Simon Glass
This jumps to test code which can call directly into the EFI support. It does not need a separate image so it is easy to write tests with it. For now the test just outputs a message. To try it: ./sandbox/u-boot -c "bootefi test" U-Boot 2017.09-00204-g696c9855fe (Sep 17 2017 - 16:43:53 -0600)

[U-Boot] [PATCH v2 15/16] efi: sandbox: Enable EFI loader builder for sandbox

2017-12-04 Thread Simon Glass
This allows this feature to build within sandbox. This is for testing purposes only since it is not possible for sandbox to load native code. Signed-off-by: Simon Glass --- Changes in v2: None lib/efi_loader/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH v2 13/16] efi: sandbox: Add relocation constants

2017-12-04 Thread Simon Glass
Add these so that we can build the EFI loader for sandbox. The values are for x86_64 so potentially bogus. But we don't support relocation within sandbox anyway. Signed-off-by: Simon Glass --- Changes in v2: None lib/efi_loader/efi_runtime.c | 3 +++ 1 file changed, 3

[U-Boot] [PATCH v2 01/16] efi: Update efi_smbios_register() to return error code

2017-12-04 Thread Simon Glass
This function can fail but gives no indication of failure. Update it to return an error when something goes wrong. Signed-off-by: Simon Glass --- Changes in v2: - Update return type of efi_smbios_register() to efi_status_t - Use return value of efi_install_configuration_table

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

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 > --- >

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

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

[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:

[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 ---

[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:

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] [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

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] [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] [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

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

[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' -

[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

[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

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: >>

[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 ---

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

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

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

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

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 >

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

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

[U-Boot] [PATCH v4 13/15] log: sandbox: Enable logging

2017-12-04 Thread Simon Glass
Enable all logging features on sandbox so that the tests can be run. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v4: None Changes in v3: None Changes in v2: - Change sandbox log level to 6 configs/sandbox_defconfig | 3 +++ 1 file

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

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

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

[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

[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

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

[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.

[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

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

2017-12-04 Thread Lukasz Majewski
Hi Andrey, > 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

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

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

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

[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

Re: [U-Boot] [PATCH v2 02/16] efi: Move the init check inside efi_init_obj_list()

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 10:28 PM, Simon Glass wrote: Rather than having the caller check this variable and the callee set it, move all access to the variable inside the function. This reduces the logic needed to call efi_init_obj_list(). Signed-off-by: Simon Glass Reviewed: Heinrich

Re: [U-Boot] [PATCH 09/22] mtd: nand: automate NAND timings selection

2017-12-04 Thread York Sun
On 11/21/2017 09:47 AM, Masahiro Yamada wrote: > From: Boris Brezillon > > The NAND framework provides several helpers to query timing modes supported > by a NAND chip, but this implies that all NAND controller drivers have > to implement the same timings

Re: [U-Boot] [PATCH v2 10/16] efi: sandbox: Add distroboot support

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 10:28 PM, Simon Glass wrote: With sandbox these values depend on the host system. Let's assume that it is x86_64 for now. How would you run this on a Pinebook (arm64)? Shouldn't we strive to make sandbox work on any architecture? Best regards Heinrich Signed-off-by:

[U-Boot] [ANN] U-Boot v2018.01-rc1 released

2017-12-04 Thread Tom Rini
Hey all, So it's release day and I've put up v2018.01-rc1. The merge window is now closed and I've updated git and the tarballs are also up now. I think my patch queue is in OK shape currently, but I need to pick up a few series once I've had a chance to test them more, and I expect a new EFI

[U-Boot] [PATCH v2 06/16] efi: sandbox: Adjust memory usage for sandbox

2017-12-04 Thread Simon Glass
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 address to a pointer. Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v2 01/16] efi: Update efi_smbios_register() to return error code

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 10:28 PM, Simon Glass wrote: This function can fail but gives no indication of failure. Update it to return an error when something goes wrong. Signed-off-by: Simon Glass --- Changes in v2: - Update return type of efi_smbios_register() to efi_status_t - Use

Re: [U-Boot] [PATCH v2 10/16] efi: sandbox: Add distroboot support

2017-12-04 Thread Simon Glass
Hi Heinrich, On 4 December 2017 at 15:37, Heinrich Schuchardt wrote: > > > On 12/04/2017 10:28 PM, Simon Glass wrote: >> >> With sandbox these values depend on the host system. Let's assume that it >> is x86_64 for now. > > > How would you run this on a Pinebook (arm64)? > >

[U-Boot] [PATCH v2 07/16] sandbox: smbios: Update to support sandbox

2017-12-04 Thread Simon Glass
At present this code casts addresses to pointers so cannot be used with sandbox. Update it to use mapmem instead. Signed-off-by: Simon Glass --- Changes in v2: None lib/smbios.c | 38 +- 1 file changed, 29 insertions(+), 9 deletions(-)

Re: [U-Boot] [PATCH v2 16/16] efi: sandbox: Add a simple 'bootefi test' command

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 10:28 PM, Simon Glass wrote: This jumps to test code which can call directly into the EFI support. It does not need a separate image so it is easy to write tests with it. For now the test just outputs a message. To try it: Hello Simon, why do we need "bootefi test"? What do

Re: [U-Boot] [PATCH v2 03/16] efi: Add error checking for efi_init_obj_list()

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 10:28 PM, Simon Glass wrote: This function calls a function which can fail. Print a message in this case and abort the boot, rather than silently continuing to boot, which will certainly fail. Signed-off-by: Simon Glass --- Changes in v2: - Change return

Re: [U-Boot] [PATCH v2 11/16] Define board_quiesce_devices() in a shared location

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 11:41 PM, Heinrich Schuchardt wrote: On 12/04/2017 10:28 PM, Simon Glass wrote: This undocumented function relies on arch-specific code to declare a nop Undocumented code is unsatisfactory. Please, add a comment to the function. Sorry I missed you put that in a separate

Re: [U-Boot] [PATCH 13/16] efi: sandbox: Add relocation constants

2017-12-04 Thread Simon Glass
Hi Heinrich, On 18 September 2017 at 05:13, Heinrich Schuchardt wrote: > On 09/18/2017 12:59 AM, Simon Glass wrote: >> Add these so that we can build the EFI loader for sandbox. The values are >> for x86_64 so potentially bogus. But we don't support relocation within >>

Re: [U-Boot] [PATCH 04/16] efi: Add a TODO to efi_init_obj_list()

2017-12-04 Thread Simon Glass
Hi Heinrich, On 17 September 2017 at 22:47, Heinrich Schuchardt wrote: > On 09/18/2017 12:59 AM, Simon Glass wrote: >> This function repeats data structures provided by driver model. They are >> only created once so can be stale if the EFI loader is called twice (e.g. >> for

Re: [U-Boot] [PATCH 09/22] mtd: nand: automate NAND timings selection

2017-12-04 Thread York Sun
On 12/04/2017 04:31 PM, Masahiro Yamada wrote: > 2017-12-05 7:37 GMT+09:00 York Sun : >> On 11/21/2017 09:47 AM, Masahiro Yamada wrote: >>> From: Boris Brezillon >>> >>> The NAND framework provides several helpers to query timing modes

Re: [U-Boot] [PATCH v2 16/16] efi: sandbox: Add a simple 'bootefi test' command

2017-12-04 Thread Simon Glass
Hi Heinrich, On 4 December 2017 at 14:53, Heinrich Schuchardt wrote: > > > On 12/04/2017 10:28 PM, Simon Glass wrote: >> >> This jumps to test code which can call directly into the EFI support. It >> does not need a separate image so it is easy to write tests with it. >> >>

Re: [U-Boot] [PATCH v2 05/16] efi: Correct header order in efi_memory

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 10:28 PM, Simon Glass wrote: The headers are not in the correct order. Fix this. Also drop libfdt_env.h since it is not needed. What do you consider as correct order? Do you mean sorted alphabetically? Includes should be self sufficient and the correct execution be independent

Re: [U-Boot] [PATCH 03/16] efi: Add error checking for efi_init_obj_list()

2017-12-04 Thread Simon Glass
Hi Heinrich, On 17 September 2017 at 22:33, Heinrich Schuchardt wrote: > > On 09/18/2017 12:59 AM, Simon Glass wrote: > > This function calls a function which can fail. Print a message in this > > case and abort the boot, rather than silently continuing to boot, which > >

Re: [U-Boot] [PATCH 06/16] efi: sandbox: Adjust memory setup for sandbox

2017-12-04 Thread Simon Glass
Hi Heinrich, On 18 September 2017 at 00:12, Heinrich Schuchardt wrote: > On 09/18/2017 12:59 AM, 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 >>

[U-Boot] [PATCH] ARM: omap3_logic: Enable NAND unlocking during Falcon mode

2017-12-04 Thread Adam Ford
Falcon mode was already working with SD card. This enables the unlocking of NAND to allow the NAND read & write. This also expands the README file based on the am335x describing how to setup Falcon mode. Signed-off-by: Adam Ford diff --git a/board/logicpd/omap3som/README

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

2017-12-04 Thread Andrey Yurovsky
On Mon, Dec 4, 2017 at 1:12 PM, Lukasz Majewski wrote: > Hi Andrey, > >> 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 >> >>

Re: [U-Boot] [ANN] U-Boot v2018.01-rc1 released

2017-12-04 Thread Adam Ford
On Mon, Dec 4, 2017 at 5:33 PM, Tom Rini wrote: > Hey all, > > So it's release day and I've put up v2018.01-rc1. The merge window is > now closed and I've updated git and the tarballs are also up now. > > I think my patch queue is in OK shape currently, but I need to > pick

[U-Boot] [PATCH v2 08/16] sandbox: Add a setjmp() implementation

2017-12-04 Thread Simon Glass
Add an implementation of setjmp() and longjmp() which rely on the underlying host C library. Since we cannot know how large the jump buffer needs to be, pick something that should be suitable and check it at runtime. At present we need access to the underlying struct as well. Signed-off-by: Simon

[U-Boot] [PATCH v2 10/16] efi: sandbox: Add distroboot support

2017-12-04 Thread Simon Glass
With sandbox these values depend on the host system. Let's assume that it is x86_64 for now. Signed-off-by: Simon Glass --- Changes in v2: None include/config_distro_bootcmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH v2 16/16] efi: sandbox: Add a simple 'bootefi test' command

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 11:07 PM, Simon Glass wrote: Hi Heinrich, On 4 December 2017 at 14:53, Heinrich Schuchardt wrote: On 12/04/2017 10:28 PM, Simon Glass wrote: This jumps to test code which can call directly into the EFI support. It does not need a separate image so it is

Re: [U-Boot] [PATCH v2 11/16] Define board_quiesce_devices() in a shared location

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 10:28 PM, Simon Glass wrote: This undocumented function relies on arch-specific code to declare a nop Undocumented code is unsatisfactory. Please, add a comment to the function. Best regards Heinrich weak version. Add the weak function in common code instead to avoid having

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 10:14:06AM -0700, Stephen Warren wrote: > 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

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

2017-12-04 Thread Bin Meng
On Mon, Dec 4, 2017 at 11:33 PM, Alexander Graf wrote: > 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. > >

[U-Boot] [PATCH v2 03/16] efi: Add error checking for efi_init_obj_list()

2017-12-04 Thread Simon Glass
This function calls a function which can fail. Print a message in this case and abort the boot, rather than silently continuing to boot, which will certainly fail. Signed-off-by: Simon Glass --- Changes in v2: - Change return type of efi_init_obj_list() to efi_status_t

[U-Boot] [PATCH v2 04/16] efi: Add a TODO to efi_init_obj_list()

2017-12-04 Thread Simon Glass
This function repeats data structures provided by driver model. They are only created once so can be stale if the EFI loader is called twice (e.g. for testing or on boot failure). Add a TODO to address this. It should be possible to attach EFI devices and data structures to driver-model devices

Re: [U-Boot] [PATCH 09/22] mtd: nand: automate NAND timings selection

2017-12-04 Thread Masahiro Yamada
2017-12-05 7:37 GMT+09:00 York Sun : > On 11/21/2017 09:47 AM, Masahiro Yamada wrote: >> From: Boris Brezillon >> >> The NAND framework provides several helpers to query timing modes supported >> by a NAND chip, but this implies that all NAND

Re: [U-Boot] [ANN] U-Boot v2018.01-rc1 released

2017-12-04 Thread Tom Rini
On Mon, Dec 04, 2017 at 06:11:29PM -0600, Adam Ford wrote: > On Mon, Dec 4, 2017 at 5:33 PM, Tom Rini wrote: > > > Hey all, > > > > So it's release day and I've put up v2018.01-rc1. The merge window is > > now closed and I've updated git and the tarballs are also up now. > >

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

2017-12-04 Thread Andy Tang
Hi York, This patch is to adjust the OOB (out of bound) timing of sata port. It is totally hardware timing. I was asked to update those timing by hardware/validation team. They calculated those values from clock frequency. You can apply it safely. Please apply this patch with SATA added.

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

2017-12-04 Thread Masahiro Yamada
2017-12-05 4:06 GMT+09:00 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 Nit. This is not a Kconfig change. The subject

[U-Boot] [PATCH V2] SPL: Add FIT data-position property support

2017-12-04 Thread Peng Fan
For external data, FIT has a optional property "data-position" which can set the external data to a fixed offset to FIT beginning. Add the support for this property in SPL FIT. Signed-off-by: Ye Li Signed-off-by: Peng Fan Reviewed-by: Simon Glass

  1   2   >