diff options
author | Evan Lojewski <github@meklort.com> | 2020-09-26 13:16:01 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 13:16:01 -0600 |
commit | 19fc2074766a894727dcbf26ca9cfbe3ad3ffe7f (patch) | |
tree | eb97893312874e288cf026e0fc66dbbbbbb3a616 /stage1/main.c | |
parent | 548c7ba4e77b3625e58defcccd3bfce0dc47193e (diff) | |
download | bcm5719-ortega-19fc2074766a894727dcbf26ca9cfbe3ad3ffe7f.tar.gz bcm5719-ortega-19fc2074766a894727dcbf26ca9cfbe3ad3ffe7f.zip |
stage1: Add a fixed-location version string and version number. (#118)
Similar to the proprietary firmware, add a version string pointer
8 bytes into the firmware image.
Unlike the proprietary firmware, the version number is also stored
12 bytes into the firmware image.
This closes GH-114
Diffstat (limited to 'stage1/main.c')
-rw-r--r-- | stage1/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/stage1/main.c b/stage1/main.c index c24aa07..5788ca9 100644 --- a/stage1/main.c +++ b/stage1/main.c @@ -66,6 +66,8 @@ #include <bcm5719_GEN.h> #include <bcm5719_SHM.h> +const char gStage1Version[] = "stage1-" STRINGIFY(VERSION_MAJOR) "." STRINGIFY(VERSION_MINOR) "." STRINGIFY(VERSION_PATCH); + NVRAMContents_t gNVMContents; void __attribute__((noinline)) reportStatus(uint32_t code, uint8_t step) @@ -139,7 +141,9 @@ int main() if (0 == DEVICE.Status.bits.FunctionNumber) { - em100_puts("RX Firmware v" STRINGIFY(VERSION_MAJOR) "." STRINGIFY(VERSION_MINOR) "." STRINGIFY(VERSION_PATCH) "\n"); + em100_puts("RX Firmware "); + em100_puts(gStage1Version); + em100_puts("\n"); } #if !CXX_SIMULATOR |