FDT 和 ATAGS 支持在 Qemu 机器上的 ARM Vexpress-A9 板上重置时未编译...

问题描述 投票:0回答:2

我正在使用带有 vexpress-a9 板的 Qemu 上的 TFTP 服务器运行 U-boot。 主要目标是在 Qemu 上运行故障转储。

使用参考页:

这个页面的一部分,可以成功加载 u-boot,TFTP 正在工作,主机是活的,可以将 zImage 从主机传输到目标。 当提供引导内核的命令时,它给出如下错误消息并且正在重置 u-boot。

> setenv ipaddr 10.0.2.3

=> setenv serverip 10.0.2.15

=> tftp 0x61000000 zImage

smc911x: detected LAN9118 controller

smc911x: phy initialized

smc911x: MAC 52:54:00:12:34:56

Using ethernet@3,02000000 device

TFTP from server 10.0.2.15; our IP address is 10.0.2.3

Filename 'zImage'.

Load address: 0x61000000

Loading: #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     ############

     3 MiB/s

done

Bytes transferred = 5049424 (4d0c50 hex)

smc911x: MAC 52:54:00:12:34:56

&
for .dtb 

=> tftp 0x61a00000 vexpress-v2p-ca9.dtb

smc911x: detected LAN9118 controller

smc911x: phy initialized

smc911x: MAC 52:54:00:12:34:56

Using ethernet@3,02000000 device

TFTP from server 10.0.2.15; our IP address is 10.0.2.3

Filename 'vexpress-v2p-ca9.dtb'.

Load address: 0x61a00000

Loading: ###

     1.9 MiB/s

done

Bytes transferred = 14081 (3701 hex)

smc911x: MAC 52:54:00:12:34:56

=> 

when try to boot using bootz cmd 
=> bootz 0x61000000

Kernel image @ 0x61000000 [ 0x000000 - 0x4d0c50 ]

FDT and ATAGS support not compiled in



resetting ...

我在英特尔板、ARM 板(Linaro 的 HiKey 板)上遇到了同样的错误, 说是更新 u-boot 并在 u-boot 中添加 ENV_VARIABLES, 我已经更改了 u-boot 版本:Prepare v2022.01,但没有运气。

linux-kernel linux-device-driver qemu u-boot
2个回答
0
投票

内核解压工作正常。 将内核菜单配置更改为

CONFIG_CMDLINE="console=ttyAMA0"
并使用
bootz 0x61000000 - 0x61a00000
。正在打印内核解压

=> tftp 0x61a00000 vexpress-v2p-ca9.dtb

smc911x: detected LAN9118 controller

smc911x: phy initialized

smc911x: MAC 52:54:00:12:34:56

Using ethernet@3,02000000 device

TFTP from server 10.0.2.15; our IP address is 10.0.2.3

Filename 'vexpress-v2p-ca9.dtb'.

Load address: 0x61a00000

Loading: ###

     1.3 MiB/s

done

Bytes transferred = 14081 (3701 hex)

smc911x: MAC 52:54:00:12:34:56

=> bootz 0x61000000 - 0x61a00000

Kernel image @ 0x61000000 [ 0x000000 - 0x4d4418 ]

## Flattened Device Tree blob at 61a00000

   Booting using the fdt blob at 0x61a00000

   Loading Device Tree to 7fb20000, end 7fb26700 ... OK



Starting kernel ...



Booting Linux on physical CPU 0x0

Linux version 5.15.0 (satishg@satish) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #4 SMP Tue Mar 21 12:09:42 IST 2023

CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d

CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache

OF: fdt: Machine model: V2P-CA9

OF: fdt: Ignoring memory block 0x80000000 - 0x80000004

Memory policy: Data cache writeback

Reserved memory: created DMA memory pool at 0x4c000000, size 8 MiB

OF: reserved mem: initialized node vram@4c000000, compatible id shared-dma-pool

cma: Reserved 16 MiB at 0x7e800000

Zone ranges:

  Normal   [mem 0x0000000060000000-0x000000007fffffff] 

0
投票

$ qemu-system-arm -M vexpress-a9 -m 32M -no-reboot -nographic -monitor telnet:127.0.0.1:1234,server,nowait -kernel u-boot/u-boot -sd sdcard.img

警告:未为“sdcard.img”指定图像格式,并猜测是原始图像格式。 自动检测格式对于原始图像是危险的,对块 0 的写入操作将受到限制。 明确指定“原始”格式以删除限制。 pulseaudio:set_sink_input_volume() 失败 pulseaudio:原因:参数无效 pulseaudio:set_sink_input_mute() 失败 pulseaudio:原因:参数无效

U-Boot 2023.04-rc4-00050-g78f67f11a9-脏(2023 年 3 月 26 日 - 16:43:11 +0530)

内存:32 MiB 警告:未启用缓存 核心:18 个设备,10 个 uclasses,设备树:嵌入 闪存:64 MiB MMC:mmci@5000:0 从 Flash 加载环境... *** 警告 - CRC 错误,使用默认环境

在:系列 输出:串行 错误:串行 网络:eth0:ethernet@3,02000000 按任意键停止自动启动:0 切换到分区#0,OK mmc0 是当前设备 在 12 毫秒内读取 108 个字节(8.8 KiB/s)

从 60000000 处的 Legacy Image 启动内核 ...

图片名称:
图像类型:ARM Linux 内核图像(未压缩) 数据大小:44 字节 = 44 字节 加载地址:60000000 入口点:60000000 正在验证校验和...确定 工作 FDT 设置为 0 加载内核映像 FDT 和 ATAGS 支持未编译入

重置...

© www.soinside.com 2019 - 2024. All rights reserved.