[PATCH v2 5/5] doc: rockchip: Update SPI flashing instruction

2023-07-28 Thread Jonas Karlman
Update documentation on how to write a bootable u-boot-rockchip-spi.bin image into SPI flash. This removes the reference to a hardcoded and now obsolete 0x6 payload offset. Also remove an obsolete reference to pad_cat. Signed-off-by: Jonas Karlman Reviewed-by: Quentin Schulz --- v2: -

[PATCH v2 4/5] rockchip: rk3399-roc-pc: Fix SPL max size and SPI flash payload offset

2023-07-28 Thread Jonas Karlman
TPL max size is limited to 184 KB, SPL is loaded to 0x0 and TF-A is loaded to 0x4, this limit SPL max size to 256 KB. With BootRom only reading first 2 KB per 4 KB page of SPI flash, 880 KB may be needed for TPL+SPL in a worst-case scenario. (184 KB + 256 KB) x 2 = 880 KB Use 0xE (896 KB)

[PATCH v2 3/5] rockchip: rk3399-pinephone-pro: Fix SPL max size and SPI flash payload offset

2023-07-28 Thread Jonas Karlman
TPL max size is limited to 184 KB, SPL is loaded to 0x0 and TF-A is loaded to 0x4, this limit SPL max size to 256 KB. With BootRom only reading first 2 KB per 4 KB page of SPI flash, 880 KB may be needed for TPL+SPL in a worst-case scenario. (184 KB + 256 KB) x 2 = 880 KB Use 0xE (896 KB)

[PATCH v2 2/5] rockchip: rk3399-pinebook-pro: Fix SPL max size and SPI flash payload offset

2023-07-28 Thread Jonas Karlman
TPL max size is limited to 184 KB, SPL is loaded to 0x0 and TF-A is loaded to 0x4, this limit SPL max size to 256 KB. With BootRom only reading first 2 KB per 4 KB page of SPI flash, 880 KB may be needed for TPL+SPL in a worst-case scenario. (184 KB + 256 KB) x 2 = 880 KB Use 0xE (896 KB)

[PATCH v2 1/5] rockchip: rk3399-rockpro64: Fix SPL max size and SPI flash payload offset

2023-07-28 Thread Jonas Karlman
TPL max size is limited to 184 KB, SPL is loaded to 0x0 and TF-A is loaded to 0x4, this limit SPL max size to 256 KB. With BootRom only reading first 2 KB per 4 KB page of SPI flash, 880 KB may be needed for TPL+SPL in a worst-case scenario. (184 KB + 256 KB) x 2 = 880 KB Use 0xE (896 KB)

[PATCH v2 0/5] rockchip: Fix SPI flash SPL and payload overlap

2023-07-28 Thread Jonas Karlman
This series fixes a build issue introduced in commit 5713135ecc75 ("rockchip: rockpro64: Build u-boot-rockchip-spi.bin"), reported by Peter Robinson. Closer inspection into how SPI flash is used revealed that current payload offset, 0x6, is not enough to accommodate a worst-case scenario and

Pull request: u-boot-rockchip-20230728

2023-07-28 Thread Kever Yang
: Merge https://source.denx.de/u-boot/custodians/u-boot-usb (2023-07-27 10:35:36 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-rockchip.git tags/u-boot-rockchip-20230728 for you to fetch changes up to 94da929b933668c4b9ece7d56a2a2bb5543198c9

Re: [PATCHv4 0/5] net/lwip: add lwip library for the network stack

2023-07-28 Thread Maxim Uvarov
On Fri, 28 Jul 2023 at 07:52, Simon Glass wrote: > Hi Maxim, > > On Fri, 14 Jul 2023 at 08:22, Maxim Uvarov > wrote: > > > > changelog: > > v4: - tested with tests/py/ did some minor fixes (out of tree > > build, variables set after downloads). > > -

Re: [PATCH] efi_loader: Increase default variable store size to 32K

2023-07-28 Thread Ilias Apalodimas
Hi Alper, On Sat, 8 Jul 2023 at 18:21, Alper Nebi Yasak wrote: > > Debian's arm64 UEFI Secure Boot shim makes the EFI variable store run > out of space while mirroring its MOK database to variables. This can be > observed in QEMU like so: > > $ tools/buildman/buildman -o build/qemu_arm64

Re: [PATCH] configs: rock64-rk3328_defconfig: Enable ROCKCHIP_EFUSE

2023-07-28 Thread Matwey V. Kornilov
пт, 28 июл. 2023 г. в 11:07, Peter Robinson : > > On Thu, Jul 27, 2023 at 5:34 PM Matwey V. Kornilov > wrote: > > > > Enable missed CONFIG_ROCKCHIP_EFUSE to use fixed Ethernet MAC address. > > I've already sent a patch to do that as part of a series for other > improvements: >

Re: [PATCH 0/5] board: rockchip: Add Pine64 Quartz64 and SOQuartz boards

2023-07-28 Thread Kever Yang
On 2023/7/23 22:55, Jonas Karlman wrote: This series was created in collaboration with Nicolas Frattaroli and add support for Pine64 Quartz64 and SOQuartz boards with a RK3566 SoC. - Pine64 Quartz64-A Board - Pine64 Quartz64-B Board - Pine64 SOQuartz on Model A - Pine64 SOQuartz on Blade -

Re: [PATCH v17 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-07-28 Thread Ilias Apalodimas
Hi Tom On Thu, 27 Jul 2023 at 19:43, Tom Rini wrote: > > On Thu, Jul 27, 2023 at 05:07:11PM +0100, Abdellatif El Khlifi wrote: > > > Add MM communication support using FF-A transport > > > > This feature allows accessing MM partitions services through > > EFI MM communication protocol. MM

Re: [PATCH 3/4] rockchip: rk356x-u-boot: Add bootph-all to common pinctrl nodes

2023-07-28 Thread Kever Yang
Hi Jonas, On 2023/7/26 17:08, Jonas Karlman wrote: Hi Kever, On 2023-07-26 10:30, Kever Yang wrote: On 2023/7/3 01:34, Jonas Karlman wrote: Add bootph-all prop to common pinctrl nodes for eMMC, FSPI, SD-card and UART2 that are typically used by multiple boards. Unreferenced nodes are removed

Re: [PATCH v2 3/4] spl: fit: support for booting a GZIP-compressed U-boot binary

2023-07-28 Thread Kever Yang
Hi Manoj,     Could update a new patch version and address the comment from Jonas? Thanks, - Kever On 2023/7/27 19:03, Jonas Karlman wrote: On 2023-07-25 05:51, Manoj Sai wrote: If GZIP Compression support is enabled, GZIP compressed U-Boot binary will be at a specified RAM location which

Re: [PATCH v2 3/4] spl: fit: support for booting a GZIP-compressed U-boot binary

2023-07-28 Thread Kever Yang
On 2023/7/25 11:51, Manoj Sai wrote: If GZIP Compression support is enabled, GZIP compressed U-Boot binary will be at a specified RAM location which is defined at CONFIG_SYS_LOAD_ADDR and will be assign it as the source address. gunzip function in spl_load_fit_image ,will decompress the GZIP

Re: [PATCH v2 2/4] rockchip: Add support to generate LZMA compressed U-boot binary

2023-07-28 Thread Kever Yang
On 2023/7/25 11:50, Manoj Sai wrote: Add support for generating a LZMA-compressed U-boot binary with the help of binman, if CONFIG_SPL_LZMA is selected. Signed-off-by: Manoj Sai Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/dts/rockchip-u-boot.dtsi | 4 1 file changed, 4

Re: [PATCH v2 1/4] rockchip: Add support to generate GZIP compressed U-boot binary

2023-07-28 Thread Kever Yang
On 2023/7/25 11:50, Manoj Sai wrote: Add support for generating a GZIP-compressed U-boot binary with the help of binman, if CONFIG_SPL_GZIP is selected. Signed-off-by: Manoj Sai Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/dts/rockchip-u-boot.dtsi | 7 +++ 1 file changed,

Re: [PATCH] x86: Add a little more info to cbsysinfo

2023-07-28 Thread Bin Meng
On Wed, Jul 26, 2023 at 5:37 AM Simon Glass wrote: > > Show the number of records in the table and the total table size in > bytes. > > Signed-off-by: Simon Glass > --- > > arch/x86/include/asm/cb_sysinfo.h | 4 > arch/x86/lib/coreboot/cb_sysinfo.c | 4 > cmd/x86/cbsysinfo.c

Re: [PATCH 2/6] arm_ffa: introduce armffa command

2023-07-28 Thread Abdellatif El Khlifi
Hi Simon, Heinrich, On Thu, Jul 27, 2023 at 07:52:00PM -0600, Simon Glass wrote: > Hi Abdellatif, > > On Thu, 27 Jul 2023 at 03:00, Abdellatif El Khlifi > wrote: > > > > Hi Heinrich, > > > > On Thu, Jul 27, 2023 at 07:51:42AM +0200, Heinrich Schuchardt wrote: > > > On 3/29/22 17:16,

Re: [PATCH v3 2/3] cmd: ini: Fix build warning

2023-07-28 Thread Kever Yang
On 2023/7/22 22:02, Jonas Karlman wrote: Building U-Boot with CMD_INI=y result in following build warning: cmd/ini.c: In function 'memgets': include/linux/kernel.h:184:24: warning: comparison of distinct pointer types lacks a cast 184 | (void) (&_min1 == &_min2);

Re: [PATCH 1/5] x86: fsp: Use mtrr_set_next_var() for graphics memory

2023-07-28 Thread Bin Meng
Hi Simon, On Thu, Jul 27, 2023 at 8:55 AM Simon Glass wrote: > > Hi Bin, > > On Tue, 25 Jul 2023 at 07:43, Bin Meng wrote: > > > > Hi Simon, > > > > On Mon, Jul 24, 2023 at 6:14 AM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > On Sun, 23 Jul 2023 at 09:50, Bin Meng wrote: > > > > > > > >

Re: [PATCH v17 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-07-28 Thread Abdellatif El Khlifi
Hi Tom, On Thu, Jul 27, 2023 at 12:43:45PM -0400, Tom Rini wrote: > On Thu, Jul 27, 2023 at 05:07:11PM +0100, Abdellatif El Khlifi wrote: > > > Add MM communication support using FF-A transport > > > > This feature allows accessing MM partitions services through > > EFI MM communication

Re: [PATCH 1/1] efi_loader: device paths for special block devices

2023-07-28 Thread Heinrich Schuchardt
On 28.07.23 11:14, Ilias Apalodimas wrote: Hi Heinrich, On Fri, Jul 21, 2023 at 12:03:46AM +0200, Heinrich Schuchardt wrote: The UEFI specification does not provide node types matching UCLASS_BLKMAP, UCLASS_HOST, UCLASS_VIRTIO block devices. The current implementation uses VenHw() nodes with

Re: [PATCH] cmd: pxe_utils: add some missing tabs

2023-07-28 Thread Patrick DELAUNAY
Hi, On 7/27/23 09:12, Dan Carpenter wrote: These lines are supposed to be indented one more tab. Otherwise it's confusing to read. Signed-off-by: Dan Carpenter --- boot/pxe_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c

Re: [PATCH] ARM: dts: stm32: Switch DWMAC RMII clock to MCO2 on DHCOM

2023-07-28 Thread Patrick DELAUNAY
Hi, On 7/27/23 00:45, Marek Vasut wrote: The DHCOM SoM has two options for supplying ETHRX clock to the DWMAC block and PHY. Either (1) ETHCK_K generates 50 MHz clock on ETH_CLK pad for the PHY and the same 50 MHz clock are fed back to ETHRX via internal eth_clk_fb clock connection OR (2)

Re: [PATCH 1/1] efi_loader: device paths for special block devices

2023-07-28 Thread Ilias Apalodimas
Hi Heinrich, On Fri, Jul 21, 2023 at 12:03:46AM +0200, Heinrich Schuchardt wrote: > The UEFI specification does not provide node types matching UCLASS_BLKMAP, > UCLASS_HOST, UCLASS_VIRTIO block devices. > > The current implementation uses VenHw() nodes with uclass specific GUIDs > and a single

Re: [PATCH 01/14] bloblist: Update the tag numbering

2023-07-28 Thread Ilias Apalodimas
Hi Julius On Wed, 26 Jul 2023 at 23:16, Julius Werner wrote: > > > diff --git a/include/bloblist.h b/include/bloblist.h > > index 7ea72c6bd46..bad5fbbb889 100644 > > --- a/include/bloblist.h > > +++ b/include/bloblist.h > > nit: I would suggest also updating the documentation at the top of >

Re: [PATCH 5/9] board_f: Fix corruption of relocaddr

2023-07-28 Thread Nikhil M Jain
On 28/07/23 14:05, Nikhil M Jain wrote: Hi Simon, On 27/07/23 23:31, Simon Glass wrote: Hi Nikhil, On Wed, 26 Jul 2023 at 23:22, Nikhil M Jain wrote: Hi Simon, On 27/07/23 06:23, Simon Glass wrote: Hi Devarsh, On Wed, 26 Jul 2023 at 05:09, Devarsh Thakkar wrote: Hi Simon, On

Re: [PATCH 5/9] board_f: Fix corruption of relocaddr

2023-07-28 Thread Nikhil M Jain
Hi Simon, On 27/07/23 23:31, Simon Glass wrote: Hi Nikhil, On Wed, 26 Jul 2023 at 23:22, Nikhil M Jain wrote: Hi Simon, On 27/07/23 06:23, Simon Glass wrote: Hi Devarsh, On Wed, 26 Jul 2023 at 05:09, Devarsh Thakkar wrote: Hi Simon, On 26/07/23 02:58, Simon Glass wrote: Hi Devarsh,

Re: [PATCH] configs: rock64-rk3328_defconfig: Enable ROCKCHIP_EFUSE

2023-07-28 Thread Peter Robinson
On Thu, Jul 27, 2023 at 5:34 PM Matwey V. Kornilov wrote: > > Enable missed CONFIG_ROCKCHIP_EFUSE to use fixed Ethernet MAC address. I've already sent a patch to do that as part of a series for other improvements:

Re: [PATCH 3/8] bootstd: Rename bootdev_setup_sibling_blk()

2023-07-28 Thread Mattijs Korpershoek
On jeu., juil. 27, 2023 at 20:37, Simon Glass wrote: > This name is a little confusing since it suggests that it sets up the > sibling block device. In fact it sets up a bootdev for it. Rename the > function to make this clearer. > > Signed-off-by: Simon Glass > --- > > boot/bootdev-uclass.c

Re: [PATCH] configs: rock64-rk3328_defconfig: Enable ROCKCHIP_EFUSE

2023-07-28 Thread Christopher Obbard
On Thu, 2023-07-27 at 19:33 +0300, Matwey V. Kornilov wrote: > Enable missed CONFIG_ROCKCHIP_EFUSE to use fixed Ethernet MAC address. > > Signed-off-by: Matwey V. Kornilov Reviewed-by: Christopher Obbard > --- >  configs/rock64-rk3328_defconfig | 2 ++ >  1 file changed, 2 insertions(+) > >

Re: [PATCH 4/8] bootstd: Correct creating of bootdev sibling

2023-07-28 Thread Mattijs Korpershoek
On jeu., juil. 27, 2023 at 20:37, Simon Glass wrote: > Use the correct function here, since there may be multiple IDE devices > available. > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > drivers/block/ide.c | 4 ++-- > 1 file changed, 2 insertions(+), 2

Re: [PATCH 02/16] doc: board: ti: am62x/j7200: Update with common boot flow diagram

2023-07-28 Thread Heinrich Schuchardt
On 7/27/23 11:40, Neha Malcom Francis wrote: These look nice! On 27/07/23 13:30, Nishanth Menon wrote: Update the bootflow svg diagram and reuse across the platforms as they are common. We should add SPDX license information to all the SVG files that you created. e.g. like the license

Re: [PATCH v2] efi_loader: make efi_delete_handle() follow the EFI spec

2023-07-28 Thread Heinrich Schuchardt
On 7/24/23 12:17, Ilias Apalodimas wrote: The EFI doesn't allow removal of handles, unless all hosted protocols are cleanly removed. Our efi_delete_handle() is a bit intrusive. Although it does try to delete protocols before removing a handle, it doesn't care if that fails. Instead it only

Re: [PATCH] docs: boards: ti: add openocd spl debugging docs

2023-07-28 Thread Heinrich Schuchardt
On 7/21/23 21:19, Jason Kacines wrote: Add documentation on how to use OpenOCD to debug U-Boot for TI K3 Generation boards. Signed-off-by: Jason Kacines Thank you for providing OpenOCD usage guidance. This patch cannot be applied to origin/master. Please, rebase it. Please, remove trailing

[PATCH v2 1/1] doc: update doc/sphinx/requirements.txt

2023-07-28 Thread Heinrich Schuchardt
Update the following requirements to their latest version: * Pygments - syntax highlighting * pytz - world timezone definitions * certifi - Mozilla's CA bundle Signed-off-by: Heinrich Schuchardt --- v2: fix typo in title --- doc/sphinx/requirements.txt | 6 +++--- 1 file changed,

<    1   2