Mikhail Zhilkin
87092b3c06
scripts: add support for Sercomm kernel header
This scripts creates custom kernel header that necessary for Sercomm
mt7621 devices:
- Sercomm S3
- Beeline SmartBox Giga
- Beeline SmartBox Pro
- Beeline Smartbox Turbo
- Beeline Smartbox Turbo+
- WiFire S1500.NBN
Header format
-------------
+--------+---------------+------------------------+
| Offset | Value | Description |
+========+===============+========================+
| 0x0 | 53 65 72 00 | Magic "Ser." |
+--------+---------------+------------------------+
| 0x4 | 04 00 00 01 | End offset of RootFS |
+--------+---------------+------------------------+
| | | This header checksum |
| 0x8 | d6 14 9a c1 | htonl(~crc) |
+--------+---------------+------------------------+
| 0xc | 02 ff ff ff | Constant |
+--------+---------------+------------------------+
| 0x10 | 00 01 40 00 | Kernel start offset |
+--------+---------------+------------------------+
| 0x14 | c6 94 24 00 | Kernel length |
+--------+---------------+------------------------+
| | | Kernel checksum |
| 0x18 | e7 78 89 f1 | htonl(~crc) |
+--------+---------------+------------------------+
| 0x1c | 00 00 00 00 | Constant |
+--------+---------------+------------------------+
| 0x20 | ff ff ff ff | Constant |
+--------+---------------+------------------------+
| 0x24 | ff ff ff ff | Constant |
+--------+---------------+------------------------+
| 0x28 | 00 00 00 01 | RootFS offset |
+--------+---------------+------------------------+
| | | RootFS length |
| 0x2c | 04 00 00 00 | Always 0x4, we check |
| | | UBI magic only |
+--------+---------------+------------------------+
| | | RootFS checksum |
| 0x30 | 1c fc 55 2d | htonl(~crc) |
| | | Const for UBI magic |
+--------+---------------+------------------------+
| 0x34 | 00 00 00 00 | Constant |
+--------+---------------+------------------------+
| 0x38 | ff ff ff ff … | Pad to 0x100 |
+--------+---------------+------------------------+
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
2022-07-03 20:25:38 +02:00
..
2022-02-19 13:10:01 +01:00
2021-10-30 15:00:22 +02:00
2020-01-02 23:59:20 +01:00
2017-12-08 19:41:18 +01:00
2020-11-02 08:39:49 +01:00
2022-06-28 22:20:09 +02:00
2020-05-19 08:05:22 +02:00
2022-04-16 14:53:17 +02:00
2022-04-16 14:53:17 +02:00
2022-02-28 15:17:11 +01:00
2021-10-31 21:24:47 +01:00
2020-03-01 21:35:59 +01:00
2017-05-02 14:33:58 +02:00
2017-05-02 14:33:58 +02:00
2021-05-13 15:13:15 +02:00
2021-05-13 15:13:15 +02:00
2022-01-17 09:14:26 +01:00
2021-05-29 13:03:07 +02:00
2011-02-27 15:39:27 +00:00
2021-05-29 13:03:07 +02:00
2020-11-18 21:50:58 +01:00
2016-04-28 16:43:28 +02:00
2022-02-26 13:36:30 +01:00
2021-09-22 22:24:39 -10:00
2021-10-31 21:24:47 +01:00
2022-03-09 10:23:25 +00:00
2021-12-29 14:06:10 +01:00
2021-11-13 10:29:41 -10:00
2021-10-31 21:24:47 +01:00
2022-02-15 00:24:24 +01:00
2018-07-05 01:30:57 +08:00
2020-12-22 19:11:50 +01:00
2022-04-15 01:17:04 +01:00
2020-01-01 17:01:02 +01:00
2020-08-31 11:18:06 +01:00
2020-11-02 08:39:49 +01:00
2022-04-19 22:59:50 +02:00
2021-05-13 15:13:15 +02:00
2019-01-21 16:35:40 +01:00
2022-03-29 21:41:06 +01:00
2021-10-31 21:24:47 +01:00
2020-11-13 13:17:53 +01:00
2021-10-31 21:24:47 +01:00
2016-03-24 22:40:13 +01:00
2009-01-25 19:00:43 +00:00
2021-10-28 16:27:21 +01:00
2022-03-05 18:01:04 +01:00
2019-02-25 17:36:16 +01:00
2022-03-24 00:46:45 +00:00
2021-05-13 15:13:15 +02:00
2021-09-23 21:57:22 -10:00
2021-10-31 21:24:47 +01:00
2015-08-25 07:46:32 +00:00
2019-06-16 16:40:08 +02:00
2016-02-01 10:43:27 +00:00
2021-10-23 21:39:00 +02:00
2016-04-28 16:43:28 +02:00
2011-03-01 05:40:38 +00:00
2019-09-01 18:38:05 +02:00
2021-10-11 11:49:14 +02:00
2020-06-02 08:37:54 +02:00
2022-07-03 20:25:38 +02:00
2020-06-02 08:33:11 +02:00
2020-06-02 13:06:42 +02:00
2021-10-31 21:24:47 +01:00
2021-10-31 21:24:47 +01:00
2021-10-31 21:24:47 +01:00
2020-11-12 18:21:55 +01:00
2016-06-07 11:42:52 +02:00
2019-12-31 11:41:07 +01:00
2019-12-31 11:43:15 +01:00
2019-09-14 11:43:19 +02:00
2021-12-02 20:42:58 +00:00
2019-07-03 07:45:00 +02:00
2010-04-14 22:21:15 +00:00
2022-01-17 09:14:26 +01:00