# Confing file not detected by make file ? Making image Zedboard-7000 PYNQ 2.6,

**URL:** <https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468>\
**Category:** Support\
**Created:** [March 23, 2021, 10:18pm UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468 "2021-03-23T22:18:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rass](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rass/32/1882_2.png) [@rass](https://discuss.pynq.io/u/rass)\
**Post date:** [March 23, 2021, 10:18pm UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468/1 "2021-03-23T22:18:22Z")

</div>

Hello, I am trying to make an image for Zedboard-7000, tried many things and i am ultimately stuck with the following errors.

a file failes to get created and i first get the following error :

 ![Screenshot from 2021-03-23 23-05-11](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/8/83646e58fc1e801d6850ad7f05756ad12224558a.png)

the problem is i know the file exists i can even nano into it:

> /pynq/sdbuild/build/ZedBoard/petalinux\_project/project-spec/configs/config

i would really love some Help with this please !

Here is the said config file :

 ![Screenshot from 2021-03-23 23-23-31](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/4/40887fbea6a3c043e11b06f6449e141a5fdacca2.png)

Here is the command am using :

> make PREBUILT=/pynq/bionic.arm.2.6.0\_2020\_10\_19.img BOARDDIR=/pynq/myboards

This is my Spec ZedBoard.spec file

> ARCH\_ZedBoard :=arm  
> BSP\_ZedBoard :=avnet-digilent-zedboard-v2020.1-final.bsp  
> BITSTREAM\_ZedBoard :=project\_1.bit  
> STAGE4\_PACKAGES\_ZedBoard :=pynq

---

<div class="post-metadata">

**Author:** ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)\
**Post date:** [March 24, 2021, 10:53am UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468/2 "2021-03-24T10:53:59Z")

</div>

I’ve not seen that particular failure before - can you try running the echo command directly on the shell and then with `bash -c`?

Peter

---

<div class="post-metadata">

**Author:** ![rass](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rass/32/1882_2.png) [@rass](https://discuss.pynq.io/u/rass)\
**Post date:** [March 24, 2021, 11:15am UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468/3 "2021-03-24T11:15:26Z")

</div>

Hello Peter thanks for answering, here is the output of the command after retrying to build:  
i don’t know if it’s expected not to give anything like this.

 ![Screenshot from 2021-03-24 12-11-53](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/f/f0f3ea49220e110a79de8cef77426d9edf84ce8e.png)

---

<div class="post-metadata">

**Author:** ![rass](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rass/32/1882_2.png) [@rass](https://discuss.pynq.io/u/rass)\
**Post date:** [March 24, 2021, 3:17pm UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468/4 "2021-03-24T15:17:06Z")

</div>

So i tried running the echo command alone on the shell (after the make already failed), it does add the correct directory.  
when i add bash -c before the echo it doesn’t do anything (doesn’t add anything to the config file) but doesn’t output “no directory”.  
the only moment the echo gives no directory is when i run the echo without making the file.

---

<div class="post-metadata">

**Author:** ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)\
**Post date:** [March 24, 2021, 3:22pm UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468/5 "2021-03-24T15:22:38Z")

</div>

I’m at a loss as to what could be going on. Can you edit the Makefile to do an `ls` of the file before the echo lines?

Peter

---

<div class="post-metadata">

**Author:** ![rass](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rass/32/1882_2.png) [@rass](https://discuss.pynq.io/u/rass)\
**Post date:** [March 24, 2021, 3:42pm UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468/6 "2021-03-24T15:42:41Z")

</div>

When i ls the parent directory it finds the configs folder :

 ![Screenshot from 2021-03-24 16-39-31](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/3/33568f8fd7e31652dede995cf108e398a77e39b5.png)  
However when i try to ls inside the config folder it gives operation not permitted.  
 ![Screenshot from 2021-03-24 16-38-01](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/2/2253ad5aeba554658b9b60a90ce5459e635d9441.png)

😕

it also seems to have the necessary permissions on the configs directory…

 ![Screenshot from 2021-03-24 16-50-45](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/b/b8994cc7bdab3c4f4f3c94a7c97727b55675bf8f.png)

---

<div class="post-metadata">

**Author:** ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)\
**Post date:** [March 24, 2021, 3:58pm UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468/7 "2021-03-24T15:58:08Z")

</div>

Sounds like the BSP has been packaged with weird permissions on the configs folder. Try adding a `chmod a+rx` of the configs directory where the ls currently is.

Do you have a link where the BSP came from?

Peter

---

<div class="post-metadata">

**Author:** ![rass](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rass/32/1882_2.png) [@rass](https://discuss.pynq.io/u/rass)\
**Post date:** [March 24, 2021, 4:01pm UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468/8 "2021-03-24T16:01:12Z")

</div>

Yes the BSP came from Xilinx’s website, here :

## Zynq-7000 SoC Board Support Packages - 2020.1, [ZED BSP](https://www.xilinx.com/member/forms/download/xef.html?filename=avnet-digilent-zedboard-v2020.1-final.bsp)

actual link where you can see

> **[Downloads](https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools/2020-1.html)**
>
> Vivado, Vitis, Vitis Embedded Platform, PetaLinux, Device models

i’ll try to edit the permissions right now :  
tried to edit the permissions and it still doesn’t work, for some reason it considers there is no such file or directory, even though we can see it is here on the ls.

 ![Screenshot from 2021-03-24 17-31-13](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/9/9a16529bf75415e00bbc563baa858ddbd0eb059d.png)

I would gladly take another BSP if you have a better link,  
would a 2020.2 work ?  
would an earlier version work ?

and Thanks for all the support you are amazing, i hope i can learn enough to be able to help with all of this.

---

<div class="post-metadata">

**Author:** ![rass](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rass/32/1882_2.png) [@rass](https://discuss.pynq.io/u/rass)\
**Post date:** [March 24, 2021, 5:25pm UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468/9 "2021-03-24T17:25:42Z")

</div>

Trying with BSP 2020.2 and 2019.2 doesn’t fix this issue and comes with the exact same problems.

---

<div class="post-metadata">

**Author:** ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)\
**Post date:** [March 24, 2021, 6:58pm UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468/10 "2021-03-24T18:58:49Z")

</div>

I’ve been trying to recreate the error on my end and I can’t - the Zedboard BSP creates an image just fine. I’ll have a think on anything else that might be causing the issue

Peter

---

<div class="post-metadata">

**Author:** ![rass](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rass/32/1882_2.png) [@rass](https://discuss.pynq.io/u/rass)\
**Post date:** [April 6, 2021, 11:06am UTC](https://discuss.pynq.io/t/confing-file-not-detected-by-make-file-making-image-zedboard-7000-pynq-2-6/2468/11 "2021-04-06T11:06:32Z")

</div>

Hey, I was able to fix this and build images, the problem was that i was trying to run the make file in the /pynq shared folder with my machine, i think vagrant generated VM doesn’t have enough rights to write on that directory.

i had to reclone the PYNQ project on the home of the VM and run the setup\_host.sh script.

I would also like some help with making a custom overlay to make the boot\_leds blink on startup, not sure if i should open a new thread.
