I am having a running hardware project from Vivado, and I also debugged bare metal code with SDK. Both was running perfectly.
Now I also got a PetaLinux (v2017.4) run on my Zybo Z7-20. So far so good.
First I thought, that I could only paste the c code on PetaLinux, compile it and let it run. But of course it didn't worked because I used bare metal code.
I wrote already that I have to add drivers to the device tree.
Here are my problems/questions:
1) I wrote something the following files: system-user.dtsi, zynq-7000.dtsi, system-top.dts and system-conf.dtsi
As I wrote I am only allowed to change stuff in the system-user.dtsi file. But when I compare the driver code from your Zybo Z7-20 and the stuff I found in the internet. It looks completly different. So where and what do I have add? I wrote that I have to enable the kernel configuration (where and how)? Am I doing this with petalinux-config -c kernel, is it also possible that when I use my own hardwaretarget for PetaLinux creating , that the enabeling of the drivers happened already?
2) I want to send the voltage values over ethernet, so do I need one or two drivers (XADC-driver or XADC + ethernet-driver) for it and also a gpio driver, right? Is there code for Zybo Z7-20 somewhere existing, or where can I find some code that is fitting? I made more trys but never the petalinux-build was successfully.
Thanks again for your help and time, it is always totally helpful! A+ for your job, helping a totally newbie ;-)
Question
theAsker
Hello!
Here is another newbie question from me!
I am having a running hardware project from Vivado, and I also debugged bare metal code with SDK. Both was running perfectly.
Now I also got a PetaLinux (v2017.4) run on my Zybo Z7-20. So far so good.
First I thought, that I could only paste the c code on PetaLinux, compile it and let it run. But of course it didn't worked because I used bare metal code.
I wrote already that I have to add drivers to the device tree.
Here are my problems/questions:
1) I wrote something the following files: system-user.dtsi, zynq-7000.dtsi, system-top.dts and system-conf.dtsi
As I wrote I am only allowed to change stuff in the system-user.dtsi file. But when I compare the driver code from your Zybo Z7-20 and the stuff I found in the internet. It looks completly different. So where and what do I have add? I wrote that I have to enable the kernel configuration (where and how)? Am I doing this with petalinux-config -c kernel, is it also possible that when I use my own hardwaretarget for PetaLinux creating , that the enabeling of the drivers happened already?
2) I want to send the voltage values over ethernet, so do I need one or two drivers (XADC-driver or XADC + ethernet-driver) for it and also a gpio driver, right? Is there code for Zybo Z7-20 somewhere existing, or where can I find some code that is fitting? I made more trys but never the petalinux-build was successfully.
Thanks again for your help and time, it is always totally helpful! A+ for your job, helping a totally newbie ;-)
greetings,
Link to comment
Share on other sites
25 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.