Skip to content

Commit e0f4dc0

Browse files
Ben Bensontdewey-rpi
authored andcommitted
Added an app to allow users to configure rpi-sb-provisioner
Some README changes for the monitoring application
1 parent af40432 commit e0f4dc0

16 files changed

+465
-499
lines changed

README.adoc

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,41 @@ Now, install the `rpi-sb-provisioner` package from the releases area:
5353
----
5454
$ sudo dpkg -i rpi-sb-provisioner_foo.deb
5555
$ sudo apt --fix-broken install
56+
$ sudo reboot now
5657
----
5758

58-
Copy the example configuration file into the expected location:
59+
Next, you will have to configure `rpi-sb-provisioner` by using the TUI. In a terminal, run:
5960

6061
----
61-
$ cp /etc/default/rpi-sb-provisioner /etc/rpi-sb-provisioner/config
62+
$ configure.sh
6263
----
6364

64-
Edit this configuration file with your editor of choice. For example:
65+
WARNING: This will not work if you have not reboot after installing the package!
6566

66-
----
67-
$ sudo nano /etc/rpi-sb-provisioner/config
68-
----
67+
Running this command will open up a full screen text UI. The TUI supports mouse input or keyboard navigation!
68+
Each of the boxes contains a name, text entry and help button. The steps for editing each parameter are as follows:
69+
70+
[pdfwidth=90%]
71+
.A parameter entry area
72+
image::docs/images/rpi-config-textfield.png[]
73+
74+
75+
*1 -* Click or use `tab` to click the help button to view the information about the parameter
76+
77+
*2 -* Navigate to the text field and enter the value you wish
78+
79+
*3 -* To stage this value for writing, you must click `return` on your keyboard. If the value is successfully verified, then the field will change color to green and a tick should appear. If validation fails, a warning popup should appear with some help text. A cross will also appear next to the parameter name.
80+
81+
[pdfwidth=90%]
82+
.A successfully verified parameter
83+
image::docs/images/rpi-config-successfully-verified.png[]
84+
85+
86+
*4 -* Repeat the above steps to complete your required parameters (some are optional).
87+
88+
*5 -* Write to the configuration file by pressing the `Write verified params to config file` button at the bottom of the screen
89+
90+
Once you have followed all those steps, `rpi-sb-provisioner` should be correctly configured and ready to run.
6991

7092
== Configuration fields
7193

@@ -176,18 +198,21 @@ No further intervention is required in the success case.
176198

177199
WARNING: `rpi-sb-provisioner` will not, by default, block JTAG access. If you wish to make use of this facility, you _must_ specify this in the Raspberry Pi Bootloader configuration pointed to by `RPI_DEVICE_BOOTLOADER_CONFIG_FILE`
178200

179-
=== Monitoring via the app
201+
=== Monitoring via the monitoring application
180202

181-
`rpi-sb-provisioner` also contains a monitoring TUI. This can be used to observe how far through the process each device is. It also allows for easy introspection of the log files and lists all completed and failed devices.
203+
`rpi-sb-provisioner` also contains a monitoring application. This can be used to observe the progress of a device as it is being provisioned. It also allows for easy introspection of the log files and lists all completed and failed devices.
204+
The monitoring application supports both mouse or keyboard input. Navigation between boxes can be acheived by using the `tab` key or by clicking on the desired area.
182205

183206
To run, type into a terminal window:
184207

185208
----
186209
$ monitor.sh
187210
----
188211

189-
The TUI will start up with 3 sections, triaging, keywriting and provisoning. If a device is connected, you will be able to watch it progress through each of the sections.
190-
The TUI also has two areas at the bottom, one for successfully completed provisions and one for failed provisions. Clicking on the device name will open up a log window, along with options to view the log files for each step of the provisioning service.
212+
The TUI will intialise with 2 rows, the top one showing the progress of a device throughout the process, with each of the columns being for devices in the following stages: triaging, keywriting and provisoning.
213+
When a device is connected, you will be able to watch it progress through each of the sections.
214+
The second row of the TUI also has two boxes at the bottom, the left being successfully completed provisions and the right for failed provisions.
215+
Clicking on the device name will open up a second window, with buttons to view the log files for each step of the provisioning service.
191216
To return to the main monitoring screen, just press the key `m`.
192217
To quit the app use the key combination `CTRL-C` or `q`.
193218

app/layout.css

Lines changed: 0 additions & 43 deletions
This file was deleted.

app/main.py

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)