Vitis-Tutorials icon indicating copy to clipboard operation
Vitis-Tutorials copied to clipboard

Error in "Vitis-Tutorials/AI_Engine_Development/AIE/Feature_Tutorials/01-aie_a_to_z"

Open franhervas99 opened this issue 1 year ago • 1 comments

Hello everyone, I am trying to implement the Vitis-Tutorials/AI_Engine_Development/AIE/Feature_Tutorials/01-aie_a_to_z tutorial, and I get a compilation error on app creation step. I am getting the error when I arrive to the point of building the hardware emulation. This part of th elog file after building:

INFO: [v++ 82-1011] creating sd_card directory
 INFO: [v++ 82-3528] mkfsimage command run: /opt/Xilinx/Vitis/2023.2/scripts/vitis/util/mkfsImage.sh -s /home/fran/work_repository/mc_simulation_vck190/vitis/test/simple_aie_application_system_project/build/hw_emu/package/package/sd_card/ -o /home/fran/work_repository/mc_simulation_vck190/vitis/test/simple_aie_application_system_project/build/hw_emu/package/package/sd_card.img -m 1 -e 
 /opt/Xilinx/Vitis/2023.2/scripts/vitis/util/mkfsImage.sh: line 63: shift: shift count out of range
[ERROR] ERROR: rootfs.ext4  either does not exist nor provided by the user.
 INFO: [v++ 82-10329] EXT4 sd_card image is created.
 INFO: [v++ 82-4237] resize command: $XILINX_VITIS/tps/lnx64/python-3.8.3/bin/python3 $XILINX_VITIS/bin/sd_card_resize.py -sd-card-image /home/fran/work_repository/mc_simulation_vck190/vitis/test/simple_aie_application_system_project/build/hw_emu/package/package/sd_card.img 
 XILINX_XD /opt/Xilinx/Vitis/2023.2
 Traceback (most recent call last):
   File "/opt/Xilinx/Vitis/2023.2/bin/sd_card_resize.py", line 90, in <module>
     file_size = os.stat(sd_card_img_path)
 FileNotFoundError: [Errno 2] No such file or directory: '/home/fran/work_repository/mc_simulation_vck190/vitis/test/simple_aie_application_system_project/build/hw_emu/package/package/sd_card.img'
[ERROR] ERROR: [v++ 82-4236] cannot resize sd_card.img
[ERROR] ERROR: [v++ 60-702] Failed to finish packaging
 INFO: [v++ 60-1653] Closing dispatch client.
 gmake[2]: *** [package/CMakeFiles/VppPackage_binary_container_1.dir/build.make:74: package/binary_container_1.xclbin] Error 1
 gmake[2]: *** Deleting file 'package/binary_container_1.xclbin'
 gmake[2]: Leaving directory '/home/fran/work_repository/mc_simulation_vck190/vitis/test/simple_aie_application_system_project/build/hw_emu'
 gmake[1]: *** [CMakeFiles/Makefile2:142: package/CMakeFiles/VppPackage_binary_container_1.dir/all] Error 2
 gmake[1]: Leaving directory '/home/fran/work_repository/mc_simulation_vck190/vitis/test/simple_aie_application_system_project/build/hw_emu'
 gmake: *** [Makefile:91: all] Error 2
[ERROR] Build Failed
[10/7/2024, 4:05:02 PM]: Build for simple_aie_application_system_project::hw_emu with id 'eeda675a-7c8c-4eb1-ab35-eb053269a7b8' ended.

I am running the tutorial in Vitis 2023.2 version. Thank you in advance.

franhervas99 avatar Oct 07 '24 14:10 franhervas99

I am assuming this is the same issue as reported on the forums (and solved): https://adaptivesupport.amd.com/s/question/0D54U00008lF5XKSA0/error-in-vitistutorialsaienginedevelopmentaiefeaturetutorials01aieatoz

xflorentw avatar Oct 17 '24 08:10 xflorentw