mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
50f7c5af4a
Update to next U-Boot timed release. Remove now obsolete patch 100-01-board-mediatek-add-more-network-configurations.patch Default IP addresses are now dealt with in Kconfig, no longer in board- specific C header files. Add patches to restore ANSI support in bootmenu which was broken upstream, always use high-speed mode on serial UART for improved stability and fix an issue with pinconf not being applied on MT7623 resulting in eMMC being inaccessible when booting from micro SD card. In order to keep the size of the bootloader on MT7623 below 512kB remove some unneeded commands on both MT7623 boards. Tested on: * BananaPi BPi-R2 (MT7623N) * BananaPi BPi-R3 (MT7986A) * BananaPi BPi-R64 (MT7622A) * Linksys E8450 (MT7622B) Signed-off-by: Daniel Golle <daniel@makrotopia.org>
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 5f2d5915f8ea4785bc2b8a26955e176a7898c15b Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Tue, 12 Apr 2022 21:00:43 +0100
|
|
Subject: [PATCH] image-fdt: save name of FIT configuration in '/chosen' node
|
|
|
|
It can be useful for the OS (Linux) to know which configuration has
|
|
been chosen by U-Boot when launching a FIT image.
|
|
Store the name of the FIT configuration node used in a new string
|
|
property called 'u-boot,bootconf' in the '/chosen' node in device tree.
|
|
|
|
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
Reviewed-by: Tom Rini <trini@konsulko.com>
|
|
---
|
|
boot/image-fdt.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- a/boot/image-fdt.c
|
|
+++ b/boot/image-fdt.c
|
|
@@ -636,6 +636,12 @@ int image_setup_libfdt(struct bootm_head
|
|
images->fit_uname_cfg,
|
|
strlen(images->fit_uname_cfg) + 1, 1);
|
|
|
|
+ /* Store name of configuration node as u-boot,bootconf in /chosen node */
|
|
+ if (images->fit_uname_cfg)
|
|
+ fdt_find_and_setprop(blob, "/chosen", "u-boot,bootconf",
|
|
+ images->fit_uname_cfg,
|
|
+ strlen(images->fit_uname_cfg) + 1, 1);
|
|
+
|
|
/* Update ethernet nodes */
|
|
fdt_fixup_ethernet(blob);
|
|
#if IS_ENABLED(CONFIG_CMD_PSTORE)
|