• 0
Victor

Petalinux does not find gcc

Question

Hello all

I have created Petalinux based on  my own system.hdf  and  design_1_wrapper.bit
with the following commands:
source /opt/pkg/petalinux/settings.sh
petalinux-create --type project --template zynq --name Zybo-Z7-10__my
cd Zybo-Z7-10__my
petalinux-config --get-hw-description=/home/victor/USD_Zybo__2    
     (in menu made only "save" then "exit")
petalinux-build
petalinux-package --boot --force --fsbl images/linux/zynq_fsbl.elf --fpga /home/victor/USD_Zybo__2/design_1_wrapper.bit --u-boot

This Petalinux was succesfully loaded from SD into Zybo-Z7-10.
Configuration was loaded into FPGA (DONE LED up) and FPGA works properly (works output to the 4LED).
Petalinux sends messages into TeraTerm and receives commands.

But Petalinux does not find command gcc
and sends the message:

[email protected]__my:/run/media/mmcblk0p1/WORK# gcc -o work_2 work_2.c
-sh: gcc: command not found

Please help to activate gcc.


Thank you.

Best regards,
Victor.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Your custom linux distro made using petalinux tool does not contain a gcc. It needs to be added same as you added mc.

Share this post


Link to post
Share on other sites
  • 0

Hello @lonel

I have found only:
Filesystems-->misc-->gcc-runtime
and
Filesystems-->misc-->gcc-sunitizer
and include both.
But gcc still does not work:
-sh: gcc: command not found

Can you help me to find appropriate item ?

Thank you.

Best regards,
Victor.

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