diff mbox series

imx: imx8qxp_mek: update README

Message ID 20200108015305.13932-1-peng.fan@nxp.com
State Accepted
Commit 240ece49c7c1fcb724b999dbe77347b6b195874e
Headers show
Series imx: imx8qxp_mek: update README | expand

Commit Message

Peng Fan Jan. 8, 2020, 1:33 a.m. UTC
Update README to use 4.19.35_1.1.0 released firmware images.

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 board/freescale/imx8qxp_mek/README | 26 +++++++++++---------------
 1 file changed, 11 insertions(+), 15 deletions(-)

Comments

Fabio Estevam Jan. 8, 2020, 9:52 a.m. UTC | #1
Hi Peng

On Tue, Jan 7, 2020 at 10:33 PM Peng Fan <peng.fan at nxp.com> wrote:
>
> Update README to use 4.19.35_1.1.0 released firmware images.

I have tried the same here and I still get a hang with Ethernet. If I
manually remove Ethernet support from the defconfig then I am able to
get into the U-Boot prompt.

Could you please share your U-Boot logs?

I use a i.MX8QXP mek with B0 silicon and revC1.

Thanks
Peng Fan Jan. 8, 2020, 12:31 p.m. UTC | #2
> Subject: Re: [PATCH] imx: imx8qxp_mek: update README
> 
> Hi Peng
> 
> On Tue, Jan 7, 2020 at 10:33 PM Peng Fan <peng.fan at nxp.com> wrote:
> >
> > Update README to use 4.19.35_1.1.0 released firmware images.
> 
> I have tried the same here and I still get a hang with Ethernet. If I manually
> remove Ethernet support from the defconfig then I am able to get into the
> U-Boot prompt.
> 
> Could you please share your U-Boot logs?

I not have a board at hand. Will paste the log tomorrow.

Thanks,
Peng.

> 
> I use a i.MX8QXP mek with B0 silicon and revC1.
> 
> Thanks
Peng Fan Jan. 9, 2020, 1:33 a.m. UTC | #3
> Subject: RE: [PATCH] imx: imx8qxp_mek: update README
> 
> > Subject: Re: [PATCH] imx: imx8qxp_mek: update README
> >
> > Hi Peng
> >
> > On Tue, Jan 7, 2020 at 10:33 PM Peng Fan <peng.fan at nxp.com> wrote:
> > >
> > > Update README to use 4.19.35_1.1.0 released firmware images.
> >
> > I have tried the same here and I still get a hang with Ethernet. If I
> > manually remove Ethernet support from the defconfig then I am able to
> > get into the U-Boot prompt.
> >
> > Could you please share your U-Boot logs?
> 
> I not have a board at hand. Will paste the log tomorrow.

The ipg clk patch needs to be reverted for now. Anyway the log as below:

U-Boot SPL 2020.01-00025-gedb89b239c-dirty (Jan 08 2020 - 09:50:22 +0800)
Normal Boot
WDT:   Not found!
Trying to boot from MMC2_2
Load image from MMC/SD 0x46800


U-Boot 2020.01-00025-gedb89b239c-dirty (Jan 08 2020 - 09:50:22 +0800)

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

Model: Freescale i.MX8QXP MEK
Board: iMX8QXP MEK
Build: SCFW 550f3079, SECO-FW d7523fe8, ATF f900faa
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 at 5a060000
Out:   serial at 5a060000
Err:   serial at 5a060000
Net:   Failed to enable ipg clk

Warning: ethernet at 5b040000 using MAC address from ROM
eth0: ethernet at 5b040000
Hit any key to stop autoboot:  0
=>

Regards,
Peng.

> 
> Thanks,
> Peng.
> 
> >
> > I use a i.MX8QXP mek with B0 silicon and revC1.
> >
> > Thanks
Fabio Estevam Jan. 9, 2020, 1:38 a.m. UTC | #4
Hi Peng,

On Wed, Jan 8, 2020 at 10:33 PM Peng Fan <peng.fan at nxp.com> wrote:

> The ipg clk patch needs to be reverted for now. Anyway the log as below:

Which commit are you referring to? Can you send a revert? Is this
revert needed for booting this board?

> U-Boot SPL 2020.01-00025-gedb89b239c-dirty (Jan 08 2020 - 09:50:22 +0800)
> Normal Boot
> WDT:   Not found!
> Trying to boot from MMC2_2
> Load image from MMC/SD 0x46800
>
>
> U-Boot 2020.01-00025-gedb89b239c-dirty (Jan 08 2020 - 09:50:22 +0800)

I don't see edb89b239c in U-Boot mainline.

Could you please make sure you use the latest U-Boot mainline in your test?

Thanks
Peng Fan Jan. 9, 2020, 1:44 a.m. UTC | #5
> Subject: Re: [PATCH] imx: imx8qxp_mek: update README
> 
> Hi Peng,
> 
> On Wed, Jan 8, 2020 at 10:33 PM Peng Fan <peng.fan at nxp.com> wrote:
> 
> > The ipg clk patch needs to be reverted for now. Anyway the log as below:
> 
> Which commit are you referring to? Can you send a revert? Is this revert
> needed for booting this board?
> 
> > U-Boot SPL 2020.01-00025-gedb89b239c-dirty (Jan 08 2020 - 09:50:22
> > +0800) Normal Boot
> > WDT:   Not found!
> > Trying to boot from MMC2_2
> > Load image from MMC/SD 0x46800
> >
> >
> > U-Boot 2020.01-00025-gedb89b239c-dirty (Jan 08 2020 - 09:50:22 +0800)
> 
> I don't see edb89b239c in U-Boot mainline.
> 
> Could you please make sure you use the latest U-Boot mainline in your test?

U-Boot SPL 2020.01-00243-g21aede21b0 (Jan 09 2020 - 10:01:31 +0800)
Normal Boot
WDT:   Not found!
Trying to boot from MMC2_2
Load image from MMC/SD 0x46800


U-Boot 2020.01-00243-g21aede21b0 (Jan 09 2020 - 10:01:31 +0800)

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

Model: Freescale i.MX8QXP MEK
Board: iMX8QXP MEK
Build: SCFW 550f3079, SECO-FW d7523fe8, ATF f900faa
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 at 5a060000
Out:   serial at 5a060000
Err:   serial at 5a060000
Net:   Failed to enable ipg clk

Warning: ethernet at 5b040000 using MAC address from ROM
eth0: ethernet at 5b040000
Hit any key to stop autoboot:  0

Rebased to tom's master branch.

Regards,
Peng.

> 
> Thanks
Fabio Estevam Jan. 9, 2020, 1:48 a.m. UTC | #6
Hi Peng,

On Wed, Jan 8, 2020 at 10:44 PM Peng Fan <peng.fan at nxp.com> wrote:

> U-Boot 2020.01-00243-g21aede21b0 (Jan 09 2020 - 10:01:31 +0800)
>
> CPU:   NXP i.MX8QXP RevB A35 at 1200 MHz at 20C
>
> Model: Freescale i.MX8QXP MEK
> Board: iMX8QXP MEK
> Build: SCFW 550f3079, SECO-FW d7523fe8, ATF f900faa

I see a mismatch in the ATF version.

I don't see commit f900faa inside imx_4.19.35_1.1.0 ATF version from NXP.

Could you please confirm?

Thanks
Peng Fan Jan. 9, 2020, 1:50 a.m. UTC | #7
> Subject: Re: [PATCH] imx: imx8qxp_mek: update README
> 
> Hi Peng,
> 
> On Wed, Jan 8, 2020 at 10:44 PM Peng Fan <peng.fan at nxp.com> wrote:
> 
> > U-Boot 2020.01-00243-g21aede21b0 (Jan 09 2020 - 10:01:31 +0800)
> >
> > CPU:   NXP i.MX8QXP RevB A35 at 1200 MHz at 20C
> >
> > Model: Freescale i.MX8QXP MEK
> > Board: iMX8QXP MEK
> > Build: SCFW 550f3079, SECO-FW d7523fe8, ATF f900faa
> 
> I see a mismatch in the ATF version.
> 
> I don't see commit f900faa inside imx_4.19.35_1.1.0 ATF version from NXP.
> 
> Could you please confirm?

I use internal repo which has this commit.

commit f900faa9b1f3af69e748f2c4a9ddfd2b589e416f (HEAD -> imx_4.19.35_1.1.0, origin/imx_4.19.35_1.1.0)
Author: Anson Huang <Anson.Huang at nxp.com>
Date:   Mon Sep 16 13:21:22 2019 +0800

    plat: imx: Enable L2 ECC & parity for A72 cluster

    As per design team's suggestion, L2 cache's ECC & parity
    should be enabled for A72 cluster.

    Signed-off-by: Anson Huang <Anson.Huang at nxp.com>
    (cherry picked from commit 513348b385829ed7be346c5360b3c85341aa7ea7)

commit 70fa7bcc1a2035ab8402550911b3ae29eff55371 (tag: rel_imx_4.19.35_1.1.0_rc4, tag: rel_imx_4.19.35_1.1.0, tag: lf-5.4.y-1.0.0-rc1)
Author: Ji Luo <ji.luo at nxp.com>
Date:   Fri Oct 11 15:34:19 2019 +0800

    MA-15614 imx8m: Enable wdog if WDOG_B_RESET not enabled

    Set the WDE bit when IMX_WDOG_B_RESET is not enabled, or
    reboot will fail.

    Change-Id: Icd4f0b1271ac3ff99b7243a85ce63479348a42f6
    Signed-off-by: Ji Luo <ji.luo at nxp.com>

Regards,
Peng.

> 
> Thanks
Fabio Estevam Jan. 9, 2020, 1:13 p.m. UTC | #8
Hi Peng,

On Wed, Jan 8, 2020 at 10:50 PM Peng Fan <peng.fan at nxp.com> wrote:

> I use internal repo which has this commit.

Could you please test using the external repo as written in your patch?

With these versions I am getting:

U-Boot 2020.01-00369-g81132f1c96 (Jan 09 2020 - 10:02:47 -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 70fa7bc
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 at 5a060000
Out:   serial at 5a060000
Err:   serial at 5a060000
Net:   Failed to enable ipg clk

Error: ethernet at 5b040000 address not set.

(It hangs here).

Does it work if you use the ATF 70fa7bc version?
diff mbox series

Patch

diff --git a/board/freescale/imx8qxp_mek/README b/board/freescale/imx8qxp_mek/README
index e676e88664..6e4eb5996b 100644
--- a/board/freescale/imx8qxp_mek/README
+++ b/board/freescale/imx8qxp_mek/README
@@ -14,28 +14,24 @@  Get and Build the ARM Trusted firmware
 
 $ git clone https://source.codeaurora.org/external/imx/imx-atf
 $ cd imx-atf/
-$ git checkout origin/imx_4.9.88_imx8qxp_beta2 -b imx_4.9.88_imx8qxp_beta2
-$ make PLAT=imx8qxp bl31
+$ git checkout origin/imx_4.19.35_1.1.0 -b imx_4.19.35_1.1.0
+$ make PLAT=imx8qx bl31
 
 Get scfw_tcm.bin and ahab-container.img
 ==============================
 
-$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-0.7.bin
-$ chmod +x imx-sc-firmware-0.7.bin
-$ ./imx-sc-firmware-0.7.bin
-$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.6.bin
-$ chmod +x firmware-imx-7.6.bin
-$ ./firmware-imx-7.6.bin
+$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-1.2.7.1.bin
+$ chmod +x imx-sc-firmware-1.2.7.1.bin
+$ ./imx-sc-firmware-1.2.7.1.bin
+$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-2.3.1.bin
+$ chmod +x imx-seco-2.3.1.bin
+$ ./imx-seco-2.3.1.bin
 
 Copy the following binaries to U-Boot folder:
 
-$ cp imx-atf/build/imx8qxp/release/bl31.bin .
-$ cp u-boot/u-boot.bin .
-
-Copy the following firmwares U-Boot folder :
-
-$ cp firmware-imx-7.6/firmware/seco/ahab-container.img .
-$ cp imx-sc-firmware-0.7/mx8qx-mek-scfw-tcm.bin	.
+$ cp imx-atf/build/imx8qx/release/bl31.bin .
+$ cp imx-seco-2.3.1/firmware/seco/mx8qx-ahab-container.img ./ahab-container.img
+$ cp imx-sc-firmware-1.2.7.1/mx8qx-mek-scfw-tcm.bin	.
 
 Build U-Boot
 ============