mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +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>
49 lines
1.5 KiB
Diff
49 lines
1.5 KiB
Diff
From e60939acbebd07161f3978d1c6f13123fdd2ebf2 Mon Sep 17 00:00:00 2001
|
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
|
Date: Mon, 25 Jul 2022 11:27:02 +0800
|
|
Subject: [PATCH 50/71] cmd: sf: add support to read flash unique ID
|
|
|
|
This patch adds support to display unique ID from spi-nor flashes
|
|
|
|
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|
---
|
|
cmd/sf.c | 13 ++++++++++++-
|
|
1 file changed, 12 insertions(+), 1 deletion(-)
|
|
|
|
--- a/cmd/sf.c
|
|
+++ b/cmd/sf.c
|
|
@@ -407,6 +407,14 @@ static int do_spi_protect(int argc, char
|
|
return ret == 0 ? 0 : 1;
|
|
}
|
|
|
|
+static int do_spi_flash_read_uuid(void)
|
|
+{
|
|
+ int ret = 0;
|
|
+ ret = flash->read_uuid(flash);
|
|
+
|
|
+ return ret == 0 ? 0 : 1;
|
|
+}
|
|
+
|
|
enum {
|
|
STAGE_ERASE,
|
|
STAGE_CHECK,
|
|
@@ -601,6 +609,8 @@ static int do_spi_flash(struct cmd_tbl *
|
|
ret = do_spi_flash_erase(argc, argv);
|
|
else if (strcmp(cmd, "protect") == 0)
|
|
ret = do_spi_protect(argc, argv);
|
|
+ else if (strcmp(cmd, "uuid") == 0)
|
|
+ ret = do_spi_flash_read_uuid();
|
|
else if (IS_ENABLED(CONFIG_CMD_SF_TEST) && !strcmp(cmd, "test"))
|
|
ret = do_spi_flash_test(argc, argv);
|
|
else
|
|
@@ -626,7 +636,8 @@ static const char long_help[] =
|
|
" at `addr' to flash at `offset'\n"
|
|
" or to start of mtd `partition'\n"
|
|
"sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting\n"
|
|
- " at address 'sector'"
|
|
+ " at address 'sector'\n"
|
|
+ "sf uuid - read uuid from flash"
|
|
#ifdef CONFIG_CMD_SF_TEST
|
|
"\nsf test offset len - run a very basic destructive test"
|
|
#endif
|