# Building pynq.remote image checkenv error \[RFSoC 4x2\]

**URL:** <https://discuss.pynq.io/t/building-pynq-remote-image-checkenv-error-rfsoc-4x2/8961>\
**Category:** Support\
**Created:** [January 13, 2026, 9:22pm UTC](https://discuss.pynq.io/t/building-pynq-remote-image-checkenv-error-rfsoc-4x2/8961 "2026-01-13T21:22:29Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![joshgoldsmith](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/joshgoldsmith/32/5347_2.png) [@joshgoldsmith](https://discuss.pynq.io/u/joshgoldsmith)\
**Post date:** [January 16, 2026, 12:39pm UTC](https://discuss.pynq.io/t/building-pynq-remote-image-checkenv-error-rfsoc-4x2/8961/5 "2026-01-16T12:39:19Z")

</div>

Hi @Riley_P

I just went through the process myself of building a PYNQ.remote image for the RFSoC4x2 and was able get a working image built.

These are the commands I ran:

#### Setting up the PYNQ Docker container

```bash
export XILINX_TOOLS_PATH=/path/to/Xilinx/tools # e.g. /tools/Xilinx
export PETALINUX_TOOLS_PATH=/path/to/petalinux/tools # e.g. /home/$USER/petalinux

mkdir rfsoc4x2-remote-image-build-test
pushd rfsoc4x2-remote-image-build-test
git clone --recursive https://github.com/Xilinx/PYNQ.git PYNQ
pushd PYNQ/sdbuild/
docker build --build-arg USERNAME=$(whoami) --build-arg USER_UID=$(id -u) --build-arg USER_GID=$(id -g) -t pynqdock-test:latest .
popd
docker run --init --rm -it -v $XILINX_TOOLS_PATH:$XILINX_TOOLS_PATH:ro -v $PETALINUX_TOOLS_PATH:$PETALINUX_TOOLS_PATH:ro -v $(pwd):/workspace --name pynq-sdbuild-env-test --privileged pynqdock-test:latest /bin/bash

```

#### From within the PYNQ Docker container

```bash
export XILINX_TOOLS_PATH=/path/to/Xilinx/tools # e.g. /tools/Xilinx
export PETALINUX_TOOLS_PATH=/path/to/petalinux/tools # e.g. /home/$USER/petalinux

source $XILINX_TOOLS_PATH/Vivado/2024.1/settings64.sh
source $PETALINUX_TOOLS_PATH/2024.1/settings.sh
git clone --recursive https://github.com/Xilinx/RFSoC-PYNQ.git
pushd RFSoC-PYNQ
wget https://github.com/RealDigitalOrg/RFSoC4x2-BSP/raw/refs/heads/master/bsp_releases/RFSoC4x2_2024_1.bsp -O boards/RFSoC4x2/RFSoC4x2.bsp
make pynqremote BOARD=RFSoC4x2

```

This took around 30 minutes to build the image.

---

_[View the full topic](https://discuss.pynq.io/t/building-pynq-remote-image-checkenv-error-rfsoc-4x2/8961)._
