-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ff2116
commit b75de26
Showing
95 changed files
with
13,711 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: a3bd4de88cb22018c82f93ee29afc19f | ||
config: 6c3404a1632b53ac75402c8516c80442 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.5 KB
main/.doctrees/explanations/decisions/0001-record-architecture-decisions.doctree
Binary file not shown.
Binary file added
BIN
+8.72 KB
main/.doctrees/explanations/decisions/0002-switched-to-pip-skeleton.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+16.4 KB
main/_downloads/08af42c976010f7f854a8134ff86cf6a/tutorial2_position_capture-2.pdf
Binary file not shown.
Binary file added
BIN
+14.4 KB
main/_downloads/0ebd22aa6177e90301d07e15d237dafe/tutorial2_position_capture-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+63.8 KB
...wnloads/16a7da47f9c384842cff93a9c026d21c/tutorial2_position_capture-2.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.5 KB
...wnloads/2fef5372575d1c2de0d3b2dba0752116/tutorial2_position_capture-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21 KB
main/_downloads/7b0bed1222ffbe5828d0258a621c94a0/tutorial2_position_capture-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions
2
main/_downloads/85bb13b2419ba78816c5000dfc448f81/tutorial2_position_capture-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from common.python.timing_plot import make_timing_plot | ||
make_timing_plot('/home/runner/work/PandABlocks.github.io/PandABlocks.github.io/docs/tutorials/tutorial2.timing.ini', 'Trigger Only', 'Milliseconds') |
Binary file added
BIN
+13 KB
main/_downloads/9e6abe3739e25f436837c1437d3a9848/tutorial2_position_capture-1.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
main/_downloads/b897bee6d8808d281368e46b1c6a0236/tutorial2_position_capture-2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from common.python.timing_plot import make_timing_plot | ||
make_timing_plot('/home/runner/work/PandABlocks.github.io/PandABlocks.github.io/docs/tutorials/tutorial2.timing.ini', 'Trigger Counter 5x faster', 'Milliseconds') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Explanations | ||
============= | ||
|
||
Explanations of how and why the library works. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:glob: | ||
|
||
explanations/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. This Source Code Form is subject to the terms of the Mozilla Public | ||
.. License, v. 2.0. If a copy of the MPL was not distributed with this | ||
.. file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
Architectural Decision Records | ||
============================== | ||
|
||
We record major architectural decisions in Architecture Decision Records (ADRs), | ||
as `described by Michael Nygard | ||
<http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions>`_. | ||
Below is the list of our current ADRs. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:glob: | ||
|
||
decisions/* |
26 changes: 26 additions & 0 deletions
26
main/_sources/explanations/decisions/0001-record-architecture-decisions.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
1. Record architecture decisions | ||
================================ | ||
|
||
Date: 2022-02-18 | ||
|
||
Status | ||
------ | ||
|
||
Accepted | ||
|
||
Context | ||
------- | ||
|
||
We need to record the architectural decisions made on this project. | ||
|
||
Decision | ||
-------- | ||
|
||
We will use Architecture Decision Records, as `described by Michael Nygard | ||
<http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions>`_. | ||
|
||
Consequences | ||
------------ | ||
|
||
See Michael Nygard's article, linked above. To create new ADRs we will copy and | ||
paste from existing ones. |
35 changes: 35 additions & 0 deletions
35
main/_sources/explanations/decisions/0002-switched-to-pip-skeleton.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
2. Adopt python3-pip-skeleton for project structure | ||
=================================================== | ||
|
||
Date: 2022-02-18 | ||
|
||
Status | ||
------ | ||
|
||
Accepted | ||
|
||
Context | ||
------- | ||
|
||
We should use the following `pip-skeleton <https://github.com/DiamondLightSource/python3-pip-skeleton>`_. | ||
The skeleton will ensure consistency in developer | ||
environments and package management. | ||
|
||
Decision | ||
-------- | ||
|
||
We have switched to using the skeleton. | ||
|
||
Consequences | ||
------------ | ||
|
||
This module will use a fixed set of tools as developed in python3-pip-skeleton | ||
and can pull from this skeleton to update the packaging to the latest techniques. | ||
|
||
As such, the developer environment may have changed, the following could be | ||
different: | ||
|
||
- linting | ||
- formatting | ||
- pip venv setup | ||
- CI/CD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../../.github/CONTRIBUTING.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Make a release | ||
============== | ||
|
||
To make a new release, please follow this checklist: | ||
|
||
- Choose a new PEP440 compliant release number (see https://peps.python.org/pep-0440/) | ||
- Go to the GitHub release_ page | ||
- Choose ``Draft New Release`` | ||
- Click ``Choose Tag`` and supply the new tag you chose (click create new tag) | ||
- Click ``Generate release notes``, review and edit these notes | ||
- Choose a title and click ``Publish Release`` | ||
|
||
Note that tagging and pushing to the main branch has the same effect except that | ||
you will not get the option to edit the release notes. | ||
|
||
.. _release: https://github.com/PandABlocks/PandABlocks.github.io/releases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
.. _ssh_doc: | ||
|
||
Updating a PandA via SSH | ||
======================== | ||
|
||
The Admin interface of the PandA can be used to update the firmware as detailed | ||
in the quickstart_doc_, but sometimes it is necessary to update a number of | ||
PandAs at once. The SSH interface can be used to do this. | ||
|
||
To gain access over SSH, either add an ``authorized_keys`` file to the SD card, | ||
or load it from USB via the Admin interface. | ||
|
||
It is then possible to log in remotely and perform operations on the PandA. | ||
|
||
.. warning:: | ||
|
||
PandA only has a single user; root, and remote access is done as this user. | ||
Root has privileges to break the system, so be careful when running the | ||
commands below. | ||
|
||
First update rootfs and then, after a reboot, update to the latest available zpkg | ||
packages (while making sure to match the major versions of everything). | ||
|
||
.. _quickstart_doc: https://pandablocks.github.io/PandABlocks-rootfs/master/quickstart.html | ||
|
||
Updating the rootfs | ||
------------------- | ||
|
||
Download a new ``boot-x.x.zip`` file from GitHub_ and unzip it somewhere. You | ||
can then:: | ||
|
||
$ md5sum boot/imagefile.cpio.gz | ||
$ scp boot/* root@my_panda_ip:/boot | ||
$ ssh root@my_panda_ip | ||
# sync | ||
# md5sum /boot/imagefile.cpio.gz | ||
|
||
|
||
If the two md5 sums match it has copied correctly. Within /boot you should find:: | ||
- boot.scr | ||
- uImage | ||
- boot.bin | ||
- devicetree.dtb | ||
- uinitramfs | ||
|
||
.. note:: | ||
For PandA v3.0 and beyond boot.bin and devicetree.dtb now come from the PandABlocks-FPGA build | ||
but are combined in the ``boot-x.x.zip`` on the rootfs release page. | ||
|
||
You can power cycle the box and it will install the new rootfs. | ||
|
||
|
||
Updating zpkg packages | ||
---------------------- | ||
|
||
A PandA firmware installation consists of 4 Zpkgs: | ||
- panda-fpga\@*.zpg | ||
- panda-server\@*.zpg | ||
- panda-webcontrol\@*.zpg | ||
- panda-slowfpga\@*.zpg (PandA 3.0 onwards) | ||
|
||
Download new zpkg files from GitHub_, then:: | ||
|
||
$ scp *.zpg root@my_panda_ip:/tmp | ||
$ ssh root@my_panda_ip | ||
# zpkg install /tmp/*.zpg | ||
|
||
This will install the new versions of the appropriate packages, and restart the services | ||
on the box to use them. From the PandA 3.0 release and beyond, a new zpkg file will be | ||
needed: panda-slowfpga\@*.zpg. | ||
|
||
.. note:: | ||
|
||
Release 1.0 of the rootfs contained a bug which means that if 1.0 or later | ||
versions of the FPGA zpkg were installed, then any subsequent installations | ||
of the FPGA zpkg with **ANY** version of the rootfs would fail with | ||
message:: | ||
|
||
File lib/python2.7/site-packages/malcolm/modules/web/www/fpga_docs already exists | ||
|
||
Once you have seen this error, run:: | ||
|
||
rm /opt/lib/python2.7/site-packages/malcolm/modules/web/www/fpga_docs | ||
|
||
and then retry the ``zpkg`` command and it should succeed. Release 1.1 of | ||
the rootfs fixes this, but you will still have to follow the steps above to | ||
correct the error. | ||
|
||
.. _GitHub: https://github.com/PandABlocks/PandABlocks.github.io/releases | ||
|
||
Update 24V eeprom | ||
----------------- | ||
|
||
PandA 3.0 requires an update to the EEPROM of 24Vio FMC cards to do this: | ||
|
||
|
||
- Find the right ipmi_definition file according the the product and revision (the one for FMC24V is under its module folder) | ||
- Copy it to panda | ||
- Run /opt/bin/write_eeprom <path-to-ipmi-definition> | ||
- After writing, the script will read the EEPROM to confirm the content matches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Run in a container | ||
================== | ||
|
||
A PandA Development container is available from on `Github Container reistry <https://ghcr.io/pandablocks/pandablocks-dev-container>`_. | ||
|
||
|
||
|
||
Starting the container | ||
---------------------- | ||
|
||
To pull the container from github container registry :: | ||
|
||
$ docker pull ghcr.io/pandablocks/pandablocks-dev-container:latest | ||
|
||
To get a released version, use a numbered release instead of ``latest``. | ||
|
||
Create three directories: | ||
|
||
- ``REPO_DIR``, containing all the PandA repositories | ||
|
||
- ``VIVADO_DIR``, containing a Vivado installation | ||
|
||
- ``BUILD_DIR``, an empty directory | ||
|
||
The above directories will be mounted as volumes to the container as it is run with the following command: | ||
|
||
.. code-block:: bash | ||
docker run --rm -it -v REPO_DIR:/repos:Z -v BUILD_DIR:/build:Z -v VIVADO_DIR:/scratch/Xilinx ghcr.io/pandablocks/pandablocks-dev-container /bin/bash | ||
The ``/repos``, ``/build``, and ``/scratch/Xilinx`` paths describe the container directories at which the mounts occur. | ||
|
||
In each repo you will need to: | ||
|
||
.. code-block:: bash | ||
cp CONFIG.example CONFIG | ||
.. note:: | ||
|
||
For the Vivado installation the container path will need to match your local system. | ||
i.e. if it is located in /FPGA/Xilinx you will use VIVADO_DIR:/FPGA/Xilinx | ||
and you will then need to edit CONFIG as appropriate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Update the tools | ||
================ | ||
|
||
This module is merged with the python3-pip-skeleton_. This is a generic | ||
Python project structure which provides a means to keep tools and | ||
techniques in sync between multiple Python projects. To update to the | ||
latest version of the skeleton, run:: | ||
|
||
$ git pull --rebase=false https://github.com/DiamondLightSource/python3-pip-skeleton | ||
|
||
Any merge conflicts will indicate an area where something has changed that | ||
conflicts with the setup of the current module. Check the `closed pull requests | ||
<https://github.com/DiamondLightSource/python3-pip-skeleton/pulls?q=is%3Apr+is%3Aclosed>`_ | ||
of the skeleton module for more details. | ||
|
||
.. _python3-pip-skeleton: https://DiamondLightSource.github.io/python3-pip-skeleton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
How-to Guides | ||
============== | ||
|
||
Practical step-by-step guides for day-to-day dev tasks and experienced users. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:glob: | ||
|
||
how-to/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
References | ||
============== | ||
|
||
Practical step-by-step guides for day-to-day dev tasks and experienced users. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:glob: | ||
|
||
reference/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
API Index | ||
========= | ||
|
||
.. | ||
https://stackoverflow.com/a/42310803 |
Oops, something went wrong.