cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
551 Views
Registered: ‎04-22-2011

PetaLinux environment build_with_: command not found

Jump to solution

Hi;

I am using PetaLinux 2019.2 and try to creat a Petalinux project.

create a petalinux project, configure the project, and then build the project by runnig "petalinux-build", but I receive the floowing error:

[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
[INFO] generating workspace directory
environment: line 2504: build_with_: command not found
ERROR: Failed to build project

Could you please advise me how to resolve this issue?

I would greatly appreciate if someone answer my query.

Thank you.

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Contributor
Contributor
275 Views
Registered: ‎04-22-2011

Re: PetaLinux environment build_with_: command not found

Jump to solution

@satguy well. I worked on this issue for a few days. I couldn't resolve it. Apart from this server, I got several servers in the lab and installed the software on one of them. Now I can see everything is fine and I don't receive this error anymore....

View solution in original post

0 Kudos
11 Replies
Highlighted
Explorer
Explorer
543 Views
Registered: ‎04-19-2018

Re: PetaLinux environment build_with_: command not found

Jump to solution

 

"create a petalinux project, configure the project, and then build the project"

Maybe all the evil is in that configuration you bundle it all behind a word. Could you attach the config file?

0 Kudos
Highlighted
Explorer
Explorer
538 Views
Registered: ‎04-19-2018

Re: PetaLinux environment build_with_: command not found

Jump to solution

 

Bear in mind Petalinux wraps Yocto that is build in Python and whenever there is an error, there is a spew of lines of code (you haven't written), Python file errors (you don't know anything about) and possibly additional random characters, all in red, probably to try to provoke a stroke to the user to minimize the number of complains.

In ancient times, error messages had the purpose of guiding the user to sort them out. now the purpose seem to be to scroll some line to change the overall color.

0 Kudos
Highlighted
Contributor
Contributor
527 Views
Registered: ‎04-22-2011

Re: PetaLinux environment build_with_: command not found

Jump to solution

@satguy Thanks for your message.

I have attached the file. ( I changed it to .txt as it can't be attched if I dont do it)

 

0 Kudos
Highlighted
Explorer
Explorer
505 Views
Registered: ‎04-19-2018

Re: PetaLinux environment build_with_: command not found

Jump to solution

quite a standard config... I'm not sure about this:


CONFIG_SUBSYSTEM_HOSTNAME="zcu102_dpu-ubuntu-petalinux"
CONFIG_SUBSYSTEM_PRODUCT="zcu102_dpu-ubuntu-petalinux"

Are you building ubuntu for Zynq?

0 Kudos
Highlighted
Contributor
Contributor
489 Views
Registered: ‎04-22-2011

Re: PetaLinux environment build_with_: command not found

Jump to solution

@satguy No , I am not at this stage, only the name is 'zcu102_dpu-ubuntu-petalinux'

Here are the commands I used:

hpnroot@hpn118:/opt/workspace/DPU$ petalinux-create -t project --template zynqMP -n zcu102_dpu-ubuntu-petalinux
INFO: Create project: zcu102_dpu-ubuntu-petalinux
INFO: New project successfully created in /opt/workspace/DPU/zcu102_dpu-ubuntu-petalinux
hpnroot@hpn118:/opt/workspace/DPU$ cd zcu102_dpu-ubuntu-petalinux/
hpnroot@hpn118:/opt/workspace/DPU/zcu102_dpu-ubuntu-petalinux$ petalinux-config --get-hw-description=../hardware_files
INFO: Getting hardware description...
INFO: Rename zcu102_dpu.xsa to system.xsa
[INFO] generating Kconfig for project
[INFO] menuconfig project


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] generating bbappends for project . This may take time !
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating petalinux-user-image.bb
hpnroot@hpn118:/opt/workspace/DPU/zcu102_dpu-ubuntu-petalinux$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
[INFO] generating workspace directory
environment: line 2504: build_with_: command not found
ERROR: Failed to build project

0 Kudos
Highlighted
Explorer
Explorer
484 Views
Registered: ‎04-19-2018

Re: PetaLinux environment build_with_: command not found

Jump to solution

emm, I don't think you should be root (are you?) and developing in /opt

Could you try as normal user and in the user folder?

0 Kudos
Highlighted
Contributor
Contributor
472 Views
Registered: ‎04-22-2011

Re: PetaLinux environment build_with_: command not found

Jump to solution

@satguy both root and normal user are the same :

 

-normal user :

hpnroot@hpn118:/opt/workspace/DPU$ petalinux-create -t project --template zynqMP -n zcu102_dpu-ubuntu-petalinux
INFO: Create project: zcu102_dpu-ubuntu-petalinux
INFO: New project successfully created in /opt/workspace/DPU/zcu102_dpu-ubuntu-petalinux
hpnroot@hpn118:/opt/workspace/DPU$ cd zcu102_dpu-ubuntu-petalinux/
hpnroot@hpn118:/opt/workspace/DPU/zcu102_dpu-ubuntu-petalinux$ petalinux-config --get-hw-description=../hardware_files
INFO: Getting hardware description...
INFO: Rename zcu102_dpu.xsa to system.xsa
[INFO] generating Kconfig for project
[INFO] menuconfig project
configuration written to /opt/workspace/DPU/zcu102_dpu-ubuntu-petalinux/project-spec/configs/config_zcu102_dpu

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] generating bbappends for project . This may take time !
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating petalinux-user-image.bb
hpnroot@hpn118:/opt/workspace/DPU/zcu102_dpu-ubuntu-petalinux$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
[INFO] generating workspace directory
environment: line 2504: build_with_: command not found
ERROR: Failed to build project

 

-root:

root@hpn118:/opt/workspace/DPU# petalinux-create -t project --template zynqMP -n zcu102_dpu-ubuntu-petalinux
INFO: Create project: zcu102_dpu-ubuntu-petalinux
INFO: New project successfully created in /opt/workspace/DPU/zcu102_dpu-ubuntu-petalinux
root@hpn118:/opt/workspace/DPU# cd zcu102_dpu-ubuntu-petalinux/
root@hpn118:/opt/workspace/DPU/zcu102_dpu-ubuntu-petalinux# petalinux-config --get-hw-description=../hardware_files
INFO: Getting hardware description...
INFO: Rename zcu102_dpu.xsa to system.xsa
[INFO] generating Kconfig for project
[INFO] menuconfig project


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] generating bbappends for project . This may take time !
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating petalinux-user-image.bb
root@hpn118:/opt/workspace/DPU/zcu102_dpu-ubuntu-petalinux# petalinux-build
[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
[INFO] generating workspace directory
environment: line 2504: build_with_: command not found
ERROR: Failed to build project

0 Kudos
Highlighted
Explorer
Explorer
427 Views
Registered: ‎04-19-2018

Re: PetaLinux environment build_with_: command not found

Jump to solution

 

Check the warning about installing Petalinux tools with regards to user levels.

Have you been able to build any project with that tool? Can you try a basic build with a known BSP (whichever) for a known supported board (that would discard the problem is with the tool)

0 Kudos
Highlighted
Contributor
Contributor
328 Views
Registered: ‎04-22-2011

Re: PetaLinux environment build_with_: command not found

Jump to solution

@satguy yes , I don't know why this one doesn't work 

0 Kudos
Highlighted
Explorer
Explorer
323 Views
Registered: ‎04-19-2018

Re: PetaLinux environment build_with_: command not found

Jump to solution

Well, if you have something that works and something that doesn't, I'd look into the differences. Another approach: take your project with a default config, build it, and change things until it fails. Slow, I know, as it takes a while every time.

Another thing: have you tried petalinux-build -x mrproper? Whenever you build, it reuses things, I've got into errors that vanished after that. Or at least, -x distclean

0 Kudos
Highlighted
Contributor
Contributor
276 Views
Registered: ‎04-22-2011

Re: PetaLinux environment build_with_: command not found

Jump to solution

@satguy well. I worked on this issue for a few days. I couldn't resolve it. Apart from this server, I got several servers in the lab and installed the software on one of them. Now I can see everything is fine and I don't receive this error anymore....

View solution in original post

0 Kudos