嵌入式爱好者

查看: 19958|回复: 3

[Linux] 基于 i.MX Yocto 官方文档生成的镜像怎么启动

[复制链接]

1

主题

2

帖子

15

积分

i.MX8MM通行证

扫一扫,手机访问本帖
发表于 2021-8-30 02:39:30 | 显示全部楼层 |阅读模式
根据 NXP 的文档 https://www.nxp.com.cn/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf
生成了 core-image-base-imx8mm-ddr4-evk.wic.bz2,并 flash 到 TF 卡上。
启动时一直打不到 Block device。请问,还有哪里需要改?

启动日志:
U-Boot SPL 2021.04-5.10.35-2.0.0+g3463140881 (Jun 08 2021 - 01:39:44 +0000)
power_bd71837_init
DDRINFO: start DRAM init
DDRINFO: DRAM rate 2400MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0:  RNG instantiated
Normal Boot
Trying to boot from MMC1
NOTICE:  BL31: v2.4(release):lf-5.10.35-2.0.0-rc2-0-gec35fef92
NOTICE:  BL31: Built : 09:05:55, May 28 2021


U-Boot 2021.04-5.10.35-2.0.0+g3463140881 (Jun 08 2021 - 01:39:44 +0000)

CPU:   i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 41C
Reset cause: POR
Model: NXP i.MX8MM DDR4 EVK with CYW43455 WIFI/BT board
DRAM:  2 GiB
tcpc_init: Can't find device id=0x52
setup_typec: tcpc port2 init failed, err=-19
tcpc_init: Can't find device id=0x50
setup_typec: tcpc port1 init failed, err=-19
NAND:  0 MiB
MMC:   FSL_SDHC: 1
Loading Environment from MMC... MMC: no card present
*** Warning - No block device, using default environment

[*]-Video Link 0adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
mxs_video lcdif@32e00000: 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
adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
mxs_video lcdif@32e00000: failed to get any video link display timings
probe video device failed, ret -22
In:    serial
Out:   serial
Err:   serial
SEC0:  RNG instantiated

BuildInfo:
  - ATF ec35fef

MMC: no card present
flash target is MMC:1
MMC: no card present
MMC card init failed!
MMC: no card present
** Block device MMC 1 not supported
Net:   Could not get PHY for FEC0: addr 0
Could not get PHY for FEC0: addr 0
No ethernet found.

Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0
starting USB...
Bus usb@32e40000: dev_get_parent_plat: null device
"Synchronous Abort" handler, esr 0x96000004
elr: 000000004025d5a0 lr : 000000004025d594 (reloc)
elr: 00000000bcd495a0 lr : 00000000bcd49594
x0 : 0000000014000280 x1 : 0000000000000001
x2 : 00000000bcd1714c x3 : 0000000000000001
x4 : 0000000000000013 x5 : 0000000000000020
x6 : 00000000ffffffd0 x7 : 0000000000000003
x8 : 0000000000000000 x9 : 0000000000000008
x10: 000008c004000000 x11: 00000000bacdf02c
x12: 0000000000000006 x13: 000000000001869f
x14: 00000000bacdfe90 x15: 0000000000000002
x16: 00000000bcd4e074 x17: 00000000000041a0
x18: 00000000bacebdb0 x19: 0000000000000001
x20: 0000000000000000 x21: 00000000bacdf08f
x22: 0000000000000000 x23: 000000000000001d
x24: 00000000bcdec140 x25: 0000000000000000
x26: 0000000000000000 x27: 0000000000000000
x28: 00000000bacf9900 x29: 00000000bacdefc0

Code: 97ff5c25 aa0003e8 f9400000 f940380a (f9400140)
Resetting CPU ...

resetting ...
回复

使用道具 举报

0

主题

471

帖子

919

积分

发表于 2021-8-30 09:36:16 | 显示全部楼层
建议您直接用我们所提供的uboot镜像,是直接可以用的

点评

你是指只用你们提供的 uboot 还是指包含 rootfs 的整个镜像? 如果是指整个镜像,因为我们只想保留需要的软件并加入几个第三方应用,基于你们镜像要怎么做?有自动化的工具还是只能手工删和添加? 如果是指 整  详情 回复 发表于 2021-8-30 14:57
点评回复 支持 反对

使用道具 举报

1

主题

2

帖子

15

积分

i.MX8MM通行证

 楼主| 发表于 2021-8-30 14:57:23 | 显示全部楼层
djh 发表于 2021-8-30 09:36
建议您直接用我们所提供的uboot镜像,是直接可以用的

你是指只用你们提供的 uboot 还是指包含 rootfs 的整个镜像?

如果是指整个镜像,因为我们只想保留需要的软件并加入几个第三方应用,基于你们镜像要怎么做?有自动化的工具还是只能手工删和添加?

如果是指 整合你们的 uboot,请问有没有文档说明怎么和yocto 的流程整合,可以只用不他们的uboot,而指定用你们提供的?

点评

djh
我指的是uboot镜像——flash_sd_emmc.bin,没有相关的文档说明  详情 回复 发表于 2021-8-31 08:49
点评回复 支持 反对

使用道具 举报

0

主题

471

帖子

919

积分

发表于 2021-8-31 08:49:19 | 显示全部楼层
ming_lo 发表于 2021-8-30 14:57
你是指只用你们提供的 uboot 还是指包含 rootfs 的整个镜像?

如果是指整个镜像,因为我们只想保留需 ...

我指的是uboot镜像——flash_sd_emmc.bin,没有相关的文档说明
点评回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 11:31

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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