Vitis-Tutorials icon indicating copy to clipboard operation
Vitis-Tutorials copied to clipboard

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

Open GianlucaGaroia opened this issue 1 year ago • 3 comments

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 avatar Oct 18 '23 17:10 GianlucaGaroia

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

imrickysu avatar Oct 19 '23 06:10 imrickysu

This gives same result as when adding +x permission to the mentioned ./src/config file:

./src/config: 61: Bad substitution

Thanks in advance

From: Ricky Su @.> Sent: giovedì 19 ottobre 2023 08:01 To: Xilinx/Vitis-Tutorials @.> Cc: Garoia, Gianluca (EBV) @.>; Author @.> Subject: [External]Re: [Xilinx/Vitis-Tutorials] Vitis-Tutorials/Developer_Contributed /01-Versal_Custom_Thin_Platform_Extensible_System/: Petalinux Makefile not works as expected on Readme.md (Issue #414)

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

— Reply to this email directly, view it on GitHubhttps://github.com/Xilinx/Vitis-Tutorials/issues/414#issuecomment-1770116954, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFZBD6C5S4H2ZKNPCBRBPA3YAC62XAVCNFSM6AAAAAA6F3FPIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZQGEYTMOJVGQ. You are receiving this because you authored the thread.Message ID: @.@.>>

We continuously commit to comply with the applicable data protection laws and ensure fair and transparent processing of your personal data. Please read our privacy statement including an information notice and data protection policy for detailed information on our website.

GianlucaGaroia avatar Oct 19 '23 10:10 GianlucaGaroia

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

BrunoVandeveldeXilinx avatar Oct 23 '23 12:10 BrunoVandeveldeXilinx