mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +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>
59 lines
1.8 KiB
Diff
59 lines
1.8 KiB
Diff
From dd66fc817f7ab7a4fcab9836a9251a8f64f329df Mon Sep 17 00:00:00 2001
|
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
|
Date: Mon, 25 Jul 2022 16:58:36 +0800
|
|
Subject: [PATCH 59/71] cmd: ubi: make volume find/create/remove APIs public
|
|
|
|
Export ubi_create_vol/ubi_find_volume/ubi_remove_vol to public so that they
|
|
can be used by other programs.
|
|
|
|
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|
---
|
|
cmd/ubi.c | 8 ++++----
|
|
include/ubi_uboot.h | 4 ++++
|
|
2 files changed, 8 insertions(+), 4 deletions(-)
|
|
|
|
--- a/cmd/ubi.c
|
|
+++ b/cmd/ubi.c
|
|
@@ -213,8 +213,8 @@ bad:
|
|
return err;
|
|
}
|
|
|
|
-static int ubi_create_vol(char *volume, int64_t size, int dynamic, int vol_id,
|
|
- bool skipcheck)
|
|
+int ubi_create_vol(char *volume, int64_t size, int dynamic, int vol_id,
|
|
+ bool skipcheck)
|
|
{
|
|
struct ubi_mkvol_req req;
|
|
int err;
|
|
@@ -247,7 +247,7 @@ static int ubi_create_vol(char *volume,
|
|
return ubi_create_volume(ubi, &req);
|
|
}
|
|
|
|
-static struct ubi_volume *ubi_find_volume(char *volume)
|
|
+struct ubi_volume *ubi_find_volume(char *volume)
|
|
{
|
|
struct ubi_volume *vol = NULL;
|
|
int i;
|
|
@@ -262,7 +262,7 @@ static struct ubi_volume *ubi_find_volum
|
|
return NULL;
|
|
}
|
|
|
|
-static int ubi_remove_vol(char *volume)
|
|
+int ubi_remove_vol(char *volume)
|
|
{
|
|
int err, reserved_pebs, i;
|
|
struct ubi_volume *vol;
|
|
--- a/include/ubi_uboot.h
|
|
+++ b/include/ubi_uboot.h
|
|
@@ -51,6 +51,10 @@ extern void ubi_exit(void);
|
|
extern int ubi_part(char *part_name, const char *vid_header_offset);
|
|
extern int ubi_volume_write(char *volume, void *buf, size_t size);
|
|
extern int ubi_volume_read(char *volume, char *buf, size_t size);
|
|
+extern int ubi_create_vol(char *volume, int64_t size, int dynamic, int vol_id,
|
|
+ bool skipcheck);
|
|
+extern struct ubi_volume *ubi_find_volume(char *volume);
|
|
+extern int ubi_remove_vol(char *volume);
|
|
|
|
extern struct ubi_device *ubi_devices[];
|
|
int cmd_ubifs_mount(char *vol_name);
|