Re: i.MX8QXP MEK does not boot

2020-02-14 Thread Fabio Estevam
On Fri, Feb 14, 2020 at 10:55 AM Fabio Estevam  wrote:
>
> Hi Anatolij,
>
> On Fri, Feb 14, 2020 at 7:25 AM Anatolij Gustschin  wrote:
>
> > We have two issues here, power domain off hang reported here [1]
> > and disabling nodes in device tree since commit 9f779fa4105f.
>
> If I try reverting these two commits the kernel starts booting:
> http://code.bulix.org/0xmech-1126740
>
> but it stops when the LPUART is probed.

The boot succeeds if I use a NXP based 4.14.98 kernel though.

It fails with mainline and NXP 4.19.


Re: i.MX8QXP MEK does not boot

2020-02-14 Thread Fabio Estevam
Hi Anatolij,

On Fri, Feb 14, 2020 at 7:25 AM Anatolij Gustschin  wrote:

> We have two issues here, power domain off hang reported here [1]
> and disabling nodes in device tree since commit 9f779fa4105f.

If I try reverting these two commits the kernel starts booting:
http://code.bulix.org/0xmech-1126740

but it stops when the LPUART is probed.

Peng/Ye Li,

Could you guys please take a look?

Not being able to boot a kernel on i.mx8qxp mek makes U-Boot not very useful :-)

Thanks


Re: i.MX8QXP MEK does not boot

2020-02-14 Thread Anatolij Gustschin
Hi Fabio,

On Thu, 13 Feb 2020 15:03:48 -0300
Fabio Estevam feste...@gmail.com wrote:
...
> Now it boots U-Boot, but cannot boot the kernel.
> 
> How can we fix this?

We have two issues here, power domain off hang reported here [1]
and disabling nodes in device tree since commit 9f779fa4105f.

[1] https://lists.denx.de/pipermail/u-boot/2020-February/398910.html

--
Anatolij


Re: i.MX8QXP MEK does not boot

2020-02-13 Thread Fabio Estevam
Hi Peng,

On Thu, Feb 13, 2020 at 9:44 PM Peng Fan  wrote:

> Are you using upstream kernel? Or downstream kernel and which release?

I have tried upstream and also NXP kernel 4.19.35 without success so far.

Thanks


RE: i.MX8QXP MEK does not boot

2020-02-13 Thread Peng Fan
Hi Fabio

> Subject: Re: i.MX8QXP MEK does not boot
> 
> Hi Peng,
> 
> On Wed, Feb 12, 2020 at 1:54 PM Fabio Estevam 
> wrote:
> >
> > Hi Peng,
> >
> > i.MX8QXP MEK board is not booting for me on 2020.04-rc2.
> >
> > I am using the ATF, imx-firmware and imx-sc-firmware as stated at
> > board/freescale/imx8qxp_mek/README
> >
> > Any ideas?
> 
> Sorry for the noise. I was flashing the SD card at offset 33k instead of 32k.
> 
> Now it boots U-Boot, but cannot boot the kernel.

Are you using upstream kernel? Or downstream kernel and which release?

Thanks,
Peng.

> 
> How can we fix this?
> 
> Thanks
> 
> U-Boot SPL 2020.04-rc2 (Feb 13 2020 - 15:00:37 -0300) Normal Boot
> WDT:   Not found!
> Trying to boot from MMC2_2
> Load image from MMC/SD 0x46c00
> 
> 
> U-Boot 2020.04-rc2 (Feb 13 2020 - 15:00:37 -0300)
> 
> CPU:   NXP i.MX8QXP RevB A35 at 1200 MHz at 28C
> 
> Model: Freescale i.MX8QXP MEK
> Board: iMX8QXP MEK
> Build: SCFW 550f3079, SECO-FW d7523fe8, ATF 70fa7bc
> Boot:  SD1
> DRAM:  3 GiB
> MMC:   FSL_SDHC: 0, FSL_SDHC: 1
> Loading Environment from MMC... OK
> In:serial@5a06
> Out:   serial@5a06
> Err:   serial@5a06
> Net:
> Warning: ethernet@5b04 (eth0) using random MAC address -
> 3a:8c:2e:03:49:9f
> eth0: ethernet@5b04
> Hit any key to stop autoboot:  0
> switch to partitions #0, OK
> mmc1 is current device
> 23345664 bytes read in 1010 ms (22 MiB/s) Booting from mmc ...
> 83068 bytes read in 16 ms (5 MiB/s)
> ## Flattened Device Tree blob at 8300
>Booting using the fdt blob at 0x8300
>Using Device Tree in place at 8300, end
> 8301747b Disable lsio_pwm0 rsrc 3 not owned Disable lsio_pwm1
> rsrc 3 not owned Disable lsio_pwm2 rsrc 3 not owned Disable lsio_pwm3 rsrc
> 3 not owned Disable lsio_pwm4 rsrc 3 not owned Disable lsio_pwm5 rsrc 3
> not owned Disable lsio_pwm6 rsrc 3 not owned Disable lsio_pwm7 rsrc 3 not
> owned Disable lsio_kpp rsrc 3 not owned Disable lsio_gpio0 rsrc 3 not owned
> Disable lsio_gpio1 rsrc 3 not owned Disable lsio_gpio2 rsrc 3 not owned
> Disable lsio_gpio3 rsrc 3 not owned Disable lsio_gpio4 rsrc 3 not owned
> Disable lsio_gpio5 rsrc 3 not owned Disable lsio_gpio6 rsrc 3 not owned
> Disable lsio_gpio7 rsrc 3 not owned Disable lsio_gpt0 rsrc 3 not owned
> Disable lsio_gpt1 rsrc 3 not owned Disable lsio_gpt2 rsrc 3 not owned Disable
> lsio_gpt3 rsrc 3 not owned Disable lsio_gpt4 rsrc 3 not owned Disable
> lsio_fspi0 rsrc 3 not owned Disable lsio_fspi1 rsrc 3 not owned Disable
> lsio_mu5a rsrc 3 not owned Disable conn_usb0 rsrc 3 not owned Disable
> conn_usb0_phy rsrc 3 not owned Disable conn_usb1 rsrc 3 not owned Disable
> conn_usb2 rsrc 3 not owned Disable conn_usb2_phy rsrc 3 not owned Disable
> conn_sdhc0 rsrc 3 not owned Disable conn_sdhc1 rsrc 3 not owned Disable
> conn_sdhc2 rsrc 3 not owned Disable conn_enet0 rsrc 3 not owned Disable
> conn_enet1 rsrc 3 not owned Disable conn_nand rsrc 3 not owned Disable
> conn_mlb0 rsrc 3 not owned Disable conn_dma4_ch0 rsrc 3 not owned
> Disable conn_dma4_ch1 rsrc 3 not owned Disable conn_dma4_ch2 rsrc 3 not
> owned Disable conn_dma4_ch3 rsrc 3 not owned Disable conn_dma4_ch4
> rsrc 3 not owned Disable audio_audiopll0 rsrc 3 not owned Disable
> audio_audiopll1 rsrc 3 not owned Disable audio_audioclk0 rsrc 3 not owned
> Disable audio_audioclk1 rsrc 3 not owned Disable PD_ASRC_0_RXA rsrc 3 not
> owned Disable PD_ASRC_0_RXB rsrc 3 not owned Disable PD_ASRC_0_RXC
> rsrc 3 not owned Disable PD_ASRC_0_TXA rsrc 3 not owned Disable
> PD_ASRC_0_TXB rsrc 3 not owned Disable PD_ASRC_0_TXC rsrc 3 not owned
> Disable audio_asrc0 rsrc 3 not owned Disable PD_ASRC_1_RXA rsrc 3 not
> owned Disable PD_ASRC_1_RXB rsrc 3 not owned Disable PD_ASRC_1_RXC
> rsrc 3 not owned Disable PD_ASRC_1_TXA rsrc 3 not owned Disable
> PD_ASRC_1_TXB rsrc 3 not owned Disable PD_ASRC_1_TXC rsrc 3 not owned
> Disable audio_asrc1 rsrc 3 not owned Disable PD_ESAI_0_RX rsrc 3 not
> owned Disable PD_ESAI_0_TX rsrc 3 not owned Disable audio_esai0 rsrc 3 not
> owned Disable PD_SPDIF_0_RX rsrc 3 not owned Disable PD_SPDIF_0_TX rsrc
> 3 not owned Disable audio_spdif0 rsrc 3 not owned Disable PD_SAI_0_RX rsrc
> 3 not owned Disable PD_SAI_0_TX rsrc 3 not owned Disable audio_sai0 rsrc 3
> not owned Disable PD_SAI_1_RX rsrc 3 not owned Disable PD_SAI_1_TX rsrc
> 3 not owned Disable audio_sai1 rsrc 3 not owned Disable PD_SAI_2_RX rsrc 3
> not owned Disable audio_sai2 rsrc 3 not owned Disable PD_SAI_3_RX rsrc 3
> not owned Disable audio_sai3 rsrc 3 not owned Disable PD_SAI_4_RX rsrc 3
> not owned Disable PD_SAI_4_TX rsrc 3 not owned Disable audio_sai4 rsrc 3
> not owned Disable PD_SAI_5_TX rsrc 3 not owned D

Re: i.MX8QXP MEK does not boot

2020-02-13 Thread Fabio Estevam
Hi Peng,

On Wed, Feb 12, 2020 at 1:54 PM Fabio Estevam  wrote:
>
> Hi Peng,
>
> i.MX8QXP MEK board is not booting for me on 2020.04-rc2.
>
> I am using the ATF, imx-firmware and imx-sc-firmware as stated at
> board/freescale/imx8qxp_mek/README
>
> Any ideas?

Sorry for the noise. I was flashing the SD card at offset 33k instead of 32k.

Now it boots U-Boot, but cannot boot the kernel.

How can we fix this?

Thanks

U-Boot SPL 2020.04-rc2 (Feb 13 2020 - 15:00:37 -0300)
Normal Boot
WDT:   Not found!
Trying to boot from MMC2_2
Load image from MMC/SD 0x46c00


U-Boot 2020.04-rc2 (Feb 13 2020 - 15:00:37 -0300)

CPU:   NXP i.MX8QXP RevB A35 at 1200 MHz at 28C

Model: Freescale i.MX8QXP MEK
Board: iMX8QXP MEK
Build: SCFW 550f3079, SECO-FW d7523fe8, ATF 70fa7bc
Boot:  SD1
DRAM:  3 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
In:serial@5a06
Out:   serial@5a06
Err:   serial@5a06
Net:
Warning: ethernet@5b04 (eth0) using random MAC address - 3a:8c:2e:03:49:9f
eth0: ethernet@5b04
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1 is current device
23345664 bytes read in 1010 ms (22 MiB/s)
Booting from mmc ...
83068 bytes read in 16 ms (5 MiB/s)
## Flattened Device Tree blob at 8300
   Booting using the fdt blob at 0x8300
   Using Device Tree in place at 8300, end 8301747b
Disable lsio_pwm0 rsrc 3 not owned
Disable lsio_pwm1 rsrc 3 not owned
Disable lsio_pwm2 rsrc 3 not owned
Disable lsio_pwm3 rsrc 3 not owned
Disable lsio_pwm4 rsrc 3 not owned
Disable lsio_pwm5 rsrc 3 not owned
Disable lsio_pwm6 rsrc 3 not owned
Disable lsio_pwm7 rsrc 3 not owned
Disable lsio_kpp rsrc 3 not owned
Disable lsio_gpio0 rsrc 3 not owned
Disable lsio_gpio1 rsrc 3 not owned
Disable lsio_gpio2 rsrc 3 not owned
Disable lsio_gpio3 rsrc 3 not owned
Disable lsio_gpio4 rsrc 3 not owned
Disable lsio_gpio5 rsrc 3 not owned
Disable lsio_gpio6 rsrc 3 not owned
Disable lsio_gpio7 rsrc 3 not owned
Disable lsio_gpt0 rsrc 3 not owned
Disable lsio_gpt1 rsrc 3 not owned
Disable lsio_gpt2 rsrc 3 not owned
Disable lsio_gpt3 rsrc 3 not owned
Disable lsio_gpt4 rsrc 3 not owned
Disable lsio_fspi0 rsrc 3 not owned
Disable lsio_fspi1 rsrc 3 not owned
Disable lsio_mu5a rsrc 3 not owned
Disable conn_usb0 rsrc 3 not owned
Disable conn_usb0_phy rsrc 3 not owned
Disable conn_usb1 rsrc 3 not owned
Disable conn_usb2 rsrc 3 not owned
Disable conn_usb2_phy rsrc 3 not owned
Disable conn_sdhc0 rsrc 3 not owned
Disable conn_sdhc1 rsrc 3 not owned
Disable conn_sdhc2 rsrc 3 not owned
Disable conn_enet0 rsrc 3 not owned
Disable conn_enet1 rsrc 3 not owned
Disable conn_nand rsrc 3 not owned
Disable conn_mlb0 rsrc 3 not owned
Disable conn_dma4_ch0 rsrc 3 not owned
Disable conn_dma4_ch1 rsrc 3 not owned
Disable conn_dma4_ch2 rsrc 3 not owned
Disable conn_dma4_ch3 rsrc 3 not owned
Disable conn_dma4_ch4 rsrc 3 not owned
Disable audio_audiopll0 rsrc 3 not owned
Disable audio_audiopll1 rsrc 3 not owned
Disable audio_audioclk0 rsrc 3 not owned
Disable audio_audioclk1 rsrc 3 not owned
Disable PD_ASRC_0_RXA rsrc 3 not owned
Disable PD_ASRC_0_RXB rsrc 3 not owned
Disable PD_ASRC_0_RXC rsrc 3 not owned
Disable PD_ASRC_0_TXA rsrc 3 not owned
Disable PD_ASRC_0_TXB rsrc 3 not owned
Disable PD_ASRC_0_TXC rsrc 3 not owned
Disable audio_asrc0 rsrc 3 not owned
Disable PD_ASRC_1_RXA rsrc 3 not owned
Disable PD_ASRC_1_RXB rsrc 3 not owned
Disable PD_ASRC_1_RXC rsrc 3 not owned
Disable PD_ASRC_1_TXA rsrc 3 not owned
Disable PD_ASRC_1_TXB rsrc 3 not owned
Disable PD_ASRC_1_TXC rsrc 3 not owned
Disable audio_asrc1 rsrc 3 not owned
Disable PD_ESAI_0_RX rsrc 3 not owned
Disable PD_ESAI_0_TX rsrc 3 not owned
Disable audio_esai0 rsrc 3 not owned
Disable PD_SPDIF_0_RX rsrc 3 not owned
Disable PD_SPDIF_0_TX rsrc 3 not owned
Disable audio_spdif0 rsrc 3 not owned
Disable PD_SAI_0_RX rsrc 3 not owned
Disable PD_SAI_0_TX rsrc 3 not owned
Disable audio_sai0 rsrc 3 not owned
Disable PD_SAI_1_RX rsrc 3 not owned
Disable PD_SAI_1_TX rsrc 3 not owned
Disable audio_sai1 rsrc 3 not owned
Disable PD_SAI_2_RX rsrc 3 not owned
Disable audio_sai2 rsrc 3 not owned
Disable PD_SAI_3_RX rsrc 3 not owned
Disable audio_sai3 rsrc 3 not owned
Disable PD_SAI_4_RX rsrc 3 not owned
Disable PD_SAI_4_TX rsrc 3 not owned
Disable audio_sai4 rsrc 3 not owned
Disable PD_SAI_5_TX rsrc 3 not owned
Disable audio_sai5 rsrc 3 not owned
Disable audio_gpt5 rsrc 3 not owned
Disable audio_gpt6 rsrc 3 not owned
Disable audio_gpt7 rsrc 3 not owned
Disable audio_gpt8 rsrc 3 not owned
Disable audio_gpt9 rsrc 3 not owned
Disable audio_gpt10 rsrc 3 not owned
Disable audio_amix rsrc 3 not owned
Disable audio_mqs0 rsrc 3 not owned
Disable audio_mclkout0 rsrc 3 not owned
Disable audio_mclkout1 rsrc 3 not owned
Disable PD_DSP_MU_A rsrc 3 not owned
Disable PD_DSP_MU_B rsrc 3 not owned
Disable audio_ocram rsrc 3 not owned
Disable audio_dsp rsrc 3 not owned
Disable dma_elcdif_pll rsrc 3 not owned
Disable dma_lcd0 rsrc 3 not owned
Disable dma_flexcan0 rsrc 3 not owned

Re: i.MX8QXP MEK does not boot with latest U-Boot

2020-01-06 Thread Fabio Estevam
Hi Peng,

On Tue, Dec 17, 2019 at 12:46 PM Fabio Estevam  wrote:
>
> Hi Peng,
>
> I am trying to boot the latest U-Boot mainline on a imx8qxp mek board
> and this is what I get:
>
> U-Boot SPL 2020.01-rc5-1-g3dd6a9300b-dirty (Dec 17 2019 - 12:33:57 -0300)
> Normal Boot
> WDT:   Not found!
> Trying to boot from MMC2_2
> Load image from MMC/SD 0x46800
>
> U-Boot 2020.01-rc5-1-g3dd6a9300b-dirty (Dec 17 2019 - 12:33:57 -0300)
>
> CPU:   NXP i.MX8QXP RevB A35 at 1200 MHz at 31C
>
> Model: Freescale i.MX8QXP MEK
> Board: iMX8QXP MEK
> Build: SCFW 550f3079, SECO-FW d7523fe8, ATF f92d379
> Boot:  SD1
> DRAM:  3 GiB
> Failed to enable ipg clk
> MMC:   FSL_SDHC: 0, FSL_SDHC: 1
> Loading Environment from MMC... *** Warning - bad CRC, using default 
> environment
>
> In:serial@5a06
> Out:   serial@5a06
> Err:   serial@5a06
> Net:   Failed to enable ipg clk
>
> Error: ethernet@5b04 address not set.
>
> (It hangs here).
>
> I am using the SC and seco firmware from the 4.19.35 release.
>
> Here is the updated README that I am following:
> http://code.bulix.org/i8bhp8-1018627
>
> Any ideas as to how to fix this boot problem?

Did you have a chance to look at this boot regression?

Thanks