mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
u-boot (Allwinner): rebase and drop upstreamed patches for 2022.04
This commit is contained in:
parent
138514a000
commit
8ee96c8a24
@ -33,8 +33,8 @@ diff --git a/arch/arm/cpu/armv7/sunxi/Makefile b/arch/arm/cpu/armv7/sunxi/Makefi
|
|||||||
index 1d40d6a18dca..4a0c16deb459 100644
|
index 1d40d6a18dca..4a0c16deb459 100644
|
||||||
--- a/arch/arm/cpu/armv7/sunxi/Makefile
|
--- a/arch/arm/cpu/armv7/sunxi/Makefile
|
||||||
+++ b/arch/arm/cpu/armv7/sunxi/Makefile
|
+++ b/arch/arm/cpu/armv7/sunxi/Makefile
|
||||||
@@ -11,7 +11,7 @@ obj-$(CONFIG_MACH_SUN6I) += tzpc.o
|
@@ -13,7 +13,7 @@ obj-$(CONFIG_MACH_SUN6I) += tzpc.o
|
||||||
obj-$(CONFIG_MACH_SUN8I_H3) += tzpc.o
|
obj-$(CONFIG_MACH_SUN8I) += sram.o
|
||||||
|
|
||||||
ifndef CONFIG_SPL_BUILD
|
ifndef CONFIG_SPL_BUILD
|
||||||
-obj-$(CONFIG_ARMV7_PSCI) += psci.o
|
-obj-$(CONFIG_ARMV7_PSCI) += psci.o
|
||||||
|
@ -26,12 +26,12 @@ index 70222718ea93..61822eb5e44f 100644
|
|||||||
if self.offset_unset:
|
if self.offset_unset:
|
||||||
self.Raise('No offset set with offset-unset: should another '
|
self.Raise('No offset set with offset-unset: should another '
|
||||||
'entry provide this correct offset?')
|
'entry provide this correct offset?')
|
||||||
- self.offset = tools.Align(offset, self.align)
|
- self.offset = tools.align(offset, self.align)
|
||||||
+ elif self.offset > offset:
|
+ elif self.offset > offset:
|
||||||
+ offset = self.offset
|
+ offset = self.offset
|
||||||
+ self.offset = tools.Align(offset, self.align)
|
+ self.offset = tools.align(offset, self.align)
|
||||||
needed = self.pad_before + self.contents_size + self.pad_after
|
needed = self.pad_before + self.contents_size + self.pad_after
|
||||||
needed = tools.Align(needed, self.align_size)
|
needed = tools.align(needed, self.align_size)
|
||||||
size = self.size
|
size = self.size
|
||||||
--
|
--
|
||||||
2.33.0
|
2.33.0
|
||||||
|
@ -1,54 +0,0 @@
|
|||||||
From f71f348d1a96baf265e08850320a43c893ac75a4 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Samuel Holland <samuel@sholland.org>
|
|
||||||
Date: Sat, 17 Apr 2021 14:50:12 -0500
|
|
||||||
Subject: [PATCH 06/13] mkimage: sunxi_egon: Allow overriding the padding size
|
|
||||||
|
|
||||||
Due to a bug in the H3 SoC, where the CPU 0 hotplug flag cannot be
|
|
||||||
written, resuming CPU 0 requires using the "Super Standby" code path in
|
|
||||||
the BROM instead of the hotplug path. This path requires jumping to an
|
|
||||||
eGON image in SRAM.
|
|
||||||
|
|
||||||
This resume image, whose only purpose is to jump back to the secure
|
|
||||||
monitor, contains a single instruction. Padding the image to 8 KiB would
|
|
||||||
be wasteful of SRAM. Hook up the -B (block size) option so users can set
|
|
||||||
the block/padding size.
|
|
||||||
|
|
||||||
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
||||||
---
|
|
||||||
tools/sunxi_egon.c | 9 ++++++---
|
|
||||||
1 file changed, 6 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/tools/sunxi_egon.c b/tools/sunxi_egon.c
|
|
||||||
index a5299eb6a115..d1398c07fb08 100644
|
|
||||||
--- a/tools/sunxi_egon.c
|
|
||||||
+++ b/tools/sunxi_egon.c
|
|
||||||
@@ -10,9 +10,10 @@
|
|
||||||
|
|
||||||
/*
|
|
||||||
* NAND requires 8K padding. SD/eMMC gets away with 512 bytes,
|
|
||||||
- * but let's use the larger padding to cover both.
|
|
||||||
+ * but let's use the larger padding by default to cover both.
|
|
||||||
*/
|
|
||||||
#define PAD_SIZE 8192
|
|
||||||
+#define PAD_SIZE_MIN 512
|
|
||||||
|
|
||||||
static int egon_check_params(struct image_tool_params *params)
|
|
||||||
{
|
|
||||||
@@ -114,10 +115,12 @@ static int egon_check_image_type(uint8_t type)
|
|
||||||
static int egon_vrec_header(struct image_tool_params *params,
|
|
||||||
struct image_type_params *tparams)
|
|
||||||
{
|
|
||||||
+ int pad_size = ALIGN(params->bl_len ?: PAD_SIZE, PAD_SIZE_MIN);
|
|
||||||
+
|
|
||||||
tparams->hdr = calloc(sizeof(struct boot_file_head), 1);
|
|
||||||
|
|
||||||
- /* Return padding to 8K blocks. */
|
|
||||||
- return ALIGN(params->file_size, PAD_SIZE) - params->file_size;
|
|
||||||
+ /* Return padding to complete blocks. */
|
|
||||||
+ return ALIGN(params->file_size, pad_size) - params->file_size;
|
|
||||||
}
|
|
||||||
|
|
||||||
U_BOOT_IMAGE_TYPE(
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Icenowy Zheng <icenowy@aosc.io>
|
|
||||||
Date: Fri, 27 Oct 2017 17:25:00 +0800
|
|
||||||
Subject: [PATCH 20/20] sunxi: call fdt_fixup_ethernet again to set macaddr for
|
|
||||||
more aliases
|
|
||||||
|
|
||||||
Sometimes some ethernet aliases do not exist in U-Boot FDT but they
|
|
||||||
exist in the FDT used to boot the system. In this situation
|
|
||||||
setup_environment is called again in ft_board_setup to generate macaddr
|
|
||||||
environment variable for them. However now the call to
|
|
||||||
fdt_fixup_ethernet is moved before the call of ft_board_setup.
|
|
||||||
|
|
||||||
Call fdt_fixup_ethernet again to add MAC addresses for the extra
|
|
||||||
ethernet aliases.
|
|
||||||
|
|
||||||
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
|
||||||
---
|
|
||||||
board/sunxi/board.c | 6 ++++--
|
|
||||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
--- a/board/sunxi/board.c
|
|
||||||
+++ b/board/sunxi/board.c
|
|
||||||
@@ -970,10 +970,12 @@ int ft_board_setup(void *blob, struct bd
|
|
||||||
int __maybe_unused r;
|
|
||||||
|
|
||||||
/*
|
|
||||||
- * Call setup_environment again in case the boot fdt has
|
|
||||||
- * ethernet aliases the u-boot copy does not have.
|
|
||||||
+ * Call setup_environment and fdt_fixup_ethernet again
|
|
||||||
+ * in case the boot fdt has ethernet aliases the u-boot
|
|
||||||
+ * copy does not have.
|
|
||||||
*/
|
|
||||||
setup_environment(blob);
|
|
||||||
+ fdt_fixup_ethernet(blob);
|
|
||||||
|
|
||||||
bluetooth_dt_fixup(blob);
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user