Closed exitrip closed 2 months ago
Hi Exitrip,
did you:
Vitis needs to know how the hardware design is, to load the proper SW libraries and run the colorbars program.
Let me know!
Guido
Ahh okay, thanks for confirming that the Vitis build is dependent on Vivado output.
I have had lot's of problems with both Vivado 2022 and 2024, I think mostly because I updated ip blocks... synth and impl seem to be working if I don't touch anything.
leaving more breadcrumbs about getting the Vitis project to build before I close the issue:
Vitis/ebaz4205_wrapper//platform.tcl
file and modify with paths for your filesystem... xsct
as comments described and click refresh a few times on Vitis's "Project Assitant" tab... The "system" settings took some tickling to find the new platform files.I don't have the petalinux sysroot on my system yet, but I get an ELF, so there's something I don't understand about linking in Vitis and file system image generation etc... but that seems to all live in Petalinux.
Thanks for your help.
Thank you for using my repository. Did you succeed in executing "colorbars" on a real hardware with Vitis?
Thank you for using my repository. Did you succeed in executing "colorbars" on a real hardware with Vitis?
I did! I can debug on the EBAZ via the Vitis IDE over ethernet. Now I'm wrestling with trying to get fpgautil
to load new bit/bin files from the commandline. Unfortunately my only linux machine right now is on Ubuntu 24.04, which is very not supported by Yocto/petalinux yet, so my only options to change the bitstreams are "live". I have a new bit and bin output from Vivado, that only changes the HDMI pinout to match an extension board from Aliexpress, so I don't the the DTB files or uboot/kernel should need to change.
ebaz4205:~$ fpgautil -b ebaz4205_wrapper.bin -f Full
cp: cannot create regular file '/lib/firmware/ebaz4205_wrapper.bin': Permission denied
sh: line 1: /sys/class/fpga_manager/fpga0/flags: Permission denied
sh: line 1: /sys/class/fpga_manager/fpga0/firmware: Permission denied
rm: cannot remove '/lib/firmware/ebaz4205_wrapper.bin': No such file or directory
BIN FILE loading through FPGA manager failed
ebaz4205:~$ sudo fpgautil -b ebaz4205_wrapper.bin -f Full
Password:
sh: line 1: echo: write error: Invalid argument
BIN FILE loading through FPGA manager failed
... but I doubt this has anything to do with your work or repo... looks like maybe a version thing from the AMD documentation.
Thanks for your help earlier.
I found a path forward to successfully change the bitstream without having to rebuild the petalinux image. I'm still hunting around for petalinux/tools
, which is not installed by 2024.1 so probably a bitbake target, so it's possible to that bootgen
BIF method might work also.
... leaving notes for anyone in the future:
set PROJ_PATH [get_property DIRECTORY [current_project]]; set PROJ [get_property NAME [current_project]]; write_cfgmem -force -format bin -interface smapx32 -disablebitswap -loadbit "up 0x0 $PROJ_PATH/$PROJ.runs/impl_1/ebaz4205_wrapper.bit" $PROJ_PATH/$PROJ.bin
# echo 0 > /sys/class/fpga_manager/fpga0/flags
# cp out.bin /lib/firmware/
# echo out.bin > /sys/class/fpga_manager/fpga0/firmware
dmesg shows the MII interface going down and back up (my ssh session didn't break):
[ 384.310962] fpga_manager fpga0: writing out.bin to Xilinx Zynq FPGA Manager
[ 384.500563] macb e000b000.ethernet eth0: Link is Down
[ 387.620597] macb e000b000.ethernet eth0: unable to generate target frequency: 25000000 Hz
[ 387.620828] macb e000b000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
No too bad... though it does fail randomly... I'm not sure if writing 1 to flags
, then back to 0 makes it more reiliable...
Hi.
Regarding the use of fpga manager: 1) the errror you had is evidently a permission error to write /lib/firmware/ebaz4205_wrapper.bin' 2) I know that fpga manager is not anymore supported in recent PetaLinux versions
To modify the programmable logic only, I use a JTAG programmer with Vivado.
Hi,
This is my first time working with Vitis, so maybe this is a dumb question... But the wrapper project is failing to build from a fresh clone of this repo, and I'm wondering what I'm missing? I don't see any reference to
Current Software Design
in any of the settings or files (other than build logs). I ran into this scrubbing the eclipse project of/media/guido57
paths, specifically thinking that the "export/ebaz4205_wrapper.xpfm" needed is build output of the wrapper project. Anyway, any help would be appreciated, as there's very little guidance or documentation around the "platform repo" and this error. Is it unfeasible to commit the export folder?Cheers,