Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync 16/7 #146

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
6951526
uboot-mediatek: update to U-Boot release v2024.07
DragonBluep Jul 5, 2024
a40e0c7
uboot-mediatek: refresh device defconfig files
DragonBluep Jul 5, 2024
3a85467
uboot-mediatek: remove hard-coded UBI volume numbers
dangowrt Jul 9, 2024
6234500
mediatek: add BPi-R3 mini to platform_check_image()
dangowrt Jul 14, 2024
850a5ca
fstools: update to git HEAD
dangowrt Jul 14, 2024
a9818e3
kernel: bump 6.6 to 6.6.39
graysky2 Jul 11, 2024
607697f
kernel: bump 6.1 to 6.1.98
zxlhhyccc Jul 12, 2024
37f5a3b
uboot-mediatek: fix build error on mt7988-rfb
nbd168 Jul 15, 2024
2225844
mediatek: filogic: disable eMMC HS400 mode for Mount Stuart series
cmonroe Jul 15, 2024
3a0232f
wolfssl: Update to version 5.7.2
hauke Jul 14, 2024
b4f1dea
kernel: bump 6.6 to 6.6.40
graysky2 Jul 15, 2024
c85348d
imagebuilder: remove initramfs image files
Ansuel Jul 16, 2024
57f08db
feeds: Add nss-packages repo
qosmio Jul 14, 2024
2937ae8
nat46: patches for QCA NSS ECM
bitthief Feb 3, 2023
103b8d9
package: kernel: nat46: use standard build functions
qosmio May 6, 2024
6954506
iproute2: add NSS QDISC support
bitthief Feb 3, 2023
24f57ed
qualcommax: dts: add NSS nodes to IPQ807x devices
bitthief Jul 17, 2023
dbe2ddb
qualcommax: net: QCA NSS igs support
bitthief Jul 17, 2023
1dbb2a6
qualcommax: net: QCA NSS qdisc ifb support
bitthief Jul 17, 2023
f963871
ath11k-nss: Add NSS WiFi feature
qosmio Dec 16, 2023
9ade370
ath11k_nss: handle qca-nss-drv symbol dependancies
qosmio Jan 8, 2024
5ff1207
ath11k_nss: fix ordering of sysctl values
qosmio Jan 8, 2024
667d0be
ath11k_nss: bugfix overwriting high watermark
qosmio Jan 9, 2024
f59b93f
ath11k_nss: Handle 256/512/1G boards automatically
qosmio Jan 11, 2024
d612f52
ath11k_nss: Add support to account memory stats
qosmio Jan 11, 2024
19be571
ath11k_nss: allow specifying pbuf 'memory_profile'
qosmio Jan 11, 2024
f705784
ath11k_nss: ath11k support dynamic vlan
qosmio Jan 13, 2024
70fa37e
ath11k_nss: fix `'ppdu_info' is a pointer...` error
qosmio Jan 13, 2024
e67f4d5
ath11k_nss: bugfix NSS memleak + enhancements
qosmio Jan 16, 2024
f45b6da
ath11k_nss: set pbuf script off by default
qosmio Jan 17, 2024
6c00e5a
ath11k_nss: Refresh patches
qosmio Jan 17, 2024
e7f0ca8
ath11k_nss: add missing support to enable/disable bss color collision…
qosmio Feb 27, 2024
a6377c7
ath11k_nss: FW Initiated Dynamic MU-EDCA
qosmio Feb 27, 2024
aabbea7
ath11k_nss: refresh patches + cleanup Makefile
qosmio Feb 27, 2024
9e70206
ath11k_nss: Set correct pbufs for 1GB profile
qosmio Mar 9, 2024
a5dfa1f
qualcommax: remove uneeded btcoex dts
qosmio Mar 9, 2024
7f2b1c3
ath11k_nss: Revert setting fw_mem_mode for IPQ807x
qosmio Mar 9, 2024
9f33940
ath11k_nss: Introduce skbuff_recycle for performance
qosmio Mar 9, 2024
57c030e
qualcommax: Move QCE to user selectable module
qosmio Mar 25, 2024
28ad82b
qualcommax: NSS: kernel 6.6 support
qosmio Mar 25, 2024
cb8b937
ath11k_nss: set pbuf to 'auto'
qosmio Mar 25, 2024
9bbe6e8
cryptodev-linux: Add hooks for QCA NSS
qosmio Mar 25, 2024
4ff363b
feeds: NSS: point to 6.x branch
qosmio Mar 25, 2024
60d5eb8
ath11k_nss: refresh and fixup patches, increment release version
qosmio Mar 25, 2024
6031635
qualcommax: disable swiotlb for 64mb in saving.
qosmio Mar 31, 2024
43f7285
qualcommax: qca-mcs support for kernel >= 6.6.29
qosmio Apr 30, 2024
e3d02ef
feeds: nss-packages: switch to branch 12.5-6.x
qosmio May 5, 2024
56a1475
ath11k_nss: fix invalid access to memory
qosmio May 5, 2024
50df408
qualcommax: NSS: Add support for all ipq807x targets
qosmio May 7, 2024
214d9b4
ath11k_nss: revert AMPDU in radiotap header
qosmio May 15, 2024
7cf12c7
qualcommax: NSS: Set required NSS packages and options
qosmio May 25, 2024
210386d
iproute2: Fixup NSS patches for GCC 14.x
qosmio Jun 1, 2024
0c72bf8
ath11k_nss: mac80211 fix pending airtime
qosmio Jun 2, 2024
c821e4c
ath11k_nss: mac80211: remove STA txq pending airtime underflow warning
qosmio Jun 2, 2024
e166ef4
ath11k_nss: change warning levels
qosmio Jun 2, 2024
e7e8028
ath11k_nss: fix incorrect tx/rx stats WDS
qosmio Jun 2, 2024
1750fa2
ath11k_nss: correctly free skb using ieee80211_free_txskb()
qosmio Jun 2, 2024
d16f7c3
ath11k_nss: Add lock when accessing idr_pool of tx_ring
qosmio Jun 2, 2024
2a8def0
ath11k_nss: mac80211 Use C99 flexible arrays instead of zero-length a…
qosmio Jun 2, 2024
2eb392c
qualcommax: NSS: Add support for sxk80, mx8500
qosmio Jun 2, 2024
d2ef4be
qualcommax: NSS: Add DTS entries for nss-macsec
qosmio Jun 2, 2024
ea36c04
qualcommax: NSS: ECM: Fixes for Bridge VLAN Filtering
qosmio Jun 2, 2024
dc0095b
ath11k_nss: Fix IPQ6018 wifi offloading
qosmio Jun 7, 2024
10b76ea
qualcommax: add ramoops memory region
qosmio Jun 10, 2024
19cbe5e
ath11k_nss: modularize nss-pbuf options
qosmio Jun 22, 2024
8d700a0
ath11k_nss: Organize patch order and formatting
qosmio Jun 22, 2024
58c8e8d
ath11k_nss: Drop unnecessary iphone fix patch
qosmio Jun 27, 2024
c291865
wifi_nss: Add threaded NAPI for ath10k and ath11k
qosmio Jun 27, 2024
c167801
ath11k_nss: Add mac80211 based AQL support
qosmio Jun 27, 2024
8a65575
qualcommax: Fix threaded NAPI scheduling
qosmio Jun 28, 2024
119962d
qualcommax: clean up kernel config, align with QSDK
qosmio Jul 3, 2024
8539d8c
qualcommax: NSS: introduce helper functions for NAPI threading
qosmio Jul 3, 2024
1b23a9c
wifi_nss: Use NAPI threaded helper functions
qosmio Jul 3, 2024
7f95bca
ath11k_nss: fix incorrectly applied ath11k_pci threaded napi patch
qosmio Jul 3, 2024
93c2fd9
qualcommax: NSS: Add default packages drv, ecm, bridge-mgr
qosmio Jul 3, 2024
5695d4f
ath10k-ct: Bump patch for 6.4 to 6.7
qosmio Jul 3, 2024
d16e796
ath10k-ct: Use NAPI threaded helper functions
qosmio Jul 3, 2024
0d40698
ath11k_nss: add tracing for update_muedca_params_event
qosmio Jul 4, 2024
45ce338
Revert "qualcommax: NSS: introduce helper functions for NAPI threading"
qosmio Jul 5, 2024
6a60500
wifi_nss: Revert using napi threaded helper function
qosmio Jul 5, 2024
231e29e
ath11k_nss: fix monitor mode
qosmio Jul 6, 2024
508c1ad
hostapd: handle updated MU-EDCA params from driver
qosmio Jul 6, 2024
8c01d31
Revert "ath11k_nss: Add mac80211 based AQL support"
qosmio Jul 8, 2024
4d9e4e2
ath11k_nss: add missing NL80211_ATTR_HE_MUEDCA_PARAMS
qosmio Jul 8, 2024
4d4196d
qualcommax: add coherent_pool=2M swiotlb=noforce
qosmio Jul 8, 2024
f436d51
qualcommax: skbuff_recycle: allow specifiying max size
qosmio Jul 9, 2024
6532131
qualcommax: NSS: Enable NSS for Asus RT-AX89X
qosmio Jul 10, 2024
ec30d2e
ath11k_nss: Refresh patches
qosmio Jul 10, 2024
535da99
ath11k_nss: Check for NSS FW 11.4 and build accordingly
qosmio Jul 10, 2024
18a254c
ath11k_nss: Bump version 6.6.15 to 6.9.9
qosmio Jul 13, 2024
94a872c
ath11k_nss: optimize qca-nss-pbuf init script
qosmio Jul 13, 2024
f9c42d3
qualcommax: Switch to upstream default config
qosmio Jul 13, 2024
21c04d5
qualcommax: Add new menu item for IPQ settings
qosmio Jul 13, 2024
f07cd7e
qualcommax: skbuff_recycle: add proc option to enable/disable
qosmio Jul 13, 2024
4e492d3
qualcommax: skbuff: at latest changes from QSDK
qosmio Jul 13, 2024
1e73e87
iproute2: NSS: sync patch from QSDK 12.5
qosmio Jul 13, 2024
c9d2178
qualcommax: enable skb_recycle for IPQ > 256M
qosmio Jul 14, 2024
788588d
qualcommax: add notes about SKB_RECYCLER_PREALLOC and SKB_FIXED_SIZE_2K
qosmio Jul 14, 2024
235db18
mac80211: fix kconf build warnings
qosmio Jul 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ source "target/sdk/Config.in"
source "target/toolchain/Config.in"

source "tmp/.config-package.in"

source "config/Config-ipq.in"
150 changes: 150 additions & 0 deletions config/Config-ipq.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
# vim: set ft=kconfig
menu "Qualcomm IPQ Options"

comment "Kernel build options"

choice KERNEL_IPQ_MEM_PROFILE
prompt "IPQ memory profile"
default IPQ_MEM_PROFILE_512 if TARGET_qualcommax_ipq807x_DEVICE_edimax_cax1800
default IPQ_MEM_PROFILE_512 if TARGET_qualcommax_ipq807x_DEVICE_compex_wpq87
default IPQ_MEM_PROFILE_512 if TARGET_qualcommax_ipq807x_DEVICE_linksys_mx4200v1
default IPQ_MEM_PROFILE_512 if TARGET_qualcommax_ipq807x_DEVICE_redmi_ax6
default IPQ_MEM_PROFILE_512 if TARGET_qualcommax_ipq807x_DEVICE_xiaomi_ax3600
default IPQ_MEM_PROFILE_512 if TARGET_qualcommax_ipq807x_DEVICE_zte_mf269

config IPQ_MEM_PROFILE_1024
bool "1024"
config IPQ_MEM_PROFILE_512
bool "512"
config IPQ_MEM_PROFILE_256
bool "256"
endchoice

config KERNEL_IPQ_MEM_PROFILE
int
default 1024 if IPQ_MEM_PROFILE_1024
default 512 if IPQ_MEM_PROFILE_512
default 256 if IPQ_MEM_PROFILE_256

help
This option select memory profile to used, which defines
the reserved memory configuration used in device tree

config KERNEL_SKB_RECYCLER
bool "Generic SKB recycling"
default y if KERNEL_IPQ_MEM_PROFILE > 256

choice KERNEL_SKB_RECYCLE_SIZE
prompt "SKB recycler size"
default SKB_RECYCLE_SIZE_2304
default SKB_RECYCLE_SIZE_1856 if KERNEL_IPQ_MEM_PROFILE < 1024

depends on KERNEL_SKB_RECYCLER
config SKB_RECYCLE_SIZE_1856
bool "1856"
config SKB_RECYCLE_SIZE_2304
bool "2304"
endchoice

config KERNEL_SKB_RECYCLE_SIZE
int
depends on KERNEL_SKB_RECYCLER
default 2304 if SKB_RECYCLE_SIZE_2304
default 1856 if SKB_RECYCLE_SIZE_1856

help
SKB recycler default size

config KERNEL_SKB_RECYCLER_MULTI_CPU
bool "Cross-CPU recycling for CPU-locked workloads"
depends on KERNEL_SKB_RECYCLER
default y

config KERNEL_SKB_RECYCLER_PREALLOC
bool "Enable preallocation of SKBs (For SFE not NSS)"
depends on KERNEL_SKB_RECYCLER
default n
help
NOTE: This is primarily for platforms utilizing SFE (Shortcut Forwarding Engine)
and not NSS (Network Subsystem) offload.

NSS offload platforms mostly utilize the SKB recycling feature when managing memory.
Mostly when to "reclaim" it.

This option enables preallocation of SKBs.
The default is '16384' which means 16384 x 4096 (Size of SKB) = 64MB.

config KERNEL_SKB_RECYCLE_MAX_PREALLOC_SKBS
int "Number of SKBs to be preallocated"
depends on KERNEL_SKB_RECYCLER_PREALLOC
default 16384

config KERNEL_SKB_FIXED_SIZE_2K
bool "SKB size fixed at 2K"
default n
default y if KERNEL_IPQ_MEM_PROFILE < 512
help
SKB size fixed at 2K. Primarily for platforms with less than 512MB memory.

config KERNEL_ALLOC_SKB_PAGE_FRAG_DISABLE
depends on KERNEL_SKB_RECYCLER
bool "Disable alloc skb page frag"
default n

choice KERNEL_PREEMPTION
prompt "Kernel preemption level"
default KERNEL_PREEMPT

config KERNEL_PREEMPT_NONE
bool "No Forced Preemption (Server)"
help
This is the traditional Linux preemption model, geared towards
throughput. It will still provide good latencies most of the time,
but there are no guarantees and occasional longer delays are
possible.

Select this option if you are building a kernel for a server or
scientific/computation system, or if you want to maximize the
raw processing power of the kernel, irrespective of scheduling
latencies.

config KERNEL_PREEMPT_NONE_BUILD
depends on KERNEL_PREEMPT_NONE
bool
default y

config KERNEL_PREEMPT
bool "Preemptible Kernel (Low-Latency)"
help
This option reduces the latency of the kernel by making
all kernel code (that is not executing in a critical section)
preemptible. This allows reaction to interactive events by
permitting a low priority process to be preempted involuntarily
even if it is in kernel mode executing a system call and would
otherwise not be about to reach a natural preemption point.
This allows applications to run more 'smoothly' even when the
system is under load, at the cost of slightly lower throughput
and a slight runtime overhead to kernel code.

Select this if you are building a kernel for a desktop or
embedded system with latency requirements in the milliseconds
range.

if KERNEL_PREEMPT
config KERNEL_PREEMPT_RCU
bool "Preemptible RCU"
default y
select KERNEL_PREEMPT_COUNT
help
This option selects the RCU implementation that is
designed for very large SMP systems with hundreds or
thousands of CPUs, but for which real-time response
is also required. It also scales down nicely to
smaller systems.

Select this option if you are unsure.

endif
endchoice

endmenu
2 changes: 2 additions & 0 deletions feeds.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
src-git nss_packages https://github.com/qosmio/nss-packages.git;NSS-12.5-K6.x
src-git sqm_scripts_nss https://github.com/qosmio/sqm-scripts-nss.git
#src-git video https://github.com/openwrt/video.git
#src-git targets https://github.com/openwrt/targets.git
#src-git oldpackages http://git.openwrt.org/packages.git
Expand Down
4 changes: 2 additions & 2 deletions include/kernel-6.1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-6.1 = .97
LINUX_KERNEL_HASH-6.1.97 = 890b845f36452328716e62dd893b634584f607cdd44b4e685392d302d3be41af
LINUX_VERSION-6.1 = .98
LINUX_KERNEL_HASH-6.1.98 = 97cdc9127c7700556ea0891267a0c24cf372f4b81636fb8203a914f3a69f3406
4 changes: 2 additions & 2 deletions include/kernel-6.6
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-6.6 = .38
LINUX_KERNEL_HASH-6.6.38 = 4ed403ffb550565d03485aeca9a52c128cdde43f4a373a1a9ee3a590524fe743
LINUX_VERSION-6.6 = .40
LINUX_KERNEL_HASH-6.6.40 = 5c3a3c03c055b8d601a6d7f80d1465ada6b83a12299f6ace2027b47f0baff538
8 changes: 6 additions & 2 deletions package/boot/uboot-mediatek/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_VERSION:=2024.01
PKG_HASH:=b99611f1ed237bf3541bdc8434b68c96a6e05967061f992443cb30aabebef5b3
PKG_VERSION:=2024.07
PKG_HASH:=f591da9ab90ef3d6b3d173766d0ddff90c4ed7330680897486117df390d83c8f
PKG_BUILD_DEPENDS:=!(TARGET_ramips||TARGET_mediatek_mt7623):arm-trusted-firmware-tools/host

UBOOT_USE_INTREE_DTC:=1
Expand Down Expand Up @@ -776,6 +776,10 @@ UBOOT_TARGETS := \
mt7988_rfb-emmc \
mt7988_rfb-sd

UBOOT_CUSTOMIZE_CONFIG := \
--disable TOOLS_KWBIMAGE \
--disable TOOLS_LIBCRYPTO

ifdef CONFIG_TARGET_mediatek
UBOOT_MAKE_FLAGS += $(UBOOT_IMAGE:.fip=.bin)
endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ Signed-off-by: Weijie Gao <[email protected]>
+};
--- a/include/env_internal.h
+++ b/include/env_internal.h
@@ -109,6 +109,7 @@ enum env_location {
@@ -108,6 +108,7 @@ enum env_location {
ENVL_FAT,
ENVL_FLASH,
ENVL_MMC,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ Signed-off-by: Weijie Gao <[email protected]>

--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -274,4 +274,6 @@ source "drivers/mtd/ubi/Kconfig"
@@ -274,6 +274,8 @@ source "drivers/mtd/ubi/Kconfig"

source "drivers/mtd/nvmxip/Kconfig"

+source "drivers/mtd/nmbm/Kconfig"
+
endif

endmenu
--- a/drivers/mtd/Makefile
+++ b/drivers/mtd/Makefile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Signed-off-by: Weijie Gao <[email protected]>
#if defined(CONFIG_CMD_ONENAND)
/* go init the NAND */
static int initr_onenand(void)
@@ -675,6 +689,9 @@ static init_fnc_t init_sequence_r[] = {
@@ -664,6 +678,9 @@ static init_fnc_t init_sequence_r[] = {
#ifdef CONFIG_CMD_ONENAND
initr_onenand,
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Signed-off-by: Weijie Gao <[email protected]>

--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1392,6 +1392,12 @@ config CMD_NAND_TORTURE
@@ -1450,6 +1450,12 @@ config CMD_NAND_TORTURE

endif # CMD_NAND

Expand All @@ -36,8 +36,8 @@ Signed-off-by: Weijie Gao <[email protected]>
obj-$(CONFIG_CMD_NAND) += nand.o
+obj-$(CONFIG_CMD_NMBM) += nmbm.o
obj-$(CONFIG_CMD_NET) += net.o
obj-$(CONFIG_ENV_SUPPORT) += nvedit.o
obj-$(CONFIG_CMD_NVEDIT_EFI) += nvedit_efi.o
obj-$(CONFIG_CMD_ONENAND) += onenand.o
--- /dev/null
+++ b/cmd/nmbm.c
@@ -0,0 +1,327 @@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Signed-off-by: SkyLake.Huang <[email protected]>

--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -504,6 +504,42 @@ out_put_mtd:
@@ -722,6 +722,42 @@ out_put_mtd:
return CMD_RET_SUCCESS;
}

Expand Down Expand Up @@ -63,15 +63,15 @@ Signed-off-by: SkyLake.Huang <[email protected]>
#ifdef CONFIG_AUTO_COMPLETE
static int mtd_name_complete(int argc, char *const argv[], char last_char,
int maxv, char *cmdv[])
@@ -551,6 +587,7 @@ U_BOOT_LONGHELP(mtd,
@@ -769,6 +805,7 @@ U_BOOT_LONGHELP(mtd,
"\n"
"Specific functions:\n"
"mtd bad <name>\n"
+ "mtd markbad <name> <off>\n"
"\n"
"With:\n"
"\t<name>: NAND partition/chip name (or corresponding DM device name or OF path)\n"
@@ -575,4 +612,6 @@ U_BOOT_CMD_WITH_SUBCMDS(mtd, "MTD utils"
#if CONFIG_IS_ENABLED(CMD_MTD_OTP)
"mtd otpread <name> [u|f] <off> <size>\n"
"mtd otpwrite <name> <off> <hex string>\n"
@@ -809,4 +846,6 @@ U_BOOT_CMD_WITH_SUBCMDS(mtd, "MTD utils"
U_BOOT_SUBCMD_MKENT_COMPLETE(erase, 4, 0, do_mtd_erase,
mtd_name_complete),
U_BOOT_SUBCMD_MKENT_COMPLETE(bad, 2, 1, do_mtd_bad,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Signed-off-by: Weijie Gao <[email protected]>
+};
--- a/include/env_internal.h
+++ b/include/env_internal.h
@@ -111,6 +111,7 @@ enum env_location {
@@ -110,6 +110,7 @@ enum env_location {
ENVL_MMC,
ENVL_MTD,
ENVL_NAND,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Signed-off-by: Weijie Gao <[email protected]>

--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1392,6 +1392,14 @@ config CMD_NAND_TORTURE
@@ -1450,6 +1450,14 @@ config CMD_NAND_TORTURE

endif # CMD_NAND

Expand All @@ -50,7 +50,7 @@ Signed-off-by: Weijie Gao <[email protected]>
+obj-$(CONFIG_CMD_NAND_EXT) += nand-ext.o
obj-$(CONFIG_CMD_NMBM) += nmbm.o
obj-$(CONFIG_CMD_NET) += net.o
obj-$(CONFIG_CMD_NVEDIT_EFI) += nvedit_efi.o
obj-$(CONFIG_ENV_SUPPORT) += nvedit.o
--- /dev/null
+++ b/cmd/nand-ext.c
@@ -0,0 +1,1062 @@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Signed-off-by: Weijie Gao <[email protected]>

--- a/drivers/mtd/spi/spi-nor-core.c
+++ b/drivers/mtd/spi/spi-nor-core.c
@@ -2854,6 +2854,100 @@ static int spi_nor_init_params(struct sp
@@ -2908,6 +2908,100 @@ static int spi_nor_init_params(struct sp
return 0;
}

Expand Down Expand Up @@ -114,7 +114,7 @@ Signed-off-by: Weijie Gao <[email protected]>
static int spi_nor_hwcaps2cmd(u32 hwcaps, const int table[][2], size_t size)
{
size_t i;
@@ -4051,6 +4145,7 @@ int spi_nor_scan(struct spi_nor *nor)
@@ -4027,6 +4121,7 @@ int spi_nor_scan(struct spi_nor *nor)
nor->write = spi_nor_write_data;
nor->read_reg = spi_nor_read_reg;
nor->write_reg = spi_nor_write_reg;
Expand All @@ -132,7 +132,7 @@ Signed-off-by: Weijie Gao <[email protected]>
#define SNOR_MFR_CYPRESS 0x34

/*
@@ -571,6 +572,7 @@ struct spi_nor {
@@ -567,6 +568,7 @@ struct spi_nor {
void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops);
int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len);
int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Signed-off-by: Weijie Gao <[email protected]>

--- a/cmd/sf.c
+++ b/cmd/sf.c
@@ -412,6 +412,14 @@ static int do_spi_protect(int argc, char
@@ -413,6 +413,14 @@ static int do_spi_protect(int argc, char
return ret == 0 ? 0 : 1;
}

Expand All @@ -27,7 +27,7 @@ Signed-off-by: Weijie Gao <[email protected]>
enum {
STAGE_ERASE,
STAGE_CHECK,
@@ -606,6 +614,8 @@ static int do_spi_flash(struct cmd_tbl *
@@ -607,6 +615,8 @@ static int do_spi_flash(struct cmd_tbl *
ret = do_spi_flash_erase(argc, argv);
else if (IS_ENABLED(CONFIG_SPI_FLASH_LOCK) && strcmp(cmd, "protect") == 0)
ret = do_spi_protect(argc, argv);
Expand All @@ -36,7 +36,7 @@ Signed-off-by: Weijie Gao <[email protected]>
else if (IS_ENABLED(CONFIG_CMD_SF_TEST) && !strcmp(cmd, "test"))
ret = do_spi_flash_test(argc, argv);
else
@@ -636,6 +646,7 @@ U_BOOT_LONGHELP(sf,
@@ -637,6 +647,7 @@ U_BOOT_LONGHELP(sf,
#ifdef CONFIG_CMD_SF_TEST
"\nsf test offset len - run a very basic destructive test"
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ Signed-off-by: Weijie Gao <[email protected]>
if (default_str)
@@ -369,9 +393,9 @@ static struct bootmenu_data *bootmenu_cr

/* Add Quit entry if entering U-Boot console is disabled */
/* Add Quit entry if exiting bootmenu is disabled */
if (!IS_ENABLED(CONFIG_BOOTMENU_DISABLE_UBOOT_CONSOLE))
- entry->title = strdup("U-Boot console");
+ entry->title = strdup("0. U-Boot console");
- entry->title = strdup("Exit");
+ entry->title = strdup("0. Exit");
else
- entry->title = strdup("Quit");
+ entry->title = strdup("0. Quit");
Expand Down Expand Up @@ -301,7 +301,7 @@ Signed-off-by: Weijie Gao <[email protected]>

switch (key) {
case BKEY_UP:
@@ -1838,7 +1838,7 @@ char *eficonfig_choice_change_boot_order
@@ -1839,7 +1839,7 @@ char *eficonfig_choice_change_boot_order

cli_ch_init(cch);
while (1) {
Expand All @@ -312,7 +312,7 @@ Signed-off-by: Weijie Gao <[email protected]>
case BKEY_PLUS:
--- a/boot/bootflow_menu.c
+++ b/boot/bootflow_menu.c
@@ -235,7 +235,7 @@ int bootflow_menu_run(struct bootstd_pri
@@ -234,7 +234,7 @@ int bootflow_menu_run(struct bootstd_pri

key = 0;
if (ichar) {
Expand Down
Loading
Loading