diff options
author | Joseph C. Lehner <joseph.c.lehner@gmail.com> | 2019-03-22 15:19:54 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-06-09 16:59:33 +0200 |
commit | 0a73c61cb933daad40309c22d8eea6034454dcbd (patch) | |
tree | 2b7f6b241274350e0ed1ab6d99085b00747ba914 /tools | |
parent | 68b94f0fb4d5bf659a3eed6045718b8082852966 (diff) | |
download | upstream-0a73c61cb933daad40309c22d8eea6034454dcbd.tar.gz upstream-0a73c61cb933daad40309c22d8eea6034454dcbd.tar.bz2 upstream-0a73c61cb933daad40309c22d8eea6034454dcbd.zip |
mkchkimg: use higher version code
This patch changes the version code of the image header
from `1.1.99_0.0.0.0` to `99.99.99_99.99.99.99`. This
is neccessary on some devices where the stock firmware
checks the version field, possibly preventing third-party
firmware from being installed.
Reviewed-by: Thibaut VARÈNE <hacks@slashdirt.org>
Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/firmware-utils/src/mkchkimg.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/firmware-utils/src/mkchkimg.c b/tools/firmware-utils/src/mkchkimg.c index 5f2823f154..dff5169a25 100644 --- a/tools/firmware-utils/src/mkchkimg.c +++ b/tools/firmware-utils/src/mkchkimg.c @@ -264,13 +264,8 @@ main (int argc, char * argv[]) hdr->magic = htonl (0x2a23245e); hdr->header_len = htonl(header_len); hdr->reserved[0] = (unsigned char)(region & 0xff); - hdr->reserved[1] = 1; /* Major */ - hdr->reserved[2] = 1; /* Minor */ - hdr->reserved[3] = 99; /* Build */ - hdr->reserved[4] = 0; - hdr->reserved[5] = 0; - hdr->reserved[6] = 0; - hdr->reserved[7] = 0; + memset(&hdr->reserved[1], 99, sizeof(hdr->reserved) - 1); + message (" Board Id: %s", board_id); message (" Region: %s", region == 1 ? "World Wide (WW)" : (region == 2 ? "North America (NA)" : "Unknown")); |