取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
Highlighted
Explorer
Explorer
327 次查看
注册日期: ‎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).png1550711093(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

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

hi @shiyangcool 

1. 可以贴下BIF文件吗?

2. 使用的BSP和硬件是匹配的吗?会不会vivado工程修改了但是BSP没有更新?

供参考~

----------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
----------------------------------------------------------------------------------------------

0 项奖励
Highlighted
Explorer
Explorer
304 次查看
注册日期: ‎05-04-2018

以下为bif文件,使用petalinux没起来,现在所有文件都是手动生成。SDK也是从Vivado编译完进行导出的,所以不太可能会是VIVADO更新了没对上。

 

788824558518167409.png

0 项奖励