Re: [PATCH] net: ipv6: Fix IPv6 netmask parsing

2023-01-08 Thread Vyacheslav V. Mitrofanov
On Fri, 2023-01-06 at 14:22 -0800, seanedm...@linux.microsoft.com wrote: > From: Sean Edmond > > It should be possible to specify a netmask when > setting a static IPv6 address. For example: > setenv ip6addr 2001:cafe:cafe:cafe::100/64 > > The net_prefix_length and net_ip6 should be updated >

Re: [PATCHv3 1/5] fwu: gpt: use cached meta-data partition numbers

2023-01-08 Thread Ilias Apalodimas
On Mon, Jan 02, 2023 at 12:26:19PM -0600, Jassi Brar wrote: > Use cached values and avoid parsing and scanning through partitions > everytime for meta-data partitions because they can't change after bootup. > > Acked-by: Etienne Carriere > Signed-off-by: Jassi Brar > --- >

Re: [PATCH v2 3/3] lmb: consider EFI memory map

2023-01-08 Thread Ilias Apalodimas
On Thu, Jan 05, 2023 at 09:25:36PM +0100, Heinrich Schuchardt wrote: > Add reservations for all EFI memory areas that are not > EFI_CONVENTIONAL_MEMORY. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > use efi_get_memory_map_alloc() > --- > lib/lmb.c | 36

Re: [PATCH v2 2/3] efi_loader: carve out efi_get_memory_map_alloc()

2023-01-08 Thread Ilias Apalodimas
On Thu, Jan 05, 2023 at 09:25:35PM +0100, Heinrich Schuchardt wrote: > Carve out code from efidebug command used to read the memory map. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > new patch > --- > cmd/efidebug.c | 18 -- > include/efi_loader.h

[PATCH v2 2/2] musb-new: omap2430: fix compiling in DM_USB_GADGET config

2023-01-08 Thread Andreas Kemnade
Add the separate IRQ handling function and change the registration. Signed-off-by: Andreas Kemnade --- drivers/usb/musb-new/omap2430.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/usb/musb-new/omap2430.c b/drivers/usb/musb-new/omap2430.c index

[PATCH v2 1/2] musb-new: omap2430: no host data access in gadget mode

2023-01-08 Thread Andreas Kemnade
Avoid accessing structures (usb_bus_priv) only present when musb is in host mode. Signed-off-by: Andreas Kemnade --- drivers/usb/musb-new/omap2430.c | 34 - 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/drivers/usb/musb-new/omap2430.c

[PATCH v2 0/2] musb-new: fix omap peripheral support

2023-01-08 Thread Andreas Kemnade
DM_GADGET did not compile at all, probe was not called in non-gadget mode. Tested on an omap4 board with ums and fastboot command. Changes in V2: - split up former 2/2 patch into two. - do not break non-DM_USB_GADGET compile further Andreas Kemnade (2): musb-new: omap2430: no host data access

Re: [PATCH] efi_loader: fix description of memory functions

2023-01-08 Thread Ilias Apalodimas
On Sun, Jan 08, 2023 at 01:00:00AM +0100, Heinrich Schuchardt wrote: > * Add missing function descriptions > * Adjust to Sphinx style > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_loader/efi_memory.c | 82 - > 1 file changed, 62 insertions(+), 20

Re: [PATCH 1/2] efi_loader: refine set_keyboard_layout() status

2023-01-08 Thread Ilias Apalodimas
On Fri, 6 Jan 2023 at 17:27, Heinrich Schuchardt wrote: > > On 1/6/23 10:46, Vincent Stehlé wrote: > > As per the EFI specification, the HII database protocol function > > set_keyboard_layout() must return EFI_INVALID_PARAMETER when it is called > > with a NULL key_guid argument. Modify the

Re: [PATCH 1/1] doc: fix description of u16_strcasecmp()

2023-01-08 Thread Ilias Apalodimas
On Sun, 8 Jan 2023 at 01:25, Heinrich Schuchardt wrote: > > Remove non-existent parameter 'n' from function description. > > Fixes: 7a9b366cd9b7 ("lib: add function u16_strcasecmp()") > Signed-off-by: Heinrich Schuchardt > --- > include/charset.h | 1 - > 1 file changed, 1 deletion(-) > > diff

Re: [PATCH v1 1/2] ARM: configs: npcm7xx: add full function for nuvoton npcm750

2023-01-08 Thread Jim Liu
Hi Tom I push some patches to fix some errors about this config patch and wait for all reviewers to merge. Could you check this patch again or should I use new master uboot update patch and resend it ? Best regards, Jim On Tue, Aug 2, 2022 at 8:28 PM Jim Liu wrote: > > Hi Tom > > Yes , the

[PATCHv3 5/5] tools: Add mkfwumdata tool for FWU metadata image

2023-01-08 Thread Jassi Brar
From: Masami Hiramatsu Add 'mkfwumdata' tool to generate FWU metadata image for the meta-data partition to be used in A/B Update imeplementation. Signed-off-by: Masami Hiramatsu Signed-off-by: Sughosh Ganu Signed-off-by: Jassi Brar --- tools/Kconfig | 9 ++ tools/Makefile | 4 +

[PATCHv3 4/5] fwu: DeveloperBox: add support for FWU

2023-01-08 Thread Jassi Brar
Add code to support FWU_MULTI_BANK_UPDATE. The platform does not have gpt-partition storage for Banks and MetaData, rather it used SPI-NOR backed mtd regions for the purpose. Signed-off-by: Jassi Brar --- board/socionext/developerbox/Makefile | 1 +

[PATCHv3 3/5] dt: fwu: developerbox: enable fwu banks and mdata regions

2023-01-08 Thread Jassi Brar
Specify Bank-0/1 and fwu metadata mtd regions. Signed-off-by: Jassi Brar Acked-by: Ilias Apalodimas --- .../synquacer-sc2a11-developerbox-u-boot.dtsi | 22 ++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi

[PATCHv3 2/5] FWU: mtd: Add helper functions for accessing FWU metadata

2023-01-08 Thread Jassi Brar
From: Sughosh Ganu Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. Signed-off-by: Sughosh Ganu Signed-off-by: Jassi Brar --- include/fwu.h | 27 ++ lib/fwu_updates/Makefile | 1 + lib/fwu_updates/fwu_mtd.c |

[PATCHv3 1/5] FWU: Add FWU metadata access driver for MTD storage regions

2023-01-08 Thread Jassi Brar
From: Sughosh Ganu In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate region. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored on a raw MTD region.

[PATCHv3 0/5] FWU: Add support for mtd backed feature on DeveloperBox

2023-01-08 Thread Jassi Brar
Introduce support for mtd backed storage for FWU feature and enable it on Synquacer platform based DeveloperBox. This revision is rebased onto patchset that trims the FWU api https://lore.kernel.org/u-boot/20230102182532.2411125-1-jaswinder.si...@linaro.org/ Jassi Brar (2): dt: fwu:

Re: [PATCH 1/3] dt-bindings: nvmem: u-boot,env: add MAC's #nvmem-cell-cells

2023-01-08 Thread Rob Herring
On Thu, Jan 05, 2023 at 06:10:36PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > U-Boot's "ethaddr" environment variable is very often used to store > *base* MAC address. It's used as a base for calculating addresses for > multiple interfaces. It's done by adding proper values. Actual

Re: [PATCH 3/3] sunxi: remove CONFIG_MMC?_CD_PIN

2023-01-08 Thread Samuel Holland
On 7/13/22 11:21, Andre Przywara wrote: > For legacy reasons we were defining the card detect GPIO for all sunxi > boards in each board's defconfig. > There is actually no need for a card-detect check in the SPL code (which > consequently has been removed already), and also in U-Boot proper we >

Re: [PATCH 2/3] sunxi: mmc: group non-DM specific functions

2023-01-08 Thread Samuel Holland
On 7/13/22 11:21, Andre Przywara wrote: > As the SPL code for sunxi boards does not use the driver model, we have > two mmc_ops structures, one for DM, one for non-DM. The actual hardware > access code is shared, with the respective callback functions using that > common code. > > To make this

Re: [PATCH 1/3] sunxi: mmc: ignore card detect in SPL

2023-01-08 Thread Samuel Holland
Hi Andre, Thanks for helping to get rid of sunxi_name_to_gpio(). On 7/13/22 11:21, Andre Przywara wrote: > The sunxi MMC code does not use the DM in the SPL, as we don't have a > device tree available that early, also no space for it. > This also means we cannot access the card-detect GPIO

Re: [PATCH 2/3] sunxi: h616: lower SPL stack address to avoid BROM data

2023-01-08 Thread Samuel Holland
On 7/13/22 10:27, Andre Przywara wrote: > When using the USB OTG FEL mode on the Allwinner H616, the BootROM > stores some data at the end of SRAM C. This is also the location where > we place the initial SPL stack, so it will overwrite this data. > We still need the BROM code after running the

Re: Pull request for u-boot-nand-20230108

2023-01-08 Thread Tom Rini
le in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-nand-flash.git > tags/u-boot-nand-20230108 > > for you to fetch changes up to 7363cf0581a3e70b3dbd346dec8b7ae652776f80: > > mtd: rawnand: omap_elm: u-boot driver model support (2023-01-08 > 10:38:50

Re: [PATCH 3/3] sunxi: fel: drop redundant "control register" save/restore

2023-01-08 Thread Samuel Holland
On 7/13/22 10:27, Andre Przywara wrote: > For some reasons shrouded in mystery, the code saving the FEL state was > saving the SCTLR register twice, with the second copy trying to justify > itself by using its ancient "control register" alias name. > > Drop the redundant second copy, both from

Re: [PATCH 1/3] sunxi: armv8: fel: load only 32-bit values

2023-01-08 Thread Samuel Holland
On 7/13/22 10:27, Andre Przywara wrote: > Both the values and the MMIO addresses that we need during the 64-bit FEL > restore are smaller than 2^32, so we don't need to do any 64-bit loads. > > Change the loads to only load 32 bits worth of data, that saves us some > bytes for storing the values.

Re: [PATCH v9 14/14] treewide: Disable USE_SPL_FIT_GENERATOR by default

2023-01-08 Thread Simon Glass
Hi Tom, On Sun, 8 Jan 2023 at 09:24, Tom Rini wrote: > > On Sun, Jan 08, 2023 at 09:20:09AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Sun, 8 Jan 2023 at 09:06, Tom Rini wrote: > > > > > > On Sun, Jan 08, 2023 at 08:48:37AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Sun,

[PATCH 1/1] efi_loader: add .rela sections to .text on arm64

2023-01-08 Thread Heinrich Schuchardt
_relocate() needs the information in .rela* for self relocation of the EFI binary. Fixes: d7ddeb66a6ce ("efi_loader: fix building aarch64 EFI binaries") Signed-off-by: Heinrich Schuchardt --- arch/arm/lib/elf_aarch64_efi.lds | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

Re: [PATCH v2 1/2] wandboard: Pass mmc aliases

2023-01-08 Thread Fabio Estevam
On Sun, Jan 8, 2023 at 11:58 AM Tom Rini wrote: > It's already been merged: > commit f827f84d3f5607d0b33e927f6127a888e7bd664f Ok, great! I haven't received any message saying it has been applied, so that's why I missed it. Thanks

Re: [PATCH 1/1] efi_loader: fix .reloc section of arm64

2023-01-08 Thread Heinrich Schuchardt
On 1/8/23 15:19, Heinrich Schuchardt wrote: When adding const unsigned short *menu_items[] = { u"abc\n", u"def\n", NULL }; to helloworld.c outside of a function and then referring to the variable in a function the pointer the reference is

Re: [PATCH] pylibfdt: Allow version normalization to fail

2023-01-08 Thread Tom Rini
On Sat, Jan 07, 2023 at 06:04:07PM -0500, Tom Rini wrote: > In some cases, we might not have the sic portion of setuputils > available. Make our import and use of this be done in try/except blocks > as this is done to suppress a run-time warning that is otherwise > non-fatal. > > Reported-by:

Re: [PATCH] distro_bootcmd: Fix copy-paste error

2023-01-08 Thread Tom Rini
On Thu, Jan 05, 2023 at 02:26:03AM +0100, Marek Vasut wrote: > The "SCRIPT FAILED" string is copied from scan_dev_for_scripts script, > update it so it prints "EXTLINUX FAILED" instead in scan_dev_for_extlinux > script. > > Signed-off-by: Marek Vasut Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] common/memsize.c: Check for overflow in get_effective_memsize() only for mpc85xx

2023-01-08 Thread Tom Rini
On Sat, Jan 07, 2023 at 10:55:26PM +0100, Pali Rohár wrote: > This reverts commit 777706bc ("common/memsize.c: Fix > get_effective_memsize() to check for overflow") for non-mpc85xx platforms. > > The changes to this generic function, which is intended to help with > 32bit platforms with

Re: [PATCH v9 14/14] treewide: Disable USE_SPL_FIT_GENERATOR by default

2023-01-08 Thread Tom Rini
On Sun, Jan 08, 2023 at 09:20:09AM -0700, Simon Glass wrote: > Hi Tom, > > On Sun, 8 Jan 2023 at 09:06, Tom Rini wrote: > > > > On Sun, Jan 08, 2023 at 08:48:37AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Sun, 8 Jan 2023 at 06:41, Tom Rini wrote: > > > > > > > > On Sat, Jan 07,

Re: [PATCH v9 14/14] treewide: Disable USE_SPL_FIT_GENERATOR by default

2023-01-08 Thread Simon Glass
Hi Tom, On Sun, 8 Jan 2023 at 09:06, Tom Rini wrote: > > On Sun, Jan 08, 2023 at 08:48:37AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Sun, 8 Jan 2023 at 06:41, Tom Rini wrote: > > > > > > On Sat, Jan 07, 2023 at 02:07:21PM -0700, Simon Glass wrote: > > > > > > > This option is deprecated

Re: Applying DTB Overlays from ATF on RZ/G2

2023-01-08 Thread Adam Ford
On Sat, Jan 7, 2023 at 6:01 AM Adam Ford wrote: > > On Wed, Jan 4, 2023 at 5:55 PM Marek Vasut wrote: > > > > On 1/5/23 00:48, Heinrich Schuchardt wrote: > > > Am 5. Januar 2023 00:19:36 MEZ schrieb Adam Ford : > > >> On Wed, Jan 4, 2023 at 5:15 PM Heinrich Schuchardt > > >> wrote: > > >>> > >

[PATCH v2] board: rockchip: Fix binman_init failure on EVB-RK3568

2023-01-08 Thread Jagan Teki
For some newer SoCs like RK3568, the Rockchip has not released any DDR drivers yet so idbloader needs to create manually using DDR binaries offered by rkbin. This indeed no requirement to enable TPL in the U-Boot source code. If we mark TPL disabled and mark BINMAN enabled by default then there

Re: [PATCH v9 14/14] treewide: Disable USE_SPL_FIT_GENERATOR by default

2023-01-08 Thread Tom Rini
On Sun, Jan 08, 2023 at 08:48:37AM -0700, Simon Glass wrote: > Hi Tom, > > On Sun, 8 Jan 2023 at 06:41, Tom Rini wrote: > > > > On Sat, Jan 07, 2023 at 02:07:21PM -0700, Simon Glass wrote: > > > > > This option is deprecated and only used by two boards. Enable it for just > > > those two boards,

Re: [PATCH v2 13/14] rockchip: Enable bootstage on rockpro64

2023-01-08 Thread Simon Glass
On Sat, 7 Jan 2023 at 14:57, Simon Glass wrote: > > This board is useful for benchmarking overall U-Boot performance. Enable > the bootstage feature so we get a report. > > Since this returns to the boot rom before finishing executing > board_init_r() in SPL, add a few bootstage calls so that we

Re: [PATCH v4 7/9] video: Use VIDEO_DAMAGE for VIDEO_COPY

2023-01-08 Thread Simon Glass
Hi Heinrich, On Sat, 7 Jan 2023 at 16:22, Heinrich Schuchardt wrote: > > On 1/7/23 01:13, Simon Glass wrote: > > Hi Alexander, > > > > On Tue, 3 Jan 2023 at 14:50, Alexander Graf wrote: > >> > >> CONFIG_VIDEO_COPY implemented a range based copying mechanism: If we > > > > range-based > > > >>

Re: [PATCH v9 14/14] treewide: Disable USE_SPL_FIT_GENERATOR by default

2023-01-08 Thread Simon Glass
Hi Tom, On Sun, 8 Jan 2023 at 06:41, Tom Rini wrote: > > On Sat, Jan 07, 2023 at 02:07:21PM -0700, Simon Glass wrote: > > > This option is deprecated and only used by two boards. Enable it for just > > those two boards, so others don't accidentally enable it. > > > > Signed-off-by: Simon Glass

Re: [PATCH 1/1] doc: building documentation

2023-01-08 Thread Simon Glass
Hi Tom, On Sun, 8 Jan 2023 at 06:44, Tom Rini wrote: > > On Sat, Jan 07, 2023 at 07:37:03PM -0700, Simon Glass wrote: > > Hi Heinrich, > > > > On Sat, 7 Jan 2023 at 17:11, Heinrich Schuchardt > > wrote: > > > > > > > > > > > > On 1/7/23 23:54, Simon Glass wrote: > > > > Hi Heinrich, > > > > > >

Re: [PATCH v2 1/2] wandboard: Pass mmc aliases

2023-01-08 Thread Tom Rini
On Sun, Jan 08, 2023 at 08:36:21AM -0300, Fabio Estevam wrote: > Hi Tom, > > On Tue, Jan 3, 2023 at 8:00 AM Fabio Estevam wrote: > > > > Hi Tom and Stefano, > > > > On Fri, Nov 4, 2022 at 8:13 AM Fabio Estevam wrote: > > > > > > From: Fabio Estevam > > > > > > Originally, the mmc aliases node

Re: [PATCH] board: sifive: unmatched: enable booting on a second NVME device

2023-01-08 Thread Maciej W. Rozycki
On Sun, 8 Jan 2023, Heinrich Schuchardt wrote: > > diff --git a/include/configs/sifive-unmatched.h > > b/include/configs/sifive-unmatched.h > > index 85fab92719..9261932af9 100644 > > --- a/include/configs/sifive-unmatched.h > > +++ b/include/configs/sifive-unmatched.h > > @@ -19,6 +19,7 @@ > >

[PATCH 1/1] efi_loader: fix .reloc section of arm64

2023-01-08 Thread Heinrich Schuchardt
When adding const unsigned short *menu_items[] = { u"abc\n", u"def\n", NULL }; to helloworld.c outside of a function and then referring to the variable in a function the pointer the reference is incorrect. This is due to not considering the generated

Re: [PATCH 1/1] doc: building documentation

2023-01-08 Thread Tom Rini
On Sat, Jan 07, 2023 at 07:37:03PM -0700, Simon Glass wrote: > Hi Heinrich, > > On Sat, 7 Jan 2023 at 17:11, Heinrich Schuchardt > wrote: > > > > > > > > On 1/7/23 23:54, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Sat, 7 Jan 2023 at 15:16, Heinrich Schuchardt > > > wrote: > > >> > >

Re: [PATCH v9 14/14] treewide: Disable USE_SPL_FIT_GENERATOR by default

2023-01-08 Thread Tom Rini
On Sat, Jan 07, 2023 at 02:07:21PM -0700, Simon Glass wrote: > This option is deprecated and only used by two boards. Enable it for just > those two boards, so others don't accidentally enable it. > > Signed-off-by: Simon Glass [snip] > diff --git a/boot/Kconfig b/boot/Kconfig > index

Status of dma-range issues with BCM2711

2023-01-08 Thread Stefan Wahren
Hi, there has been some attempts to fix the booting issues of newer Raspberry Pi 4 (BCM2711 C0) [1] [2]. Since none of them has been applied yet, i wanted to know the status of this? Best regards [1] - https://lists.denx.de/pipermail/u-boot/2022-August/491455.html [2] -

Pull request for u-boot-nand-20230108

2023-01-08 Thread Dario Binacchi
-20230108 for you to fetch changes up to 7363cf0581a3e70b3dbd346dec8b7ae652776f80: mtd: rawnand: omap_elm: u-boot driver model support (2023-01-08 10:38:50 +0100) Gitlab CI showed no issues: https://source.denx.de/u-boot/custodians/u-boot-nand-flash/-/pipelines/14646

Re: [PATCH v2 1/2] wandboard: Pass mmc aliases

2023-01-08 Thread Fabio Estevam
Hi Tom, On Tue, Jan 3, 2023 at 8:00 AM Fabio Estevam wrote: > > Hi Tom and Stefano, > > On Fri, Nov 4, 2022 at 8:13 AM Fabio Estevam wrote: > > > > From: Fabio Estevam > > > > Originally, the mmc aliases node was present in imx6qdl-wandboard.dtsi. > > > > After the sync with Linux in commit

Re: [PATCH v2 48/71] bootstd: Support reading the device tree with EFI

2023-01-08 Thread Mark Kettenis
> From: Simon Glass > Date: Sat, 7 Jan 2023 19:50:24 -0700 > > With EFI booting the device tree is required but is not actually specified > in any way. The normal method is to use a fdtfile environment variable to > get the filename, then look for that file on the media. > > Implement this in

[PATCH] doc: fix references to distro documentation

2023-01-08 Thread Dario Binacchi
Commit 37c5195dfcd157 ("doc: Move distro boot doc to rST") renamed doc/README.distro to doc/develop/distro.rst. Signed-off-by: Dario Binacchi --- doc/README.gpt | 2 +- doc/README.uniphier | 2 +- doc/board/emulation/qemu-x86.rst | 2 +- doc/board/st/stm32mp1.rst

Re: Pull request for u-boot-nand-20230104

2023-01-08 Thread Roger Quadros
On 07/01/2023 20:46, Dario Binacchi wrote: > Hi, > > On Sat, Jan 7, 2023 at 7:36 PM Tom Rini wrote: >> >> On Sat, Jan 07, 2023 at 07:32:51PM +0100, Dario Binacchi wrote: >>> Hi, >>> >>> On Sat, Jan 7, 2023 at 6:30 PM Tom Rini wrote: On Sat, Jan 07, 2023 at 04:48:02PM +0200, Roger