aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-07-12 16:54:45 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-07-20 04:11:05 +0100
commit8d633bf9f71e52aaefa917c83ab8e71622253e74 (patch)
tree43c75ffdb085e8facdc594fd704a6cad7fc86dd2 /target/linux/generic/files
parent932366fdd97090f909cec2c5f1dffeebd2806998 (diff)
downloadupstream-8d633bf9f71e52aaefa917c83ab8e71622253e74.tar.gz
upstream-8d633bf9f71e52aaefa917c83ab8e71622253e74.tar.bz2
upstream-8d633bf9f71e52aaefa917c83ab8e71622253e74.zip
kernel: make uImage.FIT partition parser work on MBR partitions
Introduce new partition type 0x2e representing uImage.FIT and trigger FIT partition parser on partitions having that type. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r--target/linux/generic/files/block/partitions/fit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/block/partitions/fit.c b/target/linux/generic/files/block/partitions/fit.c
index 823ee715de..27e44a4af4 100644
--- a/target/linux/generic/files/block/partitions/fit.c
+++ b/target/linux/generic/files/block/partitions/fit.c
@@ -189,8 +189,8 @@ int parse_fit_partitions(struct parsed_partitions *state, u64 fit_start_sector,
image_description = fdt_getprop(fit, node, FIT_DESC_PROP, &image_description_len);
- printk(KERN_DEBUG "FIT: %16s sub-image 0x%08x - 0x%08x \"%s\" %s%s%s\n",
- image_type, image_pos, image_pos + image_len, image_name,
+ printk(KERN_DEBUG "FIT: %16s sub-image 0x%08x..0x%08x \"%s\" %s%s%s\n",
+ image_type, image_pos, image_pos + image_len - 1, image_name,
image_description?"(":"", image_description?:"", image_description?") ":"");
if (strcmp(image_type, FIT_FILESYSTEM_PROP))