Skip to content

Commit 1491cbc

Browse files
committed
fix make_mpsoc_boot.sh and update readme
with mpsoc docker info Signed-off-by: Holotronic <producer@holotronic.dk>
1 parent 69b07cb commit 1491cbc

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

HW/VivadoProjects/Readme.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,27 @@ running make\_bitstream, the *.bit.bin file will be in your new root folder for
4747
the carrier.
4848

4949
Checkout the latest commit for the FZ3 board if you are adding a mpsoc based board
50+
51+
# Docker building
52+
53+
1.For bitfile compiling and .hdf file creation:
54+
55+
docker pull thesnowwhite/bionic-vivado:2019.1
56+
57+
cd mksocfpga
58+
/usr/bin/docker run -itv $(pwd):/work -e DISPLAY=$DISPLAY --net=host -v $HOME/.Xauthority:/home/vivado/.Xauthority -v $HOME/.Xresources:/home/vivado/.Xresources thesnowwhite/bionic-vivado:2019.1 /bin/bash
59+
cd /work/HW/VivadoProjects
60+
./make_bitfile.sh <project config file>
61+
ie. ./make_bitfile.sh myirtech/fz3/fz3_config
62+
63+
64+
2.For mpsoc bootfile's generation (only works with created vivado project containing .hdf file)
65+
66+
docker pull thesnowwhite/petalinux:2019.1
67+
cd mksocfpga/HW/VivadoProjects
68+
/usr/bin/docker run -itv $(pwd):/work --env=$DISPLAY --net=host -e TZ=Europe/Copenhagen thesnowwhite/petalinux:2019.1 /bin/bash
69+
./make_mpsoc_boot.sh <board name>
70+
ie. ./make_mpsoc_boot.sh fz3
71+
72+
73+

HW/VivadoProjects/make_mpsoc_boot.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ CUR_DIR=`realpath .`
2020
if [[ $1 == *"ultra96"* ]]; then
2121
cd /work/avnet/ultra96
2222
BOARD_PART="xczu3eg"
23-
else if [[ $1 == *"fz3"* ]]; then
24-
cd /work//myirtech/fz3
25-
BOARD_PART="xczu3eg"
26-
else
27-
echo "cant't find board project folder"
28-
exit 1
23+
else
24+
if [[ $1 == *"fz3"* ]]; then
25+
cd /work//myirtech/fz3
26+
BOARD_PART="xczu3eg"
27+
else
28+
echo "cant't find board project folder"
29+
exit 1
30+
fi
2931
fi
3032

3133
petalinux-create -t project -s "$1"-mk-2019.1.bsp

0 commit comments

Comments
 (0)