summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-11-08 16:14:21 -0800
committerPatrick Venture <venture@google.com>2018-11-16 07:27:49 -0800
commite2c3c1efb20393633edb6e68d768119f3b0e0721 (patch)
tree07f593fd23bcc2fff3f05184c925d8c4afd3862c
parent3f06a886bc81abfdc832882888b5fc31f10dd7a3 (diff)
downloadopenbmc-docs-e2c3c1efb20393633edb6e68d768119f3b0e0721.tar.gz
openbmc-docs-e2c3c1efb20393633edb6e68d768119f3b0e0721.zip
designs: firmware_update: add details
Add details pertaining to the P2A bridge configuration. Change-Id: I69d1c95fbfbba84cadfaea9c8a89f8416c14d469 Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--designs/firmware_update_via_blobs.md27
1 files changed, 23 insertions, 4 deletions
diff --git a/designs/firmware_update_via_blobs.md b/designs/firmware_update_via_blobs.md
index cd56328..5ff5c3a 100644
--- a/designs/firmware_update_via_blobs.md
+++ b/designs/firmware_update_via_blobs.md
@@ -201,10 +201,13 @@ mechanism, otherwise it is rejected. If the request is also set for reading,
this is not rejected but currently provides no additional value.
Once opened a new file will appear in the blob_id list (for both the image and
-hash) indicating they are in progress. The name will be `flash/{item}/0` and
-`flash/hash/0` which has no meaning beyond representing the current update in
-progress. Closing the file does not delete the staged images. Only delete
-will.
+hash) indicating they are in progress. The name will be `flash/active/image`
+and `flash/active/hash` which has no meaning beyond representing the current
+update in progress. Closing the file does not delete the staged images. Only
+delete will.
+
+***Note*** The active image blob_ids cannot be opened. This can be
+reconsidered later.
#### BmcBlobRead
@@ -314,6 +317,22 @@ struct BmcBlobStatRx {
};
```
+If it's called and the data transport mechanism is P2A, it'll return a 32-bit
+address for use to configure the P2A region as part of the metadata portion of
+the `BmcBlobStatRx`.
+
+```
+struct BmcBlobStatRx {
+ uint16_t crc16;
+ uint16_t blob_state; /* OpenFlags::write | (one of the interfaces) */
+ uint32_t size; /* Size in bytes so far written */
+ uint8_t metadata_len = sizeof(struct P2ARegion);
+ struct P2ARegion {
+ uint32_t address;
+ };
+};
+```
+
If called post-commit on the hash file session, it'll return:
```
OpenPOWER on IntegriCloud