From 229a07e3199c9680af367ade0f9aac3b513e0b32 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Wed, 19 Apr 2023 22:24:24 +0200 Subject: [PATCH 1/3] rockchip specific logo container format --- image/rockchip_rkel.ksy | 69 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 image/rockchip_rkel.ksy diff --git a/image/rockchip_rkel.ksy b/image/rockchip_rkel.ksy new file mode 100644 index 000000000..66866f689 --- /dev/null +++ b/image/rockchip_rkel.ksy @@ -0,0 +1,69 @@ +meta: + id: rkel + title: Rockchip RKEL + license: CC0 + endian: le + encoding: UTF-8 +doc: | + Image format found in devices with the Rockchip RK3566, such as the PineNote + + + Example files: + + +seq: + - id: header + size: 64 + type: header + - id: data + size: header.len_data - header._sizeof + type: images(header.num_images) +types: + header: + seq: + - id: magic + contents: "RKEL" + - id: len_data + type: u4 + - id: height + type: u4 + - id: width + type: u4 + - id: num_images + type: u4 + - id: version + type: strz + size-eos: true + images: + params: + - id: num_images + type: u4 + seq: + - id: image_entries + size: 32 + type: image_entry + repeat: expr + repeat-expr: num_images + image_entry: + seq: + - id: signature + contents: ['GR04'] + - id: unknown_1 + type: u4 + - id: height + type: u2 + - id: width + type: u2 + - id: unknown_3 + type: u4 + - id: ofs_image_data + type: u4 + - id: len_image_data + type: u4 + - id: unknown_4 + size: 8 + instances: + image_data: + pos: ofs_image_data + size: len_image_data + io: _root._io From 2ce09b41cecf9c479785804f8b64d1d7f05ff449 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Wed, 19 Apr 2023 22:28:27 +0200 Subject: [PATCH 2/3] rockchip_rkel: renumber some unknown fields --- image/rockchip_rkel.ksy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image/rockchip_rkel.ksy b/image/rockchip_rkel.ksy index 66866f689..9d4d1f261 100644 --- a/image/rockchip_rkel.ksy +++ b/image/rockchip_rkel.ksy @@ -54,13 +54,13 @@ types: type: u2 - id: width type: u2 - - id: unknown_3 + - id: unknown_2 type: u4 - id: ofs_image_data type: u4 - id: len_image_data type: u4 - - id: unknown_4 + - id: unknown_3 size: 8 instances: image_data: From 8a1bf27f7221d3bb630887be7239418f0f89818f Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Wed, 19 Apr 2023 23:15:39 +0200 Subject: [PATCH 3/3] rockchip_rkel: fix id --- image/rockchip_rkel.ksy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/rockchip_rkel.ksy b/image/rockchip_rkel.ksy index 9d4d1f261..d4ea49743 100644 --- a/image/rockchip_rkel.ksy +++ b/image/rockchip_rkel.ksy @@ -1,5 +1,5 @@ meta: - id: rkel + id: rockchip_rkel title: Rockchip RKEL license: CC0 endian: le