cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
SI
Visitor
Visitor
207 Views
Registered: ‎07-20-2021

Petalinux fsbl build error : do_compile

Jump to solution
Hello,

I'm using Petalinux 2020.2 with a ZCU102 board. I'm having issues with building the fsbl. I tried few solutions I found in the forum but no chance.

I'm always reffering to UG1144 but this kind of error isn't mentioned. Can you help me find the problem ?

I created my petalinux project with --template zynqMP then loaded .xsa file with --get-hw-description for configuration. I also tried to use ZCU102 BSP then configure with .xsa, I have the same problem.

Yesterday I had no problem, but today I can't build anything, I also tried making multiple new projects but no chance.

 

The error sends me to the following log file :

 

DEBUG: Executing shell function do_compile
aarch64-none-elf-gcc -MMD -MP -Wall -fmessage-length=0 -DARMA53_64 -Os -flto -ffat-lto-objects -O2 -c -c xfsbl_ddr_init.c -o xfsbl_ddr_init.o -Izynqmp_fsbl_bsp/psu_cortexa53_0/include -I.
xfsbl_ddr_init.c: In function 'XFsbl_IicReadSpdEeprom':
xfsbl_ddr_init.c:6626:34: error: 'XPAR_PSU_I2C_1_DEVICE_ID' undeclared (first use in this function); did you mean 'XPAR_PSU_I2C_0_DEVICE_ID'?
6626 | ConfigIic = XIicPs_LookupConfig(XPAR_PSU_I2C_1_DEVICE_ID);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| XPAR_PSU_I2C_0_DEVICE_ID
xfsbl_ddr_init.c:6626:34: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:35: xfsbl_ddr_init.o] Error 1
WARNING: /home/since/zcu102_linux/build/tmp/work/zynqmp_generic-xilinx-linux/fsbl/2020.2+gitAUTOINC+08b9f4304d-r0/temp/run.do_compile.3745:1 exit 2 from 'make'
ERROR: Execution of '/home/since/zcu102_linux/build/tmp/work/zynqmp_generic-xilinx-linux/fsbl/2020.2+gitAUTOINC+08b9f4304d-r0/temp/run.do_compile.3745' failed with exit code 2:
aarch64-none-elf-gcc -MMD -MP -Wall -fmessage-length=0 -DARMA53_64 -Os -flto -ffat-lto-objects -O2 -c -c xfsbl_ddr_init.c -o xfsbl_ddr_init.o -Izynqmp_fsbl_bsp/psu_cortexa53_0/include -I.
xfsbl_ddr_init.c: In function 'XFsbl_IicReadSpdEeprom':
xfsbl_ddr_init.c:6626:34: error: 'XPAR_PSU_I2C_1_DEVICE_ID' undeclared (first use in this function); did you mean 'XPAR_PSU_I2C_0_DEVICE_ID'?
6626 | ConfigIic = XIicPs_LookupConfig(XPAR_PSU_I2C_1_DEVICE_ID);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| XPAR_PSU_I2C_0_DEVICE_ID
xfsbl_ddr_init.c:6626:34: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:35: xfsbl_ddr_init.o] Error 1
WARNING: /home/since/zcu102_linux/build/tmp/work/zynqmp_generic-xilinx-linux/fsbl/2020.2+gitAUTOINC+08b9f4304d-r0/temp/run.do_compile.3745:1 exit 2 from 'make'

 

Thanks for your time.

0 Kudos
1 Solution

Accepted Solutions
SI
Visitor
Visitor
133 Views
Registered: ‎07-20-2021

Hi @aravindb 

The error is now solved. Here is the solution :

I created a new hardware project on Vivado with the same specs as my old block design. Then, I exported the new .xsa file. There are no more build errors now. I believe the I2C_1 interface got disabled /modified in my old .xsa file. As I didn't modify it (I exported .xsa and left it as is), another program probably did it. Can Petalinux environment modify .xsa files when configuring the petalinux project ?

Thanks,

SI

 

View solution in original post

0 Kudos
2 Replies
aravindb
Moderator
Moderator
144 Views
Registered: ‎02-07-2018

HI @SI 

Can you please share your design once, I will build at myend. Looks to me it is an design issue.

 

Thanks & regards

Aravind

0 Kudos
SI
Visitor
Visitor
134 Views
Registered: ‎07-20-2021

Hi @aravindb 

The error is now solved. Here is the solution :

I created a new hardware project on Vivado with the same specs as my old block design. Then, I exported the new .xsa file. There are no more build errors now. I believe the I2C_1 interface got disabled /modified in my old .xsa file. As I didn't modify it (I exported .xsa and left it as is), another program probably did it. Can Petalinux environment modify .xsa files when configuring the petalinux project ?

Thanks,

SI

 

View solution in original post

0 Kudos