Yocto and IMX8MM EVK issues

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Yocto and IMX8MM EVK issues

Jump to solution
1,557 Views
oprata
Contributor II
Hello Folks, I used Yocto to generate image for imx8mm-evk board. Almost everything works fine except the u-boot. Alfter I used the command "bitbake imx-image-full" to generate image for imx8mmevk board. At the "./build/tmp/deploy/images/imx8mmevk/" folder I found many files after Yocto finish the building. I used the "imx-boot-imx8mmevk-sd.bin-flash_evk" and "imx-image-full-imx8mmevk-20210403004749.rootfs.wic.bz2" files to flashing the emmc of imx8mmevk board. I use the command "sudo ./uuu -b emmc_all imx-boot-imx8mmevk-sd.bin-flash_evk imx-image-full-imx8mmevk-20210403004749.rootfs.wic.bz2" to do that. It was working fine. But when I looked at the u-boot console message I got this message below. Does anybody know how do I fix the PMIC issues of PMIC PCA9450? The imx8mmevk board that I have use the BD71847 instead of PCA9450. Thanks in advance. ------------------- U-Boot SPL 2020.04-5.4.70-2.3.0+ge42dee8 (Jan 08 2021 - 10:27:32 +0000) Can't find PMIC:PCA9450 DDRINFO: start DRAM init DDRINFO: DRAM rate 3000MTS DDRINFO:ddrphy calibration done DDRINFO: ddrmix config done Normal Boot Trying to boot from MMC2 NOTICE: BL31: v2.2(release):rel_imx_5.4.70_2.3.0-0-gf1d7187 NOTICE: BL31: Built : 11:17:02, Jan 8 2021 U-Boot 2020.04-5.4.70-2.3.0+ge42dee8 (Jan 08 2021 - 10:27:32 +0000) CPU: i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz) CPU: Commercial temperature grade (0C to 95C) at 44C Reset cause: POR Model: NXP i.MX8MM EVK board DRAM: 2 GiB TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x52] Power supply on USB2 TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50] MMC: FSL_SDHC: 1, FSL_SDHC: 2 Loading Environment from MMC... *** Warning - bad CRC, using default environment [*]-Video Link 0Can't find cec device id=0x3c fail to probe panel device adv7535@3d failed to get any video link display timings probe video device failed, ret -22 [0] lcdif@32e00000, video [1] mipi_dsi@32e10000, video_bridge [2] adv7535@3d, panel Can't find cec device id=0x3c fail to probe panel device adv7535@3d failed to get any video link display timings probe video device failed, ret -22 In: serial Out: serial Err: serial BuildInfo: - ATF f1d7187 - U-Boot 2020.04-5.4.70-2.3.0+ge42dee8 switch to partitions #0, OK mmc2(part 0) is current device flash target is MMC:2 Net: Warning: ethernet@30be0000 using MAC address from ROM eth0: ethernet@30be0000 Fastboot: Normal Normal Boot Hit any key to stop autoboot: 0
0 Kudos
1 Solution
1,328 Views
martin_durak
NXP Employee
NXP Employee

Hi @oprata ,

just for clarification and for other visitors. Changing PMIC could be done in uboot`s DTS . As references could be used older branch e.g. 5.4.24. where is still used BD71837. Paste it to the same place instead of PCA9450.

Or you can try to use a different machine config named as imx8mmevk-qcawifi.conf

which uses old PMIC DTS see there.

https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/dts/imx8mm-evk-qca-wifi.dts?h=imx...

 

Martin

 

View solution in original post

0 Kudos
4 Replies
1,535 Views
igorpadykov
NXP Employee
NXP Employee

Hi Oscavo

 

to use BD71847 instead of PCA9450 one can look at uboot:

#define CONFIG_POWER_BD71837
https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/imx8mm_evk.h?h=imx_v2020.0...

 

Best regards
igor

0 Kudos
1,451 Views
oprata
Contributor II

Hello Igor,

Unfortunately it didn't work. I think Its because the source code of BD71837 it's not available. I tried other option with those macros:

MACHINE_FEATURES += "pmic_bd71837"
IMAGE_INSTALL_append += "kernel-module-pmic_bd71837"

in local.conf file.

Do you know how can I solve this issue?

Thanks in advance.

0 Kudos
1,329 Views
martin_durak
NXP Employee
NXP Employee

Hi @oprata ,

just for clarification and for other visitors. Changing PMIC could be done in uboot`s DTS . As references could be used older branch e.g. 5.4.24. where is still used BD71837. Paste it to the same place instead of PCA9450.

Or you can try to use a different machine config named as imx8mmevk-qcawifi.conf

which uses old PMIC DTS see there.

https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/dts/imx8mm-evk-qca-wifi.dts?h=imx...

 

Martin

 

0 Kudos
1,466 Views
oprata
Contributor II

Hello Igor,

I change the u-boot-imx_2020.04.bb to work with branch rel_imx_5.4.47_2.2.0 of u-boot, and the BD71837 was identified...

But the CPU Clock doesn't change to 1800MHz its still works on 1200MHz. Do you know how can I change it?

Thanks in advance.

0 Kudos