• 0
Chrish

Hello and question regarding zynq and petalinux gpio..

Question

Hi, I'm new to zynq processor and I tried to search this around but have not get a working solution..

I am playing with Arty Z7 20 which has a zynq and I'm able to build petalinux and connect through UART (which is provided by Digilent not me).

I'm able to see some AXI GPIO for LED/switches in /proc/device-tree but I'm not able to see them mentioned in dmesg nor /sys/class/gpio.

I do see part of them in /dev/uioX but when I tried to fread them it does not quite make sense.. Though the address info from /sys/class/uio/uioX/map/map0/addr seems legit..

Is there a straightforward guideline regarding how I should use these gpio/uios?

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

 Hi @Chrish,

I moved this thread to a sub-section where more experienced embedded linux engineers look. Have you looked through the readme here for the Petalinux releases for the Arty-Z7-20.  The Linux GPIO Driver Xilinx WIKI might be helpful as well.

best regards,

Jon

 

Share this post


Link to post
Share on other sites
  • 0
53 minutes ago, jpeyron said:

 Hi @Chrish,

I moved this thread to a sub-section where more experienced embedded linux engineers look. Have you looked through the readme here for the Petalinux releases for the Arty-Z7-20.  The Linux GPIO Driver Xilinx WIKI might be helpful as well.

best regards,

Jon

 

Hi Jon, I went through the Digilent petalinux github, that's basically how I went this far 😂 I will try some more this weekend

Share this post


Link to post
Share on other sites
  • 0
On 7/25/2019 at 2:33 AM, tkoroknai said:

Hello @Chrish

Have you tried using the .bsp file?

https://reference.digilentinc.com/reference/software/petalinux/start

you can just use:

petalinux-create -t project -s Petalinux.bsp

then  copy BOOT.BIN and image.ub and boot from the sd card.

 

I think this way you should be able to see them in  /sys/class/gpio

 

Hi

I have not tried that yet. So far I have found that the hw part is good and if I use bare metal the software works as expected. After some familiarize I plan to create a new petalinux project and see if it works. Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now