cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chepner
Contributor
Contributor
1,189 Views
Registered: ‎10-10-2018

Bootgen - BOOT.bin Image generation Issue

Hello,

I'm trying to use bootgen to generate a BOOT.bin for my ZCU102 with Zynq UltraScale+ MPSoC without good results.

The .bif that i'm using is:

//arch = zynqmp; split = true; format = BIN
image : {
[bootloader,destination_cpu=a53-0] zynqmp_fsbl.elf
[pmufw_image] zynqmp_pmufw.elf
[destination_cpu=a53-0, exception_level=el-3, trustzone] bl31.elf
[destination_cpu=a53-0, exception_level=el-2] u-boot.elf
[load=0x02000000] uimage.ub
}

But, I encountered this issue in generation.

Trace :

------

[INFO] : Building image - the_ROM_image
[TRACE] : Setting Core as 2
[DEBUG] : ELF Header size wrong - 20496, actual size - 64
FILE: elftools.cpp
LINE: 175
[ERROR] : ELF Parsing Error !!!
Wrong Header Size 

Can help me debugging this issue ?

--

Thanks

Chepner

0 Kudos
3 Replies
denist
Xilinx Employee
Xilinx Employee
1,157 Views
Registered: ‎10-11-2011

I noticed "split = true". Is that on purpose? Usually you want a monolithic BOOT.bin.

Also, which elf file is having issues? fsbl? pmufw?

We had problem in the past with come compilation settings that would create "strange" linking for the elf.

For example FSBL has to be a contiguous file (no multiple partitions) if I recall correctly.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
chepner
Contributor
Contributor
1,145 Views
Registered: ‎10-10-2018

Hello @denist,

I don't know which elf file is having issue. I'm searching for this information because no information in bootgen utility trace.

I removed split = true but i'm facing the same issue.

0 Kudos
denist
Xilinx Employee
Xilinx Employee
1,117 Views
Registered: ‎10-11-2011

On the .bif add a file at the time and see if you can identify which file is creating issues to bootgen.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos