Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vitis-Tutorials/Developer_Contributed /01-Versal_Custom_Thin_Platform_Extensible_System/: Petalinux Makefile not works as expected on Readme.md #414

Open
GianlucaGaroia opened this issue Oct 18, 2023 · 3 comments
Assignees

Comments

@GianlucaGaroia
Copy link

Running Tutorial:
2023.1/Vitis-Tutorials/Developer_Contributed/01-Versal_Custom_Thin_Platform_Extensible_System/

Issue:
Error at the petalinux build step:
make[2]: ./src/config: Permission denied
make[2]: *** [Makefile:57: create] Error 127

Steps to reproduce:
just followed Readme.md instructions and run "make all" from root folder as first compilation - environment is Ubuntu 22.04.2 with Vivado/Vitis/Petalinux 2023.1 correctly installed (step 1 of the Makefile does version check with no error).
Step 2 and 3 of Makefile also runs correctly, problem is at step 4 that errors out in trying to access this file that is reported as "Permission Denied":
/linux/petalinux/src/config

By making it executable (chmod +x /linux/petalinux/src/config) the error changes to:
./src/config: 61: Bad substitution

That makes me think this config file and/or its usage has issues

@GianlucaGaroia GianlucaGaroia changed the title Vitis-Tutorials/Developer_Contributed /01-Versal_Custom_Thin_Platform_Extensible_System/: Petalinux Makefile not works as expected on Readme.md: Petalinux Makefile not works as expected on Readme.md Vitis-Tutorials/Developer_Contributed /01-Versal_Custom_Thin_Platform_Extensible_System/: Petalinux Makefile not works as expected on Readme.md Oct 18, 2023
@imrickysu
Copy link
Contributor

Could you try chmod -R 777 for your working directory?

@GianlucaGaroia
Copy link
Author

GianlucaGaroia commented Oct 19, 2023 via email

@BrunoVandeveldeXilinx
Copy link
Contributor

BrunoVandeveldeXilinx commented Oct 23, 2023

Hi, this is normal since that config file is an executable. If you fork or clone the tutorial then it works fine, it's only when you zip/unzip it that you will have to set the permission right. Let me look if I can fix it in the Makefile-flow itself, so this issue does not pop-up again :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants