Re: Latest build of fsl-community-bsp kernel hangs booting imx8mmevk


Brian Hutchinson
 

On Fri, Sep 11, 2020 at 02:29 AM, Andrey Zhizhikin wrote:
On Thu, Sep 10, 2020 at 11:59 PM Brian Hutchinson <b.hutchman@...> wrote:
On Thu, Sep 10, 2020 at 05:22 AM, Fabio Estevam wrote:

Hi Otavio,

On Thu, Sep 10, 2020 at 9:09 AM Otavio Salvador
<otavio.salvador@...> wrote:

Could U-Boot load the correct dtb for the board revision?

Unfortunately, this cannot be determined in run-time.

When the sdcard is created, the u-boot environment has fdt_file defaulted to imx8mm-evk.dtb. I've not yet figured out how to override the recipe to specify which .dtb file should be used.
You can try to do something like this in your layer via creating a
u-boot-imx_%.bbapend:

patch_uboot_defconfig () {
sed -i -e '/^[ ]*CONFIG_DEFAULT_FDT_FILE[ ]*=/d' ${S}/configs/$1
echo 'CONFIG_DEFAULT_FDT_FILE="'$2'"' >>${S}/configs/$1
}

do_configure_prepend_imx8mmevk () {
patch_uboot_defconfig imx8mm_evk_defconfig imx8mm-evk-revb.dtb
}

NOTE: This is not the most clean solution on how to approach the

Ha, ha, I figured there was already some way to do it and I just overlooked it or wasn't smart enough to figure it out.  Yeah, you can do anything with good ole sed. 

I plan to switch back to using the original .config and try the rev B .dtb to see if that fixes things when I get a chance.

setting of U-Boot DTB and would (most probably) break reproducibility.
You can use it to see what should be changed, and try out if that
would solve the PCIe hang during boot. Also: "For verification
purposes ONLY!". :)

Thanks!

Brian

Join {meta-freescale@lists.yoctoproject.org to automatically receive all group messages.