UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Reply

Problem on running C application on ZC702 board

Highlighted
Visitor
Posts: 4
Registered: ‎04-15-2018

Problem on running C application on ZC702 board

I am using Vivado 2015.4 and Petalinux 2015.4, I am trying to run "Hello world" linux application on it. I have successfully made the bootable file with Ubuntu 16.04 and OS is running, but when I am executing the app it is showing error that "No such file or directory exist" even tough the executable binary is present. Another problem is when I am using the sudo command it is showing error

/usr/bin/sudo must be owned by uid 0 and have the setuid bit set

What could be the problem or How can I run user application on the board ?

Moderator
Posts: 376
Registered: ‎12-04-2016

Re: Problem on running C application on ZC702 board

Hi

 

Please refer this user guide on how to create and run the application in petalinux

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2017_3/ug1144-petalinux-tools-reference-guide.pdf

(Refer Page 53)

 

Let me know if you are still facing any issues

 

Best Regards

Shabbir

Visitor
Posts: 4
Registered: ‎04-15-2018

Re: Problem on running C application on ZC702 board

Thank you for replying,

I have done all the steps as defined in the manual and it was successful to run when I am using Vivado and petalinux version 2016.4, But while following the same steps using version 2015.4 error is still persisting.

Could some missing library or tool be the problem ?

Moderator
Posts: 376
Registered: ‎12-04-2016

Re: Problem on running C application on ZC702 board

Hi

 

Then it seems to be some issue with your ubuntu system. 

 

May be you can try something like this

1. Log out as the current user, then log back in as root.

2. Execute chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo

3. Log out as root, then log back in as the current user.

 

Best Regards

Shabbir