Re: [PATCH v3 0/7] efi: CapsuleUpdate: support for dynamic UUIDs

2024-06-04 Thread Heinrich Schuchardt
On 5/31/24 15:50, Caleb Connolly wrote: As more boards adopt support for the EFI CapsuleUpdate mechanism, there is a growing issue of being able to target updates to them properly. The current mechanism of hardcoding UUIDs for each board at compile time is unsustainable, and maintaining lists of

Re: [PATCH 2/9] tpm: Avoid code bloat when not using EFI_TCG2_PROTOCOL

2024-06-04 Thread Ilias Apalodimas
Hi Heinrich On Wed, 5 Jun 2024 at 07:09, Heinrich Schuchardt wrote: > > On 6/5/24 05:25, Simon Glass wrote: > > It does not make sense to enable all SHA algorithms unless they are > > needed. It bloats the code and in this case, causes chromebook_link to > > fail to build. > > Why would

Re: [PATCH v3 2/7] efi: add a helper to generate dynamic UUIDs

2024-06-04 Thread Heinrich Schuchardt
On 5/31/24 15:50, Caleb Connolly wrote: Introduce a new helper efi_capsule_update_info_gen_ids() which populates the capsule update fw images image_type_id field. This allows for determinstic UUIDs to be used that can scale to a large number of different boards and board variants without the

Re: [PATCH v3 1/7] lib: uuid: add UUID v5 support

2024-06-04 Thread Heinrich Schuchardt
On 5/31/24 15:50, Caleb Connolly wrote: Add support for generating version 5 UUIDs, these are determistic and work by hashing a "namespace" UUID together with some unique data. One intended usecase is to allow for dynamically generate payload UUIDs for UEFI capsule updates, so that supported

Re: [PATCH 5/9] fdt: Correct condition for bloblist existing

2024-06-04 Thread Ilias Apalodimas
Hi Simon, On Wed, 5 Jun 2024 at 06:26, Simon Glass wrote: > > On some boards, the bloblist is created in SPL once SDRAM is ready. It > cannot be accessed until that point, so is not available early in SPL. > > Add a condition to avoid a hang in this case. > > This fixes a hang in

Re: [PATCH v3 0/8] qcom: implement capsule updates

2024-06-04 Thread Sumit Garg
Hi Caleb, On Mon, 3 Jun 2024 at 18:19, Caleb Connolly wrote: > > Hook up support for capsule updates loaded from disk on Qualcomm > platforms. > > Most Qualcomm devices have an A/B partition layout, with most partitions > duplicated. The metadata on which slot is active is stored in the GPT >

Re: [PATCH v3 4/8] mach-snapdragon: implement capsule update support

2024-06-04 Thread Sumit Garg
Hi Caleb, On Mon, 3 Jun 2024 at 18:19, Caleb Connolly wrote: > > Qualcomm boards flash U-Boot to the boot partition, implement support > for determining which slot U-Boot is running from and finding the > correct boot partition for that slot and configuring the appropriate DFU > string. > > For

Re: [PATCH 2/9] tpm: Avoid code bloat when not using EFI_TCG2_PROTOCOL

2024-06-04 Thread Heinrich Schuchardt
On 6/5/24 05:25, Simon Glass wrote: It does not make sense to enable all SHA algorithms unless they are needed. It bloats the code and in this case, causes chromebook_link to fail to build. Why would chromebook_link fail to build? Is TPM used by U-Boot on that board at all? Add a condition

Re: [PATCH] ufs: core: remove link_startup_again logic

2024-06-04 Thread Neha Malcom Francis
Hi Neil, On 28/05/24 14:06, Neil Armstrong wrote: The link_startup_again logic was added in Linux to handle device that were set in LinkDown state, which should not be the case since U-boot doesn't set LinkDown state are init, and Linux sets the device active s/are/at ? in ufshcd_init() for

[PATCH 9/9] Revert "arm: am335x: Enable SPL_OF_CONTROL on some configs"

2024-06-04 Thread Simon Glass
This is a partial revert which makes boneblack_vboot boot again. This reverts commit f4b64e9736e73ceec14d51600bed9a8ac48f9fe8. Signed-off-by: Simon Glass --- configs/am335x_boneblack_vboot_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/am335x_boneblack_vboot_defconfig

[PATCH 8/9] regulator: rk8xx: Fix incorrect parameter

2024-06-04 Thread Simon Glass
A recent change introduced a bug whereby a PMIC device is used in place of the regulator device. Fix it. This fixes a hang after 'Loading Environment from nowhere... OK' on chromebook_jerry Fixes: f047e4ab976 ("regulator: rk8xx: add indirection level for some..") Signed-off-by: Simon Glass ---

[PATCH 7/9] rockchip: bob: kevin: Disable dcache in SPL

2024-06-04 Thread Simon Glass
This causes a hang, so disable it. Fixes: 6d8cdfd1536 ("rockchip: spl: Enable caches to speed up checksum validation") Signed-off-by: Simon Glass --- configs/chromebook_bob_defconfig | 1 + configs/chromebook_kevin_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH 6/9] spl: Allow ATF to work when dcache is disabled

2024-06-04 Thread Simon Glass
The dcache may not be enabled in SPL. Add a check to avoid trying to use an undefined function. Signed-off-by: Simon Glass --- common/spl/spl_atf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_atf.c b/common/spl/spl_atf.c index 3bdd013a35f..9afe6456bc4

[PATCH 5/9] fdt: Correct condition for bloblist existing

2024-06-04 Thread Simon Glass
On some boards, the bloblist is created in SPL once SDRAM is ready. It cannot be accessed until that point, so is not available early in SPL. Add a condition to avoid a hang in this case. This fixes a hang in chromebook_coral Fixes: 70fe2385943 ("fdt: Allow the devicetree to come from a

[PATCH 4/9] power: regulator: Handle autoset in regulators_enable_boot_on()

2024-06-04 Thread Simon Glass
With a recent change, regulators_enable_boot_on() returns an error if a regulator is already set. Check for and handle this situation. Fixes: d99fb64a98a power: regulator: Only run autoset once for each regulator Signed-off-by: Simon Glass --- drivers/power/regulator/regulator-uclass.c | 2 +-

[PATCH 3/9] rockchip: veyron: Add logging for power init

2024-06-04 Thread Simon Glass
Add better logging for power init so that CONFIG_LOG_ERROR_RETURN can be enabled. Signed-off-by: Simon Glass --- board/google/veyron/veyron.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/board/google/veyron/veyron.c

[PATCH 2/9] tpm: Avoid code bloat when not using EFI_TCG2_PROTOCOL

2024-06-04 Thread Simon Glass
It does not make sense to enable all SHA algorithms unless they are needed. It bloats the code and in this case, causes chromebook_link to fail to build. Add a condition to TPM to correct this. Note that the original commit combines refactoring and new features, which makes it hard to see what is

[PATCH 1/9] nvidia: nyan-big: Disable debug UART

2024-06-04 Thread Simon Glass
This cannot be enabled early in boot since some other init is needed. At this point it is unclear exactly what init is needed, so disable the debug UART to avoid a hang. Signed-off-by: Simon Glass --- configs/nyan-big_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 0/9] Bug-fixes for a few boards

2024-06-04 Thread Simon Glass
This series includes fixes to get some rockchip and nvidia boards working again. It also provides a fix (revert) for Beaglebone Black and a devicetree fix for coral (x86). Simon Glass (9): nvidia: nyan-big: Disable debug UART tpm: Avoid code bloat when not using EFI_TCG2_PROTOCOL rockchip:

Re: Several potential vulnerabilities in the filesystem

2024-06-04 Thread Gao Xiang
On 2024/6/5 06:53, jianqiang wang wrote: Hi Das U-Boot developers, ... 2. in file fs/erofs/data.c, function z_erofs_read_one_data, the node data is read from the storage, however, without a proper check, the data can be corrupted. For example, the inode data is used in function

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

2024-06-04 Thread Simon Glass
On Tue, 4 Jun 2024 at 10:16, Brandon Maier wrote: > > 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] >

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

2024-06-04 Thread Simon Glass
Hi Brandon, On Tue, 4 Jun 2024 at 10:16, Brandon Maier wrote: > > 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] >

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

2024-06-04 Thread Simon Glass
On Tue, 4 Jun 2024 at 10:16, Brandon Maier wrote: > > 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]

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

2024-06-04 Thread Simon Glass
On Tue, 4 Jun 2024 at 10:31, Brandon Maier wrote: > > Installing patman with `cd ./tools/patman && pip install -e .` fails > with the error below. > > As described in the error output, the license line is not allowed to be > only defined in the setup.py. > > > $ cd ./tools/patman && pip install

Re: [PATCH 0/2] Cleanup fit documentation

2024-06-04 Thread Simon Glass
Hi Sam, On Tue, 4 Jun 2024 at 13:53, Sam Povilus wrote: > > Sam Povilus (2): > doc: Remove extraneous curly braces > doc: add clarity to what a "fpga" image is > > doc/usage/fit/source_file_format.rst | 28 ++-- > 1 file changed, 14 insertions(+), 14 deletions(-)

Re: [PATCH v5 0/3] Introduce mtdblock device

2024-06-04 Thread Simon Glass
Hi Alexey, On Mon, Jun 3, 2024, 09:57 Alexey Romanov wrote: > Hello! > > This series adds support for the mtdblock device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb load mtd 0 part_name > > Tested only on SPI

Re: [PATCH v3 1/7] lib: uuid: add UUID v5 support

2024-06-04 Thread Simon Glass
Hi Caleb, On Fri, 31 May 2024 at 07:50, Caleb Connolly wrote: > > Add support for generating version 5 UUIDs, these are determistic and work spelling > by hashing a "namespace" UUID together with some unique data. One intended > usecase is to allow for dynamically generate payload UUIDs for

Re: [PATCH v3 6/7] tools: add genguid tool

2024-06-04 Thread Simon Glass
Hi Caleb, On Fri, 31 May 2024 at 07:50, Caleb Connolly wrote: > > Add a tool that can generate GUIDs that match those generated internally > by U-Boot for capsule update fw_images. > > Dynamic UUIDs in U-Boot work by taking a namespace UUID and hashing it > with the board model, compatible, and

Re: [PATCH 1/3] efi_loader: select BLK not depends on BLK

2024-06-04 Thread Heinrich Schuchardt
Am 5. Juni 2024 03:37:40 MESZ schrieb Tom Rini : >The BLK symbol is used both for "we have a block device subsystem >enabled" and "we need to utilize the block device library functions". In >the case of efi_loader, it is the case of "we need to utilize the block >device library", so select

[PATCH 3/3] block: Update BLK to be def_bool

2024-06-04 Thread Tom Rini
At this point in the DM migration, all platforms enable DM. BLK requires DM. Make BLK "def_bool y" in the cases it had been "default y" to make this clearer. Now remove the symbol requirement from other places as it is redundant here. Signed-off-by: Tom Rini --- drivers/ata/Kconfig | 1 -

[PATCH 2/3] spl: nvme: Make this depend on SPL_BLK

2024-06-04 Thread Tom Rini
As this is an SPL related driver, and in SPL enabling SPL_BLK is optional, make this depend on the correct symbol. Signed-off-by: Tom Rini --- common/spl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index

[PATCH 1/3] efi_loader: select BLK not depends on BLK

2024-06-04 Thread Tom Rini
The BLK symbol is used both for "we have a block device subsystem enabled" and "we need to utilize the block device library functions". In the case of efi_loader, it is the case of "we need to utilize the block device library", so select rather than depends on it. In turn, also disable EFI_LOADER

Possible license violation

2024-06-04 Thread pm88hpxmdxke
HiI am copying this message to you and GL team.Regarding license violation:U-boot’s license requires Gl.iNet to provide the source-code for U-boot (including any modifications they made) to anybody that asks for it.  So…GL team refused to send source code nor

Re: [PATCH v2 00/14] Introduce the lwIP network stack

2024-06-04 Thread Peter Robinson
> On Fri, May 24, 2024 at 06:19:54PM +0200, Jerome Forissier wrote: > > - Make the support of HTTPS in the wget command easier. Javier T. (CC'd) > > has some additional lwIP and Mbed TLS patches to do so. With that it > > becomes possible to fetch and launch a distro installer such as Debian > >

Several potential vulnerabilities in the filesystem

2024-06-04 Thread jianqiang wang
Hi Das U-Boot developers, I found several vulnerabilities in the u-boot filesysetm implementation, 1. in file fs/squashfs/sqfs_inode.c function sqfs_inode_size. The parameter blk_size is directly or indirectly from the storage data. Howver, without a sanity check, this value is directly used in

Re: [PATCH v3 03/25] mbedtls: add mbedtls into the build system

2024-06-04 Thread Raymond Mao
Hi Andy, On Tue, 4 Jun 2024 at 16:17, Andy Shevchenko < andriy.shevche...@linux.intel.com> wrote: > On Tue, May 28, 2024 at 07:09:14AM -0700, Raymond Mao wrote: > > Port mbedtls with dummy libc header files. > > Add mbedtls default config header file. > > Optimize mbedtls default config by

Re: [PATCH v3 03/25] mbedtls: add mbedtls into the build system

2024-06-04 Thread Andy Shevchenko
On Tue, May 28, 2024 at 07:09:14AM -0700, Raymond Mao wrote: > Port mbedtls with dummy libc header files. > Add mbedtls default config header file. > Optimize mbedtls default config by disabling unused features to > reduce the target size. > Add mbedtls kbuild makefile. > Add Kconfig and mbedtls

Re: [PATCH v3 02/25] mbedtls: Add script to update MbedTLS subtree

2024-06-04 Thread Andy Shevchenko
On Fri, May 31, 2024 at 09:32:38AM +0300, Ilias Apalodimas wrote: > On Tue, 28 May 2024 at 17:10, Raymond Mao wrote: > > > > lib/mbedtls/update-mbedtls-subtree.sh is a wrapper of git subtree > > commands. > > Usage from U-Boot top directory, run: ... > > +if ! git remote get-url

[PATCH 2/2] doc: add clarity to what a "fpga" image is

2024-06-04 Thread Sam Povilus
Update fit documentation to clarify that FPGA images are vendor specific and opaque bitstreams. Signed-off-by: Sam Povilus --- doc/usage/fit/source_file_format.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/usage/fit/source_file_format.rst

[PATCH 1/2] doc: Remove extraneous curly braces

2024-06-04 Thread Sam Povilus
Update documentation to remove un-needed curly braces. Signed-off-by: Sam Povilus --- doc/usage/fit/source_file_format.rst | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/doc/usage/fit/source_file_format.rst

[PATCH 0/2] Cleanup fit documentation

2024-06-04 Thread Sam Povilus
Sam Povilus (2): doc: Remove extraneous curly braces doc: add clarity to what a "fpga" image is doc/usage/fit/source_file_format.rst | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) -- 2.34.1

Re: [PATCH v3 15/25] mbedtls: add X509 cert parser porting layer

2024-06-04 Thread Tom Rini
On Tue, Jun 04, 2024 at 07:53:54PM +0300, Ilias Apalodimas wrote: > On Tue, 4 Jun 2024 at 19:05, Raymond Mao wrote: > > > > Hi Ilias, > > > > On Fri, 31 May 2024 at 07:42, Ilias Apalodimas > > wrote: > >> > >> On Tue, 28 May 2024 at 17:15, Raymond Mao wrote: > >> > > >> > Add porting layer for

Re: [PATCH v3 03/25] mbedtls: add mbedtls into the build system

2024-06-04 Thread Tom Rini
On Fri, May 31, 2024 at 01:07:23PM -0400, Raymond Mao wrote: > Hi Ilias and Tom, > > On Thu, 30 May 2024 at 16:17, Ilias Apalodimas > wrote: > > > Hi Tom > > > > On Wed, 29 May 2024 at 22:47, Tom Rini wrote: > > > > > > On Wed, May 29, 2024 at 03:42:04PM -0400, Raymond Mao wrote: > > > > Hi

Re: [PATCH v2 0/5] FUSB302 USB-C controller support

2024-06-04 Thread Soeren Moch
Hi, On 04.06.24 18:33, Sebastian Reichel wrote: Hi, On ROCK 5B power is usually supplied via it's USB-C port. This port has the data lines connected to RK3588, VBUS connected to the input regulator and CC pins connected to FUSB302. FUSB302 is a USB-C controller, which can be accessed via I2C

Re: [PATCH 00/16] LoongArch initial support

2024-06-04 Thread Tom Rini
On Tue, Jun 04, 2024 at 11:50:20AM +0100, Jiaxun Yang wrote: > > > 在2024年5月23日五月 下午4:43,Tom Rini写道: > > On Thu, May 23, 2024 at 04:38:52PM +0100, Jiaxun Yang wrote: > >> > >> > >> 在2024年5月23日五月 下午4:25,Tom Rini写道: > >> > On Wed, May 22, 2024 at 04:34:43PM +0100, Jiaxun Yang wrote: > >> > > >>

Re: [PATCH v3 15/25] mbedtls: add X509 cert parser porting layer

2024-06-04 Thread Ilias Apalodimas
On Tue, 4 Jun 2024 at 19:05, Raymond Mao wrote: > > Hi Ilias, > > On Fri, 31 May 2024 at 07:42, Ilias Apalodimas > wrote: >> >> On Tue, 28 May 2024 at 17:15, Raymond Mao wrote: >> > >> > Add porting layer for X509 cert parser on top of MbedTLS X509 >> > library. >> > >> > Signed-off-by:

Re: [PATCH v3 21/25] mbedtls: add RSA helper layer on MbedTLS

2024-06-04 Thread Raymond Mao
Hi Ilias, On Fri, 31 May 2024 at 06:00, Ilias Apalodimas wrote: > Hi Raymond, > > [...] > > > + > > +/** > > + * rsa_parse_pub_key() - decodes the BER encoded buffer and stores in > the > > + * provided struct rsa_key, pointers to the raw > key as is, > > + *

[PATCH v2 5/5] MAINTAINERS: add TCPM section

2024-06-04 Thread Sebastian Reichel
Add new section for USB TypeC Port Manager (TCPM) support, which is needed to figure out cable orientation of USB-C plus and to do USB PD communication. Signed-off-by: Sebastian Reichel --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH v2 1/5] usb: tcpm: add core framework

2024-06-04 Thread Sebastian Reichel
This adds TCPM framework in preparation for fusb302 support, which can handle USB power delivery messages. This is needed to solve issues with devices, that are running from a USB-C port supporting USB-PD, but not having a battery. Such a device currently boots to the kernel without interacting

[PATCH v2 2/5] usb: tcpm: fusb302: add driver

2024-06-04 Thread Sebastian Reichel
Now that the TCPM framework exists we can introduce fusb302 driver using it. This chip is a very common USB-C controller chip with PD support, which can be found in the Radxa Rock 5B among many other boards. Apart from Power Delivery, it also handles detection of the cable orientation. That can be

[PATCH v2 4/5] board: rock5b-rk3588: enable USB-C in operating system

2024-06-04 Thread Sebastian Reichel
Since older U-Boot releases do not negotiate USB PD, the kernel DT may not enable the USB-C controller by default to avoid a regression. The plan is to upstream it with 'status = "fail";' instead. U-Boot should then mark it as 'status = "okay";' if it negotiated USB PD. Signed-off-by: Sebastian

[PATCH v2 3/5] board: rock5b-rk3588: add USB-C controller support

2024-06-04 Thread Sebastian Reichel
Enable support for the fusb302 USB Type-C controller. This will do early USB PD (power deliver) negotiation, which must happen within 5 seconds after the USB-C connector has plugged in according to the specification. It takes almost 5 seconds to go through the bootchain on Rock 5B and jump to the

[PATCH v2 0/5] FUSB302 USB-C controller support

2024-06-04 Thread Sebastian Reichel
Hi, On ROCK 5B power is usually supplied via it's USB-C port. This port has the data lines connected to RK3588, VBUS connected to the input regulator and CC pins connected to FUSB302. FUSB302 is a USB-C controller, which can be accessed via I2C from RK3588. The USB-C controller is needed to

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

2024-06-04 Thread Brandon Maier
Installing patman with `cd ./tools/patman && pip install -e .` fails with the error below. As described in the error output, the license line is not allowed to be only defined in the setup.py. > $ cd ./tools/patman && pip install -e . > Obtaining file:///.../u-boot/tools/patman > Installing

Re: [PATCH v3 19/25] mbedtls: add MSCode parser porting layer

2024-06-04 Thread Raymond Mao
Hi Ilias, On Fri, 31 May 2024 at 06:03, Ilias Apalodimas wrote: > On Tue, 28 May 2024 at 17:17, Raymond Mao wrote: > > > > Add porting layer for MSCode on top of MbedTLS ASN1 library. > > > > Signed-off-by: Raymond Mao > > --- > > Changes in v2 > > - Move the porting layer to MbedTLS dir. > >

[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

Re: [PATCH v3 15/25] mbedtls: add X509 cert parser porting layer

2024-06-04 Thread Raymond Mao
Hi Ilias, On Fri, 31 May 2024 at 07:42, Ilias Apalodimas wrote: > On Tue, 28 May 2024 at 17:15, Raymond Mao wrote: > > > > Add porting layer for X509 cert parser on top of MbedTLS X509 > > library. > > > > Signed-off-by: Raymond Mao > > --- > > Changes in v2 > > - Move the porting layer to

Re: [PATCH v2 2/2] bootstd: Replace bootmethod(s) -> bootmeth(s)

2024-06-04 Thread Quentin Schulz
Hi Mattijs, On 6/4/24 5:15 PM, Mattijs Korpershoek wrote: According to [1], we should use bootmeth when describing the struct bootmeth: """ For version 2, a new naming scheme is used as above: - bootdev is used instead of bootdevice, because 'device' is overused, is everywhere

Re: [PATCH] bootstd: Fix a handful of doc typos in bootmeth

2024-06-04 Thread Mattijs Korpershoek
in > U-Boot > """ > > SO I think we should change it to bootmeth(s) indeed. Ah, thank you for the link, that is helpful. I've done the global rename, made this into a series here: https://lore.kernel.org/all/20240604-bootmeth-typos-v2-0-821683a95...@baylibre.com > > Reviewed-by: Quentin Schulz > > Thanks, > Quentin

[PATCH v2 2/2] bootstd: Replace bootmethod(s) -> bootmeth(s)

2024-06-04 Thread Mattijs Korpershoek
According to [1], we should use bootmeth when describing the struct bootmeth: """ For version 2, a new naming scheme is used as above: - bootdev is used instead of bootdevice, because 'device' is overused, is everywhere in U-Boot, can be confused with udevice - bootmeth - because

[PATCH v2 1/2] bootstd: Fix a handful of doc typos in bootmeth

2024-06-04 Thread Mattijs Korpershoek
Fix some trivial typos found by browsing the code. Done with flyspell. Reviewed-by: Quentin Schulz Signed-off-by: Mattijs Korpershoek --- include/bootmeth.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/bootmeth.h b/include/bootmeth.h index

[PATCH v2 0/2] bootstd: Fix a handful of doc typos in bootmeth

2024-06-04 Thread Mattijs Korpershoek
While working on bootflow, we noticed some wording inconsistencies with bootmeth versus bootmethod. According to [1], we should use bootmeth(s), not bootmethod(s): """ For version 2, a new naming scheme is used as above: - bootdev is used instead of bootdevice, because 'device' is overused,

[PATCH v3 7/7] drivers: misc: Add driver to access ZynqMP efuses

2024-06-04 Thread lukas . funke-oss
From: Lukas Funke Add driver to access ZynqMP efuses. This is a u-boot port of [1]. Note: Accessing eFuses requires eFuse access to be enabled in the underlying PMU firmware. [1] https://lore.kernel.org/all/20240224114516.86365-8-srinivas.kandaga...@linaro.org/ Signed-off-by: Lukas Funke

[PATCH v3 6/7] firmware: zynqmp: Add support to access efuses

2024-06-04 Thread lukas . funke-oss
From: Lukas Funke Add functions to access efuses through PMU firmware interface. Signed-off-by: Lukas Funke --- (no changes since v1) drivers/firmware/firmware-zynqmp.c | 31 ++ include/zynqmp_firmware.h | 2 ++ 2 files changed, 33 insertions(+) diff

[PATCH v3 5/7] soc: xilinx: zynqmp: Use zynqmp_pm_get_chipid() to get chip revision

2024-06-04 Thread lukas . funke-oss
From: Lukas Funke Use common zynqmp_pm_get_chipid() function to get the chip revision Signed-off-by: Lukas Funke --- (no changes since v1) drivers/soc/soc_xilinx_zynqmp.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git

[PATCH v3 3/7] soc: xilinx: versal: Use zynqmp_pm_get_chipid() to get chip revision

2024-06-04 Thread lukas . funke-oss
From: Lukas Funke Use common zynqmp_pm_get_chipid() function to get the chip revision Signed-off-by: Lukas Funke --- (no changes since v1) drivers/soc/soc_xilinx_versal.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/soc/soc_xilinx_versal.c

[PATCH v3 4/7] soc: xilinx: versal-net: Use zynqmp_pm_get_chipid() to get chip revision

2024-06-04 Thread lukas . funke-oss
From: Lukas Funke Use common zynqmp_pm_get_chipid() function to get the chip revision Signed-off-by: Lukas Funke --- (no changes since v1) drivers/soc/soc_xilinx_versal_net.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git

[PATCH v3 2/7] configs: zynqmp_virt: Enable CMD_FUSE and ZYNQMP_EFUSE

2024-06-04 Thread lukas . funke-oss
From: Lukas Funke Enable CMD_FUSE and ZYNQMP_EFUSE in order to be able to write ZyqnMP eFuses from within the bootloader. Signed-off-by: Lukas Funke --- (no changes since v1) configs/xilinx_zynqmp_kria_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v3 1/7] configs: zynqmp_kria: Enable CMD_FUSE and ZYNQMP_EFUSE

2024-06-04 Thread lukas . funke-oss
From: Lukas Funke Enable CMD_FUSE and ZYNQMP_EFUSE in order to be able to write ZyqnMP eFuses from within the bootloader for Kria SoM. Signed-off-by: Lukas Funke --- (no changes since v1) configs/xilinx_zynqmp_virt_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v3 0/7] Add eFuse access for ZynqMP

2024-06-04 Thread lukas . funke-oss
From: Lukas Funke This series adds a driver to read and write ZynqMP eFuses [1]. The driver can be accessed by the 'fuse read' and 'fuse write' commands Example: => fuse read 0 0xc 3 Reading bank 0: Word 0x000c: 3cb16685 013af244 4000 Note: Accessing eFuses requires eFuse access to

Re: [PATCH 1/1] Added arm64 assembly for examples/api crt0

2024-06-04 Thread Tom Rini
On Tue, Jun 04, 2024 at 07:57:38AM +0200, Heinrich Schuchardt wrote: > On 6/4/24 05:34, Brunham, Kalen wrote: > > Hi Tom/Heinrich, > > > > I have https://github.com/u-boot/u-boot/pull/574 that has a proposed > > change. It is currently failing clang sandbox, which looks a little strange > > and

[PATCH v2 0/1] Enable reset_cpu() in SPL for ZynqMP

2024-06-04 Thread lukas . funke-oss
From: Lukas Funke This series enables the CPU reset in the SPL for ZynqMP based platforms. This only works if CONFIG_SYSRESET is disabled. This is usually the case since the the regular sysreset requires bl31 firmware to be loaded in order to hand the sysreset over to PMU firmware. In SPL we

[PATCH v2 1/1] xilinx: zynqmp: Enable reset_cpu() in SPL

2024-06-04 Thread lukas . funke-oss
From: Lukas Funke This commit enables SPL to reset the CPU via PMU-firmware. The usual reset mechanism requires bl31 to be loaded which may not be the case in SPL. Signed-off-by: Lukas Funke --- Changes in v2: - Drop 2/2 since reworking ZYNQMP_FIRMWARE dependency is out-of-scope

[PATCH] arm: dts; am625_beagleplay: Switch to OF_UPSTREAM

2024-06-04 Thread Nishanth Menon
Enable OF_UPSTREAM for AM625-beagleplay board. Remove DT files that are now available in dts/upstream. Update the appended files based on version of latest OF_UPSTREAM sync point (v6.10-rc1). Signed-off-by: Nishanth Menon --- Based off u-boot next 15d0dcc0ec1f Merge tag

[PATCH v2 1/1] usb: Assimilate usb_get_descriptor() to linux

2024-06-04 Thread Philip Oberfichtner
Before this commit, usb_get_descriptor() failed for some flakey USB devices. We hereby adopt the more robust linux implementation [1]. For instance, for the "Alcor Micro Corp. Flash Drive" (VID 0x058f, PID 0x6387), the following behavior occurs from time to time: => usb start starting USB... Bus

Re: obscure microsd detection issue between U-Boot and kernel

2024-06-04 Thread Christian Loehle
On 6/3/24 22:28, Tim Harvey wrote: > On Mon, Jun 3, 2024 at 1:18 AM Christian Loehle > wrote: >> >> On 5/31/24 21:47, Tim Harvey wrote: >>> Greetings, >>> >>> I'm seeing an issue on an imx8mm board (imx8mm-venice-gw73xx) where >>> for a specific set of microsd cards if I have accessed the microsd

[PATCH v2 1/1] xilinx: Add option to load environment from outside of boot media

2024-06-04 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Currently, if the environment is not in the current boot media, the env_get_location() is returning ENVL_UNKNOWN or ENVL_NOWHERE which is not true (i.e booting from FLASH with environment in eMMC). This commit adds an extra check to find the environment in the other

[PATCH v2 0/1] xilinx: Add option to load environment from outside of

2024-06-04 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Changes in v2: - Remove duplication of custom hardcoded env_locations[] code. - Add implementation with general arch_env_get_location(op, prio) v1: https://lore.kernel.org/u-boot/20240522174738.73522-1-vassilisa...@gmail.com/ Vasileios Amoiridis (1):

[PATCH v4 6/6] spinand: bind UBI block

2024-06-04 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH v4 5/6] disk: support UBI partitions

2024-06-04 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v4 4/6] disk: don't try search for partition type if already set

2024-06-04 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v4 3/6] drivers: introduce UBI block abstraction

2024-06-04 Thread Alexey Romanov
UBI block is an virtual device, that runs on top of the MTD layer. The blocks are UBI volumes. Intended to be used in combination with other MTD drivers. Despite the fact that it, like mtdblock abstraction, it used with UCLASS_MTD, they can be used together on the system without conflicting. For

[PATCH v4 2/6] ubi: allow to write to volume with offset

2024-06-04 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 71 +++-- env/ubi.c | 10 +++

[PATCH v4 1/6] ubi: allow to read from volume with offset

2024-06-04 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7

[PATCH v4 0/6] Introduce UBI block device

2024-06-04 Thread Alexey Romanov
Hello! This series adds support for the UBI block device, which allows to read/write data block by block. For example, it can now be used for BCB or Android AB command: $ bcb load ubi 0 part_name Tested only on SPI NAND, so bind is made only for SPI NAND drivers. Can be used with mtdblock

[PATCH v5 3/3] spinand: bind mtdblock

2024-06-04 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 62c28aa422..8edb468aed

[PATCH v5 2/3] drivers: introduce mtdblock abstraction

2024-06-04 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227 +

[PATCH v5 1/3] disk: support MTD partitions

2024-06-04 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 3 +- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 76 +++ include/part.h| 3 ++ 4 files

[PATCH v5 0/3] Introduce mtdblock device

2024-06-04 Thread Alexey Romanov
Hello! This series adds support for the mtdblock device, which allows to read/write data block by block. For example, it can now be used for BCB or Android AB command: $ bcb load mtd 0 part_name Tested only on SPI NAND, so bind is made only for SPI NAND drivers. --- Changes V1 -> V2 [1]:

Fwd: A potential bug in das u-boot nfs implemnetation

2024-06-04 Thread jianqiang wang
Hi, I sent this email to das u-boot one month ago, however, I haven't gotten a reply yet. Do you know what happened? Best -- Forwarded message - 发件人: jianqiang wang Date: 2024年5月1日周三 16:14 Subject: A potential bug in das u-boot nfs implemnetation To: Dear all I found a

Re: [PATCH] bootstd: Fix a handful of doc typos in bootmeth

2024-06-04 Thread Quentin Schulz
Hi Mattijs, On 6/4/24 2:04 PM, Mattijs Korpershoek wrote: Hi Quentin, On mar., juin 04, 2024 at 11:47, Quentin Schulz wrote: Hi Mattijs, On 6/3/24 11:11 AM, Mattijs Korpershoek wrote: Fix some trivial typos found by browsing the code. Done with flyspell. Signed-off-by: Mattijs

Re: [PATCH] bootstd: Fix a handful of doc typos in bootmeth

2024-06-04 Thread Mattijs Korpershoek
Hi Quentin, On mar., juin 04, 2024 at 11:47, Quentin Schulz wrote: > Hi Mattijs, > > On 6/3/24 11:11 AM, Mattijs Korpershoek wrote: >> Fix some trivial typos found by browsing the code. >> Done with flyspell. >> >> Signed-off-by: Mattijs Korpershoek > --- >> include/bootmeth.h | 12

Re: [PATCH 00/16] LoongArch initial support

2024-06-04 Thread Jiaxun Yang
在2024年5月23日五月 下午4:43,Tom Rini写道: > On Thu, May 23, 2024 at 04:38:52PM +0100, Jiaxun Yang wrote: >> >> >> 在2024年5月23日五月 下午4:25,Tom Rini写道: >> > On Wed, May 22, 2024 at 04:34:43PM +0100, Jiaxun Yang wrote: >> > >> >> Hi all, >> >> >> >> Sorry for flooding the mailing list recently, yet another

Re: [PATCH 2/7] efi: Allow runtime relocate to be disabled

2024-06-04 Thread Jiaxun Yang
在2024年6月1日六月 下午5:37,Maciej W. Rozycki写道: > On Tue, 21 May 2024, Jiaxun Yang wrote: > >> It's nearly impossible to run MIPS OS in virtual (or paged) >> segment. All MIPS OS and bootloaders are running in KSEG/XKPHYS >> segment, which directly mapping lower bits of virtual address >> into

Re: [PATCH 2/2] xilinx: zynqmp: Enable reset_cpu() in SPL

2024-06-04 Thread Michal Simek
On 6/4/24 11:12, Lukas Funke wrote: On 03.06.2024 17:08, Michal Simek wrote: On 6/3/24 16:50, Lukas Funke wrote: On 03.06.2024 16:32, Michal Simek wrote: On 6/3/24 15:34, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke This commit enables SPL to reset the CPU via

Re: [PATCH 1/1] usb: Assimilate usb_get_descriptor() to linux

2024-06-04 Thread Philip Oberfichtner
Good point. See V2. On Fri, May 17, 2024 at 11:16:19PM +0200, Marek Vasut wrote: > On 5/17/24 11:18 AM, Philip Oberfichtner wrote: > > Before this commit, usb_get_descriptor() failed for some flakey USB > > devices. We hereby adopt the more robust linux implementation [1]. > > Can you include

Re: [PATCH] bootstd: Fix a handful of doc typos in bootmeth

2024-06-04 Thread Quentin Schulz
Hi Mattijs, On 6/3/24 11:11 AM, Mattijs Korpershoek wrote: Fix some trivial typos found by browsing the code. Done with flyspell. Signed-off-by: Mattijs Korpershoek > --- include/bootmeth.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/bootmeth.h

Re: [PATCH 2/2] xilinx: zynqmp: Enable reset_cpu() in SPL

2024-06-04 Thread Lukas Funke
On 03.06.2024 17:08, Michal Simek wrote: On 6/3/24 16:50, Lukas Funke wrote: On 03.06.2024 16:32, Michal Simek wrote: On 6/3/24 15:34, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke This commit enables SPL to reset the CPU via PMU-firmware. The usual reset mechanism requires

  1   2   >