[PATCH] doc: usage: Group all shell command docs into cmd/ sub-direcotry

2022-03-27 Thread Bin Meng
Currently all shell command docs are put in the doc/usage root. Let's group them into cmd/ sub-direcotry. Signed-off-by: Bin Meng --- doc/usage/{ => cmd}/acpi.rst | 0 doc/usage/{ => cmd}/addrmap.rst | 0 doc/usage/{ => cmd}/askenv.rst | 0 doc/usage/{ => cmd}/base.rst

[PATCH 3/3] doc: usage: Convert README.plan9 to reST

2022-03-27 Thread Bin Meng
This converts the existing README.plan9 to reST, and puts it under the doc/usage/os directory. Signed-off-by: Bin Meng --- doc/usage/index.rst | 1 + doc/{README.plan9 => usage/os/plan9.rst} | 12 2 files changed, 9 insertions(+), 4 deletions(-) rename

[PATCH 2/3] doc: usage: Update vxworks doc to mention RISC-V support

2022-03-27 Thread Bin Meng
At present the doc only mentions Arm, PowerPC and x86. RISC-V support has been added since VxWorks SR0650 support for a while, and U-Boot supports loading a RISC-V VxWorks kernel too. Let's document it. Signed-off-by: Bin Meng --- doc/usage/os/vxworks.rst | 11 --- 1 file changed, 8

[PATCH 1/3] doc: usage: Convert README.vxworks to reST

2022-03-27 Thread Bin Meng
This converts the existing README.vxworks to reST, and puts it under the doc/usage/os directory. Signed-off-by: Bin Meng --- doc/usage/index.rst | 8 +++ doc/{README.vxworks => usage/os/vxworks.rst} | 22 ++-- 2 files changed, 19 insertions(+), 11

Re: [RFC PATCH 1/6] capsule: Add Image GUIDs for platforms using capsule updates

2022-03-27 Thread Masami Hiramatsu
Hi Sughosh, 2022年3月27日(日) 18:11 Sughosh Ganu : > > hi Masami, > > On Sat, 26 Mar 2022 at 16:17, Masami Hiramatsu > wrote: > > > > Hi Sughosh, > > > > 2022年3月25日(金) 18:59 Sughosh Ganu : > > > > > > hi Masami, > > > > > > On Fri, 25 Mar 2022 at 10:58, Masami Hiramatsu > > > wrote: > > > > > > > >

Re: [PATCH 5/8] usb: ehci-mx6: Allow building SDP for imx8mm

2022-03-27 Thread Fabio Estevam
Hi Jaap, On Sun, Mar 27, 2022 at 6:19 PM Jaap Crezee wrote: > But then SDP boot still fails with: > > ( make flash.bin && uuu ./flash.bin ) > U-Boot SPL 2022.04-rc4-00079-gcbc05bba8c (Mar 27 2022 - 22:52:29 +0200) > PMIC: PFUZE100 ID=0x10 > Normal Boot > SPL: Unsupported Boot Device 9 > SPL:

Re: [PATCH 5/8] usb: ehci-mx6: Allow building SDP for imx8mm

2022-03-27 Thread Jaap Crezee
Hi all, On 7/3/21 21:58, Fabio Estevam wrote: After selecting USB SDP support for i.MX8MM, there are some build errors and warnings. Make the necessary adjustments for fixing the build. It seems this is also breaking imx8mq_evk on mainline (cbc05bba8cb7da62eae65f41e1b0ddbcadc06bba) as of

[PATCH 10/10] WIP: dm: core: Add a command to calculate memory usage

2022-03-27 Thread Simon Glass
Driver model can use a lot of memory, as it is the core of all drivers and devices in U-Boot. Add a command to show how much is in use, along with the sizes of various data structures. This patch can be used to analyse the impact of various potential changes to driver model for SPL, none of which

[PATCH 09/10] RFC: dm: add tag support

2022-03-27 Thread Simon Glass
From: AKASHI Takahiro Note: This patch is *still* pending, so it is included in this series just to make it work. With dm-tag feature, any U-Boot subsystem is allowed to associate arbitrary number of data with a particular udevice. This can been see as expanding "struct udevice" without

[PATCH 08/10] dm: core: Deal with a wrinkle with linker lists

2022-03-27 Thread Simon Glass
When every member of a linker list is aligned by the compiler, we can no longer rely on the sizeof of the struct to determine the number of entries. For example, if the struct size is 0x90 but every entry is aligned to 0xa0 by the compiler, the linker list entries takes more space in memory and

[PATCH 07/10] dm: core: Allow devres to be disabled in SPL

2022-03-27 Thread Simon Glass
At present if devres is enabled in U-Boot proper it is enabled in SPL. We don't normally want it there, so disable it. Signed-off-by: Simon Glass --- drivers/core/Makefile| 2 +- drivers/core/device.c| 2 +- include/dm/device-internal.h | 6 +++--- include/dm/device.h

[PATCH 06/10] sandbox: Align linker lists to a 32-byte boundary

2022-03-27 Thread Simon Glass
Use this larger boundary to ensure that linker lists at least start on the maximum possible alignment boundary. See also the CONFIG_LINKER_LIST_ALIGN setting, but that is host-arch-specific, so it seems better to use the largest value for every host architecture. Signed-off-by: Simon Glass ---

[PATCH 05/10] sandbox: Allow link flags to be given

2022-03-27 Thread Simon Glass
At present the link flags are not used for sandbox. Update the command line to use them. Signed-off-by: Simon Glass --- arch/sandbox/config.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/config.mk b/arch/sandbox/config.mk index 2b1b657831c..02a3ba0c0e9

[PATCH 04/10] Makefile: Avoid resetting link flags in config.mk

2022-03-27 Thread Simon Glass
This makes it impossible to change them elsewhere. The default value is 'empty' anyway, so just drop it. Signed-off-by: Simon Glass --- config.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/config.mk b/config.mk index 2595aed218b..b915c29b3f3 100644 --- a/config.mk +++ b/config.mk @@

[PATCH 03/10] Makefile: Drop a stale comment about linking

2022-03-27 Thread Simon Glass
The bug mentioned here is fixed, so drop the comment. Signed-off-by: Simon Glass --- Makefile | 4 1 file changed, 4 deletions(-) diff --git a/Makefile b/Makefile index c9585ddebfc..e23c3204d21 100644 --- a/Makefile +++ b/Makefile @@ -1785,10 +1785,6 @@ quiet_cmd_u-boot__ ?= LTO $@

[PATCH 02/10] sandbox: Correct loss of early output in SPL

2022-03-27 Thread Simon Glass
At present fputc() is used before the console is available, then write() is used. These are not compatible. Since fputc() buffers internally it is better to use the write(), so that a partial line is immediately displayed. This has a slight effect on performance, but we are already using write()

[PATCH 01/10] Makefile: v2 Allow LTO to be disabled for a build

2022-03-27 Thread Simon Glass
LTO (Link-Time Optimisation) is an very useful feature which can significantly reduce the size of U-Boot binaries. So far it has been made available for selected ARM boards and sandbox. However, incremental builds are much slower when LTO is used. For example, an incremental build of sandbox

[PATCH 00/10] dm: Experiments for reducing SPL memory usage

2022-03-27 Thread Simon Glass
This series explores using the (not yet applied) tag support in driver model to reduce memory usage in SPL. This is particularly important on 64-bit machines, which use a ridiculously large 8 bytes for each pointer into what what is sometimes only 64KB of available memory. The primary focus of

Re: [PATCH v2 13/23] pinctrl: sunxi: Add I2C pinmuxes

2022-03-27 Thread Andre Przywara
On Thu, 17 Mar 2022 22:54:10 -0500 Samuel Holland wrote: Hi, > Where multiple options were available, the one matching board.c and the > device trees was chosen. > > Pin lists and mux values were taken from the Linux drivers. > > Signed-off-by: Samuel Holland > --- > > (no changes since v1)

[PATCH 7/7] binman: Refuse to replace sections for now

2022-03-27 Thread Alper Nebi Yasak
Binman interfaces allow attempts to replace any entry in the image with arbitrary data. When trying to replace sections, the changes in the section entry's data are not propagated to its child entries. This, combined with how sections rebuild their contents from its children, eventually causes the

[PATCH 6/7] binman: Test replacing non-section entries in FIT subsections

2022-03-27 Thread Alper Nebi Yasak
A previous patch fixes binman to correctly extract FIT subentries. This makes it easier to test replacing these entries as we can write tests using an existing helper function that relies on extracting the replaced entry. Add tests that replace leaf entries in FIT subsections with data of various

[PATCH 4/7] binman: Remove '/images/' fragment from FIT subentry paths

2022-03-27 Thread Alper Nebi Yasak
Binman FIT entry nodes describe their subentries in an 'images' subnode, same as how they would be written for the mkimage executable. The entry type initially manually managed its subentries keyed by their node paths relative to its base node. It was later converted to a proper section while

[PATCH 5/7] binman: Create FIT subentries in the FIT section, not its parent

2022-03-27 Thread Alper Nebi Yasak
When reading images from a file, each entry's data is read from its parent section as specified in the Entry.Create() call that created it. The FIT entry type has been creating its subentries under its parent (their grandparent), as creating them under the FIT entry resulted in an error until FIT

[PATCH 3/7] binman: Don't reset offset/size if image doesn't allow repacking

2022-03-27 Thread Alper Nebi Yasak
When an image has the 'allow-repack' property, binman includes the original offset and size properties from the image description in the fdtmap. These are later used as the packing constraints when replacing entries in an image, so other unconstrained entries can be freely positioned. Replacing

[PATCH 2/7] binman: Collect bintools for images when replacing entries

2022-03-27 Thread Alper Nebi Yasak
Binman entries can use other executables to compute their data, usually in their ObtainContents() methods. Subclasses of Entry_section would use bintools in their BuildSectionData() method instead, which is called from several places including their Pack(). These binary tools are resolved

[PATCH 1/7] binman: Fix unique names having '/.' for images read from files

2022-03-27 Thread Alper Nebi Yasak
Binman can embed a copy of the image description into the images it builds as a fdtmap entry, but it omits the /binman/ prefix from the node paths while doing so. When reading an already-built image file, entries are reconstructed using this fdtmap and their associated nodes still lack that

[PATCH 0/7] binman: Fix replacing FIT subentries

2022-03-27 Thread Alper Nebi Yasak
Converting the binman FIT entry type to a section ended up breaking the ability to replace these in images. The conversion to section partially enables extracting and replacing the subentries, but that also doesn't work as intended. This series gets binman to a point where it can extract FIT

[PATCH] doc: usage: Update the extension command title

2022-03-27 Thread Bin Meng
Update the extension command title for consistency with other commands. Signed-off-by: Bin Meng --- doc/usage/extension.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/usage/extension.rst b/doc/usage/extension.rst index 2b88398b18..6366cf56e7 100644 ---

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-27 Thread Michael Nazzareno Trimarchi
HI Simon On Sat, Mar 26, 2022 at 9:51 PM Simon Glass wrote: > > Hi Tom, > > On Sat, 26 Mar 2022 at 13:58, Tom Rini wrote: > > > > On Sat, Mar 26, 2022 at 01:56:36PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 25 Mar 2022 at 08:50, Tom Rini wrote: > > > > > > > > On Fri, Mar 25,

Re: [RFC PATCH 1/6] capsule: Add Image GUIDs for platforms using capsule updates

2022-03-27 Thread Sughosh Ganu
hi Masami, On Sat, 26 Mar 2022 at 16:17, Masami Hiramatsu wrote: > > Hi Sughosh, > > 2022年3月25日(金) 18:59 Sughosh Ganu : > > > > hi Masami, > > > > On Fri, 25 Mar 2022 at 10:58, Masami Hiramatsu > > wrote: > > > > > > Hi Sughosh, > > > > > > OK I understand that if the platform uses the FIT

[PATCH 1/1] test: fix pylint warnings in test_efi_bootmgr

2022-03-27 Thread Heinrich Schuchardt
* Use f'' strings instead of .format(). * Correct sequence of imports. * Remove a superfluous import. * Add missing documentation. * Replace yield by return. Signed-off-by: Heinrich Schuchardt --- test/py/tests/test_efi_bootmgr/conftest.py | 14 ++

[PATCH 1/1] test: fix pylint warnings for test_efi_fit.py

2022-03-27 Thread Heinrich Schuchardt
* fix style of argument documentation * add encoding to open() calls Signed-off-by: Heinrich Schuchardt --- test/py/tests/test_efi_fit.py | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/test/py/tests/test_efi_fit.py

Pull request for efi-2022-04-rc5-2

2022-03-27 Thread Heinrich Schuchardt
The following changes since commit 28c2ebef372b4c9bb18bed8373e0d9e65a09b42b: Merge https://source.denx.de/u-boot/custodians/u-boot-sunxi (2022-03-25 21:20:29 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-04-rc5-2 for