Open maikonadams opened 5 years ago
Hi, You have to create new application in your petalinux project, add benchmark sources there and build it. It is well described in UG1144 PetaLinux Tools Reference Guide
Hey, will you kindly tell me how to make this driver work in petalinux? I followed the author's guide in Added how to build the driver with PetaLinux., but I don't know how to make the examples work in petalinux?
Do you have an issue with building driver or examples, or there are errors when executing example app (share your log)?
@tpeshkin Sorry for bothering, would you please post your makefile and xx.bb you use for building example?I know how to build app in peatlinux, but don't know how to edit makefile
Hey, will you kindly tell me how to make this driver work in petalinux? I followed the author's guide in Added how to build the driver with PetaLinux., but I don't know how to make the examples work in petalinux?
你可以直接在目录下运行:make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm examples 在这之前需要先在petalinux目录下source一下那个setting.sh,配置这个终端的环境,然后跳到这个目录运行上面这句,就可以得到应用程序的可执行文件了
Hi,这个执行是没有问题的。我现在的问题是,如何在板子上验证这个文件正确执行了(我用的是xilinx zcu104)?不过我发现在insmod这个driver的时候没有任何输出。
@suikammd after you insmod driver, type dmesg to check the debug message
I check the message, but no new message show up.
Maybe because of the wrong device tree file?
Another question is I'm not sure whether it works on petalinux qemu and I boot with command petalinux-boot --qemu --kernel
to test the driver.
@suikammd can you post your dmesg message after you insmod?
It's exactly the same as before I insmod the driver.
I did just a short test, but get a read timeout, see below. Do I need to change the example code somehow?
_Originally posted by @Westwood68 in https://github.com/bperez77/xilinx_axidma/issues/24#issuecomment-348455892_
how did you get to compile the benchmark to petalinux ?