Re: [PATCH] tools: mkeficapsule: use pkg-config for each lib separat

2022-08-19 Thread Heinrich Schuchardt
On 8/6/22 13:22, Heiko Thiery wrote: Signed-off-by: Heiko Thiery This lacks a commit message. I will add the following when merging: Call pkg-config for each library individually. This improves fallback handling. Suggested-by: AKASHI Takahiro Fixes: 31a7688cbe0e ("tools: mkeficapsule: use

[PATCH v3] dm: core: Do not stop uclass iteration on error

2022-08-19 Thread Michal Suchanek
When probing a device fails NULL pointer is returned, and other devices cannot be iterated. Skip to next device on error instead. Fixes: 6494d708bf ("dm: Add base driver model support") Signed-off-by: Michal Suchanek --- v2: - Fix up tests v3: - Fix up API doc - Correctly forward error from

Re: [RESEND PATCH 0/2] rpi: Copy eth PHY address from fw DT to loaded DT

2022-08-19 Thread Antoine Mazeas
I had not used patman in the first instance and Matthias Brugger was not cc’ed with the patch properly. Given that I had no feedback, I thought best to resubmit via patman this time in case it had not been seen the first time because of this. However patman also picked up a different series

Re: [PATCH 3/5] net: tftp: add IPv6 support for tftpboot

2022-08-19 Thread Ramon Fried
On Fri, Aug 19, 2022 at 2:30 PM Vyacheslav Mitrofanov V wrote: > > On Fri, 2022-08-19 at 14:00 +0300, Ramon Fried wrote: > > On Fri, Aug 19, 2022 at 11:10 AM Viacheslav Mitrofanov > > wrote: > > > The command tftpboot uses IPv4 by default, to use IPv6 instead add > > > -ipv6 > > > as the last

Re: [PATCH v8 02/13] FWU: Add FWU metadata structure and driver for accessing metadata

2022-08-19 Thread Sughosh Ganu
hi Simon, On Fri, 19 Aug 2022 at 20:53, Simon Glass wrote: > > Hi Sughosh, > > On Fri, 19 Aug 2022 at 07:36, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Thu, 18 Aug 2022 at 23:20, Simon Glass wrote: > > > > > > pHi Sughosh, > > > > > > On Thu, 18 Aug 2022 at 05:03, Sughosh Ganu > > >

Re: [PATCH v8 02/13] FWU: Add FWU metadata structure and driver for accessing metadata

2022-08-19 Thread Jassi Brar
On Fri, Aug 19, 2022 at 10:25 AM Simon Glass wrote: > > Hi Jassi, > > On Fri, 19 Aug 2022 at 08:59, Jassi Brar wrote: > > > > Hi Simon, > > > > On Thu, Aug 18, 2022 at 12:50 PM Simon Glass wrote: > > > > > > > > +/** > > > > > > + * struct fwu_image_bank_info - firmware image information > > >

Re: [PATCH v3] cmd: cat: add new command

2022-08-19 Thread Simon Glass
Hi, On Thu, 18 Aug 2022 at 11:08, Heinrich Schuchardt wrote: > > On 8/18/22 18:54, Roger Knecht wrote: > > Add cat command to print file content to standard out > > > > Signed-off-by: Roger Knecht > > --- > > v3: > > - Disable 'cat' by default (CONFIG_CMD_CAT=n) > > - Enable 'cat' in

Re: [PATCH v8 02/13] FWU: Add FWU metadata structure and driver for accessing metadata

2022-08-19 Thread Simon Glass
Hi Jassi, On Fri, 19 Aug 2022 at 08:59, Jassi Brar wrote: > > Hi Simon, > > On Thu, Aug 18, 2022 at 12:50 PM Simon Glass wrote: > > > > > > +/** > > > > > + * struct fwu_image_bank_info - firmware image information > > > > > + * @image_uuid: Guid value of the image in this bank > > > > > + *

Re: [PATCH v8 10/13] FWU: cmd: Add a command to read FWU metadata

2022-08-19 Thread Simon Glass
Hi Sughosh, On Fri, 19 Aug 2022 at 01:41, Sughosh Ganu wrote: > > hi Simon, > > On Thu, 18 Aug 2022 at 23:19, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Thu, 18 Aug 2022 at 05:53, Sughosh Ganu wrote: > > > > > > hi Simon, > > > > > > On Thu, 18 Aug 2022 at 08:51, Simon Glass wrote: > >

Re: [PATCH] riscv: fix compitible with binutils 2.38

2022-08-19 Thread Simon Glass
Hi Leo, On Fri, 19 Aug 2022 at 03:09, Leo Liang wrote: > > On Thu, Aug 11, 2022 at 10:23:02PM +, Leo Liang wrote: > > On Mon, May 30, 2022 at 11:05:54AM -0400, Tom Rini wrote: > > > On Sat, May 28, 2022 at 09:02:09AM +, Leo Liang wrote: > > > > On Fri, May 27, 2022 at 09:30:49AM -0400,

Re: [PATCH v8 02/13] FWU: Add FWU metadata structure and driver for accessing metadata

2022-08-19 Thread Simon Glass
Hi Sughosh, On Fri, 19 Aug 2022 at 07:36, Sughosh Ganu wrote: > > hi Simon, > > On Thu, 18 Aug 2022 at 23:20, Simon Glass wrote: > > > > pHi Sughosh, > > > > On Thu, 18 Aug 2022 at 05:03, Sughosh Ganu wrote: > > > > > > hi Simon, > > > > > > On Thu, 18 Aug 2022 at 06:43, Simon Glass wrote: >

Re: [PATCH v8 02/13] FWU: Add FWU metadata structure and driver for accessing metadata

2022-08-19 Thread Jassi Brar
Hi Simon, On Thu, Aug 18, 2022 at 12:50 PM Simon Glass wrote: > > > > +/** > > > > + * struct fwu_image_bank_info - firmware image information > > > > + * @image_uuid: Guid value of the image in this bank > > > > + * @accepted: Acceptance status of the image > > > > + * @reserved: Reserved > >

[PATCH v6 14/21] binman: Support missing compression tools

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Handle missing compression tools by returning empty data and record missing bintool. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v6: - Set data with tools.get_bytes(0, 1024) instead returning Changes in v5: - Use record_missing_bintool function - Use

[PATCH v6 21/21] binman: Add zstd bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add zstd bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Test that zstd compress of device-tree files failed - Add algorithm name to entry.py - Add tool name to ftest.py

[PATCH v6 13/21] binman: Move compression bintool management into entry class

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Move management of the bintool to compress and decompress data into the entry class and add the bintool to the list of required bintools. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v6: - Set uncomp_size after decompress in DecompressData function

[PATCH v6 20/21] binman: Add xz bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add xz bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add algorithm name to entry.py - Add tool name to ftest.py Changes in v2: - Add commit to add xz bintool

[PATCH v6 19/21] binman: Add lzop bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add lzop bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add algorithm name to entry.py - Add tool name to entry.py and ftest.py Changes in v2: - Add commit to add lzop

[PATCH v6 18/21] binman: Add gzip bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add gzip bintool to binman to support on-the-fly compression of Linux kernel images and FPGA bitstreams. The SPL basic fitImage implementation supports only gzip decompression. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add

[PATCH v6 17/21] binman: Add bzip2 bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add bzip2 bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add algorithm name to entry.py - Add tool name to ftest.py Changes in v2: - Add commit to add bzip2 bintool

[PATCH v6 15/21] binman: Add compression tests

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add common test functions to test all supported compressions. Signed-off-by: Stefan Herbrechtsmeier Reviewed-by: Simon Glass --- Instead of the for loop it is possible to use Parameterized [1] testing. [1] https://github.com/wolever/parameterized (no changes

[PATCH v6 11/21] binman: Move compression bintools creation into test setup

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Move compression bintools (packer) creation into test setup to reuse bintool objects between tests. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add commit to move compression bintools creation into test setup

[PATCH v6 12/21] binman: Select compression bintools in cbfs_util class

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Select the lz4 and lzma_alone bintools in cbfs_util class to centralize the supported compression algorithm evaluation inside the class and over multiple classes. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add commit to

[PATCH v6 16/21] binman: Add BintoolPacker class to bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add a bintools base class for packers which compression / decompression entry contents. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Remove self.fetch_package not None check in fetch function Changes in v3: - Document class

[PATCH v6 10/21] binman: Remove obsolete compressed data header handling

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Remove the obsolete compressed data header handling from the utilities to compress and decompress data. The header is uncommon, not supported by U-Boot and incompatible with external compressed artifacts. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since

[PATCH v6 09/21] binman: Disable compressed data header

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Disable the compressed data header of the utilities to compress and decompress data. The header is uncommon, not supported by U-Boot and incompatible with external compressed artifacts. The header was introduced as part of commit eb0f4a4cb402 ("binman: Support

[PATCH v6 08/21] binman: Add length header attribute to dtb entry

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add an optional length header attribute to the device tree blob entry class based on the compressed data header from the utilities to compress and decompress data. If needed the header could be enabled with the following attribute beside the compress attribute:

[PATCH v6 01/21] binman: Skip elf tests if python elftools is not available

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Skip tests which requires python elftools if the tool is not available. Signed-off-by: Stefan Herbrechtsmeier Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Add commit to skip elf tests tools/binman/elf_test.py | 14 ++

[PATCH v6 00/21] binman: Rework compression support

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Rework the compression support of binman. Add a length header attribute to dtb entry, manage the compression bintool in the entry class and add support for several compression tools. Changes in v6: - Set uncomp_size after decompress in DecompressData function - Set

[PATCH v6 06/21] binman: Check only section data in multi section test

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Check only section data instead of the rest of the image in multi section test. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add commit to check only section data in multi section test tools/binman/ftest.py | 10 ++

[PATCH v6 07/21] binman: Add DecompressData function to entry class

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add a DecompressData function to entry class to allow override in child classes and to centralize the compress and decompress in a single class. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add commit to add DecompressData

[PATCH v6 04/21] binman: Forward AddBintools calls to base class

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Forward AddBintools calls to base class to collect bintools of base class. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add commit to forward AddBintools calls to base class tools/binman/etype/gbb.py| 1 +

[PATCH v6 05/21] binman: Collect bintools before usage

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Collect and thereby initialize bintools before any usage but after generation of entries. This is needed to handle bintools for compress and decompress like other bintools. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add

[PATCH v6 03/21] binman: Forward AddBintools calls to sub entries in cbfs_util

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Forward AddBintools calls to sub entries in cbfs_util to collect bintools of sub entries. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add commit to forward AddBintools calls tools/binman/etype/cbfs.py | 5 + 1 file

[PATCH v6 02/21] binman: Avoid duplicates in bintool lists

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Avoid duplicate entries in the list of bintools used by the image and the list of missing bintools. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v5) Changes in v5: - Add commit to avoid duplicates in bintool lists tools/binman/entry.py | 8

Re: removal of MPC8309 support

2022-08-19 Thread Tom Rini
On Fri, Aug 19, 2022 at 01:20:44PM +, Holger Brunck wrote: > Hi, > I am going to remove our board support for KMTEGR1 as it is obsolete. It > seems it is > the only board using MPC8309 CPU and the support for this CPU was introduced > due to this board. Should I remove the MPC8309 support

Re: [RESEND PATCH 0/2] rpi: Copy eth PHY address from fw DT to loaded DT

2022-08-19 Thread Peter Robinson
Why did you need to resend it? On Fri, Aug 19, 2022 at 3:08 PM Antoine Mazeas wrote: > > Sjoerd Simons submitted the original patch (0001) to carry over some > firmware-provided properties into the loaded device tree. This did not fix > an issue with Raspberry Pi 400 rev 1.1 boards which would

Re: [PATCH 3/5] net: tftp: add IPv6 support for tftpboot

2022-08-19 Thread Vyacheslav Mitrofanov V
On Fri, 2022-08-19 at 14:00 +0300, Ramon Fried wrote: > On Fri, Aug 19, 2022 at 11:10 AM Viacheslav Mitrofanov > wrote: > > The command tftpboot uses IPv4 by default, to use IPv6 instead add > > -ipv6 > > as the last argument. All other tftpboot features and parameters > > are left > > the same.

[RESEND PATCH 2/2] rpi: Copy eth PHY address from fw DT to loaded DT

2022-08-19 Thread Antoine Mazeas
Some Raspberry Pi 400 boards, specifically rev 1.1, have a different address for the ethernet PHY device than what is provided by the kernel DTB. The correct address is provided by the firmware, so we should carry it over into the loaded device tree so that ethernet works on such boards.

[RESEND PATCH 1/2] rpi: Copy properties from firmware dtb to the loaded dtb

2022-08-19 Thread Antoine Mazeas
The RPI firmware adjusts several property values in the dtb it passes to u-boot depending on the board/SoC revision. Inherit some of these when u-boot loads a dtb itself. Specificaly copy: * /model: The firmware provides a more specific string * /memreserve: The firmware defines a reserved range,

[RESEND PATCH 0/2] rpi: Copy eth PHY address from fw DT to loaded DT

2022-08-19 Thread Antoine Mazeas
Sjoerd Simons submitted the original patch (0001) to carry over some firmware-provided properties into the loaded device tree. This did not fix an issue with Raspberry Pi 400 rev 1.1 boards which would not be able to find the ethernet PHY device at the address specified by the kernel device tree.

[PATCH v4] cmd: cat: add new command

2022-08-19 Thread Roger Knecht
Add cat command to print file content to standard out Signed-off-by: Roger Knecht --- v4: - Return only values from enum command_ret_t in do_cat() - Use calloc() instead of malloc() for zero initialized memory - Make use of CONFIG_SYS_LONGHELP - Improved error messages v3: - Disable 'cat'

[PATCH 4/5] net: ping6: Add ping6 command

2022-08-19 Thread Viacheslav Mitrofanov
Implement ping6 command to ping hosts using IPv6. There is no ICMP request so it is not possible to ping our host. Signed-off-by: Viacheslav Mitrofanov --- cmd/Kconfig| 6 +++ cmd/net.c | 26 +++ include/net.h | 4 +- include/net6.h | 17 +++ net/Makefile | 1 +

[PATCH 5/5] net: ping6: Auto enable ping6 option

2022-08-19 Thread Viacheslav Mitrofanov
Enable CMD_PING6 option if IPV6 && CMD_PING are enabled Signed-off-by: Viacheslav Mitrofanov --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index e8f4e43ebe..441f5bcd90 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1804,6 +1804,7 @@ config

[PATCH 2/5] net: ipv6: enable IPv6 string parser

2022-08-19 Thread Viacheslav Mitrofanov
Enable parser to use printf with IPv6 addresses Signed-off-by: Viacheslav Mitrofanov --- lib/vsprintf.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index fe06aa2d71..e4b9d781be 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c

[PATCH 3/5] net: tftp: add IPv6 support for tftpboot

2022-08-19 Thread Viacheslav Mitrofanov
The command tftpboot uses IPv4 by default, to use IPv6 instead add -ipv6 as the last argument. All other tftpboot features and parameters are left the same. Signed-off-by: Viacheslav Mitrofanov --- cmd/net.c | 21 ++ net/net.c | 17 +-- net/tftp.c | 62

[PATCH 1/5] net: ipv6: Add basic IPv6 implementation

2022-08-19 Thread Viacheslav Mitrofanov
That is quite a big patch that includes such things as Neighbour Discovery Protocol, string parsers, converters and basic IPv6 implementation. It consists of all necessary parts to add upper layer protocols. Due to code dependency and desire to make it clearer it is not made of smaller patches.

[PATCH 0/5] IPv6 support

2022-08-19 Thread Viacheslav Mitrofanov
This patch set adds basic IPv6 support to U-boot. It is based on Chris's Packham patches (https://lists.denx.de/pipermail/u-boot/2017-January/279366.html) Chris's patches were taken as base. There were efforts to launch it on HiFive SiFive Unmatched board but the board didn't work well. The code

[PATCH v3] cmd: cat: add new command

2022-08-19 Thread Roger Knecht
Add cat command to print file content to standard out Signed-off-by: Roger Knecht --- v3: - Disable 'cat' by default (CONFIG_CMD_CAT=n) - Enable 'cat' in sandbox and sandbox64 defconfig - Use map_to_sysmem() to fix "phys_to_virt: Cannot map sandbox address" - Use puts() instead of a loop -

Re: [PATCH v2] cmd: cat: add new command

2022-08-19 Thread Roger Knecht
--- Original Message --- On Sunday, June 19th, 2022 at 15:08, Heinrich Schuchardt wrote: > > > On 6/19/22 16:23, Roger Knecht wrote: > > > On Thursday, June 9th, 2022 at 22:27, Roger Knecht rkne...@pm.me wrote: > > > > > On Wednesday, June 8th, 2022 at 15:59, Tom Rini

[PATCH v2 09/28] ram: rockchip: Add rv1126 ddr driver support

2022-08-19 Thread Jagan Teki
Add DDR driver for Rockchip RV1126 SoC. Signed-off-by: YouMin Chen Signed-off-by: Jagan Teki --- Changes for v2: - none .../asm/arch-rockchip/dram_spec_timing.h | 452 +++ .../include/asm/arch-rockchip/sdram_common.h | 212 + .../include/asm/arch-rockchip/sdram_msch.h| 12 +

[PATCH v5 21/21] binman: Add zstd bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add zstd bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Test that zstd compress of device-tree files failed - Add algorithm name to entry.py - Add tool name to ftest.py Changes in v2: - Add commit

[PATCH v5 08/21] binman: Add length header attribute to dtb entry

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add an optional length header attribute to the device tree blob entry class based on the compressed data header from the utilities to compress and decompress data. If needed the header could be enabled with the following attribute beside the compress attribute:

[PATCH v5 20/21] binman: Add xz bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add xz bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add algorithm name to entry.py - Add tool name to ftest.py Changes in v2: - Add commit to add xz bintool tools/binman/btool/xz.py | 31

[PATCH v5 18/21] binman: Add gzip bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add gzip bintool to binman to support on-the-fly compression of Linux kernel images and FPGA bitstreams. The SPL basic fitImage implementation supports only gzip decompression. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add algorithm name to

[PATCH v5 19/21] binman: Add lzop bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add lzop bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add algorithm name to entry.py - Add tool name to entry.py and ftest.py Changes in v2: - Add commit to add lzop bintool

[PATCH v5 16/21] binman: Add BintoolPacker class to bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add a bintools base class for packers which compression / decompression entry contents. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Remove self.fetch_package not None check in fetch function Changes in v3: - Document class properties Changes in

[PATCH v5 17/21] binman: Add bzip2 bintool

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add bzip2 bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add algorithm name to entry.py - Add tool name to ftest.py Changes in v2: - Add commit to add bzip2 bintool tools/binman/btool/bzip2.py |

[PATCH v5 13/21] binman: Move compression bintool management into entry class

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Move management of the bintool to compress and decompress data into the entry class and add the bintool to the list of required bintools. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add commit to move compression bintool management into entry class

[PATCH v5 14/21] binman: Support missing compression tools

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Handle missing compression tools by returning empty data and record missing bintool. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Use record_missing_bintool function - Use tools.get_bytes function - Add support to DecompressData function - Reuse

[PATCH v5 15/21] binman: Add compression tests

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add common test functions to test all supported compressions. Signed-off-by: Stefan Herbrechtsmeier Reviewed-by: Simon Glass --- Instead of the for loop it is possible to use Parameterized [1] testing. [1] https://github.com/wolever/parameterized Changes in v5:

[PATCH v5 12/21] binman: Select compression bintools in cbfs_util class

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Select the lz4 and lzma_alone bintools in cbfs_util class to centralize the supported compression algorithm evaluation inside the class and over multiple classes. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add commit to select compression bintools

[PATCH v5 11/21] binman: Move compression bintools creation into test setup

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Move compression bintools (packer) creation into test setup to reuse bintool objects between tests. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add commit to move compression bintools creation into test setup tools/binman/ftest.py | 27

[PATCH v5 10/21] binman: Remove obsolete compressed data header handling

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Remove the obsolete compressed data header handling from the utilities to compress and decompress data. The header is uncommon, not supported by U-Boot and incompatible with external compressed artifacts. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: -

[PATCH v5 09/21] binman: Disable compressed data header

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Disable the compressed data header of the utilities to compress and decompress data. The header is uncommon, not supported by U-Boot and incompatible with external compressed artifacts. The header was introduced as part of commit eb0f4a4cb402 ("binman: Support

[PATCH v5 07/21] binman: Add DecompressData function to entry class

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add a DecompressData function to entry class to allow override in child classes and to centralize the compress and decompress in a single class. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add commit to add DecompressData function to entry class

[PATCH v5 05/21] binman: Collect bintools before usage

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Collect and thereby initialize bintools before any usage but after generation of entries. This is needed to handle bintools for compress and decompress like other bintools. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add commit to collect bintools

[PATCH v5 06/21] binman: Check only section data in multi section test

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Check only section data instead of the rest of the image in multi section test. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add commit to check only section data in multi section test tools/binman/ftest.py | 10 ++ 1 file changed, 6

[PATCH v5 03/21] binman: Forward AddBintools calls to sub entries in cbfs_util

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Forward AddBintools calls to sub entries in cbfs_util to collect bintools of sub entries. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add commit to forward AddBintools calls tools/binman/etype/cbfs.py | 5 + 1 file changed, 5 insertions(+)

[PATCH v5 04/21] binman: Forward AddBintools calls to base class

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Forward AddBintools calls to base class to collect bintools of base class. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add commit to forward AddBintools calls to base class tools/binman/etype/gbb.py| 1 + tools/binman/etype/intel_ifwi.py

[PATCH v5 01/21] binman: Skip elf tests if python elftools is not available

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Skip tests which requires python elftools if the tool is not available. Signed-off-by: Stefan Herbrechtsmeier Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Add commit to skip elf tests tools/binman/elf_test.py | 14 ++

[PATCH v5 00/21] binman: Rework compression support

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Rework the compression support of binman. Add a length header attribute to dtb entry, manage the compression bintool in the entry class and add support for several compression tools. Changes in v5: - Add commit to avoid duplicates in bintool lists - Add commit to

[PATCH v5 02/21] binman: Avoid duplicates in bintool lists

2022-08-19 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Avoid duplicate entries in the list of bintools used by the image and the list of missing bintools. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v5: - Add commit to avoid duplicates in bintool lists tools/binman/entry.py | 8 ++-- 1 file changed, 6

Re: [BISECTED] BeagleBone Black doesn't boot after a58147c2dbbf

2022-08-19 Thread Robert Nelson
On Fri, Aug 19, 2022 at 4:30 AM Nishanth Menon wrote: > > On 11:28-20220818, Matwey V. Kornilov wrote: > > I've played a little and now I believe that the issue is that EEPROM read > > addr > > pointer is somehow corrupted due to 1-byte address write. The EEPROM is > > definitely have two-byte

[PATCH v3 7/7] tpm: Allow committing non-volatile data

2022-08-19 Thread Simon Glass
Add an option to tell the TPM to commit non-volatile data immediately it is changed, rather than waiting until later. This is needed in some situations, since if the device reboots it may not write the data. Add definitions for the rest of the Cr50 commands while we are here. Signed-off-by:

[PATCH v3 6/7] tpm: Implement state command for Cr50

2022-08-19 Thread Simon Glass
Add a vendor-specific TPM2 command for this and implement it for Cr50. Note: This is not part of the TPM spec, but is a Cr50 extension. Signed-off-by: Simon Glass --- (no changes since v1) drivers/tpm/cr50_i2c.c | 117 + include/tpm-v2.h | 54

[PATCH v3 4/7] tpm: sandbox: Allow init of TPM in a different phase

2022-08-19 Thread Simon Glass
At present the emulator assumes that the TPM is inited in the same phase where it is used. But in fact SPL may init the TPM, so we don't want to complain when U-Boot proper later uses it. Remove this check. It might be best to save this information into the device state for the TPM, so that we

[PATCH v3 5/7] tpm: Allow reporting the internal state

2022-08-19 Thread Simon Glass
It is useful to read information about the current TPM state, where supported, e.g. for debugging purposes when verified boot fails. Add support for this to the TPM interface as well as Cr50. Add a simple sandbox test. Signed-off-by: Simon Glass --- (no changes since v1) cmd/tpm-common.c

[PATCH v3 3/7] tpm: Correct the define-space command in TPMv2

2022-08-19 Thread Simon Glass
The message format is incorrect. Fix it. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Use constants instead of open-coded values lib/tpm-v2.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/lib/tpm-v2.c b/lib/tpm-v2.c index

[PATCH v3 1/7] tpm: Require a digest source when extending the PCR

2022-08-19 Thread Simon Glass
This feature is used for measured boot, so we can add a log entry to the TCPA with some information about where the digest comes from. It is not currently supported in the TPM drivers, but add it to the API so that code which expects it can signal its request. Signed-off-by: Simon Glass ---

[PATCH v3 2/7] tpm: Correct the permissions command in TPMv1

2022-08-19 Thread Simon Glass
The offset here is incorrect. Fix it. Signed-off-by: Simon Glass --- (no changes since v1) lib/tpm-v1.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/tpm-v1.c b/lib/tpm-v1.c index 22a769c5874..d0e3ab1b21d 100644 --- a/lib/tpm-v1.c +++ b/lib/tpm-v1.c @@ -456,12

Re: [PATCH v2 6/7] tpm: Implement state command for Cr50

2022-08-19 Thread Simon Glass
Hi Ilias, On Thu, 18 Aug 2022 at 01:29, Ilias Apalodimas wrote: > > Hi Simon, > > On Wed, 17 Aug 2022 at 21:54, Simon Glass wrote: > > > > Hi Ilias, > > > > On Tue, 16 Aug 2022 at 06:43, Ilias Apalodimas > > wrote: > > > > > > Hi Simon, > > > > > > I know little of this device and the whole

[PATCH v3 0/7] tpm: Various minor fixes and enhancements

2022-08-19 Thread Simon Glass
This series contains some minor enhancements for the TPM code to make it work with Chromium OS verified boot. Changes in v3: - Drop limits on the TPM hash size - Update commit message Changes in v2: - Use "cmd" for the digest type in the tpm command - Update comment for tpm_pcr_extend() 'name'

Re: [PATCH v8 02/13] FWU: Add FWU metadata structure and driver for accessing metadata

2022-08-19 Thread Sughosh Ganu
hi Simon, On Thu, 18 Aug 2022 at 23:20, Simon Glass wrote: > > pHi Sughosh, > > On Thu, 18 Aug 2022 at 05:03, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Thu, 18 Aug 2022 at 06:43, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Wed, 17 Aug 2022 at 06:44, Sughosh Ganu > > >

removal of MPC8309 support

2022-08-19 Thread Holger Brunck
Hi, I am going to remove our board support for KMTEGR1 as it is obsolete. It seems it is the only board using MPC8309 CPU and the support for this CPU was introduced due to this board. Should I remove the MPC8309 support completely then? Best regards Holger Brunck

[PATCH] ARM: imx: Update DDR frequency on i.MX8M Plus DHCOM

2022-08-19 Thread Marek Vasut
Commit 99c7cc58e12 ("ddr: imx: Add i.MX9 DDR controller driver") contains an inobvious side-effect which renders all systems using DRAM controller at 3732 MT/s unbootable. The change is located in ddrphy_init_set_dfi_clk(), where the switch case statement entry 3732 changed to entry 3733, so any

[PATCH] imx8m: ddrphy_utils: Remove unused file

2022-08-19 Thread Marek Vasut
The ddrphy_utils.c is now deduplicated in drivers/ddr/imx/phy/ddrphy_utils.c , this drivers/ddr/imx/imx8m/ddrphy_utils.c is a remnant from when the deduplication was implemented and was not removed. Remove it as it is unused. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc:

Re: [PATCH 3/5] net: tftp: add IPv6 support for tftpboot

2022-08-19 Thread Ramon Fried
On Fri, Aug 19, 2022 at 11:10 AM Viacheslav Mitrofanov wrote: > > The command tftpboot uses IPv4 by default, to use IPv6 instead add -ipv6 > as the last argument. All other tftpboot features and parameters are left > the same. > In my opinion, we should be able to detect if a user has provided or

Re: [PATCH 1/5] net: ipv6: Add basic IPv6 implementation

2022-08-19 Thread Ramon Fried
On Fri, Aug 19, 2022 at 11:10 AM Viacheslav Mitrofanov wrote: > > That is quite a big patch that includes such things as Neighbour > Discovery Protocol, string parsers, converters and basic IPv6 > implementation. It consists of all necessary parts to add upper layer > protocols. > > Due to code

Re: [PATCH] Makefile: Use relative paths for debugging symbols.

2022-08-19 Thread Rasmus Villemoes
On 18/08/2022 19.31, Vagrant Cascadian wrote: > From: Vagrant Cascadian > > The KBUILD_CFLAGS and KBUILD_AFLAGS variables are adjusted to use > -ffile-prefix-map and --debug-prefix-map, respectively, to use > relative paths for occurrences of __FILE__ and debug paths. > > This enables

Re: [BISECTED] BeagleBone Black doesn't boot after a58147c2dbbf

2022-08-19 Thread Nishanth Menon
On 11:28-20220818, Matwey V. Kornilov wrote: > I've played a little and now I believe that the issue is that EEPROM read addr > pointer is somehow corrupted due to 1-byte address write. The EEPROM is > definitely have two-byte read address accoring the datasheet. > I've failed to unravel exact

[PATCH] mtd: rawnand: fsl_elbc: Fix reading address pointer from DT

2022-08-19 Thread Pali Rohár
During compilation gcc throws warning: drivers/mtd/nand/raw/fsl_elbc_nand.c: In function ‘fsl_elbc_nand_probe’: drivers/mtd/nand/raw/fsl_elbc_nand.c:841:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return fsl_elbc_chip_init(0, (void

Re: [PATCH] riscv: fix compitible with binutils 2.38

2022-08-19 Thread Leo Liang
On Thu, Aug 11, 2022 at 10:23:02PM +, Leo Liang wrote: > On Mon, May 30, 2022 at 11:05:54AM -0400, Tom Rini wrote: > > On Sat, May 28, 2022 at 09:02:09AM +, Leo Liang wrote: > > > On Fri, May 27, 2022 at 09:30:49AM -0400, Tom Rini wrote: > > > > On Fri, May 27, 2022 at 02:36:29AM +,

[v5 10/14] configs: aspeed: Enable CONFIG_SPI_DIRMAP

2022-08-19 Thread Chin-Ting Kuo
Enable CONFIG_SPI_DIRMAP on ASPEED platforms. Signed-off-by: Chin-Ting Kuo --- configs/evb-ast2500_defconfig | 1 + configs/evb-ast2600_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/evb-ast2500_defconfig b/configs/evb-ast2500_defconfig index 5c157ca1d6..416ee66126

[v5 12/14] spi: aspeed: Support customized decoded address ranges

2022-08-19 Thread Chin-Ting Kuo
If "decoded-ranges" is defined in the device tree, the driver will apply the decoded address ranges from this property to the controller during probe stage. This patch refers to the following OpenBMC u-boot patch. https://patchwork.ozlabs.org/project/openbmc/list/?series=306969 Signed-off-by:

[v5 04/14] configs: aspeed: Enable SPI flash features

2022-08-19 Thread Chin-Ting Kuo
- Enable ASPEED SPI controller driver. - Enable SPI flash memory configurations. - Enable configurations for SPI flash manufacturers supported on both ASPEED AST2500 and AST2600 AVL. Signed-off-by: Chin-Ting Kuo --- configs/evb-ast2500_defconfig | 13 +

[v5 09/14] spi: aspeed: SPI dirmap read support

2022-08-19 Thread Chin-Ting Kuo
>From the HW point of view, the performance of command read mode is greater than user mode slightly. Thus, dirmap read framework is introduced to achieve this goal. In dirmap_create, command read mode is configured. Usually, the decoded address area with flash size is assigned to each CS. CPU can

[v5 03/14] spi: aspeed: Add ASPEED SPI controller driver

2022-08-19 Thread Chin-Ting Kuo
Add ASPEED BMC FMC/SPI memory controller driver with spi-mem interface for AST2500 and AST2600 platform. There are three SPI memory controllers embedded in an ASPEED SoC. - FMC: Named as Firmware Memory Controller. After AC on, MCU ROM fetches initial device boot image from FMC chip

[v5 11/14] spi: aspeed: Adjust decoded range size support

2022-08-19 Thread Chin-Ting Kuo
There are some known HW problems about decoded range register configurations on existing AST2500 and AST2600 platforms. Additional callback function, adjust_decoded_sz, is added to solve these problems on each platform. Besides, aspeed_spi_trim_decoded_size function is added to modify overall

[v5 13/14] spi: aspeed: Clock frequency adjustment support

2022-08-19 Thread Chin-Ting Kuo
Driver can configure the SPI clock frequnecy to the target value of "spi-max-frequency" property in the device tree. The frequency is divided from HCLK, 200MHz. Usually, the ASPEED SPI clock frequency range is between 12.5MHz and 100MHz. On AST2600, the lowest SPI clock frequency can be about

[v5 01/14] clk: aspeed: Get HCLK frequency support

2022-08-19 Thread Chin-Ting Kuo
User can get correct HCLK frequency during driver probe stage by adding the following configuration in the device tree. "clocks = < ASPEED_CLK_AHB>". Signed-off-by: Chin-Ting Kuo Reviewed-by: Cédric Le Goater --- drivers/clk/aspeed/clk_ast2500.c | 23 +++ 1 file changed, 23

  1   2   >