取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
JZ
Visitor
Visitor
231 次查看
注册日期: ‎09-25-2020

2020.1打包烧写后内核无法启动

2020.1

petalinux-bulid

petalinux-package --boot --fsbl zynqmp_fsbl.elf  --fpga --u-boot --kernel --force

烧写flash,重启,启动,仅能启动uboot,内核无法启动,什么原因??相同的方法我在2018.2上是正常跑起的,升级到2020.1后就不行。

U-Boot 2020.01 (Dec 05 2020 - 07:59:00 +0000)

Board: Xilinx ZynqMP
DRAM: 4 GiB
PMUFW: v1.1
EL Level: EL2
Chip ID: zu21dr
NAND: 0 MiB
MMC:
In: serial@ff000000
Out: serial@ff000000
Err: serial@ff000000
Bootmode: QSPI_MODE
Reset reason: EXTERNAL
Net:
ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr 12, interface rgmii-id

Warning: ethernet@ff0e0000 (eth0) using random MAC address - aa:a5:c0:f6:71:4b
eth0: ethernet@ff0e0000
Hit any key to stop autoboot: 0
Warning: SPI speed fallback to 100 kHz
SF: Detected mt25qu02g with page size 512 Bytes, erase size 128 KiB, total 512 MiB
device 0 offset 0x3e80000, size 0x80000
SF: 524288 bytes @ 0x3e80000 Read: OK
## Executing script at 20000000
Wrong image format for "source" command
SCRIPT FAILED: continuing...
## Executing script at 20000000
Wrong image format for "source" command
SCRIPT FAILED: continuing...
No MMC device available
No MMC device available
SF: Detected mt25qu02g with page size 512 Bytes, erase size 128 KiB, total 512 MiB
device 0 offset 0x3e80000, size 0x80000
SF: 524288 bytes @ 0x3e80000 Read: OK
## Executing script at 20000000
Wrong image format for "source" command
SCRIPT FAILED: continuing...


no devices available
SCRIPT FAILED: continuing...
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
scanning bus for devices...

0 项奖励
回复
2 回复数
chaoz
Xilinx Employee
Xilinx Employee
224 次查看
注册日期: ‎09-14-2018

Hi @JZ 

为了排除问题,建议先停在u-boot下,然后用u-boot指令手动把image/rootfs/dt load到ddr中,然后用iminfo命令查看下image信息,最后再bootm启动,看看在哪个步骤有问题。

----------------------------------------------------------------------------------------------
如果帖子有帮助,别忘“接受为解决方案”或“奖励”。谢谢!
Don't forget to "Accept as solution" or "Kudo" if it helps. Thanks!
----------------------------------------------------------------------------------------------

 

0 项奖励
回复
JZ
Visitor
Visitor
191 次查看
注册日期: ‎09-25-2020

使用以下命令可以启动:

tftpb 0x200000 Image
tftpb 0x7000000 system.dtb
booti 0x200000 - 0x7000000

ZynqMP> booti 0x200000 - 0x7000000
## Flattened Device Tree blob at 07000000
Booting using the fdt blob at 0x7000000
Loading Device Tree to 000000000fff3000, end 000000000ffff22c ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.4.0-xilinx-v2020.1 (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP Wed Dec 2 03:04:21 UTC 2020
[ 0.000000] Machine model: xlnx,zynqmp
[ 0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8')
[ 0.000000] printk: bootconsole [cdns0] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:

iminfo命令提示格式不对:

ZynqMP> tftpb 0x200000 Image
Using ethernet@ff0e0000 device
TFTP from server 192.168.1.154; our IP address is 192.168.1.11
Filename 'Image'.
Load address: 0x200000
Loading: #################################################################
#############
3.5 MiB/s
done
Bytes transferred = 37716480 (23f8200 hex)
ZynqMP> iminfo

## Checking Image at 00200000 ...
Unknown image format!

0 项奖励
回复