嵌入式爱好者

查看: 5961|回复: 2

[Linux] 基于 i.MX Yocto 官方文档生成的镜像的bootloader选择

[复制链接]

1

主题

1

帖子

15

积分

扫一扫,手机访问本帖
发表于 2021-12-1 19:47:11 | 显示全部楼层 |阅读模式
您好!按照nxp的文档 https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf
生成了imx-robot-core-imx8mmevk-20211201053319.rootfs.tar.bz2,想通过uuu工具烧写到板子上,命令如下:

uuu.exe -b emmc_all D:\uuu\imx-boot-imx8mmevk-sd.bin-flash_evk D:\uuu\imx-robot-core-imx8mmevk-20211201053319.rootfs.tar.bz2


第一个问题:
该命令运行后会卡在100%的地方,运行结果如下:

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.2.91-0-g3799f4d

Success 0    Failure 0

1:12   1/ 1   [============100%============] SDP: boot -f D:\uuu\imx-boot-imx8mmevk-sd.bin-flash_evk


第二个问题:
为了解决第一个问题,我在论坛里找到一个类似的帖子:【新提醒】基于 i.MX Yocto 官方文档生成的镜像怎么启动 - Powered by Discuz! (witech.com.cn) ,按照里面说的,把bootloader更换为我们这边给的flash_sd_emmc.bin之后,烧入成功,但是启动失败,部分日志如下,详细日志见附件:

U-Boot SPL 2018.03-dirty (Feb 25 2020 - 02:38:23 +0000)
power_bd71837_init
DRAM PHY training for 2400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS

[    1.470652] 003: imx-ak4458 sound-ak4458: ASoC: failed to init link ak4458: -517
[    1.470658] 003: imx-ak4458 sound-ak4458: snd_soc_register_card failed (-517)
[    1.471932] 003: ak4458 2-0010: Failed to request supplies: -517
[    1.472233] 003: ak4458 2-0012: Failed to request supplies: -517
[    1.472387] 003: ak5558 2-0013: Failed to request supplies: -517
[    1.472532] 003: ak4458 2-0011: Failed to request supplies: -517
[    1.473441] 003: imx-ak4458 sound-ak4458: ASoC: failed to init link ak4458: -517
[    1.473446] 003: imx-ak4458 sound-ak4458: snd_soc_register_card failed (-517)
[    1.474618] 000: ak4458 2-0010: Failed to request supplies: -517
[    1.474849] 000: ak4458 2-0012: Failed to request supplies: -517
[    1.474995] 000: ak5558 2-0013: Failed to request supplies: -517
[    1.475147] 000: ak4458 2-0011: Failed to request supplies: -517
[    1.476063] 000: imx-ak4458 sound-ak4458: ASoC: failed to init link ak4458: -517
[    1.476068] 000: imx-ak4458 sound-ak4458: snd_soc_register_card failed (-517)
[    1.477849] 002: input: bd718xx-pwrkey as /devices/platform/soc@0/soc@0:bus@30800000/30a20000.i2c/i2c-0/0-004b/gpio-keys.1.auto/input/input1
[    1.479235] 002: snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01T00:00:00 UTC (0)
[    1.483016] 002: fec 30be0000.ethernet eth0: Unable to connect to phy
[    1.486742] 002: IP-Config: Failed to open eth0
[    1.486751] 002: IP-Config: Device `eth0' not found
[    1.486785] 002: cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.488705] 002: ak4458 2-0010: Failed to request supplies: -517
[    1.488918] 000: cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.488975] 002: ak4458 2-0012: Failed to request supplies: -517
[    1.489128] 002: ak5558 2-0013: Failed to request supplies: -517
[    1.489282] 002: ak4458 2-0011: Failed to request supplies: -517
[    1.490437] 002: imx-ak4458 sound-ak4458: ASoC: failed to init link ak4458: -517
[    1.490442] 002: imx-ak4458 sound-ak4458: snd_soc_register_card failed (-517)
[    1.495327] 000: ALSA device list:
[    1.495330] 000:   #0: imx-spdif
[    1.495333] 000:   #1: imx-audio-micfil
[    1.495335] 000:   #2: bt-sco-audio
[    1.495337] 000:   #3: wm8524-audio
[    1.495467] 000: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.495472] 000: platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    2.408061] 003: imx6q-pcie 33800000.pcie: Phy link never came up
[    2.408094] 003: imx6q-pcie 33800000.pcie: failed to initialize host
[    2.408098] 003: imx6q-pcie 33800000.pcie: unable to add pcie port.
[   31.744048] 000: WLAN_EN: disabling
[   31.744063] 000: VSD_3V3: disabling
[   62.464141] 000: cfg80211: failed to load regulatory.db
[   62.464208] 003: imx-sdma 302b0000.dma-controller: external firmware not found, using ROM firmware
[   62.464242] 000: imx-sdma 302c0000.dma-controller: external firmware not found, using ROM firmware
[   62.464305] 000: imx-sdma 30bd0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
[   62.464309] 000: imx-sdma 30bd0000.dma-controller: Falling back to sysfs fallback for: imx/sdma/sdma-imx7d.bin



麻烦解答,感谢!


log.zip

10.34 KB, 下载次数: 0, 下载积分: 贡献 1

启动日志

回复

使用道具 举报

0

主题

1

帖子

23

积分

i.MX8MP通行证

发表于 2022-12-27 19:26:28 | 显示全部楼层
怎么没人解答
点评回复 支持 反对

使用道具 举报

2

主题

27

帖子

482

积分

RK3568通行证i.MX RT通行证AM62x资料下载

发表于 2022-12-29 17:34:16 | 显示全部楼层
你有按照電路圖更改 device tree 相關硬體設定嗎?
Forlinx 跟官方的開發板多少有些不同吧!
不過看你的log 應該已經載入kernel image了 先檢查你的rootfs 設定
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-20 18:59

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表