AGL not booting up in imx8mq-evk board when build using octopus and master branch

Description

Hi,

I build an AGL demo platform image for imx8mq-evk board but the board was not booting up. Boot log gets stuck at 'starting kernel message'. This was observed in octopus and master branch.

Below shows the boot log :

U-Boot SPL 2022.10+fslc+gcbd7eb17ac (May 10 2023 - 06:26:40 +0000)
PMIC:  PFUZE100 ID=0x10
SEC0:  RNG instantiated
Normal Boot
Trying to boot from MMC2

U-Boot 2022.10+fslc+gcbd7eb17ac (May 10 2023 - 06:26:40 +0000)

CPU:   Freescale i.MX8MQ rev2.0 at 1000 MHz
Reset cause: POR
Model: NXP i.MX8MQ EVK
DRAM:  3 GiB
clk_register: failed to get <NULL> device (parent of ckil)
clk_register: failed to get <NULL> device (parent of clock-osc-27m)
clk_register: failed to get <NULL> device (parent of sys1_pll)
clk_register: failed to get <NULL> device (parent of sys2_pll)
clk_register: failed to get <NULL> device (parent of sys3_pll)
Core:  148 devices, 21 uclasses, devicetree: separate
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial@30860000
Out:   serial@30860000
Err:   serial@30860000
SEC0:  RNG instantiated
Net:   
Error: ethernet@30be0000 address not set.

Error: ethernet@30be0000 address not set.
No ethernet found.

Hit any key to stop autoboot:  0 
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1:      i.MX8M Quad EVK
Retrieving file: /extlinux/../Image
append: root=/dev/mmcblk1p2 rootwait rw console=ttymxc0,115200
Retrieving file: /extlinux/../imx8mq-evk.dtb
Moving Image from 0x40480000 to 0x40600000, end=428c0000

  1.  

    1. Flattened Device Tree blob at 43000000
         Booting using the fdt blob at 0x43000000
         Loading Device Tree to 000000004fff4000, end 000000004ffffb32 ... OK

Starting kernel ...

 

Environment

None

Activity

Walt Miner 
June 13, 2023 at 12:59 PM

Close for OO 15.0.3

Scott Murray 
May 23, 2023 at 10:33 PM

Since Gerrit integration seems to be not working post-JIRA upgrade, for reference the change is:

https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28925

 

Scott Murray 
May 23, 2023 at 10:31 PM

I have pushed a change that should get you booting to homescreen once it gets merged (or you can cherry-pick it).  Based on my investigation, I imagine things have been broken in a couple of ways for quite a while.  I have memories of at least boot testing the change to use linux-fslc-lts that I did back in Marlin with the switch to Yocto kirkstone, but I must have missed checking in the bbappend for linux-fslc-lts to pick up our AGL kernel configuration bits, and some things would have been a bit iffy without that.  My guess is that at some point after Marlin, linux-fslc-lts developed this boot issue, and we picked it up in one of our uprevs of meta-freescale.  I have compared the kernel configurations and devicetrees between linux-fslc and linux-fslc-lts, and nothing obvious jumps out there, so it's a bit of a puzzle why linux-fslc-lts does not work now.

All that, however, is a bit moot, as it turns out that the MHDP driver required to get HDMI output has still not been upstreamed to Linux mainline, so both linux-fslc and linux-fslc-lts can only drive the DSI outputs AFAICT.  So to get us back to a reasonable working state, I have restored a reworked version of what I was doing with YP dunfell pre-Marlin, i.e. using the hybrid linux-fslc-imx kernel with some tweaks to use etnaviv.  I have also restored an updated version of the imx8mq-evk-viv machine template that uses the NXP BSP option in meta-freescale and thus picks up the Vivante driver.  That can be used as a fallback for testing or if someone has access to NXP support.

One other thing to note is that Bluetooth seems broken, so I have disabled starting it up and opened https://lf-automotivelinux.atlassian.net/browse/SPEC-4807#icft=SPEC-4807 to track that.  It is unlikely that I look at that issue for a while due to needing to get other things done for the Pike release.

Vishal Roy 
May 17, 2023 at 5:39 AM

  Is there a branch you are working on so we could pulll the changes you are making. 

Scott Murray 
May 16, 2023 at 8:18 PM

I have managed to get my board to boot, but graphics are not working so more digging is required.  It looks like I missed checking in a bbappend last year when I switched the i.MX boards off of the default linux-fslc to linux-fslc-lts for AGL, but just adding it doesn't help with respect to this boot problem; it looks like linux-fslc-lts has either a kernel configuration or devicetree issue on the EVK.  Switching back to the upstream meta-freescale default of linux-fslc does get the board to boot, but no graphics as mentioned above.  I will investigate further tomorrow.

Fixed

Details

Assignee

Reporter

Labels

Contract ID

Hardware Platform(s) Affected

NXP i.MX8

Affects versions

Priority

Created May 15, 2023 at 10:51 AM
Updated June 13, 2023 at 12:59 PM
Resolved June 1, 2023 at 2:30 PM

Flag notifications