[PATCH 4/4] arm64: versal-net: Add DTSes for mini qspi/ospi configuration

2023-10-26 Thread Michal Simek
Mini U-Boot is running out of OCM and it's only purpose is to program non volatile memories. There are different configurations which ospi/qspi can be that's why describe them via DT. DT binding is already approved that's why there is no reason not to add it. Signed-off-by: Michal Simek --- Supp

[PATCH 3/4] arm64: versal: Add DTSes for mini qspi/ospi configuration

2023-10-26 Thread Michal Simek
Mini U-Boot is running out of OCM and it's only purpose is to program non volatile memories. There are different configurations which ospi/qspi can be that's why describe them via DT. DT binding is already approved that's why there is no reason not to add it. Signed-off-by: Michal Simek --- Supp

[PATCH 2/4] ARM: zynq: Add DTSes for mini qspi configurations

2023-10-26 Thread Michal Simek
Mini U-Boot is running out of OCM and it's only purpose is to program non volatile memories. There are different configurations which qspi can be that's why describe them via DT. DT binding is already approved that's why there is no reason not to add it. Signed-off-by: Michal Simek --- Core supp

[PATCH 1/4] ARM: zynq: Add DTSes for mini qspi configurations

2023-10-26 Thread Michal Simek
Mini U-Boot is running out of OCM and it's only purpose is to program non volatile memories. There are different configurations which qspi can be that's why describe them via DT. DT binding is already approved that's why there is no reason not to add it. Signed-off-by: Michal Simek --- Core supp

[PATCH 0/4] xilinx: Add DTSes for mini qspi/ospi configuration

2023-10-26 Thread Michal Simek
Hi, we are using U-Boot mini configurations for years. We already upstream configurations for mtest, single qspi/ospi or emmcs for all Xilinx SOCs. But we didn't push configuration for different qspi/ospi configurations which were missing upstream dt description. This has changed some time ago by:

[PATCH] configs: khadas-vim3*_android: fix environment saving

2023-10-26 Thread Mattijs Korpershoek
AVB=y CONFIG_OF_CONTROL=y +CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_SYS_MMC_ENV_DEV=2 +CONFIG_SYS_MMC_ENV_PART=2 CONFIG_ADC=y CONFIG_SARADC_MESON=y CONFIG_BUTTON=y --- base-commit: 14a21f1a80afc58d52dc72e35f27d3a47d36c082 change-id: 20231026-fix-saveenv-eb5484622282 Best regards, -- Mattijs Korpershoek

Re: [RFC PATCH 1/5] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-10-26 Thread Tom Rini
On Mon, Oct 23, 2023 at 05:41:10PM +0530, Devarsh Thakkar wrote: > Hi Simon, > > Thanks for the review. > > On 19/10/23 19:26, Simon Glass wrote: > > Hi Devarsh, > > > > On Mon, 16 Oct 2023 at 10:06, Devarsh Thakkar wrote: > >> > >> Move the function to setup video memory before page table > >>

Re: [PATCH 3/3] arm64: boot: Support Flat Image Tree

2023-10-26 Thread Masahiro Yamada
On Thu, Oct 26, 2023 at 4:28 PM Simon Glass wrote: > > Add a script which produces a Flat Image Tree (FIT), a single file > containing the built kernel and associated devicetree files. > Compression defaults to gzip which gives a good balance of size and > performance. > > The files compress from

Re: [PATCH 1/1] [u-boot][master][PATCH v5] pico-imx7d: add baseboard SD card boot detect

2023-10-26 Thread Fabio Estevam
On Sat, Oct 21, 2023 at 9:40 AM wrote: > > From: Benjamin Szőke > > Technexion PICO-IMX7 SoM is supporting USDHC3 (eMMC or micro SD on SoM) > and USDHC1 (SD on carrier board) to use on any carrier board like > PICO-NYMPH. This pacth is intend to take over codes from Technexion > to support mmc au

Re: Starting kernel invokes "Synchronous Abort" - rk3328

2023-10-26 Thread Konstantin Kletschke
Sorry, I pasted not the Dusun u-boot reloactaion address excerpt: On Thu, Oct 26, 2023 at 02:41:35PM +0200, Konstantin Kletschke wrote: > The Dusun u-boot says: Model: Rockchip RK3328 EVB PreSerial: 2 DRAM: 2 GiB Sysmem: init Relocation Offset is: 7dbed000 Using default environment -- INSIDE

Starting kernel invokes "Synchronous Abort" - rk3328

2023-10-26 Thread Konstantin Kletschke
Dear u-boot community, I have a rockchip rk3328 Board here I am trying to boot linux kernel upon. It is a Dusun DSGW-210 which seems to resemble the setup board=evb_rk3328 board_name=evb_rk3328 Dusun offers a SDK which they claim to be working in their system, the rootfs can be a debian or a buil

Re: [RESEND PATCH] board: ti: common: board_detect: Fix EEPROM offset read for 1-byte

2023-10-26 Thread Prasanth Mantena
On 20:52-20231020, Kumar, Udit wrote: > Thanks Prasanth > > On 10/20/2023 12:31 PM, Prasanth Babu Mantena wrote: > > EEPROM detection logic in ti_i2c_eeprom_get() involves reading the total > > size followed by reading 1-byte size with an offset 1. This commit fixes > > the header matching issue i

[PATCH v2] board: ti: common: board_detect: Fix EEPROM offset read for 1-byte

2023-10-26 Thread Prasanth Babu Mantena
EEPROM detection logic in ti_i2c_eeprom_get() involves reading the total size followed by reading 1-byte size with an offset 1. This commit fixes the header matching issue in commit 9f393a2d7af8 ("board: ti: common: board_detect: Fix EEPROM read quirk for 2-byte"). In the previous commit, the valu

[PATCH 3/3] corstone1000: enable PSCI reset

2023-10-26 Thread abdellatif . elkhlifi
From: Emekcan Aras enable PSCI reset used for the system reset Even though Corstone-1000 does not implement the entire PSCI APIs, it relies on PSCI reset interface for the system reset. Signed-off-by: Emekcan Aras Signed-off-by: Abdellatif El Khlifi --- configs/corstone1000_defconfig | 2 +-

[PATCH 1/3] corstone1000: add compressed kernel support

2023-10-26 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi unzip the kernel before executing it The Corstone-1000 kernel has become too large to fit in the available storage. Switching to a compressed kernel avoids the problem, but requires uncompressing it. Changes made are generated using savedefconfig. Signed-off-by: Abd

[PATCH 2/3] corstone1000: enable distro booting command

2023-10-26 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi enable distro_bootcmd Signed-off-by: Abdellatif El Khlifi Signed-off-by: Rui Miguel Silva --- include/configs/corstone1000.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/corstone1000.h b/include/configs/corstone1000.h index 3

[PATCH 0/3] Corstone-1000: enable platform specific configs

2023-10-26 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi This patchset enables configs needed by the Corstone-1000 platform. The enabled configs allow the following: - unzip the kernel before executing it (the kernel has become too large to fit in the available storage) - enable distro_bootcmd (needed to boot distros fro

Re: [RFC 02/13] cmd: bootefi: re-organize do_bootefi_image()

2023-10-26 Thread Tom Rini
On Thu, Oct 26, 2023 at 12:44:00PM +0200, Heinrich Schuchardt wrote: > On 10/26/23 07:30, AKASHI Takahiro wrote: > > Decompose and re-organize do_bootefi_image() into three parts for > > the succeeding refactor work. > > > > Signed-off-by: AKASHI Takahiro > > --- > > cmd/Kconfig | 15 +

Re: [RFC 11/13] fs: remove explicit efi configuration dependency

2023-10-26 Thread Tom Rini
On Thu, Oct 26, 2023 at 05:48:30PM +0900, AKASHI Takahiro wrote: > On Thu, Oct 26, 2023 at 09:58:53AM +0200, Heinrich Schuchardt wrote: > > > > > > Am 26. Oktober 2023 07:30:50 MESZ schrieb AKASHI Takahiro > > : > > >Now it is clear that the feature actually depends on efi interfaces, > > >not "

Re: [RFC 00/13] cmd: bootefi: refactor the code for bootmgr

2023-10-26 Thread Tom Rini
On Thu, Oct 26, 2023 at 02:30:39PM +0900, AKASHI Takahiro wrote: > This patch set is motivated by the discussion[1] regarding > CONFIG_BOOTEFI_BOOTMGR option. > > At the end, bootefi.c will be decomposed into two parts, one for > providing the command itself and one for implementing helper functi

Re: [RFC 13/13] block: rkmtd: select CONFIG_RANDOM_UUID explicitly

2023-10-26 Thread Tom Rini
On Thu, Oct 26, 2023 at 02:30:52PM +0900, AKASHI Takahiro wrote: > This option is necessary to compile any way. > > Signed-off-by: AKASHI Takahiro > --- > drivers/block/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig > index 048a6c

Re: [RFC 12/13] lib: uuid: move CONFIG_RANDOM_UUID

2023-10-26 Thread Tom Rini
On Thu, Oct 26, 2023 at 02:30:51PM +0900, AKASHI Takahiro wrote: > This option is independent from any commands and should be managed > under lib. For instance, drivers/block/rkmtd.c is a user. > > It would be better to remove this configuration. > > Signed-off-by: AKASHI Takahiro Reviewed-by:

[PATCH] imx8mp_evk: Select CONFIG_NET_RANDOM_ETHADDR

2023-10-26 Thread Fabio Estevam
From: Fabio Estevam On an early revision of the imx8mp-evk that I have access to, the MAC addresses fuses are not programmed, causing failure to bring the Ethernet interfaces. Fix this problema by selecting CONFIG_NET_RANDOM_ETHADDR so that random MAC addresses are assigned and the Ethernet port

Setting PMIC regulator voltage in U-Boot SPL, to specify DDR voltage

2023-10-26 Thread Chris Richardson
Hi, I'm working on a board with an Allwinner H6 that uses an AXP805 PMIC. I'm using DDR3-1600, which requires 1.4V. In my boot.cmd, I am doing the following - regulator dev dcdce regulator value 140 regulator enable To set the voltage to 1.4V in U-Boot proper, this avoids memory issues, su

Re: [RESEND PATCH] board: ti: common: board_detect: Fix EEPROM offset read for 1-byte

2023-10-26 Thread Prasanth Mantena
On 13:05-20231020, Nishanth Menon wrote: > On 20:52-20231020, Kumar, Udit wrote: > > Thanks Prasanth > > > > On 10/20/2023 12:31 PM, Prasanth Babu Mantena wrote: > > > EEPROM detection logic in ti_i2c_eeprom_get() involves reading the total > > > size followed by reading 1-byte size with an offset

[PATCH v4] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-10-26 Thread Michel Alex
Calculate the maximum length of the buffer when writing across the page boundary. If the buffer length (len) exceeds the page boundary (pagesize), split it. Use this length instead of comparing the length with the pagesize, because if the write start address (offset) is not at the beginning of a pa

AW: [PATCH v2] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-10-26 Thread Michel Alex
Hi Tom, > We don't need to promote the types to unsigned here do we? You are right, I will provide a new version of my patch where I will change all "unsigned int" 's to int's. Alex

Re: [RFC 01/13] cmd: bootefi: unfold do_bootefi_image()

2023-10-26 Thread Heinrich Schuchardt
On 10/26/23 07:30, AKASHI Takahiro wrote: Unfold do_bootefi_image() into do_bootefi() for the sake of the succeeding refactor work. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 101 ++ 1 file changed, 37 insertions(+), 64 deletions(-) di

Re: [RFC 02/13] cmd: bootefi: re-organize do_bootefi_image()

2023-10-26 Thread Heinrich Schuchardt
On 10/26/23 07:30, AKASHI Takahiro wrote: Decompose and re-organize do_bootefi_image() into three parts for the succeeding refactor work. Signed-off-by: AKASHI Takahiro --- cmd/Kconfig | 15 ++-- cmd/bootefi.c| 82 ++-- include/ef

Re: [PATCH 1/8] clk/qcom: move from mach-snapdragon

2023-10-26 Thread Sumit Garg
On Thu, 26 Oct 2023 at 15:45, Sumit Garg wrote: > > On Wed, 25 Oct 2023 at 01:54, Caleb Connolly > wrote: > > > > Clock drivers don't belong here, move them to the right place and > > declutter mach-snapdragon a bit. > > > > Signed-off-by: Caleb Connolly > > --- > > arch/arm/mach-snapdragon/Ma

Re: [PATCH 1/8] clk/qcom: move from mach-snapdragon

2023-10-26 Thread Sumit Garg
On Wed, 25 Oct 2023 at 01:54, Caleb Connolly wrote: > > Clock drivers don't belong here, move them to the right place and > declutter mach-snapdragon a bit. > > Signed-off-by: Caleb Connolly > --- > arch/arm/mach-snapdragon/Makefile| 5 - > drivers/clk/Makefil

Re: [PATCH 1/8] clk/qcom: move from mach-snapdragon

2023-10-26 Thread Sumit Garg
On Wed, 25 Oct 2023 at 01:54, Caleb Connolly wrote: > > Clock drivers don't belong here, move them to the right place and > declutter mach-snapdragon a bit. > > Signed-off-by: Caleb Connolly > --- > arch/arm/mach-snapdragon/Makefile| 5 - > drivers/clk/Makefil

Re: [PATCH v5 2/2] board: mediatek: add mt8195 demo board

2023-10-26 Thread Marcel Ziswiler
Hi Fabien and Macpaul Thanks for your patch set. On Fri, 2023-08-04 at 19:04 +0800, Macpaul Lin wrote: > From: Fabien Parent > > Add mt8195-demo board support. > This demo purpose board uses MediaTek's MT8195 SoC. > > Signed-off-by: Fabien Parent > Signed-off-by: Amjad Ouled-Ameur > Signed-o

Re: [RFC 11/13] fs: remove explicit efi configuration dependency

2023-10-26 Thread AKASHI Takahiro
On Thu, Oct 26, 2023 at 09:58:53AM +0200, Heinrich Schuchardt wrote: > > > Am 26. Oktober 2023 07:30:50 MESZ schrieb AKASHI Takahiro > : > >Now it is clear that the feature actually depends on efi interfaces, > >not "bootefi" command. efi_set_bootdev() will automatically be nullified > >if neces

RE: [PATCH] mmc: tmio: Disable 1/1024 clock divider on Renesas R-Car platforms

2023-10-26 Thread Yoshihiro Shimoda
Hello Marek-san, > From: U-Boot On Behalf Of Marek Vasut, Sent: Monday, October 23, 2023 6:41 AM > > The R-Car Gen3 SD_CLK_CTRL register does not use BIT(16) to implement > divider 1/1024, instead BIT(16) is reserved bit and divider 1/1024 is > not supported. The divider 1/1024 is specific to So

RE: [PATCH] mmc: tmio: Always check for errors after receiving an IRQ

2023-10-26 Thread Yoshihiro Shimoda
Hello Marek-san, > From: U-Boot On Behalf Of Marek Vasut, Sent: Sunday, October 15, 2023 6:56 AM > > Unconditionally check for errors even after successful reception > of IRQ flag, since the hardware may set both an IRQ completion > flag and an error flag at the same time. > > This mode of fail

Re: [PATCH v1 2/2] imx: spl_imx_romapi: fix emmc fast boot mode case

2023-10-26 Thread Stefano Babic
On 26.10.23 10:29, Rasmus Villemoes wrote: On 26/10/2023 09.32, Marcel Ziswiler wrote: From: Marcel Ziswiler This fixes a regression in the eMMC fast boot mode case where the buffer was missing 464 bytes. The code figures out how many bytes must at least be fetched to honor the current read,

Re: [PATCH v1 2/2] imx: spl_imx_romapi: fix emmc fast boot mode case

2023-10-26 Thread Rasmus Villemoes
On 26/10/2023 09.32, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This fixes a regression in the eMMC fast boot mode case where the buffer > was missing 464 bytes. > > The code figures out how many bytes must at least be fetched to honor > the current read, rounds that up to the ss->pagesi

Re: [PATCH] test/py: always use autostart on tpm2 selftests

2023-10-26 Thread Ilias Apalodimas
Hi Simon, [...] > > --- > > test/py/tests/test_tpm2.py | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/test/py/tests/test_tpm2.py b/test/py/tests/test_tpm2.py > > index 47392b87a98f..1d654cd4a23b 100644 > > --- a/test/py/tests/test_tpm2.py > > +++ b/test/py/tes

Re: [RFC 11/13] fs: remove explicit efi configuration dependency

2023-10-26 Thread Heinrich Schuchardt
Am 26. Oktober 2023 07:30:50 MESZ schrieb AKASHI Takahiro : >Now it is clear that the feature actually depends on efi interfaces, >not "bootefi" command. efi_set_bootdev() will automatically be nullified >if necessary efi component is disabled. > >Signed-off-by: AKASHI Takahiro >--- > fs/fs.c

Re: [REGRESSION] imx: spl_imx_romapi: boot loops

2023-10-26 Thread Marcel Ziswiler
Hi Rasmus On Wed, 2023-10-25 at 20:35 +0200, Rasmus Villemoes wrote: > On 25/10/2023 18.01, Marcel Ziswiler wrote: > > Hi Rasmus > > > > On Tue, 2023-10-24 at 16:32 +0200, Rasmus Villemoes wrote: > > > > What am I missing? > > > > Good question. Some more debugging revealed that we are missing

[PATCH v1 2/2] imx: spl_imx_romapi: fix emmc fast boot mode case

2023-10-26 Thread Marcel Ziswiler
From: Marcel Ziswiler This fixes a regression in the eMMC fast boot mode case where the buffer was missing 464 bytes. The code figures out how many bytes must at least be fetched to honor the current read, rounds that up to the ss->pagesize [which is a no-op in the USB download case because that

[PATCH v1 0/2] imx: spl_imx_romapi: fixes

2023-10-26 Thread Marcel Ziswiler
From: Marcel Ziswiler The first patch is a trivial spelling fix in comments. The second fixes a recent regression that only manifests in the eMMC fast boot mode case which does actually also use streaming rather than seekable. Thanks go to Rasmus who helped me debug this and suggested the fix.

[PATCH v1 1/2] imx: spl_imx_romapi: fix comment about stream(usb) download failure

2023-10-26 Thread Marcel Ziswiler
From: Marcel Ziswiler Fix comment about Stream(USB) download failure. Fixes: 1cbebc786276 ("imx: add rom api support") Signed-off-by: Marcel Ziswiler --- arch/arm/mach-imx/spl_imx_romapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/spl_imx_romapi

[PATCH 3/3] arm64: boot: Support Flat Image Tree

2023-10-26 Thread Simon Glass
Add a script which produces a Flat Image Tree (FIT), a single file containing the built kernel and associated devicetree files. Compression defaults to gzip which gives a good balance of size and performance. The files compress from about 85MB to 24MB using this approach. The FIT can be used by b

[PATCH 2/3] kbuild: arm64: Add BOOT_TARGETS variable

2023-10-26 Thread Simon Glass
Add a new variable containing a list of possible targets. Mark them as phony. This matches the approach taken for arch/arm Signed-off-by: Simon Glass --- arch/arm64/Makefile | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index

[PATCH 1/3] kbuild: Correct missing architecture-specific hyphens

2023-10-26 Thread Simon Glass
These should add a hyphen to indicate that it makes a adjective. Fix them. Signed-off-by: Simon Glass --- Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 690cde550acd..b63796e6f94a 100644 --- a/Makefile +++ b/Makefile @@ -675,7 +

[PATCH 0/3] arm64: Add a build target for Flat Image Tree

2023-10-26 Thread Simon Glass
Flat Image Tree (FIT) is a widely used file format for packaging a kernel and associated devicetree files. This series adds support for building a FIT as part of the kernel build. This makes it easy to try out the kernel - just load the FIT onto your tftp server and it will run automatically on any

Re: [PATCH v2 2/2] cmd: mvebu/bubt: move eMMC data-partition uboot from LBA-0 to 4096

2023-10-26 Thread Stefan Roese
On 10/25/23 10:22, Josua Mayer wrote: A38x bootrom only searches 2 sectors when booting from eMMC, irregardless of data or boot partition: 0 & 4096. For eMMC boot partitions sector 0 is fine, but on data partition it conflicts with MBR. Change bubt command default to 4096 for eMMC data partitio

Re: [PATCH v2 1/2] arm: mvebu: allow additional 4096 offset for bootable mmc image

2023-10-26 Thread Stefan Roese
On 10/25/23 10:22, Josua Mayer wrote: Disarm the error message forcing u-boot/spl image to be located at sector 0 on eMMC data-partition and microSD. Offset 0 makes sense on eMMC boot partitions only, data partition must use 4096 to avoid conflicting with MBR. Valid offsets when booting from mic

Re: [PATCH u-boot-marvell] arm: mvebu: turris_mox: Extend to support RIPE Atlas Probe

2023-10-26 Thread Stefan Roese
On 10/20/23 16:29, Marek Behún wrote: Extend Turris Mox board code to support CZ.NIC's RIPE Atlas Probe. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan --- arch/arm/dts/Makefile | 1 + arch/arm/dts/armada-3720-ripe-atlas.dts | 91 +++

Re: [PATCH] arm: kirkwood: Enable bootstd for Zyxel NSA310S board

2023-10-26 Thread Stefan Roese
On 10/26/23 00:38, Tony Dinh wrote: Enable bootstd for Zyxel NSA310S board, and remove distroboot. Signed-off-by: Tony Dinh Reviewed-by: Stefan Roese Thanks, Stefan --- configs/nsa310s_defconfig | 3 ++- include/configs/nsa310s.h | 17 ++--- 2 files changed, 4 insertions

Re: [PATCH] arm: kirkwood: Enable bootstd for Pogo V4 board

2023-10-26 Thread Stefan Roese
On 10/25/23 01:17, Tony Dinh wrote: Enable bootstd for Pogo V4 board, and remove distroboot. Signed-off-by: Tony Dinh Reviewed-by: Stefan Roese Thanks, Stefan --- configs/pogo_v4_defconfig | 3 ++- include/configs/pogo_v4.h | 35 ++- 2 files changed,

<    1   2