2
0
forked from Ivasoft/openwrt

generic: Convert incorrect generic/5.10 patches

OpenWRT's developer guide prefers having actual patches so they an be
sent upstream more easily.

However, in this case, Adding proper fields also allows for `git am` to
properly function. Some of these patches are quite old, and lack much
traceable history.

This commit tries to rectify that, by digging in the history to find
where and how it was first added.

It is by no means perfect and also shows some patches that should have
been long gone.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
Olliver Schinagl
2022-09-20 12:01:48 +02:00
committed by Christian Marangi
parent 5d09118f8e
commit d5bf46bbe8
30 changed files with 508 additions and 163 deletions

View File

@@ -1,3 +1,30 @@
From: Daniel Golle <daniel@makrotopia.org>
Subject: [PATCH] kernel: fix FIT partition parser compatibility issues
The uImage.FIT partition parser used to squeeze in FIT partitions in
the range where partition editor tools (fdisk and such) expect the
regular partition. This is confusing people and tools when adding
additional partitions on top of the partition used for OpenWrt's
uImage.FIT.
Instead of squeezing in the additional partitions, rather start with
all uImage.FIT partitions at offset 64.
Submitted-by: Daniel Golle <daniel@makrotopia.org>
---
block/blk.h | 2 ++
block/partitions/Kconfig | 7 +++
block/partitions/Makefile | 1 +
block/partitions/check.h | 3 ++
block/partitions/core.c | 15 +++++++
drivers/mtd/ubi/block.c | 7 +++
block/partitions/efi.c | 8 +++++++
block/partitions/efi.h | 3 ++
drivers/mtd/mtdblock.c | 4 +++
drivers/mtd/mtd_blkdevs.c | 14 +------
block/partitions/msdos.c | 10 ++++++
include/linux/msdos_partition.h | 1 +
12 files changed, 52 insertions(+), 13 deletions(-)
--- a/block/blk.h
+++ b/block/blk.h
@@ -361,6 +361,8 @@ char *disk_name(struct gendisk *hd, int
@@ -221,4 +248,3 @@
+ FIT_PARTITION = 0x2e, /* U-Boot uImage.FIT */
SOLARIS_X86_PARTITION = 0x82, /* also Linux swap partitions */
NEW_SOLARIS_X86_PARTITION = 0xbf,