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,

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 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 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 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

[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

[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 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 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 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 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 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

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

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: [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: [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 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] 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] 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: [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 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: [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 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: [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: [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

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

[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

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

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

[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

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:

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 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 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 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 +

[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

[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 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 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 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

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

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: 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

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: [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: [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 > >>

[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

[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 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 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 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 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

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 Typo in "pacth is

[PATCH] xilinx: versal: Setup 30MHz as default spi frequency

2023-10-26 Thread Michal Simek
Align default SPI configuration with ZynqMP/Versal NET. There is no reason to run on lower frequencies. Signed-off-by: Michal Simek --- configs/xilinx_versal_virt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_def

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

2023-10-26 Thread Fabio Estevam
On Thu, Oct 26, 2023 at 4:32 AM Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > Fix comment about Stream(USB) download failure. > > Fixes: 1cbebc786276 ("imx: add rom api support") > Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam

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

2023-10-26 Thread Fabio Estevam
On Thu, Oct 26, 2023 at 4:32 AM 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 th

Re: [PATCH 1/5] configs: imx8mp_beacon: Do not set SYS_CONSOLE_IS_IN_ENV

2023-10-26 Thread Fabio Estevam
On Wed, Oct 25, 2023 at 8:05 PM Adam Ford wrote: > > The hardware only supports a specific console port, so remove the > option to change the console location in the environment. > > Signed-off-by: Adam Ford For the series: Reviewed-by: Fabio Estevam

Re: [PATCH] imx8mn-var-som: Simplify FEC initialization

2023-10-26 Thread Fabio Estevam
On Thu, Oct 19, 2023 at 4:43 PM Hugo Villeneuve wrote: > > From: Hugo Villeneuve > > With DM enabled, there is no need for board code to initialize > the FEC interface. > > The ethernet PHYs on the symphony carrier board have a dedicated > crystal/oscillator. If the SOM has the EC configuration o

Re: [PATCH v1] apalis-imx8: add USBH_EN gpio hog

2023-10-26 Thread Fabio Estevam
On Fri, Oct 20, 2023 at 12:25 PM Andrejs Cainikovs wrote: > > From: Andrejs Cainikovs > > USB host interface is not working on some Apalis Toradex carrier > boards with Apalis iMX8 SoM. This is due to USBH_EN pin, which > powers USB peripherals, having a strong pull-down on some boards, > and a w

Re: [PATCH] MAINTAINERS: Remove non-working address from MAINTAINERS

2023-10-26 Thread Fabio Estevam
On Mon, Oct 23, 2023 at 1:45 PM Hugo Villeneuve wrote: > > From: Hugo Villeneuve The Subject does indicate which board it refers to. It would be better to have it like: imx8mn_smm_s2: Remove non-working address from MAINTAINERS Reviewed-by: Fabio Estevam

Re: [PATCH] arm: dts: imx8mn-var-som: Fix broken EEPROM read

2023-10-26 Thread Fabio Estevam
On Tue, Oct 17, 2023 at 5:58 PM Hugo Villeneuve wrote: > > From: Hugo Villeneuve > > On branch WIP/17Oct2023, the EEPROM can no longer be read: > > U-Boot 2023.10-latest (Oct 17 2023 - 15:53:43 -0400) > CPU: Freescale i.MX8MNano Quad rev1.0 at 1200 MHz > Reset cause: POR > Model

Re: [PATCH v2 1/4] net: dwc_eth_qos: add i.MX93 support

2023-10-26 Thread Fabio Estevam
On Tue, Oct 17, 2023 at 6:45 AM Sébastien Szymanski wrote: > > Add support for DWC EQoS MAC on i.MX93. > > Signed-off-by: Sébastien Szymanski For the series: Reviewed-by: Fabio Estevam

Re: [PATCH] MAINTAINERS: Remove non-working address from MAINTAINERS

2023-10-26 Thread Hugo Villeneuve
On Thu, 26 Oct 2023 11:25:19 -0300 Fabio Estevam wrote: > On Mon, Oct 23, 2023 at 1:45 PM Hugo Villeneuve wrote: > > > > From: Hugo Villeneuve > > The Subject does indicate which board it refers to. > > It would be better to have it like: > > imx8mn_smm_s2: Remove non-working address from MA

Re: [PATCH] MAINTAINERS: Remove non-working address from MAINTAINERS

2023-10-26 Thread Fabio Estevam
Hi Hugo, On Thu, Oct 26, 2023 at 11:38 AM Hugo Villeneuve wrote: > Hi Fabio, > since the change concerns two different boards, that is why I didn't > indicate it. If required, I could send it as two separate patches. Ok, got it. Let's keep it as is then. Thanks

Re: [PATCH v8 3/8] power: pmic: add the base MAX77663 PMIC support

2023-10-26 Thread Svyatoslav Ryhel
25 жовтня 2023 р. 16:37:12 GMT+03:00, Tom Rini написав(-ла): >On Wed, Oct 25, 2023 at 09:10:12AM +0300, Svyatoslav Ryhel wrote: >> вт, 24 жовт. 2023 р. о 22:18 Tom Rini пише: >> > >> > On Tue, Oct 24, 2023 at 10:41:05AM +0300, Svyatoslav Ryhel wrote: >> > >> > > Add support to bind the regula

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

2023-10-26 Thread Neil Armstrong
_SARADC_MESON=y CONFIG_BUTTON=y --- base-commit: 14a21f1a80afc58d52dc72e35f27d3a47d36c082 change-id: 20231026-fix-saveenv-eb5484622282 Best regards, Reviewed-by: Neil Armstrong

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

2023-10-26 Thread Neil Armstrong
Hi, On Thu, 26 Oct 2023 15:41:31 +0200, Mattijs Korpershoek wrote: > The environment is used to configure some additional boot features such as: > * extra boot arguments > * enable AVB (Android Verified Boot) verification > > Right now, we cannot store it in eMMC: > > Loading Environment from

Re: [PATCH 0/4] ARM: meson: Add boot over DFU RAM as an USB boot step

2023-10-26 Thread Neil Armstrong
Hi, On Mon, 23 Oct 2023 14:41:33 +0200, Neil Armstrong wrote: > Add boot over DFU RAM as an alternate to running script at > a fixed address like done today. > > The main culprit is that it's not possible to do that > on G12A/SM1 platforms due to changes in the USB boot protocol. > > With this,

Re: [PATCH v2 0/2] ARM: amlogic: Add A1 SPIFC support

2023-10-26 Thread Neil Armstrong
Hi, On Wed, 25 Oct 2023 01:51:38 +0300, Igor Prusov wrote: > A1 family boards have new version of SPIFC controller, that is > incompatible with meson_spifc driver. This series ports A1 SPIFC driver > from Linux and enables it for ad401 board. > > Changes in V2: > - more details in Kconfig help m

Re: [PATCH v3 1/1] efi_loader: expose the device-tree file name

2023-10-26 Thread Rob Herring
On Sun, Oct 22, 2023 at 4:32 PM Heinrich Schuchardt wrote: > > On 10/22/23 19:08, Tom Rini wrote: > > On Sun, Oct 22, 2023 at 06:34:08PM +0200, Heinrich Schuchardt wrote: > >> On 10/22/23 17:55, Tom Rini wrote: > >>> On Sun, Oct 22, 2023 at 10:47:33AM +0200, Heinrich Schuchardt wrote: > >>> >

Re: [PATCH v8 3/8] power: pmic: add the base MAX77663 PMIC support

2023-10-26 Thread Tom Rini
On Thu, Oct 26, 2023 at 05:49:01PM +0300, Svyatoslav Ryhel wrote: > > > 25 жовтня 2023 р. 16:37:12 GMT+03:00, Tom Rini > написав(-ла): > >On Wed, Oct 25, 2023 at 09:10:12AM +0300, Svyatoslav Ryhel wrote: > >> вт, 24 жовт. 2023 р. о 22:18 Tom Rini пише: > >> > > >> > On Tue, Oct 24, 2023 at 10:

Re: quick question about TPM

2023-10-26 Thread Simon Glass
+Ilias Apalodimas as well On Thu, 26 Oct 2023 at 02:22, niek.nooij...@omron.com wrote: > > Hi Simon > > Yes that fixes it! Thanks! > Maybe an Idea to add a dedicated TPM page to the docs with information like > this? > (https://u-boot.readthedocs.io/en/latest/index.html) Cause I wouldn't have >

[v5 01/30] sandbox: eliminate unused functions from binaries

2023-10-26 Thread Tom Rini
From: Heinrich Schuchardt The sandbox should closely mimic other architectures. Place each function or data in a separate section and let the linker eliminate unused ones. This will reduce the binary size. In the linker script mark that u_boot_sandbox_getopt are to be kept. Signed-off-by: Hein

[v5 02/30] buildman: Use oldconfig when adjusting the config

2023-10-26 Thread Tom Rini
From: Simon Glass We cannot be sure that the new config is consistent, particularly when changing a major item like CONFIG_CMDLINE. Use 'make oldconfig' to check that and avoid any such problems. Signed-off-by: Simon Glass --- tools/buildman/builder.py | 2 +- tools/buildman/builderthrea

[v5 03/30] virtio: Make VIRTIO_NET depend on NETDEVICES

2023-10-26 Thread Tom Rini
As VIRTIO_NET is the symbol for enabling network devices, make this depend on NETDEVICES Signed-off-by: Tom Rini --- Cc: Bin Meng --- drivers/virtio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig index 852f6735b602..1d

[v5 04/30] dfu: Make DFU_TFTP depend on NETDEVICES

2023-10-26 Thread Tom Rini
In order to do a DFU update over TFTP we need to have some network device available, so make this depend on NETDEVICES Signed-off-by: Tom Rini --- drivers/dfu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dfu/Kconfig b/drivers/dfu/Kconfig index 4e80e85d10d7..8771678ca5a0 10

[v5 05/30] version: Separate our version string from the version command

2023-10-26 Thread Tom Rini
In order to be able to disable all commands we need to construct our version string in a common file, and have the version command reference that string, like the other users of it do. Create common/version.c with just the strings. Signed-off-by: Tom Rini --- cmd/version.c| 9 - co

[v5 07/30] Kconfig: Move CONFIG_SYS_[CP]BSIZE to common/Kconfig

2023-10-26 Thread Tom Rini
Move CONFIG_SYS_CBSIZE (console buffer size) and CONFIG_SYS_PBSIZE (console print buffer size) out of cmd/Kconfig and in to common/Kconfig. Create help entries for both which explain their usage and why they are both not entirely command centric. Signed-off-by: Tom Rini --- cmd/Kconfig| 14 -

[v5 06/30] qemu: Correct CMD_QFW dependencies in Kconfig

2023-10-26 Thread Tom Rini
Rather than selecting CMD_QFW, we should make the option itself by enabled by default on these platforms. Then in the board-specific Kconfig we should select the appropriate back-end as needed if the command is enabled. Signed-off-by: Tom Rini --- Cc: Tuomas Tynkkynen Cc: Bin Meng --- board/e

[v5 08/30] env: Move env_set() out of cmd/nvedit.c and in to env/common.c

2023-10-26 Thread Tom Rini
Inside of env/common.c we already have our helper env_set_xxx functions, and even have a comment that explains why env_set() itself wasn't moved. We now handle that move. This requires that we rename the previous _do_env_set() to env_do_env_set() and note it as an internal env function. Add comment

[v5 09/30] test: Make UNIT_TEST depend on CMDLINE

2023-10-26 Thread Tom Rini
From: Simon Glass Many tests make some use of the command line, so require it for all test code. This could be teased apart, perhaps with a test flag indicating that it uses the command line. Leave that for later. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- test/Kconfig | 1 + 1 fil

[v5 11/30] cli_simple: Rework this support slightly

2023-10-26 Thread Tom Rini
The interactive portion of our non-HUSH 'simple' parser is guarded by CONFIG_CMDLINE already. Much of the code behind this simple parser is also used as "input" parser, such as from menu interfaces and so forth and not strictly command line input. To support this, always build the assorted cli ob

[v5 10/30] video: Don't require the font command

2023-10-26 Thread Tom Rini
From: Simon Glass While it is nice to have the font command, using 'select' makes it impossible to build the console code without it. Stop using 'select' and make it default if CONSOLE_TRUETYPE is enabled when asking the command. Signed-off-by: Simon Glass Signed-off-by: Tom Rini --- Changes i

[v5 12/30] efi: Rearrange the Kconfig for CMD_BOOTEFI_BOOTMGR

2023-10-26 Thread Tom Rini
From: Simon Glass The command should not be used to enable library functionality. Add a new BOOTEFI_BOOTMGR Kconfig for that. Adjust the conditions so that the same code is built. Signed-off-by: Simon Glass Suggested-by: AKASHI Takahiro --- Cc: Heinrich Schuchardt Cc: Ilias Apalodimas Cc: AK

[v5 13/30] bootmeth: Make BOOTMETH_EFILOADER depend on CMD_BOOTEFI

2023-10-26 Thread Tom Rini
Today, the bootmeth for using the EFI loader via bootefi depends on calling the bootefi command directly, so make this in turn depend on CMD_BOOTEFI. Signed-off-by: Tom Rini --- boot/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index

[v5 14/30] autoboot: Correct dependencies on CMDLINE

2023-10-26 Thread Tom Rini
From: Simon Glass Make AUTOBOOT depend on CMDLINE since it is mostly meaningless without it. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- boot/Kconfig | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index

[v5 16/30] boot: Rework BOOT_DEFAULTS to allow for CMDLINE to be disabled

2023-10-26 Thread Tom Rini
We split BOOT_DEFAULTS to have BOOT_DEFAULTS_FEATURES and BOOT_DEFAULTS_CMDS that in turn list general features or commands that we want enabled when BOOT_DEFAULTS is selected. We only select BOOT_DEFAULTS_CMDS if CMDLINE is set. Signed-off-by: Tom Rini --- boot/Kconfig | 23 +++

[v5 15/30] boot: Make DISTRO_DEFAULTS select CMDLINE

2023-10-26 Thread Tom Rini
The implementation of DISTRO_DEFAULTS is done in environment scripts and requires the command line in order to work. Because of this, select CMDLINE here. Signed-off-by: Tom Rini --- boot/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/boot/Kconfig b/boot/Kconfig index 0dbd10a93469..

[v5 17/30] boot: Move SYS_BOOTM_LEN to be by LEGACY_IMAGE_FORMAT

2023-10-26 Thread Tom Rini
This particular option is required for booting all image types, regardless of if we are starting an OS via command line or something else. Move the question for SYS_BOOTM_LEN to be by the question for LEGACY_IMAGE_FORMAT, as that's where our generic OS questions start. Signed-off-by: Tom Rini --

[v5 18/30] bootmeth_cros: Require bootm.o and bootm_os.o

2023-10-26 Thread Tom Rini
In order to use bootmeth_cros, at least on non-X86, we need to be able to start any type of kernel that the "bootm" code paths can handle. Add these objects to the required list for this option. Signed-off-by: Tom Rini --- Cc: Simon Glass --- boot/Makefile | 2 +- 1 file changed, 1 insertion(+

[v5 20/30] boot: Make preboot and bootcmd require CMDLINE

2023-10-26 Thread Tom Rini
In order for a predefined "preboot" or "bootcmd" to be executed by the running system we must have a command line. Add CMDLINE as a dependency. Signed-off-by: Tom Rini --- boot/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/Kconfig b/boot/Kconfig index 40a04f43ee3d..fabf6fec

[v5 19/30] bootmeth_script: Depend on CMDLINE

2023-10-26 Thread Tom Rini
As this particular bootmeth requires the command line and assorted commands to function, make sure we have CMDLINE enabled. Signed-off-by: Tom Rini --- boot/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boot/Kconfig b/boot/Kconfig index 7c92e0974c5f..40a04f43ee3d

[v5 21/30] cmd: Make most commands depend on CMDLINE

2023-10-26 Thread Tom Rini
From: Simon Glass If we disable CMDLINE then we should not ask about enabling the hush parser nor any of the commands that would be run on the command line as it is no longer available. Convert the CMDLINE option into a menuconfig and make every command referenced under cmd/Kconfig depend on it.

[v5 22/30] fastboot: Depend on CMDLINE

2023-10-26 Thread Tom Rini
Much of the functionality of fastboot relies on being able to run commands as defined in the environment. This means it does depend on CMDLINE being enabled. Signed-off-by: Tom Rini --- Changes in v5: - New patch --- drivers/fastboot/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/dr

[v5 23/30] lib: uuid: move CONFIG_RANDOM_UUID

2023-10-26 Thread Tom Rini
From: AKASHI Takahiro 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: Tom Rini --- Changes in v5: - Take AKASHI Takahiro's

[v5 24/30] block: rkmtd: select CONFIG_RANDOM_UUID explicitly

2023-10-26 Thread Tom Rini
From: AKASHI Takahiro This option is necessary to compile any way. Signed-off-by: AKASHI Takahiro --- Changes in v5: - Take AKASHI Takahiro's RFC and switch to select per my feedback on the ML --- drivers/block/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/Kconfig

[v5 25/30] sandbox: Disable CONFIG_DISTRO_DEFAULTS

2023-10-26 Thread Tom Rini
From: Simon Glass This is not used for sandbox, so drop it. Enable the things that it controls to avoid dstrastic changes in the config settings for sandbox builds. The end result is that these are enabled: BOOTMETH_DISTRO BOOTSTD_DEFAULTS and these are disabled: USE_BOOTCOMMAND B

[v5 26/30] sandbox: Avoid requiring CMDLINE

2023-10-26 Thread Tom Rini
From: Simon Glass Add some dependencies on features that we had been selecting so that we can still disable CMDLINE. Signed-off-by: Simon Glass Signed-off-by: Tom Rini --- Changes in v4: - Reword the commit slightly (Tom) - Rework overall to select if CMDLINE Changes in v3: - Reorder the Kcon

[v5 27/30] sandbox: Add

2023-10-26 Thread Tom Rini
Add a mostly empty asm/barrier.h file for sandbox where we define nop() to be an empty function. Signed-off-by: Tom Rini Reviewed-by: Sean Anderson --- arch/sandbox/include/asm/barrier.h | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 arch/sandbox/include/asm/barrier.h diff --git

  1   2   >