Re: [PATCH 01/11] imx: implement get_effective_memsize

2022-11-06 Thread Pali Rohár
On Monday 07 November 2022 16:00:06 Peng Fan (OSS) wrote: > From: Peng Fan > > To i.MX6/7 which has 2GB memory, the upper 4KB cut off, will cause the > top 1MB not mapped as normal memory, because ARMV7-A use section > mapping. So implement i.MX6/7 specific get_effective_memsize to fix the > issu

Re: Running u-boot standalone hello_world on an image partition with qemu

2022-11-06 Thread Lists Nick Betteridge
Hi Simon, Thanks for the reply Does qemu have RAM at 0x4? Can you use 'md' to check that region? I am not sure why it is restarting when you load something there, but that might be unrelated to U-Boot and more to do with QEMU? You're right, this could easily be a qemu issue - there cert

[PATCH 2/2] imx: mx6sabresd: convert to DM_I2C

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan Convert to DM_I2C Signed-off-by: Peng Fan --- configs/mx6sabresd_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 43c668ce5af..d8f4d99295f 100644 --- a/configs/mx6sabresd_defconfig +++

[PATCH 1/2] imx: mx6sabreauto: convert to DM_I2C

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan Convert to DM_I2C Signed-off-by: Peng Fan --- configs/mx6sabreauto_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 2566f2a97fc..405f8f3d549 100644 --- a/configs/mx6sabreauto_defco

[PATCH 11/11] imx: mx6sabresd: select DM_SERIAL

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan Select DM_SERIAL Signed-off-by: Peng Fan --- configs/mx6sabresd_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 26cee0eae60..43c668ce5af 100644 --- a/configs/mx6sabresd_defconfig +++ b/configs/mx6sab

[PATCH 10/11] imx: mx6sabreauto_defconfig: select DM_SERIAL

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan Select DM_SERIAL Signed-off-by: Peng Fan --- configs/mx6sabreauto_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index bf6aff8e48e..2566f2a97fc 100644 --- a/configs/mx6sabreauto_defconfig +++ b/config

[PATCH 09/11] imx: mx6sxsabreauto: select DM_SERIAL

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan Select DM_SERIAL Signed-off-by: Peng Fan --- arch/arm/dts/imx6sx-sabreauto-u-boot.dtsi | 4 board/freescale/mx6sxsabreauto/mx6sxsabreauto.c | 16 configs/mx6sxsabreauto_defconfig| 1 + 3 files changed, 5 insertions(+), 16 deletions(-

[PATCH 08/11] imx: mx6ul_evk: select DM_SERIAL

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan Select DM_SERIAL Signed-off-by: Peng Fan --- configs/mx6ul_14x14_evk_defconfig | 1 + configs/mx6ul_9x9_evk_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/mx6ul_14x14_evk_defconfig b/configs/mx6ul_14x14_evk_defconfig index 1f1bff1e0c7..bd7b4211c76 100

[PATCH 07/11] imx: mx6slevk: select DM_SERIAL

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan Select DM_SERIAL Signed-off-by: Peng Fan --- configs/mx6slevk_defconfig| 1 + configs/mx6slevk_spinor_defconfig | 1 + configs/mx6slevk_spl_defconfig| 1 + 3 files changed, 3 insertions(+) diff --git a/configs/mx6slevk_defconfig b/configs/mx6slevk_defconfig index 01

[PATCH 06/11] imx: mx6sllevk: select DM_SERIAL

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan Select DM_SERIAL Signed-off-by: Peng Fan --- arch/arm/dts/imx6sll-evk-u-boot.dtsi | 8 board/freescale/mx6sllevk/mx6sllevk.c | 16 configs/mx6sllevk_defconfig | 1 + configs/mx6sllevk_plugin_defconfig| 1 + 4 files changed, 10 insertio

[PATCH 05/11] imx: mx6sllevk: correct pmic name

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan The prefix 0 has been dropped in dts, so correct in board file Signed-off-by: Peng Fan --- board/freescale/mx6sllevk/mx6sllevk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/mx6sllevk/mx6sllevk.c b/board/freescale/mx6sllevk/mx6sllevk.c ind

[PATCH 04/11] imx: mx6ull/z_14x14_evk: clean up UART iomux

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan After DM_SERIAL, and set pinctrl_uart1 as pre-reloc, no need initialize iomux at board file. Signed-off-by: Peng Fan --- arch/arm/dts/imx6ull-14x14-evk-u-boot.dtsi | 8 arch/arm/dts/imx6ulz-14x14-evk-u-boot.dtsi | 8 board/freescale/mx6ullevk/mx6ullevk.c

[PATCH 03/11] imx: mx6ulz: select DM_SERIAL

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan Select DM_SERIAL Signed-off-by: Peng Fan --- configs/mx6ulz_14x14_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6ulz_14x14_evk_defconfig b/configs/mx6ulz_14x14_evk_defconfig index 0c1b442b682..2df2ccd2681 100644 --- a/configs/mx6ulz_14x14_evk_defco

[PATCH 02/11] imx: mx6ull_14x14_evk: select DM_SERIAL

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan Select DM_SERIAL Signed-off-by: Peng Fan --- configs/mx6ull_14x14_evk_defconfig| 1 + configs/mx6ull_14x14_evk_plugin_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/mx6ull_14x14_evk_defconfig b/configs/mx6ull_14x14_evk_defconfig index 65db621f15

[PATCH 01/11] imx: implement get_effective_memsize

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan To i.MX6/7 which has 2GB memory, the upper 4KB cut off, will cause the top 1MB not mapped as normal memory, because ARMV7-A use section mapping. So implement i.MX6/7 specific get_effective_memsize to fix the issue. Fixes: 777706bc("common/memsize.c: Fix get_effective_memsize()

[PATCH 00/11] imx: convert to DM_SERIAL

2022-11-06 Thread Peng Fan (OSS)
From: Peng Fan This patchset is to convert mx6ull/z_evk, mx6sl[l]evk, mx6sxsbareauto, mx6sabreauto, mx6sabresd to DM_SERIAL Patch 1 is a fix found when testing mx6sllevk Peng Fan (11): imx: implement get_effective_memsize imx: mx6ull_14x14_evk: select DM_SERIAL imx: mx6ulz: select DM_SERI

Re: [PATCH v3 0/3] rockpi4: Add capsule update support

2022-11-06 Thread Sughosh Ganu
hi Kever, On Wed, 2 Nov 2022 at 14:53, Kever Yang wrote: > > > On 2022/11/2 14:21, Sughosh Ganu wrote: > > hi Tom, > > > > On Wed, 14 Sept 2022 at 15:40, Sughosh Ganu wrote: > >> > >> Add capsule update support for the RockPi4B and RockPi4C > >> boards. Support is being added for updating the id

Re: [PATCH] Makefile: Rename u-boot-spl.kwb to u-boot-with-spl.kwb

2022-11-06 Thread Stefan Roese
Hi Pali, On 06.11.22 22:21, Pali Rohár wrote: Stefan, it is OK now? Yes, I think so. I'm just now running a CI world build and will push this shortly if no problems show up: Reviewed-by: Stefan Roese Thanks, Stefan On Wednesday 02 November 2022 18:51:28 Pali Rohár wrote: File name with p

Re: [PATCH v6 1/6] arm: mvebu: Don't use CONFIG_TIMER on ARM64

2022-11-06 Thread Stefan Roese
On 05.11.22 05:23, Chris Packham wrote: The 64-bit mvebu SoCs don't have a suitable timer driver so add a !ARM64 condition to the select. Fixes: 7b530bb19e ("arm: mvebu: Use CONFIG_TIMER on all MVEBU & KIRKWOOD platforms") Signed-off-by: Chris Packham --- (no changes since v1) arch/arm/Kco

Re: [PATCH v3 4/8] arm: mvebu: Use CONFIG_TIMER on all MVEBU & KIRKWOOD platforms

2022-11-06 Thread Stefan Roese
Hi Chris, On 05.11.22 05:08, Chris Packham wrote: On Sat, Nov 5, 2022 at 5:03 PM Chris Packham wrote: Hi Stefan, On Fri, Sep 16, 2022 at 2:23 AM Stefan Roese wrote: Now that the new timer support is available for these platforms, let's select this IF for all these platforms. This way it's

Re: [PATCH v6 3/5] eficonfig: refactor change boot order implementation

2022-11-06 Thread Masahisa Kojima
Hi Ilias, On Sat, 5 Nov 2022 at 07:08, Ilias Apalodimas wrote: > > Hi Kojima-san > > On Wed, Oct 26, 2022 at 07:43:43PM +0900, Masahisa Kojima wrote: > > This commit refactors change boot order implementation > > to use 'eficonfig_entry' structure. > > Please add an explanation on why we are doin

Re: [PATCH v6 4/5] eficonfig: add UEFI Secure Boot Key enrollment interface

2022-11-06 Thread Masahisa Kojima
Hi Ilias, On Sat, 5 Nov 2022 at 06:46, Ilias Apalodimas wrote: > > Hi Kojima-san > > On Wed, Oct 26, 2022 at 07:43:44PM +0900, Masahisa Kojima wrote: > > This commit adds the menu-driven UEFI Secure Boot Key > > enrollment interface. User can enroll the PK, KEK, db > > and dbx by selecting EFI Si

[PATCH v2] power: regulator: Add support for NPCM8xx

2022-11-06 Thread Jim Liu
Add support for setting nuvoton BMC NPCM845 voltage supply. Signed-off-by: Jim Liu --- Changes for v2: - modify Kconfig description - modify get_value function --- drivers/power/regulator/Kconfig | 8 ++ drivers/power/regulator/Makefile| 1 + drivers/power/regul

Re: [PATCH v6 2/5] eficonfig: expose append entry function

2022-11-06 Thread Masahisa Kojima
On Sat, 5 Nov 2022 at 00:16, Ilias Apalodimas wrote: > > Hi Kojima-san > > On Wed, Oct 26, 2022 at 07:43:42PM +0900, Masahisa Kojima wrote: > > This commit exposes the eficonfig menu entry append function. > > Can we update the description to something we could look up in the future? > e.g > 'Foll

Re: [PATCH v6 1/5] eficonfig: refactor eficonfig_select_file_handler()

2022-11-06 Thread Masahisa Kojima
"Hi Ilias, On Sat, 5 Nov 2022 at 00:12, Ilias Apalodimas wrote: > > Hi Kojima-san > > I think there's some information missing from the commit message. > > On Wed, Oct 26, 2022 at 07:43:41PM +0900, Masahisa Kojima wrote: > > eficonfig_select_file_handler() is commonly used to select the > > file.

[PATCH] tools: mkenvimage: Drop duplicate crc header include

2022-11-06 Thread Marek Vasut
This header was already included just above version.h, do not include it twice. Fixes: 3db71108575 ("crc32: Use the crc.h header for crc functions") Signed-off-by: Marek Vasut --- Cc: Simon Glass Cc: Tom Rini --- tools/mkenvimage.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/mkenv

Re: [PATCH v4 2/8] imxrt1020: migrate to build system included -u-boot.dtsi

2022-11-06 Thread Giulio Benetti
Hi Marcel, On 05/11/22 12:30, Marcel Ziswiler wrote: From: Marcel Ziswiler Migrate to using automatic build system included -u-boot.dtsi device tree include files. Signed-off-by: Marcel Ziswiler Reviewed-by: Giulio Benetti and: Tested-by: Giulio Benetti -- Giulio Benetti CEO/CTO@Benetti

[PATCH v4 6/7] rockchip: Drop the FIT generator script

2022-11-06 Thread Simon Glass
This is not used anymore. Drop it. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add support for writing sections in binman - Rebase to master Changes in v2: - Drop patches previously applied - Add various suggestions from Alper Nebi Yasak - Add patches to refactor binm

[PATCH v4 5/7] rockchip: Convert all boards to use binman

2022-11-06 Thread Simon Glass
Instead of the bash script, use binman to generate the FIT for arm64. For 32-bit boards, use binman for all images, dropping the intermediate files. With this change, only Zynq is now using SPL_FIT_GENERATOR so update the Kconfig rule accordingly. Clean up the Makefile to the extent possible. Un

[PATCH v4 4/7] rockchip: Support building the all output files in binman

2022-11-06 Thread Simon Glass
Add the required binman images to replace the Makefile rules which are currently used. This includes subsuming: - tpl/u-boot-tpl-rockchip.bin if TPL is enabled - idbloader.img if either or both of SPL and TPL are enabled - u-boot.itb if SPL_FIT is enabled - u-boot-rockchip.bin if SPL i

[PATCH v4 3/7] rockchip: Include binman script in 64-bit boards

2022-11-06 Thread Simon Glass
Include the rockchip-u-boot.dtsi file with 64-bit boards and enable binman so that these boards can also use it, rather than using special Makefile rules and scripts. This does not change the Makefile nor remove any scripts, but sets it up so that this is possible. Signed-off-by: Simon Glass Rev

[PATCH v4 2/7] rockchip: evb-rk3288: Drop raw-image support

2022-11-06 Thread Simon Glass
This boards uses SPL_FIT so does not need to support loading a raw image. Drop it to avoid binman trying to insert a symbol which has no value. Signed-off-by: Simon Glass --- (no changes since v1) configs/evb-rk3288_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/evb-rk32

[PATCH v4 1/7] binman: Allow writing section contents to a file

2022-11-06 Thread Simon Glass
At present only the image (which is a section) has a filename. Move this implementation to the entry_Section class so that any section can have a filename. With this, the section data is written to a file. This allows parts of an image to be written, along with the entire image. Signed-off-by: Si

Re: [PATCH 00/22] sunxi: Prepare platform Kconfig to support multiple architectures

2022-11-06 Thread Samuel Holland
On 11/3/22 11:46, Andre Przywara wrote: > On Tue, 1 Nov 2022 00:08:12 -0500 > Samuel Holland wrote: > > Hi Samuel, > >> sunxi is getting a new RISC-V platform, D1. We want to share as much of >> the existing configuration as possible, to provide a familiar >> environment, DRAM layout, partition

Re: [PATCH] efi: arm,arm64: Fix relocations from not being loaded

2022-11-06 Thread Heinrich Schuchardt
Am 6. November 2022 19:36:15 MEZ schrieb Patrick Zacharias : >I created a GitHub repository demonstrating the issue, together with >instructions on how to build it. > >https://github.com/Fighter19/hello-world-arm-efi Please, check the instructions in https://doc.rust-lang.org/rustc/platform-sup

Re: [PATCH] efi: arm,arm64: Fix relocations from not being loaded

2022-11-06 Thread Heinrich Schuchardt
Am 6. November 2022 18:03:09 MEZ schrieb Patrick Zacharias : >Hi Heinrich, > >Thanks for the information, I'll make sure to use it for future contributions. > >I encountered this issue, while building a custom EFI application using Rust >by linking >the following files: > >./arch/arm/lib/reloc_ar

Re: [PATCH] Makefile: Rename u-boot-spl.kwb to u-boot-with-spl.kwb

2022-11-06 Thread Pali Rohár
Stefan, it is OK now? On Wednesday 02 November 2022 18:51:28 Pali Rohár wrote: > File name with pattern u-boot-spl* is used on all places except in kwb > image for binary with SPL-only code. Combined binary with both SPL and > proper U-Boot in other places has file name pattern u-boot-with-spl*. >

Re: [u-boot][PATCH 07/14] mtd: rawnand: nand_spl_loaders: Fix cast type build warning

2022-11-06 Thread Michael Nazzareno Trimarchi
On Tue, Oct 11, 2022 at 1:50 PM Roger Quadros wrote: > > Fixes the below build warning on 64-bit platforms. > > drivers/mtd/nand/raw/nand_spl_loaders.c:26:21: warning: cast from pointer to > integer of different size [-Wpointer-to-int-cast] > dst = (void *)((int)dst - page_offset); > > Sign

Re: [PATCH] efi: arm,arm64: Fix relocations from not being loaded

2022-11-06 Thread Patrick Zacharias
I created a GitHub repository demonstrating the issue, together with instructions on how to build it. https://github.com/Fighter19/hello-world-arm-efi Currently, when using the old linker file, it will crash. Personally, to test it, I built U-Boot for QEMU and loaded the EFI file via TFTP. A

[RFC v2 2/2] mkimage: Align fdt images in FIT to 8 bytes

2022-11-06 Thread Bjørn Mork
"In place" configurations are strongly discouraged, but known to be used. This can cause hard to debug alignment problems since the value of the "data" property only is guaranteed to be 4-byte aligned. Unconditionally aligning fdt images to 8 byte boundaries will prevent these problems, at the ma

[RFC v2 1/2] libfdt: add fdt_alignprop

2022-11-06 Thread Bjørn Mork
Properties are sometimes used to store data with stricter alignment requirements than the 4-byte fdt tag alignment. Aligning the offset of the property data will alloe a client to directly address it, without reloaction, provided the fdt is loaded on a similarily aligned boundary. One known use-ca

[RFC v2 0/2] Prevent alignment issues with "in place" FIT configurations

2022-11-06 Thread Bjørn Mork
Looking for some feedback on whether this is a problem wanting to be solved, and if so, whether this solution would be acceptible (after some polishing). I recently hit alignment issues on a device where U-Boot has been modified to force "in place" fdt loading regardless of the fdt_high environmen

Re: [PATCH] efi: arm,arm64: Fix relocations from not being loaded

2022-11-06 Thread Patrick Zacharias
Hi Heinrich, Thanks for the information, I'll make sure to use it for future contributions. I encountered this issue, while building a custom EFI application using Rust by linking the following files: ./arch/arm/lib/reloc_arm_efi.c ./arch/arm/lib/crt0_arm_efi.S ./arch/arm/lib/elf_arm_efi.ld

[PATCH v3 4/9] buildman: Convert documentation to rST

2022-11-06 Thread Simon Glass
Convert the buildman documentation to rST format and include it in the 'build' section. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to convert documentation to rST doc/build/buildman.rst |1 + doc/build/index.rst |1 + tools/buildman/README | 1349 -

Pull request for efi-2023-01-rc1-4

2022-11-06 Thread Heinrich Schuchardt
The following changes since commit 36bc9b6113ca96ca5c0d821195adede38395befd: Merge branch '2022-11-02-assorted-updates' (2022-11-03 08:29:10 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2023-01-rc1-4 for you to fetch chan

Re: [PULL] u-boot-usb/master

2022-11-06 Thread Tom Rini
On Fri, Nov 04, 2022 at 04:18:35PM +0100, Marek Vasut wrote: > The following changes since commit 36bc9b6113ca96ca5c0d821195adede38395befd: > > Merge branch '2022-11-02-assorted-updates' (2022-11-03 08:29:10 -0400) > > are available in the Git repository at: > > git://source.denx.de/u-boot-

Re: [PULL] u-boot-mips

2022-11-06 Thread Tom Rini
On Thu, Nov 03, 2022 at 10:51:23PM +0100, Daniel Schwierzeck wrote: > Hi Tom, > > please pull the Kconfig migration for CONFIG_SYS_MIPS_TIMER_FREQ as well as > the mtmips bugfix > for the incorrectly converted default value for CONFIG_SPL_PAD_TO. > > Gitlab: > https://source.denx.de/u-boot/cu

Re: [PATCH 1/1] MAINTAINERS: add arch/arm/lib/*_efi.* to EFI_PAYLOAD

2022-11-06 Thread Ilias Apalodimas
On Sun, 6 Nov 2022 at 11:26, Heinrich Schuchardt wrote: > > The files arch/arm/lib/*_efi.* are only relevant for the UEFI sub-system. > > Signed-off-by: Heinrich Schuchardt > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 1cf99c1393..

Re: [PATCH] doc: board: j721e_evm: Add DM firmware steps

2022-11-06 Thread Heinrich Schuchardt
On 11/1/22 15:06, Andrew Davis wrote: On 10/7/22 6:47 PM, Heinrich Schuchardt wrote: On 10/7/22 22:37, Andrew Davis wrote: J721e needs DM firmware when using updated SYSFW. Add steps to fetch, build, and deploy the same. Signed-off-by: Andrew Davis ---   doc/board/ti/j721e_evm.rst | 16 ++

[PATCH 1/1] MAINTAINERS: add arch/arm/lib/*_efi.* to EFI_PAYLOAD

2022-11-06 Thread Heinrich Schuchardt
The files arch/arm/lib/*_efi.* are only relevant for the UEFI sub-system. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1cf99c1393..8d3d528650 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -879,6 +879,7 @@ M

Re: [PATCH] efi: arm,arm64: Fix relocations from not being loaded

2022-11-06 Thread Heinrich Schuchardt
On 10/31/22 21:01, Patrick Zacharias wrote: Prior to this commit, the relocations would not get loaded by the efi loader. This lead to none of the relocations being applied. Signed-off-by: Fighter19 <1475802+fighte...@users.noreply.github.com> Thanks Patrick for your contribution. You can us