【发布时间】:2018-04-06 10:06:12
【问题描述】:
我正在开发 microzed 7010 板,我手动编译了内核、u-boot、fsbl 和 .bit (vivado)。主板在所有设置下都能正常启动(不使用 petalinux)。但我注意到内核不是解压缩内核... 与 zImage 或 uImage。而我可以看到带有 petalinux 图像的引导日志。
输入:
1 . zImage 环境是
zImage=tftpboot 0x3000000 zImage && tftpboot 0x2A00000 system.dtb && bootz 0x3000000 - 0x2A00000
2 。启动日志是 =>
Zynq> run zImage
[2017-10-25 15:57:11
ethernet@e000b000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
[2017-10-25 15:57:15
Zynq> run zImage
[2017-10-25 15:57:22
Using ethernet@e000b000 device
TFTP from server 172.16.9.187; our IP address is 172.16.9.25
Filename 'zImage'.
Load address: 0x3000000
Loading:#####################################################################################################################################################################################################################################
3.9 MiB/s
done
Bytes transferred = 3913840 (3bb870 hex)
Using ethernet@e000b000 device
TFTP from server 172.16.9.187; our IP address is 172.16.9.25
Filename 'system.dtb'.
Load address: 0x2a00000
Loading: #
3.3 MiB/s
done
Bytes transferred = 13644 (354c hex)
Kernel image @ 0x3000000 [ 0x000000 - 0x3bb870 ]
## Flattened Device Tree blob at 02a00000
Booting using the fdt blob at 0x2a00000
Loading Device Tree to 1fff9000, end 1ffff54b ... OK
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 4.6.0-xilinx-00003-g2762bc9 (pritam@pritam) (gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) ) #3 SMP PREEMPT Wed Oct 25 10:28:387
[2017-10-25 15:57:24
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
3 .在 u-boot 我已经给了 bootz 支持
4 。 uImage由
组成mkimage -A arm -O linux -T kernel -C none -a 0x10000000 -e 0x10000000 -n "Linux kernel" -d arch/arm/boot/zImage uImage
是什么导致它不解压缩内核? u-boot 是否压缩内核并启动?
任何帮助将不胜感激。
感谢和问候, 普里坦
【问题讨论】:
-
"但是我注意到内核不是"Uncompressing kernel..."" -- 一些内核可以默默地执行这一步。加载一个 zImage,然后看到 Linux 内核版本行意味着内核已经成功解压并正在执行。
-
您是否尝试过启用早期 printk?
-
"某些内核可以静默执行此步骤。" -- 我已经从 petalinux 下载中克隆了源代码。我从 petalinux 构建的映像中获得的引导日志显示 Uncompressing kernel .... 消息。 “正在启动内核...解压 Linux...完成,启动内核。在物理 CPU 0x0 Linux 版本 4.6.0-xilinx (pritam@pritam)(gcc 版本 5.2.1)上启动 Linux”所以我期待它显示“解压缩内核“消息。
标签: linux-kernel embedded-linux u-boot zynq petalinux