Skip to content

Commit

Permalink
Merge pull request #96 from FredKellerman/image_v3.0.1
Browse files Browse the repository at this point in the history
Upgrade to v3.0.1
  • Loading branch information
FredKellerman authored Mar 18, 2023
2 parents a0def3f + 568eb38 commit a5fcafe
Show file tree
Hide file tree
Showing 11 changed files with 90 additions and 9 deletions.
12 changes: 12 additions & 0 deletions Ultra96/packages/dpu-pynq/qemu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#! /bin/bash

set -x
set -e

# Pull in env vars like PYNQ_JUPYTER_NOTEBOOKS to this script
. /etc/environment
for f in /etc/profile.d/*.sh; do source $f; done

pip3 install pynq-dpu==2.5.1 --no-build-isolation
cd $PYNQ_JUPYTER_NOTEBOOKS
pynq get-notebooks pynq-dpu -p .
10 changes: 10 additions & 0 deletions Ultra96/packages/ipycanvas/plugin.jupyterlab-settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
// Extension Manager
// @jupyterlab/extensionmanager-extension:plugin
// Extension manager settings.
// *********************************************

// Disclaimed Status
// Whether the user understand that extensions managed through this interface run arbitrary code that may be dangerous
"disclaimed": true
}
11 changes: 11 additions & 0 deletions Ultra96/packages/ipycanvas/pre.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -x
set -e

target=$1
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Enabled plugins for JupyterLab
sudo mkdir -p $target/root/.jupyter/lab/user-settings/@jupyterlab/extensionmanager-extension
sudo cp $script_dir/plugin.jupyterlab-settings $target/root/.jupyter/lab/user-settings/@jupyterlab/extensionmanager-extension/
15 changes: 15 additions & 0 deletions Ultra96/packages/ipycanvas/qemu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#! /bin/bash

set -x
set -e

# Prep to install ipycanvas Jupyter Lab extension, it needs npm, PYNQ provides nodejs
#curl -L https://www.npmjs.org/install.sh | sh

source /etc/profile.d/pynq_venv.sh

# Install the package then install / compile it as a Jupyter Lab extension
pip3 install ipycanvas orjson
#jupyter labextension install @jupyter-widgets/jupyterlab-manager ipycanvas --no-build
#jupyter lab build
#jupyter labextension install ipycanvas
16 changes: 16 additions & 0 deletions Ultra96/packages/juliabrot/qemu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#! /bin/bash

set -x
set -e

# Pull in env vars like PYNQ_JUPYTER_NOTEBOOKS to this script
. /etc/environment
for f in /etc/profile.d/*.sh; do source $f; done

cd $PYNQ_JUPYTER_NOTEBOOKS
git clone https://github.com/FredKellerman/PYNQ-juliabrot -b v1.0.3
cd PYNQ-juliabrot
rm -rf .git
rm .gitignore
echo "https://github.com/FredKellerman/PYNQ-juliabrot" > github-url.txt
chown -R xilinx:xilinx ./
7 changes: 7 additions & 0 deletions Ultra96/packages/update_pynq/qemu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash

set -x
set -e

# Upgrade from v3.0.0 & v3.0.1 to fix hierarchy detection for v3.0.x
python3 -m pip install pynqmetadata==0.1.2
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ CONFIG_USB_GADGETFS=y
CONFIG_USB_STORAGE=y
CONFIG_USB_UAS=y

#
# Add camera driver
#
CONFIG_VIDEO_AP1302=m

#
# Enable SPI user mode driver
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ CONFIG_USB_GADGETFS=y
CONFIG_USB_STORAGE=y
CONFIG_USB_UAS=y

#
# Add camera driver
#
CONFIG_VIDEO_AP1302=m

#
# Enable SPI user mode driver
#
Expand Down
2 changes: 1 addition & 1 deletion Ultra96/specs/Ultra96_v1.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ FPGA_MANAGER_Ultra96 := 1

# Note: for PYNQ v3.0 mraa & ump packages are out of date and deprecated (not installed)
STAGE4_PACKAGES_Ultra96 := pynq usbgadget usb-eth0 pynq_selftest
STAGE4_PACKAGES_Ultra96 += xrt sensorconf-v1 python_pmbus u96v1_notebooks
STAGE4_PACKAGES_Ultra96 += xrt sensorconf-v1 python_pmbus u96v1_notebooks ipycanvas juliabrot
2 changes: 1 addition & 1 deletion Ultra96/specs/Ultra96_v2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ FPGA_MANAGER_Ultra96 := 1

# Note: for PYNQ v3.0 mraa & ump packages are out of date and deprecated (not installed)
STAGE4_PACKAGES_Ultra96 := pynq usbgadget usb-eth0 pynq_selftest
STAGE4_PACKAGES_Ultra96 += xrt sensorconf-v2 python_pmbus wilc3000
STAGE4_PACKAGES_Ultra96 += xrt sensorconf-v2 python_pmbus wilc3000 ipycanvas juliabrot
14 changes: 7 additions & 7 deletions build96.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ fi
START_DIR=$PWD
MAIN_DIR="$START_DIR/Ultra96"
PYNQ_GIT_LOCAL_PATH="$START_DIR/PYNQ-git"
SD_IMAGE_FILE="$START_DIR/$BOARD_TYPE-3.0.0.img"
PYNQ_IMAGE_FILE="$PYNQ_GIT_LOCAL_PATH/sdbuild/output/Ultra96-3.0.0.img"
PYNQ_GIT_TAG=v3.0.0
SD_IMAGE_FILE="$START_DIR/$BOARD_TYPE-3.0.1.img"
PYNQ_IMAGE_FILE="$PYNQ_GIT_LOCAL_PATH/sdbuild/output/Ultra96-3.0.1.img"
PYNQ_GIT_TAG=v3.0.1
PYNQ_GIT_REPO_URL=https://github.com/Xilinx/PYNQ
ULTRA96_BOARDDIR=$START_DIR
SPEC_DIR=specs
Expand All @@ -43,10 +43,10 @@ OVERLAY_SEMA_NAME="_""$BOARD_TYPE""_"
BSP_FILE_PATH=$MAIN_DIR
BSP_FILE_URL=https://github.com/Avnet/Ultra96-PYNQ/releases/download/v3.0.0
ROOTFS_TMP_DIR="$START_DIR/rootfs_tmp"
ROOTFS_ZIP_FILE=jammy.aarch64.3.0.0.tar.gz
PREBUILT_IMAGE_ZIP_FILE=pynq-3.0.0.tar.gz
ROOTFS_IMAGE_FILE_URL=https://www.xilinx.com/bin/public/openDownload?filename=jammy.aarch64.3.0.0.tar.gz
PREBUILT_IMAGE_FILE_URL=https://github.com/Xilinx/PYNQ/releases/download/v3.0.0/pynq-3.0.0.tar.gz
ROOTFS_ZIP_FILE=jammy.aarch64.3.0.1.tar.gz
PREBUILT_IMAGE_ZIP_FILE=pynq-3.0.1.tar.gz
ROOTFS_IMAGE_FILE_URL=https://bit.ly/pynq_aarch64_v3_0_1
PREBUILT_IMAGE_FILE_URL=https://github.com/Xilinx/PYNQ/releases/download/v3.0.1/pynq-3.0.1.tar.gz

##################################
# Fetching and compiling #
Expand Down

0 comments on commit a5fcafe

Please sign in to comment.