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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer dsatyamu
Observer
421 Views
Registered: ‎05-29-2018

Adding development packages to petalinux for zcu102

I was able to build a petalinux image and boot.bin for my IP using IP.hdf file.

 

Once this is built, I was able boot using the same.

 

Now, with this I do not see basic linux packages such as gcc, make, sudo.

I tried installing gcc with sudo apt-get install command but it says sh: sudo command not found.

 

Can someone please help how to get these packages which will help us build the applications?

 

Thanks and Regards

-Darshan

Tags (3)
0 Kudos
2 Replies
Adventurer
Adventurer
407 Views
Registered: ‎03-22-2016

Re: Adding development packages to petalinux for zcu102

Petalinux is different from other Linux distributions. With a normal desktop or server distribution, you'd install some base image, boot it up, then start making changes. Configuration changes, install new packages, etc.

 

With Petalinux, you do all of that configuration and package selection *before* you install. You have a host development machine that you install Vivado and Petalinux on, and you use those to configure and build (cross-compile) a root filesystem image for the target system. The installation is now done, you just have to put that image on the target.

It takes a little getting used to that paradigm change, but there are a lot of advantages to it.

 

To install a new package in Petalinux, on the development machine in the petalinux project, run petalinux-config -c rootfs. From there, you can pick packages to include in your root filesystem image. Rebuild the root filesystem image, drop it on the SD card for the ZCU102 and boot it up. You don't actually need GCC and development packages ON the ZCU102 - you need them on your development machine to build the software that will be run on the ZCU102.

 

As for sudo, it doesn't exist because there's no need for it. By default, there's only a root user.

0 Kudos
Adventurer
Adventurer
390 Views
Registered: ‎01-24-2018

Re: Adding development packages to petalinux for zcu102

When you do get that root login working, run the adduser command.

Add yourself as a user. Then when you are you, simply su to root.

0 Kudos