[PATCH 06/22] Makefile: Avoid rebuilding .dtb files each time

2021-07-05 Thread Simon Glass
Drop the FORCE from the rule that builds .dtb files and let the normal dependency checking do its work. This should work correctly, at least for .dts files that don't use /include/. Signed-off-by: Simon Glass --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH 02/22] dm: Support lzma in the flashmap

2021-07-05 Thread Simon Glass
Allow lzma compression as well as lz4. Signed-off-by: Simon Glass --- drivers/core/of_extra.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/core/of_extra.c b/drivers/core/of_extra.c index 7702beff97b..632a1c2210e 100644 --- a/drivers/core/of_extra.c +++ b/drivers/core/of_extra.c

[PATCH 05/22] test: Avoid a build error with SPL

2021-07-05 Thread Simon Glass
At present this fails to build chromeos_sandbox due to a rebase error in dm_test_pre_run(). Fix it. Signed-off-by: Simon Glass --- test/test-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-main.c b/test/test-main.c index 7afe8741cf9..3cdf6849c57 100644 --- a

[PATCH 08/22] sandbox: Add work-around for SDL2 display

2021-07-05 Thread Simon Glass
At present the display does not show on some machines, e.g. Ubunutu 20.04 but the reason is unknown. Add a work-around until this can be determined. Also include more error checking just in case. Signed-off-by: Simon Glass --- arch/sandbox/cpu/sdl.c | 23 ++- 1 file changed

[PATCH 07/22] sandbox: Support executables for more phases

2021-07-05 Thread Simon Glass
The SPL header has a function for obtaining the phase in capital letters, e.g. 'SPL'. Add one for lower-case also, as used by sandbox. Use this to generalise the sandbox logic for determining the filename of the next sandbox executable. This can provide support for VPL. Signed-off-by: Simon Glass

[PATCH 11/22] cros_ec: Allow reading the battery-charge state

2021-07-05 Thread Simon Glass
Add a function to read this information from the EC. It is useful for determining whether the battery has enough charge to boot. Signed-off-by: Simon Glass --- drivers/misc/cros_ec.c | 17 + include/cros_ec.h | 8 2 files changed, 25 insertions(+) diff --git a/dr

[PATCH 09/22] sandbox: Use hinting with the display

2021-07-05 Thread Simon Glass
SDL provides a hinting feature which provides a higher-quality image with the double-display option (-K). Enable it. Signed-off-by: Simon Glass --- arch/sandbox/cpu/sdl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/sandbox/cpu/sdl.c b/arch/sandbox/cpu/sdl.c index e2649494818..be

[PATCH 14/22] cros_ec: Use standard calls for recovery-request checking

2021-07-05 Thread Simon Glass
Rather than calling directly into the sandbox SDL code, we can use the normal U-Boot console handling for this feature. Update the code, to make it more generic. Signed-off-by: Simon Glass --- drivers/misc/cros_ec_sandbox.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(

[PATCH 10/22] sandbox: Adjust the bloblist default address

2021-07-05 Thread Simon Glass
Move this down to provide more space for the bloblist. Signed-off-by: Simon Glass --- common/Kconfig | 2 +- doc/arch/sandbox.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/Kconfig b/common/Kconfig index 2a7f08af1dc..21407b547da 100644 --- a/common/Kconf

[PATCH 13/22] cros_ec: Support the full-size vboot context

2021-07-05 Thread Simon Glass
The v2 format is 64-bytes in size. Support this and drop v1 since it is not used anymore. Signed-off-by: Simon Glass --- drivers/misc/cros_ec_sandbox.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/misc/cros_ec_sandbox.c b/drivers/misc/cros_ec_sandbox.c ind

[PATCH 12/22] cros_ec: Drop cros_ec_entering_mode()

2021-07-05 Thread Simon Glass
This function is not needed anymore. Drop it. Signed-off-by: Simon Glass --- drivers/misc/cros_ec.c | 11 --- drivers/misc/cros_ec_sandbox.c | 3 --- include/cros_ec.h | 9 - 3 files changed, 23 deletions(-) diff --git a/drivers/misc/cros_ec.c b/drivers/m

[PATCH 17/22] bloblist: Correct condition in bloblist_addrec()

2021-07-05 Thread Simon Glass
It is possible to add a blob that ends at the end of the bloblist, but at present this is not supported. Fix it and add a regression test for this case. Signed-off-by: Simon Glass --- common/bloblist.c | 2 +- test/bloblist.c | 23 +++ 2 files changed, 24 insertions(+), 1

[PATCH 16/22] bloblist: Tidy up a few API comments

2021-07-05 Thread Simon Glass
Some comments for struct bloblist_hdr are a bit ambiguous. Update them to clarify the meaning more precisely. Also document bloblist_get_stats() properly. Signed-off-by: Simon Glass --- include/bloblist.h | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/blo

[PATCH 15/22] bloblist: Support resizing a blob

2021-07-05 Thread Simon Glass
Sometimes a blob needs to expand, e.g. because it needs to hold more log data. Add support for this. Note that the bloblist must have sufficient spare space for this to work. Signed-off-by: Simon Glass --- common/bloblist.c | 71 - include/bloblist.h | 13 +++ test/bloblist.c

[PATCH 18/22] image: Allow @ in node names when not using signatures

2021-07-05 Thread Simon Glass
If signature verification is not in use we don't need to worry about the risk of using @ in node names. Update fit_image_verify() to allow it if the function is not enabled. Signed-off-by: Simon Glass --- common/image-fit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com

[PATCH 20/22] sandbox: mmc: Support fixed MMC devices

2021-07-05 Thread Simon Glass
Add support for reading devicetree flags for MMC devices. With this we can distinguish between fixed and removable drives. Note that this information is only available when the device is probed, not when it is bound, since it is read in the of_to_plat() method. This could be changed if needed later

[PATCH 19/22] spl: Provide more information on boot failure

2021-07-05 Thread Simon Glass
If SPL fails to boot, try to provide an error code to indicate what is wrong. For example, if a uclass is missing, this can return -EPFNOSUPPORT (-96) which provides useful information. Add a helper for accessing the image-loader name so we can drop the use of #ifdefs in this code. Put this featu

[PATCH 21/22] blk: Support iteration

2021-07-05 Thread Simon Glass
It is useful to be able to iterate over block devices. Typically there are fixed and removable devices. For security reasons it is sometimes useful to ignore removable devices since they are under user control. Add iterators which support selecting the block-device type. Signed-off-by: Simon Glas

[PATCH 22/22] log: Allow padding of the function name

2021-07-05 Thread Simon Glass
At present when function names are logged, the output is a little hard to read since every function is a different length. Add a way to pad the names so that the log messages line up vertically. This doesn't work if the function name is very long, but it makes a big difference in most cases. Use 2

[PATCH 0/3] sunxi: H616: SPI boot support

2021-07-05 Thread Andre Przywara
The Allwinner H616 supports booting from SPI NOR flash, for which we use our SPL specific SPI driver. Since this uses hardcoded values for clocks, resets and pins, we need to extend it to cover the H616 SoC as well. Patch 1/3 extends the logic that determines the offset of the U-Boot payload, from

[PATCH 1/3] sunxi: SPL SPI: Allow larger SPL

2021-07-05 Thread Andre Przywara
The more recent Allwinner SoCs BootROMs can actually load SPL images larger than 32KB. We use this on the H616 to fit the extra code needed for the PMIC into the image, and have provisions in board.c to respect that larger SPL size when booting from MMC. However the sunxi SPL SPI loader has a hard

[PATCH 2/3] sunxi: SPL SPI: Add SPI boot support for the Allwinner H616 SoC

2021-07-05 Thread Andre Przywara
The H616 SoC uses the same SPI IP as the H6, also shares the same clocks and reset bits. The only real difference is a slight change in the pin assignment: the H6 uses PC5, the H616 PC4 instead. This makes for a small change in our spi0_pinmux_setup() routine. Apart from that, just extend the H6 #

[PATCH 3/3] sunxi: OrangePi Zero 2: Enable SPI booting

2021-07-05 Thread Andre Przywara
The OrangePi Zero 2 board comes with 2MB of SPI flash, from which the BROM is supposed to be able to boot from. Enable the SPL code responsible for finding and loading U-Boot proper and friends, so that u-boot-sunxi-with-spl.bin can be written into the flash. Signed-off-by: Andre Przywara --- c

[PATCH] cmd: ums: Enable by default for sunxi

2021-07-05 Thread Andre Przywara
The ums command (presenting a U-Boot block device as a USB mass storage device) is very useful for accessing eMMC devices via USB-OTG. At the moment we enable USB fastboot by default for Allwinner devices, so it makes sense to do the same with USB mass storage, which is actually more versatile and

Re: [PATCH 1/2] test/py: Use loop mounts if guestmount fails in filesystem tests

2021-07-05 Thread Tom Rini
On Fri, Jun 04, 2021 at 10:04:45PM +0300, Alper Nebi Yasak wrote: > If guestmount isn't available on the system, filesystem test setup falls > back to using loop mounts to prepare its disk images. If guestmount is > available but fails to work, the tests are immediately skipped. Instead > of givin

Re: [PATCH 2/2] test/py: Wait for guestmount worker to exit after running guestunmount

2021-07-05 Thread Tom Rini
On Fri, Jun 04, 2021 at 10:04:46PM +0300, Alper Nebi Yasak wrote: > Some filesystem tests are failing when their image is prepared with > guestmount, but succeeding if loop mounts are used instead. The reason > seems to be a race condition the guestmount(1) manual page explains: > > When gues

Re: [PATCH] Docker/CI: Update to "focal" and latest build

2021-07-05 Thread Tom Rini
On Thu, Jun 10, 2021 at 10:57:36AM -0400, Tom Rini wrote: > Move us up to being based on Ubuntu 20.04 "focal" and the latest tag > from Ubuntu for this release. For this, we make sure that "python" is > now python3 but still include python2.7 for the rx51 qemu build as that > is very old and does

Re: [PATCH v3 1/3] tools: docker: Install a readable kernel for libguestfs-tools

2021-07-05 Thread Tom Rini
On Mon, Jun 21, 2021 at 09:51:54PM +0300, Alper Nebi Yasak wrote: > The filesystem and EFI (capsule and secure boot) test setups try to use > guestmount and virt-make-fs respectively to prepare disk images to run > tests on. However, these libguestfs tools need a kernel image and fail > with the f

Re: [PATCH v3 2/3] Azure: Add fuse device for test.py tests

2021-07-05 Thread Tom Rini
On Mon, Jun 21, 2021 at 09:51:55PM +0300, Alper Nebi Yasak wrote: > The EFI secure boot and capsule test setups need to prepare disk images > for their tests using virt-make-fs, which requires access to the host > fuse device. This is not exposed to the docker container by default and > has to be

Re: [PATCH v3 3/3] Azure: Add loop devices and CAP_SYS_ADMIN for sandbox test.py tests

2021-07-05 Thread Tom Rini
On Mon, Jun 21, 2021 at 09:51:56PM +0300, Alper Nebi Yasak wrote: > The filesystem test setup needs to prepare disk images for its tests, > with either guestmount or loop mounts. The former requires access to the > host fuse device (added in a previous patch), the latter requires access > to host

Re: [PATCH v3 1/3] test/py: rewrite common tools for SquashFS tests

2021-07-05 Thread Tom Rini
On Wed, Jun 30, 2021 at 07:45:03PM -0300, Joao Marcos Costa wrote: > Remove the previous OOP approach, which was confusing and incomplete. > Add more test cases by making SquashFS images with various options, > concerning file fragmentation and its compression. Add comments to > properly document

Re: [PATCH v3 2/3] test/py: rewrite sqfsload command test suite

2021-07-05 Thread Tom Rini
On Wed, Jun 30, 2021 at 07:45:04PM -0300, Joao Marcos Costa wrote: > The previous strategy to know if a file was correctly loaded was to > check for how many bytes were read and compare it against the file's > original size. Since this is not a good solution, replace it by > comparing the checksum

Re: [PATCH v3 3/3] test/py: rewrite sqfsls command test suite

2021-07-05 Thread Tom Rini
On Wed, Jun 30, 2021 at 07:45:05PM -0300, Joao Marcos Costa wrote: > Add more details to test cases by comparing each expected line with the > command's output. Add new test cases: > - sqfsls at an empty directory > - sqfsls at a sub-directory > > Signed-off-by: Joao Marcos Costa Applied to u-b

Re: [PATCH] env: efi: fix a wrong address dereference

2021-07-05 Thread Tom Rini
On Sat, Jul 03, 2021 at 10:25:22AM -0400, Tom Rini wrote: > From: AKASHI Takahiro > > Probably, a pointer to a variable in an inner block should not > be exposed to an outer block. > > Fixes: c70f44817d46 ("efi_loader: simplify 'printenv -e'") > Signed-off-by: AKASHI Takahiro > [trini: Don't m

Re: [PATCH 1/3] power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU

2021-07-05 Thread Jaehoon Chung
On 7/6/21 1:28 AM, Stephan Gerhold wrote: > All devices based on ST-Ericsson Ux500 use a PMIC similar to AB8500 > (Analog Baseband). There is AB8500, AB8505, AB9540 and AB8540 > although in practice only AB8500 and AB8505 are relevant since the > platforms with AB9540 and AB8540 were cancelled and

Re: [PATCH 2/3] phy: Add driver for ST-Ericsson AB8500 USB PHY

2021-07-05 Thread Jaehoon Chung
Hi Stephan, On 7/6/21 1:28 AM, Stephan Gerhold wrote: > The AB8500 PMIC contains an USB PHY that needs to be set up in > device or host mode to make USB work properly. Add a simple driver > for the generic PHY uclass that allows enabling it. > > The if (CONFIG_IS_ENABLED(USB_MUSB_HOST)) might be

Re: [PATCH 20/22] sandbox: mmc: Support fixed MMC devices

2021-07-05 Thread Jaehoon Chung
On 7/6/21 7:32 AM, Simon Glass wrote: > Add support for reading devicetree flags for MMC devices. With this we > can distinguish between fixed and removable drives. Note that this > information is only available when the device is probed, not when it is > bound, since it is read in the of_to_plat()

[PATCH v2] MAINTAINERS, git-mailrc: socfpga: Change co-maintainer to Tien Fong Chee

2021-07-05 Thread Ley Foon Tan
I'm no longer work in Intel, change Intel SoCFPGA co-maintainer to Tien Fong Chee. Signed-off-by: Ley Foon Tan --- v2: Fixed typo "Maintainted" to "Maintained". --- MAINTAINERS| 4 ++-- doc/git-mailrc | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAIN

Re: [PATCH] arm: mach-snapdragon: pinctrl: Place pin_name in .data section

2021-07-05 Thread Ramon Fried
On Mon, Jul 5, 2021 at 3:19 PM Stephan Gerhold wrote: > > According to arch/arm/lib/crt0_64.S, the BSS section is "UNAVAILABLE" > and uninitialized before relocation. Also, it overlaps with the > appended DTB before relocation, so writing data into a variable > in the BSS section might corrupt the

Re: [PATCH] net: dwc_eth_qos: cosmetic: remove unused define EQOS_DESCRIPTOR_ALIGN

2021-07-05 Thread Ramon Fried
On Mon, Jul 5, 2021 at 8:50 PM Patrick DELAUNAY wrote: > > Hi Ramon, > > On 3/31/21 4:43 PM, Ramon Fried wrote: > > On Tue, Mar 30, 2021 at 5:12 PM Marek Vasut wrote: > >> On 3/30/21 2:34 PM, Patrick Delaunay wrote: > >>> Remove the define EQOS_DESCRIPTOR_ALIGN unused since the > >>> commit 6f1e6

RE: [PATCH] test/py: tpm2: Skip tpm pytest based on env variable

2021-07-05 Thread T Karthik Reddy
Hi, Any update on this patch? Thanks T Karthik > -Original Message- > From: T Karthik Reddy > Sent: Tuesday, June 22, 2021 11:19 AM > To: u-boot@lists.denx.de > Cc: git-dev ; T Karthik Reddy > Subject: [PATCH] test/py: tpm2: Skip tpm pytest based on env variable > > Tpm test ca

Re: [ANN] U-Boot v2021.07 released

2021-07-05 Thread Trevor Woerner
On Mon, Jul 5, 2021 at 11:13 AM Tom Rini wrote: > It is release day and here is the v2021.07 release. > > The merge window is once again open and I plan to tag -rc1 on Monday, > July 26th, bi-weekly -rcs thereafter and final release on October 4th, > 2021. > > I am merging the next branch to mast

<    1   2