You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Add metadata docs to the top level Readme.md
Also, enable metadata by default in the recovery config.txt files
now that this feature has been supported for several APT releases.
Previously, this was not enabled by default because it might cause
an old verison of the rpiboot host to output a file-not-found error.
Copy file name to clipboardExpand all lines: Readme.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,6 +188,33 @@ Be careful not to overwrite `bootcode.bin` or `bootcode4.bin` with the executabl
188
188
* Add `uart_2ndstage=1` to the `config.txt` file in `msd/` or `recovery/` directories to enable UART debug output.
189
189
* Add `recovery_metadata=1` to the `config.txt` file in `recovery/` or `recovery5/` directory to enable metadata JSON output.
190
190
191
+
## Reading device metadata from OTP via rpiboot
192
+
The `rpiboot` "recovery" modules provide a facility to read the device OTP information. This can be run either as a provisioning step or as a standalone operation.
193
+
194
+
To enable this make sure that `recovery_metadata=1` is set in the recovery `config.txt` file and pass the `-j metadata` flag to `rpiboot`.
195
+
196
+
See [board revision](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#new-style-revision-codes-in-use) documentation to decode the `BOARD_ATTR` field.
197
+
198
+
Example command to extract the OTP metadata from a Compute Module 4:
199
+
```bash
200
+
cd recovery
201
+
mkdir -p metadata
202
+
sudo rpiboot -j metadata -d .
203
+
```
204
+
205
+
Example metadata file contents written to `metadata/SERIAL_NUMBER.json`
0 commit comments