Jump to content
  • 0

Petalinux does not find gcc



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-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:

root@Zybo-Z7-10__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,

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hello @lonel

I have found only:
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,

Link to comment
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
  • Create New...