# Help with building custom board - sd card out of space

**URL:** <https://discuss.pynq.io/t/help-with-building-custom-board-sd-card-out-of-space/225>\
**Category:** Support\
**Created:** [June 19, 2019, 6:38pm UTC](https://discuss.pynq.io/t/help-with-building-custom-board-sd-card-out-of-space/225 "2019-06-19T18:38:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rvq](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rvq](https://discuss.pynq.io/u/rvq)\
**Post date:** [June 19, 2019, 6:38pm UTC](https://discuss.pynq.io/t/help-with-building-custom-board-sd-card-out-of-space/225/1 "2019-06-19T18:38:55Z")

</div>

Hello,

I’m trying to get to the point where I can build my own custom board/FPGA design rather than the Pynq-Z1. I can build the Pynq-Z1 currently and it runs on the zynq. I then copy the ‘Pynq-Z1’ directory in the boards folder within the Pynq repo. I rename that to “Rob-1”. This will be the new “board” I want to build. I update the .spec file to reflect these changes and kick off the build with the

make BOARDS=Rob-1

command. It seems as though all of the boards are getting built to some degree and loaded on the sdcard bionic partition that holds the filesystem during the build process. The build fails because I run out of space. I have a screenshot of the failure below. Why would this be happening when I’m specifying my board name to the make file?

 ![16](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/1X/c96f6be640930ea3e0cda1ea34932e10737305e8.jpeg)

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [June 19, 2019, 9:32pm UTC](https://discuss.pynq.io/t/help-with-building-custom-board-sd-card-out-of-space/225/2 "2019-06-19T21:32:47Z")

</div>

It seems that you have gone very far to the last stage of the building process. I guess you need to make sure you have enough space for your VM? What is your disk size for your VM?

Btw, are you making the vivado project in your board folder? In that case the pynq package `setup.py` will pick up everything in that board folder (including your entire vivado project) and copy onto the image. This may not be want you wanted. So you probably need to run `make clean` in your vivado project, so that `setup.py` only picks up necessary files such as \*.bit, \*.hwh, \*.tcl

---

<div class="post-metadata">

**Author:** ![rvq](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rvq](https://discuss.pynq.io/u/rvq)\
**Post date:** [June 19, 2019, 9:49pm UTC](https://discuss.pynq.io/t/help-with-building-custom-board-sd-card-out-of-space/225/3 "2019-06-19T21:49:01Z")

</div>

Hi Rock,

I did build the vivado project and I bet that is what is happening. I bet it is copying everything over and a fully built vivado project (base) cannot fit on the sd card. My partition used for building is pretty big and that isn’t full. I attached a screenshot showing a special partition I made just for building from the Pynq repo.

 ![17](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/1X/f6fba29848754a7087d750a8aec6c485201e31ac.jpeg)

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [June 20, 2019, 5:42pm UTC](https://discuss.pynq.io/t/help-with-building-custom-board-sd-card-out-of-space/225/4 "2019-06-20T17:42:18Z")

</div>

Then the solution is to move your vivado project away from the board folder so `setup.py` won’t pick up everything.
