[PATCH 2/5] msc_sm2s_imx8mp: Make Ethernet functional

2024-02-13 Thread Fabio Estevam
From: Fabio Estevam Currently, the Ethernet ports are not working. The Ethernet PHY reset lines are controlled by the TCA6424 I2C GPIO expander. The TCA6424 I2C GPIO expander is supported by the CONFIG_DM_PCA953X driver. Select the CONFIG_DM_PCA953X option so that the Ethernet PHYs can go

[PATCH 3/5] imx8mp-msc-sm2s: Add mmc aliases

2024-02-13 Thread Fabio Estevam
From: Fabio Estevam Add mmc alias so that the eMMC is mmc0 and the SD card is mmc1 to have a well defined device numbering scheme. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/imx8mp-msc-sm2s-u

[PATCH 1/5] msc_sm2s_imx8mp: Convert to DM_SERIAL

2024-02-13 Thread Fabio Estevam
From: Fabio Estevam The conversion to DM_SERIAL is mandatory, so do the conversion. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi | 8 board/msc/sm2s_imx8mp/spl.c | 9 - configs/msc_sm2s_imx8mp_defconfig| 1 + include/configs

Pull request: Please pull u-boot-imx-master-20240212

2024-02-12 Thread Fabio Estevam
Hi Tom, Please pull from u-boot-imx, thanks. The following changes since commit d7aaaf4223d0a2f9f8c9eed47d7431860b3116d8: Merge tag 'u-boot-dfu-20240209' of https://source.denx.de/u-boot/custodians/u-boot-dfu (2024-02-09 09:00:42 -0500) are available in the Git repository at:

Re: [PATCH v2 0/3] imx93_var_som: Enable AHAB support

2024-02-12 Thread Fabio Estevam
On Fri, Feb 9, 2024 at 7:30 AM Mathieu Othacehe wrote: > > Hello, > > In this v2, I moved imx93_probe_mu to a dedicated header. Applied all, thanks.

Re: [PATCH v2] spi: mxc_spi: Add imx6ul-ecspi compatible string

2024-02-12 Thread Fabio Estevam
4376fb68 ("arm64: dts: imx8mp: update ecspi compatible and clk") > 8eb1252bbedf ("spi: imx: remove ERR009165 workaround on i.mx6ul") > > Fixes: 451799a6ceac ("arm: dts: imx8mp: Sync the DT with kernel 6.4-rc4") > Reviewed-by: Fabio Estevam > Signed-off-by: Marek Vasut Applied, thanks.

Re: [PATCH] ARM: imx: Let SPL configure ECSPI1 clock on Data Modul i.MX8M Plus eDM SBC

2024-02-12 Thread Fabio Estevam
On Thu, Feb 8, 2024 at 2:34 PM Marek Vasut wrote: > > The SPL clock code does configure the ECSPI clock frequency, which has > to match the mxc-spi driver configuration for successful SPI NOR boot. > Drop the assigned-clock from DT ecspi1 node on this board to let the > SPL clock code do the

Re: [PATCH 1/3] mtd: spi-nor-ids: Add support for ESMT/EON EN25Q80B

2024-02-10 Thread Fabio Estevam
On Thu, Feb 8, 2024 at 1:59 PM Frieder Schrempf wrote: > > From: Frieder Schrempf > > The datasheet can be found here: > https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/EN25Q80B_Ver.E.pdf > > Signed-off-by: Frieder Schrempf Reviewed-by: Fabio Estevam

Re: [PATCH 2/3] board: Add support for Sielaff i.MX6 Solo board

2024-02-10 Thread Fabio Estevam
Hi Frieder, On Thu, Feb 8, 2024 at 1:59 PM Frieder Schrempf wrote: > +/ { > + binman: binman { > + filename = "flash.bin"; > + pad-byte = <0x00>; > + > + spl: blob-ext@1 { > + offset = <0x0>; > +

Re: [PATCH v2 1/2] imx: imxrt1050-evk: Add support for SPI flash booting

2024-02-09 Thread Fabio Estevam
On Fri, Feb 9, 2024 at 3:27 PM Jesse T wrote: > These errors also happen on master. There are no errors in master, otherwise they would not pass the CI build. > I will submit a patch to fix these soon. Just to clarify: on master we do get the following warnings (not errors):

Re: [PATCH 0/2] imx93_var_som: Enable AHAB support

2024-02-09 Thread Fabio Estevam
On Fri, Feb 9, 2024 at 11:25 AM Mathieu Othacehe wrote: > Once the board is closed you can only boot from signed images. If the > signed image is not working (hanging during relocation for instance), > then you can always boot from a new one. All the interfaces: SD-card, > UART, USB are still

Re: [PATCH 3/3] doc: board: Add minimal documentation for Sielaff i.MX6 Solo board

2024-02-09 Thread Fabio Estevam
Hi Frieder, On Thu, Feb 8, 2024 at 1:59 PM Frieder Schrempf wrote: > +Burn the flash.bin to SD card at an offset of 1 KiB: > + > +.. code-block:: bash > + > + $ dd if=flash.bin of=/dev/sd[x] bs=1K seek=1 conv=notrunc I see that you used binman to create the flash.bin file. You could simply

Re: [PATCH 0/2] imx93_var_som: Enable AHAB support

2024-02-09 Thread Fabio Estevam
Hi Mathieu, On Fri, Feb 9, 2024 at 5:05 AM Mathieu Othacehe wrote: > No. I fused the board and with this series applied and the three HAFDBS > commits reverted, I can boot just fine on that board. Yes, this part I understood. > Without reverting those commits, the SPL is working fine and

Re: [PATCH] ARM: imx: Let SPL configure ECSPI1 clock on Data Modul i.MX8M Plus eDM SBC

2024-02-08 Thread Fabio Estevam
SPL clock code do the configuration and keep it aligned with the driver > expectation. > > Signed-off-by: Marek Vasut Reviewed-by: Fabio Estevam

Re: [PATCH] spi: mxc_spi: Add imx6ul-ecspi compatible string

2024-02-08 Thread Fabio Estevam
PI operation on i.MX8MP. > > Signed-off-by: Marek Vasut I assume this goes via Jagan's spi tree. Reviewed-by: Fabio Estevam

Re: [PATCH 1/2] board: imx93_var_som: Probe ELE MU

2024-02-08 Thread Fabio Estevam
On Thu, Feb 8, 2024 at 6:45 AM Mathieu Othacehe wrote: > diff --git a/board/variscite/imx93_var_som/spl.c > b/board/variscite/imx93_var_som/spl.c > index 502e599b91a..0965a2de996 100644 > --- a/board/variscite/imx93_var_som/spl.c > +++ b/board/variscite/imx93_var_som/spl.c > @@ -97,6 +97,7 @@

Re: [PATCH 0/2] imx93_var_som: Enable AHAB support

2024-02-08 Thread Fabio Estevam
Hi Mathieu, On Thu, Feb 8, 2024 at 6:45 AM Mathieu Othacehe wrote: > > Hello, > > This enables AHAB support on the imx93_var_som. > I was able to test that I can boot from signed images on a closed board. > > There is one issue that has been discovered and that is discussed here: >

Re: [PATCH v1 1/2] imx: imxrt1050-evk: Add support for SPI flash booting

2024-02-08 Thread Fabio Estevam
Hi Giulio, On Wed, Jan 31, 2024 at 10:06 AM Giulio Benetti wrote: > The problem is that mmu_set_region_dcache_behaviour() is not implemented > for armv7m and mxsfb.c requires it when DCache is enabled, that's why > I've disabled. > > So we can keep it as is or implement armv7m complete >

Pull request: Please pull u-boot-imx-master-20240208

2024-02-08 Thread Fabio Estevam
storage support phycore-imx8mp: add support for booting and flashing emmc via UUU Fabio Estevam (3): mx6sabresd: Fix U-Boot corruption after saving the environment mx6sabresd: Convert to watchdog driver model mx6sabresd: Remove board_phy_config() Igor Opaniuk (2): imx

Re: [PATCH v3 1/4] imx8mp-phyboard-pollux-rdk: sync with kernel devicetree from v6.8-rc2

2024-02-08 Thread Fabio Estevam
On Thu, Feb 8, 2024 at 9:03 AM Benjamin Hahn wrote: > > sync devicetree with kernel v6.8-rc2. > > New commits on kernel v6.8-rc2: > 4a58fcdb1818 arm64: dts: imx8mp-phyboard-pollux: Add support for RS232/RS485 > 3bd7fdcc359e arm64: dts: imx8mp-phyboard-pollux: Add gpio-line-names > f5faa633daf8

Re: [PATCH v2 1/3] mx6sabresd: Fix U-Boot corruption after saving the environment

2024-02-08 Thread Fabio Estevam
On Fri, Feb 2, 2024 at 1:04 PM Fabio Estevam wrote: > > From: Fabio Estevam > > U-Boot binary has grown in such a way that it goes beyond the reserved > area for the environment variables. > > Running "saveenv" and rebooting the board causes U-Boot to hang bec

Re: [PATCH v1 2/2] imx: imx8: print reset cause

2024-02-08 Thread Fabio Estevam
On Wed, Jan 31, 2024 at 9:49 AM Igor Opaniuk wrote: > > Add support for printing reset cause during boot. > > Signed-off-by: Igor Opaniuk Applied, both, thanks.

Re: [PATCH v1] tools: mkimage: Add support for i.MXRT FlexSPI Header

2024-02-08 Thread Fabio Estevam
On Tue, Jan 23, 2024 at 11:15 PM Jesse Taube wrote: > > Modify imx8m Flex SPI Configuration Block to work with imxrt. > Add more Flex SPI configuration options to Kconfig. > > Signed-off-by: Jesse Taube > --- Applied, thanks.

Re: [PATCH] toradex: tdx-cfg-block: add 0086 i.mx8m mini sku

2024-02-08 Thread Fabio Estevam
On Wed, Jan 31, 2024 at 2:32 PM Joao Paulo Goncalves wrote: > > From: Joao Paulo Goncalves > > Add new product id 0086 Verdin iMX8M Mini DualLite 2GB IT. > > Signed-off-by: Joao Paulo Goncalves Applied, thanks.

Re: [PATCH v4] board: phytec: phycore-imx93: Add phyBOARD-Segin-i.MX93 support

2024-02-08 Thread Fabio Estevam
On Tue, Jan 30, 2024 at 11:50 AM Mathieu Othacehe wrote: > > Add initial support for the PHYTEC phyBOARD-Segin-i.MX93 board based on > the PHYTEC phyCORE-i.MX93 SoM. > > Supported features: > - 1GB LPDDR4 RAM > - eMMC > - external SD > - FEC Ethernet > - debug UART > - watchdog > > Signed-off-by:

Re: [PATCH] imx9: clock: Fix board_interface_eth_init for FEC

2024-02-08 Thread Fabio Estevam
On Tue, Jan 30, 2024 at 9:43 AM Primoz Fiser wrote: > > Commit d5eae216d833 ("net: dwc_eth_qos: Add board_interface_eth_init() > for i.MX93") implemented board_interface_eth_init for i.MX9 platforms. > However it only accounted for the EQOS interface while any board using > FEC as primary

Re: [PATCH v2 1/2] imx: imxrt1050-evk: Add support for SPI flash booting

2024-02-08 Thread Fabio Estevam
Hi Jesse, On Tue, Feb 6, 2024 at 1:40 PM Jesse Taube wrote: > > Add support for booting the imxrt1050-evk from spi. > Add imximage config and the ability for SPL to boot from NOR. > > Signed-off-by: Jesse Taube This causes the following build failure when building imxrt1020-evk_defconfig:

Re: inconsistent wget behavior

2024-02-07 Thread Fabio Estevam
Hi Paul, On Wed, Jan 10, 2024 at 9:20 AM Fabio Estevam wrote: > One colleague from you at Linaro was able to reproduce the bug: > > https://lore.kernel.org/u-boot/cadq0-x_cj1ecn67u3sefcz-jm4obsymzka+jazrca3ekq84...@mail.gmail.com/ > > It is not specific to i.MX. Have you had a

Re: [PATCH 0/5] update venice dts

2024-02-05 Thread Fabio Estevam
Hi Tim, On Mon, Feb 5, 2024 at 4:09 PM Tim Harvey wrote: > > This series brings some recent upstream Linux dt updates into U-Boot for > the Gateworks Venice family. Please specify what "some recent upstream Linux dt" means. Is it 6.8-rc, linux-next, or Shawn's tree? Can't you instead sync the

Re: [PATCH v2 2/3] mx6sabresd: Convert to watchdog driver model

2024-02-02 Thread Fabio Estevam
On Fri, Feb 2, 2024 at 1:07 PM Tom Rini wrote: > Can all of this be upstreamed as well? I can try it, but that would go into kernel 6.9 in the best case. For now, let's keep it in u-boot.dtsi.

[PATCH v2 3/3] mx6sabresd: Remove board_phy_config()

2024-02-02 Thread Fabio Estevam
From: Fabio Estevam With Ethernet DM in place, there is no longer the need for having the board_phy_config() anymore. Remove it. Confirmed that TFTP transfer still works fine without board_phy_config(). Signed-off-by: Fabio Estevam --- Changes since v1: - Newly introduced. board

[PATCH v2 2/3] mx6sabresd: Convert to watchdog driver model

2024-02-02 Thread Fabio Estevam
From: Fabio Estevam Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused the 'reset' command in U-Boot to not cause a board reset. Fix it by switching to the watchdog driver model via sysreset, which is the preferred method for implementing the watchdog reset.

[PATCH v2 1/3] mx6sabresd: Fix U-Boot corruption after saving the environment

2024-02-02 Thread Fabio Estevam
From: Fabio Estevam U-Boot binary has grown in such a way that it goes beyond the reserved area for the environment variables. Running "saveenv" and rebooting the board causes U-Boot to hang because of this overlap. Fix this problem by selecting CONFIG_LTO so that the U-B

[PATCH 2/2] mx6sabresd: Convert to watchdog driver model

2024-02-01 Thread Fabio Estevam
From: Fabio Estevam Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused the 'reset' command in U-Boot to not cause a board reset. Fix it by switching to the watchdog driver model via sysreset, which is the preferred method for implementing the watchdog reset.

[PATCH 1/2] mx6sabresd: Fix U-Boot corruption after saving the environment

2024-02-01 Thread Fabio Estevam
From: Fabio Estevam U-Boot binary has grown in such a way that it goes beyond the reserved area for the environment variables. Running "saveenv" and rebooting the board causes U-Boot to hang because of this overlap. Fix this problem by increasing the CONFIG_ENV_OFFSET.

Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2024-01-30 Thread Fabio Estevam
Hi Milan, On Tue, Jan 30, 2024 at 9:22 AM Milan Zamazal wrote: > Well, after trying both the SD cards again with fresh reinstallations, it > works > with a 32 GB card and I get the error above with a 64 GB card. Is it possible > that there is something wrong with SDXC cards? Does the change

Re: [PATCH 3/3] phycore-imx8mp: add support for booting and flashing emmc via UUU

2024-01-30 Thread Fabio Estevam
On Mon, Jan 29, 2024 at 4:56 AM Benjamin Hahn wrote: > > add support for Serial Downloader Boot via UUU as well as flashing emmc > via UUU on USB0 Port of phyBOARD Pollux. > > Signed-off-by: Benjamin Hahn Reviewed-by: Fabio Estevam

Re: [PATCH 2/3] phycore-imx8mp: add USB mass storage support

2024-01-30 Thread Fabio Estevam
On Mon, Jan 29, 2024 at 4:56 AM Benjamin Hahn wrote: > +_0 { > + status = "okay"; > + dr_mode = "peripheral"; > +}; Same comment as patch 1/3. Please sync the dts with Linux.

Re: [PATCH 1/3] phycore-imx8mp: add USB host support

2024-01-30 Thread Fabio Estevam
Hi Benjamin, On Mon, Jan 29, 2024 at 4:56 AM Benjamin Hahn wrote: > diff --git a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi > b/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi > index 1c7b250549..5d6974f8fa 100644 > --- a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi > +++

Re: [PATCH v1 1/2] imx: imxrt1050-evk: Add support for SPI flash booting

2024-01-29 Thread Fabio Estevam
On Sun, Jan 28, 2024 at 6:43 PM Jesse Taube wrote: > +++ b/configs/imxrt1050-evk_fspi_defconfig > @@ -0,0 +1,100 @@ > +CONFIG_ARM=y > +CONFIG_SYS_DCACHE_OFF=y Out of curiosity: what are the problems if the D-Cache is turned on?

Re: [PATCH v1 2/2] imx: imxrt1050-evk: Add documentation for SPI boot

2024-01-28 Thread Fabio Estevam
On Sun, Jan 28, 2024 at 6:43 PM Jesse Taube wrote: > > Adds documentation for SPI boot. s/Adds/Add > +How to use U-Boot with SPI flash on NXP i.MXRT1050 EVK > +-- > + > +- Build U-Boot for i.MXRT1050 EVK: > + > +.. code-block:: bash > + > +

Re: [PATCH v1 1/2] imx: imxrt1050-evk: Add support for SPI flash booting

2024-01-28 Thread Fabio Estevam
Hi Jesse, On Sun, Jan 28, 2024 at 6:43 PM Jesse Taube wrote: > > This add some macros to change addresses to use flexspi. This sentence is not very clear. > This commit adds support for booting the imxrt1050-evk from spi. Please don't use 'This commit adds support' format. Use imperative

Re: [PATCH v1] tools: mkimage: Add support for i.MXRT FlexSPI Header

2024-01-27 Thread Fabio Estevam
On Tue, Jan 23, 2024 at 11:15 PM Jesse Taube wrote: > > Modify imx8m Flex SPI Configuration Block to work with imxrt. > Add more Flex SPI configuration options to Kconfig. > > Signed-off-by: Jesse Taube Applied, thanks.

Re: [PATCH] ARM: imx: Enable kaslrseed command on Data Modul i.MX8M Mini/Plus eDM SBC

2024-01-27 Thread Fabio Estevam
On Mon, Jan 22, 2024 at 11:56 AM Marek Vasut wrote: > > Linux 6.6.y with KASLR enabled would print the following message on boot: > " > KASLR disabled due to lack of seed > " > Enable the 'kaslrseed' command so a random number seed can be pulled > from CAAM and inserted into the /chosen node

Re: [PATCH] toradex: tdx-cfg-block: Add new apalis and colibri pid

2024-01-27 Thread Fabio Estevam
On Thu, Jan 25, 2024 at 8:02 AM Francesco Dolcini wrote: > there is some trailing space here at the end of the line. > > Fabio, can you fix this up before applying? Removed the whitespace and applied it, thanks.

Re: [PATCH v1] tools: mkimage: Add support for i.MXRT FlexSPI Header

2024-01-26 Thread Fabio Estevam
Hi Adam, On Thu, Jan 25, 2024 at 7:37 PM Adam Ford wrote: > I had to go back in time, because it appears the current version of > 'master' doesn't fully boot the FSPI, but when I applied this patch > against a working version, it still worked when I was done. I'll try > to git bisect the issue

Re: [PATCH] toradex: tdx-cfg-block: Add new apalis and colibri pid

2024-01-25 Thread Fabio Estevam
On Thu, Jan 25, 2024 at 8:02 AM Francesco Dolcini wrote: > there is some trailing space here at the end of the line. > > Fabio, can you fix this up before applying? Sure, but next time just run checkpatch :-)

Re: [PATCH v1] tools: mkimage: Add support for i.MXRT FlexSPI Header

2024-01-25 Thread Fabio Estevam
Hi Adam, On Tue, Jan 23, 2024 at 11:15 PM Jesse Taube wrote: > > Modify imx8m Flex SPI Configuration Block to work with imxrt. > Add more Flex SPI configuration options to Kconfig. > > Signed-off-by: Jesse Taube Could you please test it on imx8mn_beacon_fspi_defconfig ?

Re: [PATCH v3] board: phytec: phycore-imx93: Add phyBOARD-Segin-i.MX93 support

2024-01-25 Thread Fabio Estevam
On Thu, Jan 25, 2024 at 1:45 PM Mathieu Othacehe wrote: > +ipaddr=192.168.3.11 > +serverip=192.168.3.10 > +netmask=255.255.255.0 Please remove these hardcoded IP addresses.

Re: Could you please help me in resolving the " /reset.c:42:(.text.do_reset+0x20): undefined reference to `reset_cpu'?"

2024-01-23 Thread Fabio Estevam
On Tue, Jan 23, 2024 at 4:20 PM Liu Wang wrote: > > Hi Fabio, > > Thank you for your help. > > Attached is the 'git status' and 'git log' in my porting u-boot to my > cse_ptjob_cb3_r102 control board by following README in u-boot and being > blocked with the hurdle of "undefined reference to

Re: Could you please help me in resolving the " /reset.c:42:(.text.do_reset+0x20): undefined reference to `reset_cpu'?"

2024-01-22 Thread Fabio Estevam
Hi Liu Wang, On Mon, Jan 22, 2024 at 10:55 PM Liu Wang wrote: > > Hi Fabio, > > Could you please help me in resolving the " > /reset.c:42:(.text.do_reset+0x20): undefined reference to `reset_cpu'?" from: > u-boot$make all: Looking at the errors below, there are several errors besides the

Pull request: Please pull u-boot-imx-20240115

2024-01-22 Thread Fabio Estevam
bit-imx6ul to CONFIG_DM_SERIAL. - Fix 'reset' command on wandboard. -------- Fabio Estevam (3): imx8m: Enable LTO by default wandboard: Convert to watchdog driver model pico-dwarf/hobbit-imx6ul: Convert to CONFIG_DM_SERIAL Marek Vasut (3):

Re: [PATCH] ARM: imx: Enable kaslrseed command on DH i.MX8M Plus DHCOM

2024-01-22 Thread Fabio Estevam
On Fri, Jan 19, 2024 at 9:36 PM Marek Vasut wrote: > > Linux 6.6.y with KASLR enabled would print the following message on boot: > " > KASLR disabled due to lack of seed > " > Enable the 'kaslrseed' command so a random number seed can be pulled > from CAAM and inserted into the /chosen node

Re: [PATCH] pico-dwarf/hobbit-imx6ul: Convert to CONFIG_DM_SERIAL

2024-01-22 Thread Fabio Estevam
On Fri, Jan 19, 2024 at 4:41 PM Fabio Estevam wrote: > > The conversion to CONFIG_DM_SERIAL is mandatory, so select > this option. > > Signed-off-by: Fabio Estevam Applied, thanks.

Re: [PATCH] wandboard: Convert to watchdog driver model

2024-01-22 Thread Fabio Estevam
On Fri, Jan 19, 2024 at 2:25 PM Fabio Estevam wrote: > > Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused > the 'reset' command in U-Boot to not cause a board reset. > > Fix it by switching to the watchdog driver model via sysreset, which

Re: [PATCH v2] ARM: imx: Configure GIC clock parent on Data Modul i.MX8M Plus eDM SBC

2024-01-22 Thread Fabio Estevam
On Fri, Jan 19, 2024 at 1:09 PM Marek Vasut wrote: > > The CONFIG_SPL_BOARD_INIT lets SPL common code call spl_board_init() > during the SPL start up. On this particular system, spl_board_init() > is used to reconfigure GIC clock parent to PLL2 500M, which is the > configuration expected by the

Re: [PATCH 1/2] imx8m: Enable LTO by default

2024-01-22 Thread Fabio Estevam
On Thu, Jan 18, 2024 at 12:06 PM Fabio Estevam wrote: > > From: Fabio Estevam > > In an attempt to select ARMV8_SPL_EXCEPTION_VECTORS, the SPL size > could not fit into the internal SRAM of some imx8m targets: > >aarch64: + imx8mm_phg > +aarch64-linux-ld

Re: [PATCH] ARM: imx: Enable kaslrseed command on DH i.MX8M Plus DHCOM

2024-01-22 Thread Fabio Estevam
On Fri, Jan 19, 2024 at 9:36 PM Marek Vasut wrote: > > Linux 6.6.y with KASLR enabled would print the following message on boot: > " > KASLR disabled due to lack of seed > " > Enable the 'kaslrseed' command so a random number seed can be pulled > from CAAM and inserted into the /chosen node

Re: [PATCH] ARM: imx: Enable kaslrseed command on DH i.MX8M Plus DHCOM

2024-01-20 Thread Fabio Estevam
inserted into the /chosen node 'kaslr-seed' property of > Linux kernel DT before boot, thus letting KASLR work properly. > > Signed-off-by: Marek Vasut Reviewed-by: Fabio Estevam

Re: [PATCH v2] ARM: imx: Configure GIC clock parent on Data Modul i.MX8M Plus eDM SBC

2024-01-20 Thread Fabio Estevam
2) set by ROM for > ND VDD_SOC. > > Signed-off-by: Marek Vasut Reviewed-by: Fabio Estevam

Re: [PATCH v2] ARM: imx: Enable SPL_BOARD_INIT on DH i.MX8M Plus DHCOM

2024-01-20 Thread Fabio Estevam
igned-off-by: Marek Vasut Reviewed-by: Fabio Estevam

[PATCH] pico-dwarf/hobbit-imx6ul: Convert to CONFIG_DM_SERIAL

2024-01-19 Thread Fabio Estevam
The conversion to CONFIG_DM_SERIAL is mandatory, so select this option. Signed-off-by: Fabio Estevam --- configs/pico-dwarf-imx6ul_defconfig | 1 + configs/pico-hobbit-imx6ul_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/pico-dwarf-imx6ul_defconfig b/configs/pico

[PATCH] wandboard: Convert to watchdog driver model

2024-01-19 Thread Fabio Estevam
Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused the 'reset' command in U-Boot to not cause a board reset. Fix it by switching to the watchdog driver model via sysreset, which is the preferred method for implementing the watchdog reset. Signed-off-by: Fab

Re: [PATCH] ARM: imx: Enable SPL_BOARD_INIT on DH i.MX8M Plus DHCOM

2024-01-19 Thread Fabio Estevam
On Thu, Jan 18, 2024 at 9:38 PM Marek Vasut wrote: > > The CONFIG_SPL_BOARD_INIT lets SPL common code call spl_board_init() > during the SPL start up. On this particular system, spl_board_init() > is used to reconfigure GIC clock parent to PLL2 500M, which is the > configuration expected by the

Re: [PATCH] ARM: imx: Configure GIC clock parent on Data Modul i.MX8M Plus eDM SBC

2024-01-19 Thread Fabio Estevam
Hi Marek, On Thu, Jan 18, 2024 at 9:47 PM Marek Vasut wrote: > > The CONFIG_SPL_BOARD_INIT lets SPL common code call spl_board_init() > during the SPL start up. On this particular system, spl_board_init() > is used to reconfigure GIC clock parent to PLL2 500M, which is the > configuration

Re: [PATCH 2/2] arm: imx: imx8m: Enable the SError exception

2024-01-18 Thread Fabio Estevam
On Thu, Jan 18, 2024 at 4:08 PM Marek Vasut wrote: > > On 1/18/24 16:06, Fabio Estevam wrote: > > From: Ye Li > > > > To work with commit 2f3c92060dcd ("imx8m: workaround ROM serror") > > we need to enable the SError exception and install vector in SPL.

[PATCH 2/2] arm: imx: imx8m: Enable the SError exception

2024-01-18 Thread Fabio Estevam
From: Ye Li To work with commit 2f3c92060dcd ("imx8m: workaround ROM serror") we need to enable the SError exception and install vector in SPL. Signed-off-by: Ye Li Reviewed-by: Peng Fan Reported-by: Thomas Schaefer Reviewed-by: Fabio Estevam Signed-off-by: Fabio Estevam --- arc

[PATCH 1/2] imx8m: Enable LTO by default

2024-01-18 Thread Fabio Estevam
From: Fabio Estevam In an attempt to select ARMV8_SPL_EXCEPTION_VECTORS, the SPL size could not fit into the internal SRAM of some imx8m targets: aarch64: + imx8mm_phg +aarch64-linux-ld.bfd: u-boot-spl section `__u_boot_list' will not fit in region `.sram' +aarch64-linux-ld.bfd: region

Re: [PATCH] arm: imx: imx8m: Enable the SError exception

2024-01-18 Thread Fabio Estevam
On Fri, Jan 12, 2024 at 3:00 PM Fabio Estevam wrote: > > Hi Ye Li, > > On Fri, Jan 12, 2024 at 4:07 AM Ye Li wrote: > > > > To work with commit 2f3c920(imx8m: workaround ROM serror), > > we need to enable the SError exception and install vector in SPL. > > &g

Re: Could you please help me in resolving the "arch/arm/lib/vectors.S:87: Error: no such instruction: `b reset' ?"

2024-01-17 Thread Fabio Estevam
On Wed, Jan 17, 2024 at 10:26 PM Liu Wang wrote: > > Hi Fabio, > > Thank you for your help. > > Switching to "arm-gnu-toolchain-13.2.Rel1-x86-64-arm-none-eabi" seems a fix > for : > ...gnueabihf-gcc: cannot execute binary file: Exec format error... I would suggest installing the default arm

Re: Could you please help me in resolving the "arch/arm/lib/vectors.S:87: Error: no such instruction: `b reset' ?"

2024-01-17 Thread Fabio Estevam
On Wed, Jan 17, 2024 at 3:25 PM Liu Wang wrote: > 2. You are right. I have not exported the tool chain. > Could you please share me a link to a readme in setting up the tool chain for > Ubuntu cross build environment ? You can do like this: export ARCH=arm export

Re: Could you please help me in resolving the "arch/arm/lib/vectors.S:87: Error: no such instruction: `b reset' ?"

2024-01-17 Thread Fabio Estevam
On Wed, Jan 17, 2024 at 9:27 AM Liu Wang wrote: > > Sir/Madam, > > Could you please help me in resolving the "arch/arm/lib/vectors.S:87: Error: > no such instruction: `b reset' ?" > > Sincerely, > Liu Wang > liuw@liuw-SYS-E100-12T-H:~/Downloads/u-boot$ make cse_ptjob_cb3_r102_defconfig This is

Re: [PATCH] Add Phytec i.MX93 support

2024-01-17 Thread Fabio Estevam
Hi Mathieu, Thanks for the patch. I have added more Phytec folks in case they could help review/test. On Wed, Jan 17, 2024 at 4:53 AM Mathieu Othacehe wrote: > > Add support for the Phytec i.MX93 Segin evaluation kit. The SoM consists > of an NXP i.MX93 dual A55 CPU. The SoM is mounted on a

Pull request: Please pull u-boot-imx-20240115

2024-01-15 Thread Fabio Estevam
/-/pipelines/19324 Anatolij Gustschin (1): arm: xea: Add support for boot image source descriptor in SPL Fabio Estevam (3): doc: imx93_var_som: Adjust the underline length imx9: Select BINMAN at SoC level imx8m: Select

Re: [PATCH v3 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-15 Thread Fabio Estevam
On Mon, Jan 15, 2024 at 10:52 AM Lukasz Majewski wrote: > > The default set of environment variables from CFG_EXTRA_ENV_SETTINGS > has been moved to a separate file - board/liebherr/xea/xea.env > > Adjustments done: > - fitImage support > - SPI-NOR layout re-organization > > Signed-off-by: Lukasz

Re: [PATCH v2] board: phytec: fix link error when disabling PHYTEC_SOM_DETECTION

2024-01-15 Thread Fabio Estevam
On Mon, Jan 15, 2024 at 6:31 AM Yannic Moog wrote: > > Commit aa7858fe5e2e ("board: phytec: som_detection: move definitions to > source file") moved function definitions from header to source file. > Makefile however was not updated to unconditionally (from > [..]_SOM_DETECTION) build the imx8

Re: [RFC][PATCH] ARM: imx: verdin-imx8mm: Set CAN oscillator frequency based on model

2024-01-13 Thread Fabio Estevam
On Sat, Jan 13, 2024 at 5:45 PM Francesco Dolcini wrote: > Fabio, you were too fast ... please revert it. I have dropped this patch from u-boot-imx master-next.

Re: [RFC][PATCH] ARM: imx: verdin-imx8mm: Set CAN oscillator frequency based on model

2024-01-13 Thread Fabio Estevam
On Sat, Jan 13, 2024 at 3:34 PM Marek Vasut wrote: > > The older i.MX8M Mini Verdin SoMs before rev. 1.1C came with 20 MHz SPI CAN > controller oscillator, the newer SoMs use 40 MHz oscillator. Handle both by > overriding the oscillator frequency just before booting the kernel. > > Signed-off-by:

Re: [PATCH] ARM: imx: Set stdio to serial on Data Modul i.MX8M Mini/Plus eDM SBC

2024-01-13 Thread Fabio Estevam
On Sat, Jan 13, 2024 at 2:59 PM Marek Vasut wrote: > > In case CONSOLE_MUX and SYS_CONSOLE_IS_IN_ENV are enabled, the console > stdin, stdout, stderr must be defined in environment. Define the default > settings to fix the following warning on boot: > > " > In:No input devices available! >

Re: [PATCH] ARM: imx: Set stdio to serial on DH i.MX8M Plus DHCOM

2024-01-13 Thread Fabio Estevam
On Sat, Jan 13, 2024 at 2:59 PM Marek Vasut wrote: > > In case CONSOLE_MUX and SYS_CONSOLE_IS_IN_ENV are enabled, the console > stdin, stdout, stderr must be defined in environment. Define the default > settings to fix the following warning on boot: > > " > In:No input devices available! >

Re: [PATCH] defconfig: xea: Change default spi-nor memory bus to 2 (single binary)

2024-01-12 Thread Fabio Estevam
On Fri, Jan 12, 2024 at 1:02 PM Lukasz Majewski wrote: > > After the re-sync with Linux kernel (v6.0) of the XEA DTS > (SHA1: 7d08ddd09b75e7a3c103cc0d0d3ed700287f268e) the alias > for SPI bus, to which SPI-NOR memory is connected, has changed from > 'spi3' to 'spi2'. > > To be in sync with

Re: [PATCH 1/1] imx: imx9: fixup thermal trips from fuses

2024-01-12 Thread Fabio Estevam
On Thu, Jan 11, 2024 at 9:56 AM Primoz Fiser wrote: > > Read i.MX9 CPU temp grade from fuses and fixup thermal trips in Linux > device-tree accordingly. > > Based on commit 0543a1ed2787 ("imx8m: fixup thermal trips") > > Signed-off-by: Primoz Fiser Applied, thanks.

Re: [PATCH v2 0/3] This series adds support for the phyGATE-Tauri-L.

2024-01-12 Thread Fabio Estevam
On Wed, Jan 10, 2024 at 10:35 AM Yannic Moog wrote: > > The config is minimal and mostly a copy from the phycore-imx8mm. SPI > (flash) is disabled as it is not populated by default. > Also add documentation for the phyGATE-Tauri-L board. While at it, add > the other PHYTEC doc files to

Re: [PATCH 1/3] doc: imx93_var_som: Adjust the underline length

2024-01-12 Thread Fabio Estevam
On Mon, Jan 8, 2024 at 6:11 PM Fabio Estevam wrote: > > From: Fabio Estevam > > Adjust the underline length so that it matches the title length. > > Signed-off-by: Fabio Estevam Applied all, thanks.

Re: [PATCH] arm: imx: imx8m: Enable the SError exception

2024-01-12 Thread Fabio Estevam
Hi Ye Li, On Fri, Jan 12, 2024 at 4:07 AM Ye Li wrote: > > To work with commit 2f3c920(imx8m: workaround ROM serror), > we need to enable the SError exception and install vector in SPL. > > Signed-off-by: Ye Li > Reviewed-by: Peng Fan This causes an image increase that makes SPL to not fit

Re: [PATCH] board: phytec: fix link error when disabling PHYTEC_SOM_DETECTION

2024-01-12 Thread Fabio Estevam
Hi Yannic, On Thu, Jan 11, 2024 at 5:27 AM Yannic Moog wrote: > > Commit aa7858fe5e2e ("board: phytec: som_detection: move definitions to > source file") moved function definitions from header to source file. > Makefile however was not updated to unconditionally build the imx8 and > phytec som

Re: [PATCH] arm: imx: imx8m: Enable the SError exception

2024-01-12 Thread Fabio Estevam
On Fri, Jan 12, 2024 at 4:07 AM Ye Li wrote: > > To work with commit 2f3c920(imx8m: workaround ROM serror), > we need to enable the SError exception and install vector in SPL. > > Signed-off-by: Ye Li > Reviewed-by: Peng Fan Reported-by: Thomas Schaefer Reviewed-by: Fabio Estevam

Re: [PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Fabio Estevam
On Thu, Jan 11, 2024 at 8:16 AM Fabio Estevam wrote: > > Hi Lukasz, > > On Thu, Jan 11, 2024 at 8:06 AM Lukasz Majewski wrote: > > > +serverip=10.8.217.79 > > +nfs_serverip=10.8.218.113 > > +gatewayip=10.8.209.250 > > These IP addresses should not be ha

Re: [PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Fabio Estevam
Hi Lukasz, On Thu, Jan 11, 2024 at 8:06 AM Lukasz Majewski wrote: > +serverip=10.8.217.79 > +nfs_serverip=10.8.218.113 > +gatewayip=10.8.209.250 These IP addresses should not be hardcoded here. They were not present in xea.h originally. Please remove them.

Re: [PATCH v4 07/11] doc: devicetree: Align documentation to use Kconfig options

2024-01-10 Thread Fabio Estevam
On Wed, Jan 10, 2024 at 7:37 AM Sumit Garg wrote: > History > --- > > -U-Boot configuration was previous done using CONFIG options in the board > +U-Boot configuration was previous done using Kconfig options in the board > config file. This eventually got out of hand with nearly 10,000

Re: inconsistent wget behavior

2024-01-10 Thread Fabio Estevam
Hi Paul, On Fri, Jan 5, 2024 at 4:19 PM Fabio Estevam wrote: > > I tried to investigate this by U-boot sandbox. But it seems to me that I > > cannot reproduce this issue. > > I put a file on localhost apache server and tried to download it from > > localhost.

[PATCH 3/3] imx8m: Select BINMAN at SoC level

2024-01-08 Thread Fabio Estevam
From: Fabio Estevam All i.MX8M targets rely on using binman to generate the U-Boot binary. Select it at the SoC level instead of per board. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/imx8m/Kconfig | 39 + 1 file changed, 1 insertion(+), 38 deletions

[PATCH 2/3] imx9: Select BINMAN at SoC level

2024-01-08 Thread Fabio Estevam
From: Fabio Estevam All i.MX93 targets rely on using binman to generate the U-Boot binary. Select it at the SoC level instead of per board. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/imx9/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-imx

[PATCH 1/3] doc: imx93_var_som: Adjust the underline length

2024-01-08 Thread Fabio Estevam
From: Fabio Estevam Adjust the underline length so that it matches the title length. Signed-off-by: Fabio Estevam --- doc/board/variscite/imx93_var_som.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/board/variscite/imx93_var_som.rst b/doc/board/variscite

[v2] Pull request: Please pull u-boot-imx-master-20240108

2024-01-08 Thread Fabio Estevam
Hi Tom, This is v2. Fixed the summary log. Please pull from u-boot-imx, thanks. The following changes since commit 93d91e9485d902a1836a22e72d1a545b587adf36: Merge branch 'next' (2024-01-08 12:00:18 -0500) are available in the Git repository at:

Pull request: Please pull u-boot-imx-master-20240108

2024-01-08 Thread Fabio Estevam
Hi Tom, Please pull from u-boot-imx, thanks. The following changes since commit 93d91e9485d902a1836a22e72d1a545b587adf36: Merge branch 'next' (2024-01-08 12:00:18 -0500) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git

Re: [PATCH v5 0/3] Add imx93-var-som support

2024-01-08 Thread Fabio Estevam
On Mon, Jan 8, 2024 at 7:59 AM Mathieu Othacehe wrote: > Right, because I wasn't sure CI was working for pull requests on the > `next` branch of Github. It looks like it is so I also created a PR on > top of the `next` branch: https://github.com/u-boot/u-boot/pull/459. I applied this one,

Re: [PATCH] ARM: imx: Auto-detect PHY on Data Modul i.MX8M Mini/Plus eDM SBC

2024-01-08 Thread Fabio Estevam
On Mon, Jan 1, 2024 at 6:07 PM Marek Vasut wrote: > > Implement fdtdec_board_setup() auto-detection of ethernet PHY. > This uses properties of the hardware and pull resistor placement. > > If GPIO1_16 RGMII_MDC is HIGH, then R530 (MX8MM eDM SBC) or > R390 (MX8MP eDM SBC) is populated. R530 or

Re: [PATCH v1] verdin-imx8mm: Remove stale fdt_addr env variable

2024-01-08 Thread Fabio Estevam
On Tue, Jan 2, 2024 at 9:12 AM Francesco Dolcini wrote: > > From: Francesco Dolcini > > fdt_addr variable is the location in flash of the device tree blob [1], it > does not exist for verdin-imx8mm. > > Because of this the bootefi command fails unless the optional > `[fdt address]` parameter is

Re: [PATHv11 00/43] net/lwip: add lwip library for the network stack

2024-01-08 Thread Fabio Estevam
On Mon, Jan 8, 2024 at 5:43 AM Maxim Uvarov wrote: > I will try, but for some reason there is no i.MX board in the lab. Yes, please. Try to get it. > MAC address is different in two commands, it has to be the same. They are the same actually: u-boot=> net list eth0 : ethernet@30be

<    1   2   3   4   5   6   7   8   9   10   >