Re: [PATCH v5 38/46] boot: Consider non-bootable partitions

2025-03-29 Thread Simon Glass
Hi Tom, On Fri, 28 Mar 2025 at 10:30, Tom Rini wrote: > > On Fri, Mar 21, 2025 at 07:38:27PM +0100, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 20 Mar 2025 at 15:22, Tom Rini wrote: > > > > > > On Thu, Mar 20, 2025 at 03:43:36AM +, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Wed

Re: [PATCH v2 05/15] arm: Discard unwanted sections in linker script

2025-03-29 Thread Ilias Apalodimas
On Sun, 16 Mar 2025 at 00:18, Sam Edwards wrote: > > There are a handful of sections that are not useful in the U-Boot output > binary. At present, the linker script moves these to the end of the > binary, after the _image_binary_end marker symbol, so that they don't > get loaded. > > The linker s

Re: [PATCH v2 08/15] makefile: Avoid objcopy --gap-fill for .hex/.srec

2025-03-29 Thread Ilias Apalodimas
On Sun, 16 Mar 2025 at 00:18, Sam Edwards wrote: > > This flag only makes sense for `binary` output, because .hex/.srec are > sparse formats and represent gaps without filler. While the GNU binutils > version of objcopy does not seem to mind the extra flag being passed, > llvm-objcopy considers th

Re: [PATCH] efi_loader: remove EFI_BOUNCE_BUFFER

2025-03-29 Thread Simon Glass
Hi Ilias, On Thu, 27 Mar 2025 at 15:19, Ilias Apalodimas wrote: > > Hi Simon > > On Thu, 27 Mar 2025 at 15:33, Simon Glass wrote: > > > > Hi Ilias, > > > > On Wed, 26 Mar 2025 at 02:37, Ilias Apalodimas > > wrote: > > > > > > Hi Heinrich, > > > > > > On Mon, 24 Mar 2025 at 19:50, Heinrich Schuc

[PATCH v8 11/19] spl: imx: use trampoline buffer to load images to secure region

2025-03-29 Thread Alice Guo (OSS)
From: Ye Li When SPL loading image to secure region, for example, ATF and tee to DDR secure region. Because the USDHC controller is non-secure master, it can't access this region and will cause loading issue. So use a trampoline buffer in non-secure region, then use CPU to copy the image from tr

Re: [PATCH 0/4] usb: gadget: f_mass_storage: Fix crashes on low memory devices

2025-03-29 Thread Mattijs Korpershoek
Hi Zixun, On ven., mars 28, 2025 at 18:38, Zixun LI wrote: > On Fri, Mar 28, 2025 at 9:15 AM Mattijs Korpershoek > wrote: >> This series fixes the above mentioned crash by introducing proper error >> handling and freeing the buffers in the unbind callback. > > Hi Mattijs, > > Thank you for the

Re: [PATCH v1] efi_loader: Handle GD_FLG_SKIP_RELOC

2025-03-29 Thread Ilias Apalodimas
+CC Heinrich who has looked the relocation stuff a bit more On Thu, 27 Mar 2025 at 23:22, Ilias Apalodimas wrote: > > On Thu, 27 Mar 2025 at 08:12, Varadarajan Narayanan > wrote: > > > > On Wed, Mar 26, 2025 at 09:28:04AM +0200, Ilias Apalodimas wrote: > > > Hi Varadarajan > > > > > > On Wed, 26

[PATCH 0/2] riscv: pinctrl: k1: Add pinctrl support for bannanapi-f3

2025-03-29 Thread Huan Zhou
The series add basic support for pinctrl for bananapi-f3 which reuse pinctrl-single as its driver. boot log: https://gist.github.com/per1cycle/27aa0d4de732e96eeeb842e75168e0c8 Signed-off-by: Huan Zhou --- Huan Zhou (2): riscv: dts: k1: add pinctrl property in dts. config: Enable pinc

[PATCH v4 09/10] rockchip: binman: Support use of crc32 for SPL_FIT_SIGNATURE

2025-03-29 Thread Jonas Karlman
Use of SHA256 checksum validation on ARMv7 SoCs can be very time consuming compared to ARMv8 SoCs with Crypto Extensions. Add support for use of the crc32 hash algo when SHA256 is not supported. Also use a HAS_HASH to simplify the ifdefs when no known hash algo is compiled. Signed-off-by: Jonas K

[PATCH v4 05/10] rockchip: binman: Un-indent the FIT template

2025-03-29 Thread Jonas Karlman
From: Simon Glass Fix the indentation on the template. This is done in a separate patch so that it is easier to review. Signed-off-by: Simon Glass Signed-off-by: Jonas Karlman --- Changes in v4: - Split from "VBE serial part H: Implement VBE on Rockchip RK3399" --- arch/arm/dts/rockchip-u-boo

[PATCH v4 07/10] rockchip: binman: Include a compatible string in each configuration

2025-03-29 Thread Jonas Karlman
From: Simon Glass Provide a compatible string in the config nodes that U-Boot can use to help decide which configuration to use. Signed-off-by: Simon Glass Signed-off-by: Jonas Karlman --- Changes in v4: - Split from "VBE serial part H: Implement VBE on Rockchip RK3399" --- arch/arm/dts/rockc

[PATCH v4 06/10] rockchip: binman: Use the FIT template in the SPI image

2025-03-29 Thread Jonas Karlman
From: Simon Glass At present simple-bin-spi relies on the u-boot.itb file created by the simple-bin image. Use the template to avoid this, since Binman may change to process images in parallel in the future. Signed-off-by: Simon Glass Signed-off-by: Jonas Karlman --- Changes in v4: - Drop file

[PATCH v4 10/10] rockchip: Add SPL_PAD_TO Kconfig default value

2025-03-29 Thread Jonas Karlman
Almost all Rockchip boards use the same Kconfig value for SPL_PAD_TO, 0x7f8000. Add this value as a default value for ARCH_ROCKCHIP. Signed-off-by: Jonas Karlman --- Changes in v4: - New patch This patch does not drop SPL_PAD_TO from existing defconfigs that would be affected by this change, so

[PATCH v4 08/10] rockchip: binman: Use the skip-at-start prop in simple-bin image

2025-03-29 Thread Jonas Karlman
From: Simon Glass The simple-bin image is normally written to MMC media at block 64, which is a 32K offset from start of storage media. Set the skip-at-start property to 0x8000 (32 KiB) so that fdtmap and other embedded binman symbols in the output binary is referencing image offsets correctly.

[PATCH v4 04/10] rockchip: binman: Create a template for the FIT

2025-03-29 Thread Jonas Karlman
From: Simon Glass Move the FIT description into a template so that it can (later) be used in multiple places in the image. Signed-off-by: Simon Glass Signed-off-by: Jonas Karlman --- Changes in v4: - Rename template label to fit_template - Split from "VBE serial part H: Implement VBE on Rockch

[PATCH v4 02/10] rockchip: binman: Factor out arch and compression

2025-03-29 Thread Jonas Karlman
From: Simon Glass Declare arch and compression at the top of the file to avoid needing ifdefs in every usage. Add a few comments to help with the remaining #ifdefs. Signed-off-by: Simon Glass Signed-off-by: Jonas Karlman --- Changes in v4: - Split from "VBE serial part H: Implement VBE on Roc

[PATCH v4 03/10] rockchip: binman: Add an fdtmap

2025-03-29 Thread Jonas Karlman
From: Simon Glass Add an fdtmap so it is possible to look at the image with 'binman ls'. Signed-off-by: Simon Glass Signed-off-by: Jonas Karlman --- Changes in v4: - Split from "VBE serial part H: Implement VBE on Rockchip RK3399" Changes in v3: - Add blank lines before the node --- arch/arm

[PATCH v4 00/10] rockchip: binman: Use a template for FIT and other improvements

2025-03-29 Thread Jonas Karlman
This series split out generic Rockchip binman image related commits from Simons "VBE serial part H: Implement VBE on Rockchip RK3399" [1] series. These are generic binman image patches fixing an existing issue [2][3] and that other series [4] already depends on. They are being split out to ease c

Re: [PATCH v1] efi_loader: Handle GD_FLG_SKIP_RELOC

2025-03-29 Thread Heinrich Schuchardt
On 3/26/25 06:46, Varadarajan Narayanan wrote: If the EFI runtime services pointers are relocated even though relocation is skipped, it corrupts some other data resulting in some unexpected behaviour. In this specific case, it overwrote some page table entries resulting in the device memory addr

[PATCH 1/2] riscv: dts: k1: add pinctrl property in dts.

2025-03-29 Thread Huan Zhou
Add pinctrl node in device tree and update in bananapi f3 dts. Signed-off-by: Huan Zhou --- arch/riscv/dts/k1-bananapi-f3.dts | 3 +++ arch/riscv/dts/k1-pinctrl.dtsi| 19 +++ arch/riscv/dts/k1.dtsi| 8 +++- 3 files changed, 29 insertions(+), 1 deletion(-) d

[PATCH 2/2] config: Enable pinctrl in bananapi-f3

2025-03-29 Thread Huan Zhou
Add pinctrl support in bananapi-f3 platform Signed-off-by: Huan Zhou --- configs/bananapi-f3_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bananapi-f3_defconfig b/configs/bananapi-f3_defconfig index 0f12db3db848badda1fc7192aeb0190ac22a269d..12aa67d4f0de580736c21fc37641

[PATCH v4 01/10] rockchip: binman: Correct the OS prop for U-Boot

2025-03-29 Thread Jonas Karlman
From: Simon Glass The U-Boot image is currently being identified as an invalid OS in spl_fit_image_get_os() due to case sensitive compare. Use the correct lower-case value to fix this. Fixes: e0c0efff2a02 ("rockchip: Support building the all output files in binman") Signed-off-by: Simon Glass

Re: Pull request: u-boot-sunxi/next for next

2025-03-29 Thread Tom Rini
On Thu, 27 Mar 2025 11:12:14 +, Andre Przywara wrote: > please pull these sunxi changes into next: > > Assorted fixes, refactorings and additions that are ready, and shave > off some load from upcoming series'. > > Improves MMC performance on D1/T113 (missed clock divider), enables > eMMC ac

Re: [PATCH] board: ti: am335x: Fix selection of BeagleBone Green

2025-03-29 Thread Tom Rini
On Thu, 27 Mar 2025 11:31:12 +0100, Kory Maincent wrote: > The BeagleBone Green board is a revision of the BoneBlack board. > Having BeagleBone Black devicetree listed before BeagleBone Green will > select always the BeagleBone Black devicetree following the functioning of > board_fit_config_name_

Re: [PATCH v3 19/31] rockchip: Provide a VPL phase on rk3399

2025-03-29 Thread Jonas Karlman
Hi Simon, On 2025-03-29 00:40, Simon Glass wrote: > Hi Tom, > > On Fri, 28 Mar 2025 at 10:16, Jonas Karlman wrote: >> >> Hi Simon, >> >> On 2025-03-28 16:34, Simon Glass wrote: >>> Add support for this new phase, which runs after TPL. It determines the >>> state of the machine, then selects whic

Re: [PATCH v1] efi_loader: Handle GD_FLG_SKIP_RELOC

2025-03-29 Thread Ilias Apalodimas
On Sat Mar 29, 2025 at 2:02 PM EET, Heinrich Schuchardt wrote: > On 3/26/25 06:46, Varadarajan Narayanan wrote: >> If the EFI runtime services pointers are relocated even though >> relocation is skipped, it corrupts some other data resulting in some >> unexpected behaviour. >> >> In this specific c