取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
Highlighted
Explorer
Explorer
385 次查看
注册日期: ‎05-04-2018

关于MPSoC SD卡启动问题

对照UG1209的SD卡启动方式,

1、在Boot Sequence for SD-Boot时,若添加了bit文件,会在加载bit文件时报出

XFSBL_ERROR_BITSTREAM_LOAD_FAIL;

2、若在Boot Sequence for SD-Boot,生成BOOT.bin时不添加bit文件,只添加fsbl.elf、pmu.elf、bl31.elf、u-boot.elf,会在

In Stage 4时卡住,且不提示任何错误信息。

 

注:以下为pin map(BD的设置中目前只添加了IIC/UART0/SD1),

       和问题1和问题2对应的log信息。

1550711039(1).png

1550711093(1).png

 

问题2log:

Xilinx Zynq MP First Stage Boot Loader
Release 2018.2 Feb 20 2019 - 15:42:49
Reset Mode : System Reset
Platform: Silicon (4.0), Cluster ID 0x80000000
Running on A53-0 (64-bit) Processor, Device Name: XCZU3EG
Processor Initialization Done
================= In Stage 2 ============
SD1 Boot Mode
SD: rc= 0
File name is BOOT.BIN
Multiboot Reg : 0x0
Image Header Table Offset 0x8C0
*****Image Header Table Details********
Boot Gen Ver: 0x1020000
No of Partitions: 0x3
Partition Header Address: 0x440
Partition Present Device: 0x0
Initialization Success
======= In Stage 3, Partition No:1 =======
UnEncrypted data Length: 0x3140
Data word offset: 0x3140
ation Load Address: 0xFFFEA000 .
Execution Address: 0xFFFEA000
Data word offset: 0xE970
Partition Attributes: 0x117
Partition 1 Load Success
======= In Stage 3, Partition No:2 =======
UnEncrypted data Length: 0x4366E
Data word offset: 0x4366E
Total Data word length: 0x4366E
Destination Load Address: 0x8000000
Execution Address: 0x8000000
Data word offset: 0x11AB0
Partition Attributes: 0x114
Partition 2 Load Success
All Partitions Loaded
================= In Stage 4 ============
AIB ack status: 0x0
AIB ack status: 0x0
PM Init Success
Protection configuration applied
ATF running on XCZU3EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE: BL31: Secure code at 0x0
NOTICE: BL31: Non secure code at 0x8000000
NOTICE: BL31: START.
NOTICE: BL31: v1.4(release):xilinx-v2018.2-dirty
NOTICE: BL31: Built : 15:35:41, Feb 20 2019
NOTICE: BL31: END.
P

 

 

问题1log:

Release 2018.2   Feb 19 2019  -  14:21:36

Reset Mode      :       System Reset

Platform: Silicon (4.0), Cluster ID 0x80000000

Running on A53-0 (64-bit) Processor, Device Name: XCZU3EG

Processor Initialization Done

================= In Stage 2 ============

SD1 Boot Mode

SD: rc= 0

File name is BOOT.BIN

Multiboot Reg : 0x0

Image Header Table Offset 0x8C0

*****Image Header Table Details********

Boot Gen Ver: 0x1020000

No of Partitions: 0x5

Partition Header Address: 0x440

Partition Present Device: 0x0

Initialization Success

======= In Stage 3, Partition No:1 =======

UnEncrypted data Length: 0x4E86

Data word offset: 0x4E86

Total Data word length: 0x4E86

Destination Load Address: 0xFFDC0000

Execution Address: 0xFFDC9470

Data word offset: 0x6AB0

Partition Attributes: 0x83E

Partition 1 Load Success

======= In Stage 3, Partition No:2 =======

UnEncrypted data Length: 0x339

Data word offset: 0x339

Total Data word length: 0x339

Destination Load Address: 0xFFDD7F80

Execution Address: 0x0

Data word offset: 0xB940

Partition Attributes: 0x83E

Partition 2 Load Success

======= In Stage 3, Partition No:3 =======

UnEncrypted data Length: 0x100

Data word offset: 0x100

Total Data word length: 0x100

Destination Load Address: 0xFFDDF6E0

Execution Address: 0x0

Data word offset: 0xBC80

Partition Attributes: 0x83E

PMU Firmware 2018.2     Feb 19 2019   14:00:03

PMU_ROM Version: xpbr-v8.1.0-0

DAP_WAKE (MOD-1): Initialized.

LEGACY PWR UP/DN/ISO (MOD-2): Initialized.

Partition 3 Load Success

======= In Stage 3, Partition No:4 =======

UnEncrypted data Length: 0x153E27

Data word offset: 0x153E27

Total Data word length: 0x153E27

Destination Load Address: 0xFFFFFFFF

Execution Address: 0x0

Data word offset: 0xBD80

Partition Attributes: 0x26

Destination Device is PL, changing LoadAddress

XPFW: Calling ROM PWRUP Handler..Done

XPFW: Calling ROM Isolation Handler..Done

Non authenticated Bitstream download to start now

DMA transfer done

XFSBL_ERROR_BITSTREAM_LOAD_FAIL

Partition 4 Load Failed, 0x37

 

 

注:以下为bif文件。

788824558518167409.png

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

@shiyangcool 这个帖子重复发了?

0 项奖励
Highlighted
Xilinx Employee
Xilinx Employee
358 次查看
注册日期: ‎05-11-2010

至于你说的fsbl加载bitstream失败的问题,你可以先了解一下AR#70504里面的问题,fsbl里面也可能会出现。解决方法是在fsbl的“xfsbl_partition_load.c”里面找到“XFsbl_PcapInit()”,在它后面加一些延时,开始先加大一点试试,比如1秒。

https://www.xilinx.com/support/answers/70504.html

0 项奖励