Re: [PATCH 1/1] tools: patman: fix `pip install` with Python 3.12

2024-07-01 Thread Brandon Maier
Hi Simon, On Mon Jul 1, 2024 at 2:34 PM UTC, Simon Glass wrote: > Hi Brandon, > > On Wed, 5 Jun 2024 at 03:13, Simon Glass wrote: > > > > On Tue, 4 Jun 2024 at 10:31, Brandon Maier > > wrote: > > > > > > Installing patman with `cd ./tools/patman &a

[PATCH v2] tools: patman: fix `pip install` with Python 3.12

2024-07-01 Thread Brandon Maier
configuration. > > ******** > > !! [1] https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license Signed-off-by: Brandon Maier --- Changes in v2: - drop the license in fa

[PATCH 1/1] tools: patman: fix `pip install` with Python 3.12

2024-06-04 Thread Brandon Maier
amic` or > alternatively > remove the `[project]` table from your file and rely entirely on other > means of > configuration. > > > > !! Signed-off-by: Brandon Maier CC:

[PATCH 3/3] tools: patman: fix deprecated Python ConfigParser methods

2024-06-04 Thread Brandon Maier
The method `ConfigParser.readfp()` is marked deprecated[1]. In Python 3.12 this method have been removed, so replace it with `ConfigParser.read_file()`. [1] https://docs.python.org/3.11/library/configparser.html#configparser.ConfigParser.readfp Signed-off-by: Brandon Maier CC: Simon Glass

[PATCH 2/3] tools: binman: fix deprecated Python ConfigParser methods

2024-06-04 Thread Brandon Maier
The method `ConfigParser.readfp()` is marked deprecated[1]. In Python 3.12 this method have been removed, so replace it with `ConfigParser.read_file()`. [1] https://docs.python.org/3.11/library/configparser.html#configparser.ConfigParser.readfp Signed-off-by: Brandon Maier CC: Simon Glass

[PATCH 1/3] tools: binman: fix deprecated Python unittest methods

2024-06-04 Thread Brandon Maier
The methods `unittest.assertEquals()` and `unittest.assertRegexpMatches()` are marked deprecated[1]. In Python 3.12 these aliases have been removed, so do a sed to replace them with their new names. [1] https://docs.python.org/3.11/library/unittest.html#deprecated-aliases Signed-off-by: Brandon

[PATCH] scripts/gen_compile_commands: update to Linux v6.7

2024-01-22 Thread Brandon Maier
1 gen_compile_commands.py: fix path resolve with symlinks in it - 9e56d3be4bfd2 gen_compile_commands: Sort output compile commands by file name - 52c15e7e79285 gen_compile_commands: Allow the line prefix to still be cmd_ - 1c67921444bf6 gen_compile_commands: add assembly files to compilation database

[PATCH 4/4] tools: zynqmpimage: print partition names

2024-01-04 Thread Brandon Maier
Each partition may belong to an image, which has a name. That name can be useful for debugging as it helps identify where the partition came from. Signed-off-by: Brandon Maier --- tools/zynqmpimage.c | 48 tools/zynqmpimage.h | 49

[PATCH 3/4] tools: zynqmpimage: add partition extracting

2024-01-04 Thread Brandon Maier
Extract partitions from a Xilinx Boot Image using dumpimage. Add helper for_each_zynqmp_part() to reuse the partition walking code between the printing and extracting functions. Signed-off-by: Brandon Maier --- tools/zynqmpimage.c | 57 +--- tools

[PATCH 2/4] tools: zynqmpimage: print all partition sizes

2024-01-04 Thread Brandon Maier
being encrypted. And "encrypted data" size, which is just the encrypted data. To avoid printing useless information, only print the encrypted and unencrypted sizes if they are different from the total. Signed-off-by: Brandon Maier --- tools/zynqmpimage.c | 6 ++ 1 file changed, 6 ins

[PATCH 1/4] tools: zynqmpimage: show info on partition 0

2024-01-04 Thread Brandon Maier
be declared in the image header, if the image is not a bootloader image. Signed-off-by: Brandon Maier --- tools/zynqmpimage.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/zynqmpimage.c b/tools/zynqmpimage.c index bb54f41a153..05af1e81a24 100644 --- a/tools

[PATCH v4 2/2] test: compression: add zstd uncompression test

2023-01-12 Thread Brandon Maier
Signed-off-by: Brandon Maier --- v2: - added zstd uncompression test v3: - use sizeof() instead of magic number for length --- test/Kconfig | 2 +- test/compression.c | 71 ++ 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/test

[PATCH v3 2/2] test: compression: add zstd uncompression test

2023-01-09 Thread Brandon Maier
Signed-off-by: Brandon Maier --- v2: - added zstd uncompression test v3: - use sizeof() instead of magic number for length --- test/Kconfig | 2 +- test/compression.c | 71 ++ 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/test

[PATCH] test: compression: use sizeof() instead of magic numbers

2023-01-09 Thread Brandon Maier
Signed-off-by: Brandon Maier --- test/compression.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/compression.c b/test/compression.c index 82e29c9b86b..31d27a93a67 100644 --- a/test/compression.c +++ b/test/compression.c @@ -53,7 +53,7 @@ static const char

[PATCH 2/2] test: compression: use ut_assert for errors

2022-12-28 Thread Brandon Maier
Use the ut_assert macros for more useful error messages. Signed-off-by: Brandon Maier --- test/compression.c | 56 +- 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/test/compression.c b/test/compression.c index 6c2a43fbed7

[PATCH 1/2] test: compression: check with trailing garbage in input

2022-12-28 Thread Brandon Maier
rbage data. The existing decompressors already support this. This unit test was added while working on zstd support as upstream zstd will error if there is garbage data in the input buffer, and special care was needed to support this. Signed-off-by: Brandon Maier --- test/compression.

[PATCH v2 2/2] test: compression: add zstd uncompression test

2022-12-27 Thread Brandon Maier
Signed-off-by: Brandon Maier --- test/Kconfig | 2 +- test/compression.c | 71 ++ 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/test/Kconfig b/test/Kconfig index a6b463e4d06..dd2f082ce63 100644 --- a/test/Kconfig +++ b/test

[PATCH] spi: zynqmp_gqspi: fix set_speed bug on multiple runs

2021-01-20 Thread Brandon Maier
hat will cause the baud_rate_val to use the slowest speed possible, which is the safest option. Signed-off-by: Brandon Maier CC: ja...@amarulasolutions.com CC: michal.si...@xilinx.com CC: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 23 +++ 1 file changed, 11 insertion

[PATCH v2] spi: zynqmp_gqspi: support dual and quad mode

2021-01-20 Thread Brandon Maier
s the buswidth values to correctly support all SNOR_PROTO_X_X_X commands and to properly calculate dummy cycles. Signed-off-by: Brandon Maier CC: ja...@amarulasolutions.com CC: michal.si...@xilinx.com CC: Ashok Reddy Soma --- v1: https://lists.denx.de/pipermail/u-boot/2021-January/437506.htm

Re: [PATCH] spi: zynqmp_gqspi: support dual and quad mode

2021-01-18 Thread Brandon Maier
o work with exec_op()[2] [1] https://github.com/bmaier-col/u-boot/tree/v2021.01-gqspi-public [2] https://github.com/bmaier-col/u-boot/commit/0c50602816a5d0cadd8a010962c829f10bcc2f8c > > On 1/15/21 10:30 PM, Brandon Maier wrote: > > The dm_spi_ops.xfer() API does not support dual

[PATCH] env/fat.c: support redund environment

2021-01-16 Thread Brandon Maier
Signed-off-by: Brandon Maier CC: Joe Hershberger CC: Wolfgang Denk --- env/Kconfig | 13 +++-- env/fat.c | 41 + 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/env/Kconfig b/env/Kconfig index 67ce93061b..a940ddce95 100644

Re: [PATCH] mtd: spi-nor-ids: add support for Micron mt25ql02g

2021-01-16 Thread Brandon Maier
On Sat, Jan 16, 2021 at 3:27 AM Bin Meng wrote: > > Hi Brandon, > > On Sat, Jan 16, 2021 at 5:54 AM Brandon Maier > wrote: > > > > From: Taylor Burton > > > > Micron's mt25ql02g is not currently supported in > > U-Boot, but is in Linux. Linux

Re: [PATCH] spi: zynqmp_gqspi: support dual and quad mode

2021-01-16 Thread Brandon Maier
On Sat, Jan 16, 2021 at 5:06 AM Bin Meng wrote: > > Hi Brandon, > > On Sat, Jan 16, 2021 at 5:30 AM Brandon Maier > wrote: > > > > The dm_spi_ops.xfer() API does not support dual and quad SPI modes. It > > also doesn't allow the zynqmp_gqspi driver to cal

[PATCH] spi: zynqmp_gqspi: support dual and quad mode

2021-01-15 Thread Brandon Maier
s the buswidth values to correctly support all SNOR_PROTO_X_X_X commands and to properly calculate dummy cycles. Signed-off-by: Brandon Maier CC: ja...@amarulasolutions.com CC: michal.si...@xilinx.com --- drivers/spi/zynqmp_gqspi.c | 164 - 1 file change

[PATCH] mtd: spi-nor-ids: add support for Micron mt25ql02g

2021-01-15 Thread Brandon Maier
From: Taylor Burton Micron's mt25ql02g is not currently supported in U-Boot, but is in Linux. Linux already has this flash present in its table. A snippet below: { "mt25ql02g", INFO(0x20ba22, 0, 64 * 1024, 4096...}, Signed-off-by: Taylor Burton Signed-off-by: Brandon Maier

[PATCH] env: increment redund flag on read fail

2020-12-17 Thread Brandon Maier
apse the 'single read failure' error to be the same as a 'single crc failure'. That way env_check_redund() either passes or fails, and if it passes we are guaranteed to have checked the CRC. Signed-off-by: Brandon Maier CC: Joe Hershberger CC: Wolfgang Denk CC: Heiko Schoc

Re: [External] Re: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c

2020-06-23 Thread Brandon Maier
On Tue, Jun 23, 2020 at 4:33 PM Luca Ceresoli wrote: > > Hi, > > On 23/06/20 23:23, Luca Ceresoli wrote: > > Hi Brandon, > > > > On 23/06/20 19:08, Brandon Maier wrote: > >> On Tue, Jun 23, 2020 at 10:18 AM Luca Ceresoli > >> wrote: > &

Fwd: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c

2020-06-23 Thread Brandon Maier
Forgot to CC -- Forwarded message - From: Brandon Maier Date: Tue, Jun 23, 2020 at 12:16 PM Subject: Re: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c To: Michal Simek On Tue, Jun 23, 2020 at 11:11 AM Michal Simek wrote: > On 22. 06. 20 22:45, Brandon Maier wr

Fwd: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c

2020-06-23 Thread Brandon Maier
Forwarding as I forgot to CC -- Forwarded message - From: Brandon Maier Date: Tue, Jun 23, 2020 at 12:08 PM Subject: Re: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c To: Luca Ceresoli On Tue, Jun 23, 2020 at 10:18 AM Luca Ceresoli wrote: > > Hi Brandon, > &

[PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c

2020-06-22 Thread Brandon Maier
g the build, we can simplify the developer's build system. And it ensures that if zynqmp_pm_cfg_obj_convert.py is updated, the pm_cfg_obj will stay in sync with U-Boot. Add a config to set the file format, but leave the default as binary type for backwards compatibility. Signed-off-by: Bra