Merge Official Source

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-11-10 13:02:09 +08:00
commit 31f2c18a35
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
35 changed files with 629 additions and 83 deletions

View File

@ -690,10 +690,23 @@ config KERNEL_PRINTK_TIME
default y default y
config KERNEL_SLUB_DEBUG config KERNEL_SLUB_DEBUG
bool bool "Enable SLUB debugging support"
help
This enables various debugging features:
- Accepts "slub_debug" kernel parameter
- Provides caches debugging options (e.g. tracing, validating)
- Adds /sys/kernel/slab/ attrs for reading amounts of *objects*
- Enables /proc/slabinfo support
- Prints info when running out of memory
Enabling this can result in a significant increase of code size.
config KERNEL_SLUB_DEBUG_ON config KERNEL_SLUB_DEBUG_ON
bool depends on KERNEL_SLUB_DEBUG
bool "Boot kernel with basic caches debugging enabled"
help
This enables by default sanity_checks, red_zone, poison and store_user
debugging options for all caches.
config KERNEL_SLABINFO config KERNEL_SLABINFO
select KERNEL_SLUB_DEBUG select KERNEL_SLUB_DEBUG

View File

@ -6,9 +6,9 @@ PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/firmware/qca-wireless.git PKG_SOURCE_URL=$(PROJECT_GIT)/project/firmware/qca-wireless.git
PKG_SOURCE_DATE:=2023-10-12 PKG_SOURCE_DATE:=2023-11-02
PKG_SOURCE_VERSION:=cd04ab7f984fe28613276c01fd0ac7afbe5516d5 PKG_SOURCE_VERSION:=371d4dce9b9a4b4dfd59bc902bb216f7133743cb
PKG_MIRROR_HASH:=857ae436fd09785749411a665b31c82cec84b68b1e096f69ebb6c2a0efb5583f PKG_MIRROR_HASH:=9c309f81cb1e464580ccdacc3f7a660df8a5a07a8b87f71e9d00f630ac0412ad
PKG_FLAGS:=nonshared PKG_FLAGS:=nonshared
@ -44,6 +44,7 @@ ALLWIFIBOARDS:= \
xiaomi_ax3600 \ xiaomi_ax3600 \
xiaomi_ax9000 \ xiaomi_ax9000 \
yyets_le1 \ yyets_le1 \
yuncore_ax880 \
zte_mf269 \ zte_mf269 \
zte_mf289f \ zte_mf289f \
zte_mf287 \ zte_mf287 \
@ -152,6 +153,7 @@ $(eval $(call generate-ipq-wifi-package,wallys_dr40x9,Wallys DR40X9))
$(eval $(call generate-ipq-wifi-package,xiaomi_ax3600,Xiaomi AX3600)) $(eval $(call generate-ipq-wifi-package,xiaomi_ax3600,Xiaomi AX3600))
$(eval $(call generate-ipq-wifi-package,xiaomi_ax9000,Xiaomi AX9000)) $(eval $(call generate-ipq-wifi-package,xiaomi_ax9000,Xiaomi AX9000))
$(eval $(call generate-ipq-wifi-package,yyets_le1,YYeTs LE1)) $(eval $(call generate-ipq-wifi-package,yyets_le1,YYeTs LE1))
$(eval $(call generate-ipq-wifi-package,yuncore_ax880,Yuncore AX880))
$(eval $(call generate-ipq-wifi-package,zte_mf269,ZTE MF269)) $(eval $(call generate-ipq-wifi-package,zte_mf269,ZTE MF269))
$(eval $(call generate-ipq-wifi-package,zte_mf289f,ZTE MF289F)) $(eval $(call generate-ipq-wifi-package,zte_mf289f,ZTE MF289F))
$(eval $(call generate-ipq-wifi-package,zte_mf287,ZTE MF287)) $(eval $(call generate-ipq-wifi-package,zte_mf287,ZTE MF287))

View File

@ -940,7 +940,7 @@ mac80211_setup_supplicant() {
if [ "$mode" = "sta" ]; then if [ "$mode" = "sta" ]; then
wpa_supplicant_add_network "$ifname" wpa_supplicant_add_network "$ifname"
else else
wpa_supplicant_add_network "$ifname" "$freq" "$htmode" "$noscan" wpa_supplicant_add_network "$ifname" "$freq" "$htmode" "$hostapd_noscan"
fi fi
wpa_supplicant_add_interface "$ifname" "$mode" wpa_supplicant_add_interface "$ifname" "$mode"

View File

@ -5,9 +5,9 @@ PKG_RELEASE:=1
PKG_SOURCE_URL:=https://git.codelinaro.org/clo/qsdk/oss/lklm/qca-ssdk.git PKG_SOURCE_URL:=https://git.codelinaro.org/clo/qsdk/oss/lklm/qca-ssdk.git
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2023-06-06 PKG_SOURCE_DATE:=2023-10-04
PKG_SOURCE_VERSION:=74caf88aa3b6793c300f676e4fb1c62da7507be9 PKG_SOURCE_VERSION:=23a5aa4a4d5834da7a07efb58baebfbee91786b0
PKG_MIRROR_HASH:=6bdb90919b773f5fb432c8b374c9419feac32ba6583ad82dfec5e41628a32dd9 PKG_MIRROR_HASH:=9d169ce924a46a4e530031061d3183b92f23c7f46b3106f0b9ba3587846a73ee
PKG_FLAGS:=nonshared PKG_FLAGS:=nonshared
PKG_BUILD_FLAGS:=no-lto PKG_BUILD_FLAGS:=no-lto

View File

@ -1,7 +1,7 @@
From cdcafa28c857e4d04c9210feb54dc84e427061fe Mon Sep 17 00:00:00 2001 From 1d37f4ee9b9588a62bfc87419c8a6d9ef989aa9c Mon Sep 17 00:00:00 2001
From: Robert Marko <robimarko@gmail.com> From: Robert Marko <robimarko@gmail.com>
Date: Tue, 11 Jan 2022 00:28:42 +0100 Date: Tue, 7 Nov 2023 12:23:09 +0100
Subject: [PATCH 1/2] qca807x: add a LED quirk for Xiaomi AX9000 Subject: [PATCH 1/3] qca807x: add a LED quirk for Xiaomi AX9000
Xiaomi AX9000 has a single LED for each of 4 gigabit ethernet ports that Xiaomi AX9000 has a single LED for each of 4 gigabit ethernet ports that
are connected to QCA8075, and that LED is connected to the 100M LED pin. are connected to QCA8075, and that LED is connected to the 100M LED pin.
@ -16,9 +16,9 @@ as well.
Signed-off-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Robert Marko <robimarko@gmail.com>
--- ---
include/hsl/phy/malibu_phy.h | 2 ++ include/hsl/phy/malibu_phy.h | 2 ++
src/hsl/phy/malibu_phy.c | 11 +++++++++++ src/hsl/phy/malibu_phy.c | 9 +++++++++
2 files changed, 13 insertions(+) 2 files changed, 11 insertions(+)
--- a/include/hsl/phy/malibu_phy.h --- a/include/hsl/phy/malibu_phy.h
+++ b/include/hsl/phy/malibu_phy.h +++ b/include/hsl/phy/malibu_phy.h
@ -49,19 +49,17 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
#include "sw.h" #include "sw.h"
#include "fal_port_ctrl.h" #include "fal_port_ctrl.h"
#include "hsl_api.h" #include "hsl_api.h"
@@ -2716,6 +2718,15 @@ malibu_phy_hw_init(a_uint32_t dev_id, a_ @@ -1809,6 +1811,13 @@ malibu_phy_hw_init(a_uint32_t dev_id, a_
led_status |= MALIBU_LED_1000_CTRL1_100_10_MASK; hsl_phy_modify_mmd(dev_id, phy_addr, A_FALSE, MALIBU_PHY_MMD7_NUM,
malibu_phy_mmd_write(dev_id, phy_addr, MALIBU_PHY_MMD7_NUM, MALIBU_PHY_MMD7_LED_1000_CTRL1, MALIBU_LED_1000_CTRL1_100_10_MASK,
MALIBU_PHY_MMD7_LED_1000_CTRL1, led_status); MALIBU_LED_1000_CTRL1_100_10_MASK);
+ if (of_machine_is_compatible("xiaomi,ax9000")) { + if (of_machine_is_compatible("xiaomi,ax9000")) {
+ /* add 1000M link LED behavior for Xiaomi AX9000 */ + /* add 1000M link LED behavior for Xiaomi AX9000 */
+ led_status = malibu_phy_mmd_read(dev_id, phy_addr, MALIBU_PHY_MMD7_NUM, + hsl_phy_modify_mmd(dev_id, phy_addr, A_FALSE, MALIBU_PHY_MMD7_NUM,
+ MALIBU_PHY_MMD7_LED_100_CTRL1); + MALIBU_PHY_MMD7_LED_100_CTRL1,
+ led_status &= ~MALIBU_LED_100_CTRL1_1000_MASK; + MALIBU_LED_100_CTRL1_1000_MASK,
+ led_status |= MALIBU_LED_100_CTRL1_1000_MASK; + MALIBU_LED_100_CTRL1_1000_MASK);
+ malibu_phy_mmd_write(dev_id, phy_addr, MALIBU_PHY_MMD7_NUM,
+ MALIBU_PHY_MMD7_LED_100_CTRL1, led_status);
+ } + }
/*disable Extended next page*/ /*disable Extended next page*/
phy_data = malibu_phy_reg_read(dev_id, phy_addr, MALIBU_AUTONEG_ADVERT); hsl_phy_modify_mii(dev_id, phy_addr, MALIBU_AUTONEG_ADVERT,
phy_data &= ~MALIBU_EXTENDED_NEXT_PAGE_EN; MALIBU_EXTENDED_NEXT_PAGE_EN, 0);

View File

@ -1,7 +1,7 @@
From a750e569aeb4f7b454dbde18cd6d0f2bb1875dfa Mon Sep 17 00:00:00 2001 From 957ee476ddec289973e0af07917da7bfee660af0 Mon Sep 17 00:00:00 2001
From: Robert Marko <robimarko@gmail.com> From: Robert Marko <robimarko@gmail.com>
Date: Wed, 26 Jan 2022 14:47:33 +0100 Date: Tue, 7 Nov 2023 12:24:17 +0100
Subject: [PATCH 2/2] qca807x: add a LED quirk for Xiaomi AX3600 Subject: [PATCH 2/3] qca807x: add a LED quirk for Xiaomi AX3600
AX3600 requires the same LED quirk so that PHY LED-s will blink even AX3600 requires the same LED quirk so that PHY LED-s will blink even
once Linux resets the PHY. once Linux resets the PHY.
@ -15,15 +15,15 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
--- a/src/hsl/phy/malibu_phy.c --- a/src/hsl/phy/malibu_phy.c
+++ b/src/hsl/phy/malibu_phy.c +++ b/src/hsl/phy/malibu_phy.c
@@ -2718,8 +2718,9 @@ malibu_phy_hw_init(a_uint32_t dev_id, a_ @@ -1811,8 +1811,9 @@ malibu_phy_hw_init(a_uint32_t dev_id, a_
led_status |= MALIBU_LED_1000_CTRL1_100_10_MASK; hsl_phy_modify_mmd(dev_id, phy_addr, A_FALSE, MALIBU_PHY_MMD7_NUM,
malibu_phy_mmd_write(dev_id, phy_addr, MALIBU_PHY_MMD7_NUM, MALIBU_PHY_MMD7_LED_1000_CTRL1, MALIBU_LED_1000_CTRL1_100_10_MASK,
MALIBU_PHY_MMD7_LED_1000_CTRL1, led_status); MALIBU_LED_1000_CTRL1_100_10_MASK);
- if (of_machine_is_compatible("xiaomi,ax9000")) { - if (of_machine_is_compatible("xiaomi,ax9000")) {
- /* add 1000M link LED behavior for Xiaomi AX9000 */ - /* add 1000M link LED behavior for Xiaomi AX9000 */
+ /* add 1000M link LED behavior for Xiaomi boards */
+ if (of_machine_is_compatible("xiaomi,ax9000") || + if (of_machine_is_compatible("xiaomi,ax9000") ||
+ of_machine_is_compatible("xiaomi,ax3600")) { + of_machine_is_compatible("xiaomi,ax3600")) {
led_status = malibu_phy_mmd_read(dev_id, phy_addr, MALIBU_PHY_MMD7_NUM, + /* add 1000M link LED behavior for Xiaomi boards */
MALIBU_PHY_MMD7_LED_100_CTRL1); hsl_phy_modify_mmd(dev_id, phy_addr, A_FALSE, MALIBU_PHY_MMD7_NUM,
led_status &= ~MALIBU_LED_100_CTRL1_1000_MASK; MALIBU_PHY_MMD7_LED_100_CTRL1,
MALIBU_LED_100_CTRL1_1000_MASK,

View File

@ -0,0 +1,30 @@
From 73c0992a36bc13e9bb373f98ba246dfc1e29a393 Mon Sep 17 00:00:00 2001
From: Robert Marko <robimarko@gmail.com>
Date: Tue, 7 Nov 2023 14:21:43 +0100
Subject: [PATCH 3/3] Revert "[qca-ssdk]: enable invoking fdb del function for
kernel6.1"
This reverts commit a86765ee6a87145f64344f4872cfe8c5e629dd62.
Upstream kernel does not have this call present at all, we currently
also dont use it, so revert the commit enabling it.
Signed-off-by: Robert Marko <robimarko@gmail.com>
---
src/ref/ref_acl.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/src/ref/ref_acl.c
+++ b/src/ref/ref_acl.c
@@ -229,7 +229,11 @@ _ref_acl_mac_entry_create_rule(a_uint32_
eth_dev = dev_get_by_name(&init_net, entry->ifname);
if (eth_dev)
{
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
+ // TODO: replace with corresponding ver
+#else
br_fdb_delete_by_netdev(eth_dev, entry->src_mac.uc, 0);
+#endif
dev_put(eth_dev);
}
}

View File

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=hostapd PKG_NAME:=hostapd
PKG_RELEASE:=5 PKG_RELEASE:=6
PKG_SOURCE_URL:=http://w1.fi/hostap.git PKG_SOURCE_URL:=http://w1.fi/hostap.git
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git

View File

@ -24,8 +24,8 @@
frequency); frequency);
goto out_free; goto out_free;
} }
+ if (ssid->noscan) + if (conf->noscan)
+ conf->noscan = 1; + ssid->noscan = 1;
if (ssid->mesh_basic_rates == NULL) { if (ssid->mesh_basic_rates == NULL) {
/* /*
@ -45,7 +45,7 @@
unsigned int j; unsigned int j;
static const int ht40plus[] = { static const int ht40plus[] = {
- 36, 44, 52, 60, 100, 108, 116, 124, 132, 149, 157, 165, 173, - 36, 44, 52, 60, 100, 108, 116, 124, 132, 149, 157, 165, 173,
+ 1, 2, 3, 4, 5, 6, 36, 44, 52, 60, 100, 108, 116, 124, 132, 149, 157, 165, 173, + 1, 2, 3, 4, 5, 6, 7, 36, 44, 52, 60, 100, 108, 116, 124, 132, 149, 157, 165, 173,
184, 192 184, 192
}; };
int ht40 = -1; int ht40 = -1;
@ -58,6 +58,15 @@
u8 channel; u8 channel;
bool is_6ghz; bool is_6ghz;
bool dfs_enabled = wpa_s->conf->country[0] && (wpa_s->drv_flags & WPA_DRIVER_FLAGS_RADAR); bool dfs_enabled = wpa_s->conf->country[0] && (wpa_s->drv_flags & WPA_DRIVER_FLAGS_RADAR);
@@ -3080,6 +3080,8 @@ void ibss_mesh_setup_freq(struct wpa_sup
freq->he_enabled = ibss_mesh_can_use_he(wpa_s, ssid, mode,
ieee80211_mode);
freq->channel = channel;
+ if (mode->mode == HOSTAPD_MODE_IEEE80211G && ssid->noscan)
+ ibss_mesh_select_40mhz(wpa_s, ssid, mode, freq, obss_scan, dfs_enabled);
/* Setup higher BW only for 5 GHz */
if (mode->mode == HOSTAPD_MODE_IEEE80211A) {
ibss_mesh_select_40mhz(wpa_s, ssid, mode, freq, obss_scan, dfs_enabled);
--- a/wpa_supplicant/config_ssid.h --- a/wpa_supplicant/config_ssid.h
+++ b/wpa_supplicant/config_ssid.h +++ b/wpa_supplicant/config_ssid.h
@@ -1035,6 +1035,8 @@ struct wpa_ssid { @@ -1035,6 +1035,8 @@ struct wpa_ssid {

View File

@ -1,6 +1,6 @@
--- a/wpa_supplicant/wpa_supplicant.c --- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c
@@ -5767,7 +5767,7 @@ wpa_supplicant_alloc(struct wpa_supplica @@ -5769,7 +5769,7 @@ wpa_supplicant_alloc(struct wpa_supplica
if (wpa_s == NULL) if (wpa_s == NULL)
return NULL; return NULL;
wpa_s->scan_req = INITIAL_SCAN_REQ; wpa_s->scan_req = INITIAL_SCAN_REQ;

View File

@ -174,7 +174,7 @@ Signed-hostap: Antonio Quartulli <ordex@autistici.org>
* macsec_policy - Determines the policy for MACsec secure session * macsec_policy - Determines the policy for MACsec secure session
--- a/wpa_supplicant/wpa_supplicant.c --- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c
@@ -4175,6 +4175,12 @@ static void wpas_start_assoc_cb(struct w @@ -4177,6 +4177,12 @@ static void wpas_start_assoc_cb(struct w
params.beacon_int = ssid->beacon_int; params.beacon_int = ssid->beacon_int;
else else
params.beacon_int = wpa_s->conf->beacon_int; params.beacon_int = wpa_s->conf->beacon_int;

View File

@ -348,7 +348,7 @@
CFLAGS += -DEAP_SERVER -DEAP_SERVER_IDENTITY CFLAGS += -DEAP_SERVER -DEAP_SERVER_IDENTITY
--- a/wpa_supplicant/wpa_supplicant.c --- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c
@@ -7593,6 +7593,8 @@ struct wpa_supplicant * wpa_supplicant_a @@ -7595,6 +7595,8 @@ struct wpa_supplicant * wpa_supplicant_a
} }
#endif /* CONFIG_P2P */ #endif /* CONFIG_P2P */
@ -357,7 +357,7 @@
return wpa_s; return wpa_s;
} }
@@ -7619,6 +7621,8 @@ int wpa_supplicant_remove_iface(struct w @@ -7621,6 +7623,8 @@ int wpa_supplicant_remove_iface(struct w
struct wpa_supplicant *parent = wpa_s->parent; struct wpa_supplicant *parent = wpa_s->parent;
#endif /* CONFIG_MESH */ #endif /* CONFIG_MESH */
@ -366,7 +366,7 @@
/* Remove interface from the global list of interfaces */ /* Remove interface from the global list of interfaces */
prev = global->ifaces; prev = global->ifaces;
if (prev == wpa_s) { if (prev == wpa_s) {
@@ -7965,8 +7969,12 @@ int wpa_supplicant_run(struct wpa_global @@ -7967,8 +7971,12 @@ int wpa_supplicant_run(struct wpa_global
eloop_register_signal_terminate(wpa_supplicant_terminate, global); eloop_register_signal_terminate(wpa_supplicant_terminate, global);
eloop_register_signal_reconfig(wpa_supplicant_reconfig, global); eloop_register_signal_reconfig(wpa_supplicant_reconfig, global);

View File

@ -196,7 +196,7 @@
#ifdef CONFIG_BGSCAN #ifdef CONFIG_BGSCAN
if (state == WPA_COMPLETED && wpa_s->current_ssid != wpa_s->bgscan_ssid) if (state == WPA_COMPLETED && wpa_s->current_ssid != wpa_s->bgscan_ssid)
@@ -7594,6 +7595,7 @@ struct wpa_supplicant * wpa_supplicant_a @@ -7596,6 +7597,7 @@ struct wpa_supplicant * wpa_supplicant_a
#endif /* CONFIG_P2P */ #endif /* CONFIG_P2P */
wpas_ubus_add_bss(wpa_s); wpas_ubus_add_bss(wpa_s);
@ -204,7 +204,7 @@
return wpa_s; return wpa_s;
} }
@@ -7621,6 +7623,7 @@ int wpa_supplicant_remove_iface(struct w @@ -7623,6 +7625,7 @@ int wpa_supplicant_remove_iface(struct w
struct wpa_supplicant *parent = wpa_s->parent; struct wpa_supplicant *parent = wpa_s->parent;
#endif /* CONFIG_MESH */ #endif /* CONFIG_MESH */
@ -212,7 +212,7 @@
wpas_ubus_free_bss(wpa_s); wpas_ubus_free_bss(wpa_s);
/* Remove interface from the global list of interfaces */ /* Remove interface from the global list of interfaces */
@@ -7931,6 +7934,7 @@ struct wpa_global * wpa_supplicant_init( @@ -7933,6 +7936,7 @@ struct wpa_global * wpa_supplicant_init(
eloop_register_timeout(WPA_SUPPLICANT_CLEANUP_INTERVAL, 0, eloop_register_timeout(WPA_SUPPLICANT_CLEANUP_INTERVAL, 0,
wpas_periodic, global, NULL); wpas_periodic, global, NULL);
@ -220,7 +220,7 @@
return global; return global;
} }
@@ -7969,12 +7973,8 @@ int wpa_supplicant_run(struct wpa_global @@ -7971,12 +7975,8 @@ int wpa_supplicant_run(struct wpa_global
eloop_register_signal_terminate(wpa_supplicant_terminate, global); eloop_register_signal_terminate(wpa_supplicant_terminate, global);
eloop_register_signal_reconfig(wpa_supplicant_reconfig, global); eloop_register_signal_reconfig(wpa_supplicant_reconfig, global);
@ -233,7 +233,7 @@
return 0; return 0;
} }
@@ -8007,6 +8007,8 @@ void wpa_supplicant_deinit(struct wpa_gl @@ -8009,6 +8009,8 @@ void wpa_supplicant_deinit(struct wpa_gl
wpas_notify_supplicant_deinitialized(global); wpas_notify_supplicant_deinitialized(global);

View File

@ -12,9 +12,9 @@ PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/fstools.git PKG_SOURCE_URL=$(PROJECT_GIT)/project/fstools.git
PKG_MIRROR_HASH:=4ec370a1cdc9fa69131f1403b064d2e05d54ee865411917410d7540454265319 PKG_MIRROR_HASH:=e9953b038a2c2ed2c4783b66d1c0d0cea0deab2f2bfa6712929243e3197c3bdd
PKG_SOURCE_DATE:=2023-02-28 PKG_SOURCE_DATE:=2023-05-28
PKG_SOURCE_VERSION:=bfe882d5ff4eeebb8f57c8a0f9b9e767a57870d8 PKG_SOURCE_VERSION:=3a07943e1e60699ba952e605f0cf23c82de356cb
CMAKE_INSTALL:=1 CMAKE_INSTALL:=1
PKG_LICENSE:=GPL-2.0 PKG_LICENSE:=GPL-2.0

View File

@ -12,9 +12,9 @@ PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=https://github.com/jow-/ucode.git PKG_SOURCE_URL=https://github.com/jow-/ucode.git
PKG_SOURCE_DATE:=2023-11-02 PKG_SOURCE_DATE:=2023-11-07
PKG_SOURCE_VERSION:=cfb24ea4f12131dcefe4f1ede2f51d3d16b88dec PKG_SOURCE_VERSION:=a6e75e02528e36f3610a7f0073453018336def2e
PKG_MIRROR_HASH:=f515a23ab438f92be5788c42b9f614a82e670de2df1c01cd63143cdc77fa24fe PKG_MIRROR_HASH:=e1a0f98ba865ed5911d5db3bfca55a2f1b825992bf5f7c7e324928d9412d7ae2
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io> PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
PKG_LICENSE:=ISC PKG_LICENSE:=ISC

View File

@ -562,7 +562,6 @@ CONFIG_SERIAL_XILINX_PS_UART=y
CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y
CONFIG_SGL_ALLOC=y CONFIG_SGL_ALLOC=y
CONFIG_SG_POOL=y CONFIG_SG_POOL=y
CONFIG_SLUB_DEBUG=y
CONFIG_SMP=y CONFIG_SMP=y
CONFIG_SMP_ON_UP=y CONFIG_SMP_ON_UP=y
CONFIG_SMSC_PHY=y CONFIG_SMSC_PHY=y

View File

@ -580,7 +580,6 @@ CONFIG_SERIAL_XILINX_PS_UART=y
CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y
CONFIG_SGL_ALLOC=y CONFIG_SGL_ALLOC=y
CONFIG_SG_POOL=y CONFIG_SG_POOL=y
CONFIG_SLUB_DEBUG=y
CONFIG_SMP=y CONFIG_SMP=y
CONFIG_SMP_ON_UP=y CONFIG_SMP_ON_UP=y
CONFIG_SMSC_PHY=y CONFIG_SMSC_PHY=y
@ -626,7 +625,6 @@ CONFIG_SQUASHFS_ZLIB=y
CONFIG_SRAM=y CONFIG_SRAM=y
CONFIG_SRAM_EXEC=y CONFIG_SRAM_EXEC=y
CONFIG_SRCU=y CONFIG_SRCU=y
CONFIG_STACKDEPOT=y
CONFIG_STACKTRACE=y CONFIG_STACKTRACE=y
CONFIG_STAGING_BOARD=y CONFIG_STAGING_BOARD=y
# CONFIG_STRIP_ASM_SYMS is not set # CONFIG_STRIP_ASM_SYMS is not set

View File

@ -245,7 +245,6 @@ CONFIG_SERIO=y
CONFIG_SERIO_LIBPS2=y CONFIG_SERIO_LIBPS2=y
CONFIG_SERIO_SERPORT=y CONFIG_SERIO_SERPORT=y
CONFIG_SGL_ALLOC=y CONFIG_SGL_ALLOC=y
CONFIG_SLUB_DEBUG=y
CONFIG_SOCK_DIAG=y CONFIG_SOCK_DIAG=y
CONFIG_SPARSE_IRQ=y CONFIG_SPARSE_IRQ=y
CONFIG_SPLIT_PTLOCK_CPUS=999999 CONFIG_SPLIT_PTLOCK_CPUS=999999

View File

@ -351,7 +351,6 @@ CONFIG_SERIAL_FSL_LPUART=y
CONFIG_SERIAL_FSL_LPUART_CONSOLE=y CONFIG_SERIAL_FSL_LPUART_CONSOLE=y
CONFIG_SERIAL_MCTRL_GPIO=y CONFIG_SERIAL_MCTRL_GPIO=y
CONFIG_SG_POOL=y CONFIG_SG_POOL=y
CONFIG_SLUB_DEBUG=y
CONFIG_SMP=y CONFIG_SMP=y
CONFIG_SOCK_RX_QUEUE_MAPPING=y CONFIG_SOCK_RX_QUEUE_MAPPING=y
CONFIG_SOC_BUS=y CONFIG_SOC_BUS=y

View File

@ -0,0 +1,370 @@
// SPDX-License-Identifier: MIT, GPL-2.0 or later
/* Copyright (c) 2023, Ruslan Isaev <legale.legale@gmail.com> */
/dts-v1/;
#include "ipq8074.dtsi"
#include "ipq8074-hk-cpu.dtsi"
#include "ipq8074-ess.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
model = "Yuncore AX880";
compatible = "yuncore,ax880", "qcom,ipq8074", "qcom,ipq8074-hk09";
aliases {
serial0 = &blsp1_uart5;
serial1 = &blsp1_uart3;
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
/* Aliases as required by u-boot to patch MAC addresses */
ethernet0 = &dp5_syn;
ethernet1 = &dp6_syn;
label-mac-device = &dp5_syn;
};
chosen {
stdout-path = "serial0:115200n8";
bootargs-append = " root=/dev/ubiblock0_1";
};
keys {
compatible = "gpio-keys";
pinctrl-0 = <&button_pins>;
pinctrl-names = "default";
reset {
label = "reset";
gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
leds {
compatible = "gpio-leds";
led_system: system {
label = "system";
color = "red";
gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
};
wlan2g {
label = "wlan2g";
color = "green";
linux,default-trigger = "phy0tpt";
gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
};
wlan5g {
label = "wlan5g";
color = "blue";
linux,default-trigger = "phy1tpt";
gpios = <&tlmm 9 GPIO_ACTIVE_HIGH>;
};
};
};
&tlmm {
mdio_pins: mdio-pins {
mdc {
pins = "gpio68";
function = "mdc";
drive-strength = <8>;
bias-pull-up;
};
mdio {
pins = "gpio69";
function = "mdio";
drive-strength = <8>;
bias-pull-up;
};
};
button_pins: button_pins {
reset_button {
pins = "gpio57";
function = "gpio";
drive-strength = <8>;
bias-pull-up;
};
};
};
&blsp1_spi1 {
status = "okay";
flash@0 {
#address-cells = <1>;
#size-cells = <1>;
reg = <0>;
compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "0:sbl1";
reg = <0x0 0x50000>;
read-only;
};
partition@50000 {
label = "0:mibib";
reg = <0x50000 0x10000>;
read-only;
};
partition@60000 {
label = "0:bootconfig";
reg = <0x60000 0x20000>;
read-only;
};
partition@80000 {
label = "0:bootconfig1";
reg = <0x80000 0x20000>;
read-only;
};
partition@a0000 {
label = "0:qsee_1";
reg = <0xa0000 0x180000>;
read-only;
};
partition@220000 {
label = "0:qsee";
reg = <0x220000 0x180000>;
read-only;
};
partition@3a0000 {
label = "0:devcfg";
reg = <0x3a0000 0x10000>;
read-only;
};
partition@3b0000 {
label = "0:devcfg_1";
reg = <0x3b0000 0x10000>;
read-only;
};
partition@3c0000 {
label = "0:apdp";
reg = <0x3c0000 0x10000>;
read-only;
};
partition@3d0000 {
label = "0:apdp_1";
reg = <0x3d0000 0x10000>;
read-only;
};
partition@3e0000 {
label = "0:rpm_1";
reg = <0x3e0000 0x40000>;
read-only;
};
partition@420000 {
label = "0:rpm";
reg = <0x420000 0x40000>;
read-only;
};
partition@460000 {
label = "0:cdt_1";
reg = <0x460000 0x10000>;
read-only;
};
partition@470000 {
label = "0:cdt";
reg = <0x470000 0x10000>;
read-only;
};
partition@480000 {
label = "0:appsblenv";
reg = <0x480000 0x10000>;
};
partition@490000 {
label = "0:appsbl_1";
reg = <0x490000 0xa0000>;
read-only;
};
partition@550000 {
label = "0:appsbl";
reg = <0x530000 0xa0000>;
read-only;
};
partition@610000 {
label = "0:art";
reg = <0x5d0000 0x40000>;
read-only;
};
partition@650000 {
label = "0:ethphyfw";
reg = <0x610000 0x80000>;
read-only;
};
};
};
};
//serial interface
&blsp1_uart3 {
status = "okay";
};
&blsp1_uart5 {
status = "okay";
};
&crypto {
status = "okay";
};
&cryptobam {
status = "okay";
};
&prng {
status = "okay";
};
&qpic_bam {
status = "okay";
};
&qusb_phy_0 {
status = "okay";
};
&ssphy_0 {
status = "okay";
};
&usb_0 {
status = "okay";
};
&qpic_nand {
status = "okay";
nand@0 {
reg = <0>;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
nand-bus-width = <8>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "rootfs_1";
reg = <0x0000000 0x3400000>;
};
partition@3400000 {
label = "0:wififw";
reg = <0x3400000 0x800000>;
read-only;
};
rootfs: partition@3c00000 {
label = "rootfs";
reg = <0x3c00000 0x3400000>;
};
partition@7000000 {
label = "0:wififw_1";
reg = <0x7000000 0x800000>;
read-only;
};
};
};
};
&mdio {
status = "okay";
pinctrl-0 = <&mdio_pins>;
pinctrl-names = "default";
qca8081_24: ethernet-phy@24 {
compatible = "ethernet-phy-id004d.d101";
reg = <24>;
reset-gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
};
qca8081_28: ethernet-phy@28 {
compatible = "ethernet-phy-id004d.d101";
reg = <28>;
reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
};
};
&switch {
status = "okay";
switch_cpu_bmp = <0x1>; /* cpu port bitmap */
switch_lan_bmp = <0x3e>; /* lan port bitmap */
switch_wan_bmp = <0x40>; /* wan port bitmap */
switch_mac_mode = <0xff>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <0xf>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <0xf>; /* mac mode for uniphy instance2*/
bm_tick_mode = <0>; /* bm tick mode */
tm_tick_mode = <0>; /* tm tick mode */
qcom,port_phyinfo {
port@4 {
port_id = <5>;
phy_address = <24>;
port_mac_sel = "QGMAC_PORT";
};
port@5 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
};
};
};
&edma {
status = "okay";
};
&dp5_syn {
status = "okay";
phy-handle = <&qca8081_24>;
label = "wan";
};
&dp6_syn {
status = "okay";
phy-handle = <&qca8081_28>;
label = "lan";
};
&wifi {
status = "okay";
qcom,ath11k-calibration-variant = "Yuncore-AX880";
};

View File

@ -283,3 +283,19 @@ define Device/zyxel_nbg7815
kmod-bluetooth kmod-bluetooth
endef endef
TARGET_DEVICES += zyxel_nbg7815 TARGET_DEVICES += zyxel_nbg7815
define Device/yuncore_ax880
$(call Device/FitImage)
$(call Device/UbiFit)
DEVICE_VENDOR := Yuncore
DEVICE_MODEL := AX880
BLOCKSIZE := 128k
PAGESIZE := 2048
DEVICE_DTS_CONFIG := config@hk09
SOC := ipq8072
DEVICE_PACKAGES := ipq-wifi-yuncore_ax880
IMAGES += factory.bin
IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
endef
TARGET_DEVICES += yuncore_ax880

View File

@ -17,6 +17,7 @@ ipq807x_setup_interfaces()
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan" ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
;; ;;
edgecore,eap102|\ edgecore,eap102|\
yuncore,ax880|\
zte,mf269) zte,mf269)
ucidef_set_interfaces_lan_wan "lan" "wan" ucidef_set_interfaces_lan_wan "lan" "wan"
;; ;;

View File

@ -24,6 +24,7 @@ case "$FIRMWARE" in
xiaomi,ax3600|\ xiaomi,ax3600|\
xiaomi,ax3600-stock|\ xiaomi,ax3600-stock|\
xiaomi,ax9000|\ xiaomi,ax9000|\
yuncore,ax880|\
zte,mf269|\ zte,mf269|\
zyxel,nbg7815) zyxel,nbg7815)
caldata_extract "0:art" 0x1000 0x20000 caldata_extract "0:art" 0x1000 0x20000

View File

@ -4,7 +4,8 @@ START=99
boot() { boot() {
case $(board_name) in case $(board_name) in
edgecore,eap102) edgecore,eap102|\
yuncore,ax880)
fw_setenv upgrade_available 0 fw_setenv upgrade_available 0
# Unset changed flag after sysupgrade complete # Unset changed flag after sysupgrade complete
fw_setenv changed fw_setenv changed

View File

@ -138,6 +138,18 @@ platform_do_upgrade() {
# Reset success flag # Reset success flag
fw_setenv flag_boot_success 0 fw_setenv flag_boot_success 0
nand_do_upgrade "$1"
;;
yuncore,ax880)
active="$(fw_printenv -n active)"
if [ "$active" -eq "1" ]; then
CI_UBIPART="rootfs_1"
else
CI_UBIPART="rootfs"
fi
# force altbootcmd which handles partition change in u-boot
fw_setenv bootcount 3
fw_setenv upgrade_available 1
nand_do_upgrade "$1" nand_do_upgrade "$1"
;; ;;
zte,mf269) zte,mf269)

View File

@ -0,0 +1,27 @@
From c0877a26b7ee54ef30d16ffdcdd37f2bcffe518e Mon Sep 17 00:00:00 2001
From: Kathiravan T <quic_kathirav@quicinc.com>
Date: Wed, 8 Feb 2023 11:27:08 +0530
Subject: [PATCH] dt-bindings: arm: qcom,ids: Add IDs for IPQ5332 and its
variant
Add SOC ID for Qualcomm IPQ5332 and IPQ5322 variants.
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230208055709.13162-2-quic_kathirav@quicinc.com
---
include/dt-bindings/arm/qcom,ids.h | 2 ++
1 file changed, 2 insertions(+)
--- a/include/dt-bindings/arm/qcom,ids.h
+++ b/include/dt-bindings/arm/qcom,ids.h
@@ -143,6 +143,8 @@
#define QCOM_ID_SC7280 487
#define QCOM_ID_SC7180P 495
#define QCOM_ID_SM6375 507
+#define QCOM_ID_IPQ5332 592
+#define QCOM_ID_IPQ5322 593
/*
* The board type and revision information, used by Qualcomm bootloaders and

View File

@ -0,0 +1,33 @@
From 725352e15e1d030885611a546eb1f2884851a407 Mon Sep 17 00:00:00 2001
From: Varadarajan Narayanan <quic_varada@quicinc.com>
Date: Tue, 14 Mar 2023 11:43:33 +0530
Subject: [PATCH] dt-bindings: arm: qcom,ids: Add IDs for IPQ9574 and its
variants
Add SOC ID for Qualcomm IPQ9574, IPQ9570, IPQ9554, IPQ9550,
IPQ9514 and IPQ9510
Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Kathiravan T <quic_kathirav@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/1678774414-14414-2-git-send-email-quic_varada@quicinc.com
---
include/dt-bindings/arm/qcom,ids.h | 6 ++++++
1 file changed, 6 insertions(+)
--- a/include/dt-bindings/arm/qcom,ids.h
+++ b/include/dt-bindings/arm/qcom,ids.h
@@ -143,6 +143,12 @@
#define QCOM_ID_SC7280 487
#define QCOM_ID_SC7180P 495
#define QCOM_ID_SM6375 507
+#define QCOM_ID_IPQ9514 510
+#define QCOM_ID_IPQ9550 511
+#define QCOM_ID_IPQ9554 512
+#define QCOM_ID_IPQ9570 513
+#define QCOM_ID_IPQ9574 514
+#define QCOM_ID_IPQ9510 521
#define QCOM_ID_IPQ5332 592
#define QCOM_ID_IPQ5322 593

View File

@ -0,0 +1,28 @@
From 614c778cf0d570642c50715adfa0b70930d8cf29 Mon Sep 17 00:00:00 2001
From: Kathiravan T <quic_kathirav@quicinc.com>
Date: Tue, 9 May 2023 09:05:30 +0530
Subject: [PATCH] dt-bindings: arm: qcom,ids: add SoC ID for IPQ5312 and
IPQ5302
Add the SoC ID for IPQ5312 and IPQ5302, which belong to the family of
IPQ5332 SoC.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230509033531.21468-2-quic_kathirav@quicinc.com
---
include/dt-bindings/arm/qcom,ids.h | 2 ++
1 file changed, 2 insertions(+)
--- a/include/dt-bindings/arm/qcom,ids.h
+++ b/include/dt-bindings/arm/qcom,ids.h
@@ -151,6 +151,8 @@
#define QCOM_ID_IPQ9510 521
#define QCOM_ID_IPQ5332 592
#define QCOM_ID_IPQ5322 593
+#define QCOM_ID_IPQ5312 594
+#define QCOM_ID_IPQ5302 595
/*
* The board type and revision information, used by Qualcomm bootloaders and

View File

@ -0,0 +1,25 @@
From b3c72f2795467e3d43ee429b0ebd5f523ec08f60 Mon Sep 17 00:00:00 2001
From: Kathiravan T <quic_kathirav@quicinc.com>
Date: Mon, 5 Jun 2023 13:35:28 +0530
Subject: [PATCH] dt-bindings: arm: qcom,ids: add SoC ID for IPQ5300
Add the SoC ID for IPQ5300, which belong to the family of IPQ5332 SoC.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230605080531.3879-2-quic_kathirav@quicinc.com
---
include/dt-bindings/arm/qcom,ids.h | 1 +
1 file changed, 1 insertion(+)
--- a/include/dt-bindings/arm/qcom,ids.h
+++ b/include/dt-bindings/arm/qcom,ids.h
@@ -153,6 +153,7 @@
#define QCOM_ID_IPQ5322 593
#define QCOM_ID_IPQ5312 594
#define QCOM_ID_IPQ5302 595
+#define QCOM_ID_IPQ5300 624
/*
* The board type and revision information, used by Qualcomm bootloaders and

View File

@ -607,7 +607,6 @@ CONFIG_SERIO_AMBAKMI=y
CONFIG_SERIO_LIBPS2=y CONFIG_SERIO_LIBPS2=y
CONFIG_SG_POOL=y CONFIG_SG_POOL=y
CONFIG_SHADOW_CALL_STACK=y CONFIG_SHADOW_CALL_STACK=y
CONFIG_SLUB_DEBUG=y
CONFIG_SMP=y CONFIG_SMP=y
# CONFIG_SND_SOC_RK817 is not set # CONFIG_SND_SOC_RK817 is not set
# CONFIG_SND_SOC_ROCKCHIP is not set # CONFIG_SND_SOC_ROCKCHIP is not set
@ -633,7 +632,6 @@ CONFIG_SQUASHFS_FILE_CACHE=y
# CONFIG_SQUASHFS_FILE_DIRECT is not set # CONFIG_SQUASHFS_FILE_DIRECT is not set
CONFIG_SRAM=y CONFIG_SRAM=y
CONFIG_SRCU=y CONFIG_SRCU=y
CONFIG_STACKDEPOT=y
CONFIG_STACKPROTECTOR=y CONFIG_STACKPROTECTOR=y
CONFIG_STACKPROTECTOR_PER_TASK=y CONFIG_STACKPROTECTOR_PER_TASK=y
CONFIG_STACKPROTECTOR_STRONG=y CONFIG_STACKPROTECTOR_STRONG=y

View File

@ -334,7 +334,6 @@ CONFIG_SERIO_SERPORT=y
CONFIG_SG_POOL=y CONFIG_SG_POOL=y
CONFIG_SIFIVE_CCACHE=y CONFIG_SIFIVE_CCACHE=y
CONFIG_SIFIVE_PLIC=y CONFIG_SIFIVE_PLIC=y
CONFIG_SLUB_DEBUG=y
CONFIG_SMP=y CONFIG_SMP=y
CONFIG_SOCK_RX_QUEUE_MAPPING=y CONFIG_SOCK_RX_QUEUE_MAPPING=y
# CONFIG_SOC_MICROCHIP_POLARFIRE is not set # CONFIG_SOC_MICROCHIP_POLARFIRE is not set
@ -349,7 +348,6 @@ CONFIG_SPI_MASTER=y
CONFIG_SPI_MEM=y CONFIG_SPI_MEM=y
CONFIG_SPI_SIFIVE=y CONFIG_SPI_SIFIVE=y
CONFIG_SRCU=y CONFIG_SRCU=y
CONFIG_STACKDEPOT=y
CONFIG_STACKTRACE=y CONFIG_STACKTRACE=y
CONFIG_SWIOTLB=y CONFIG_SWIOTLB=y
CONFIG_SWPHY=y CONFIG_SWPHY=y

View File

@ -7,14 +7,14 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=mkimage PKG_NAME:=mkimage
PKG_VERSION:=2023.04 PKG_VERSION:=2023.10
PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:= \ PKG_SOURCE_URL:= \
https://mirror.cyberbits.eu/u-boot \ https://mirror.cyberbits.eu/u-boot \
https://ftp.denx.de/pub/u-boot \ https://ftp.denx.de/pub/u-boot \
ftp://ftp.denx.de/pub/u-boot ftp://ftp.denx.de/pub/u-boot
PKG_HASH:=e31cac91545ff41b71cec5d8c22afd695645cd6e2a442ccdacacd60534069341 PKG_HASH:=e00e6c6f014e046101739d08d06f328811cebcf5ae101348f409cbbd55ce6900
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION) HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION)

View File

@ -50,7 +50,7 @@ This patch makes it possible to set a custom image magic.
break; break;
--- a/tools/default_image.c --- a/tools/default_image.c
+++ b/tools/default_image.c +++ b/tools/default_image.c
@@ -63,7 +63,7 @@ static int image_verify_header(unsigned @@ -68,7 +68,7 @@ static int image_verify_header(unsigned
*/ */
memcpy(hdr, ptr, sizeof(struct legacy_img_hdr)); memcpy(hdr, ptr, sizeof(struct legacy_img_hdr));
@ -59,7 +59,7 @@ This patch makes it possible to set a custom image magic.
debug("%s: Bad Magic Number: \"%s\" is no valid image\n", debug("%s: Bad Magic Number: \"%s\" is no valid image\n",
params->cmdname, params->imagefile); params->cmdname, params->imagefile);
return -FDT_ERR_BADMAGIC; return -FDT_ERR_BADMAGIC;
@@ -142,7 +142,7 @@ static void image_set_header(void *ptr, @@ -147,7 +147,7 @@ static void image_set_header(void *ptr,
} }
/* Build new header */ /* Build new header */

View File

@ -1,11 +0,0 @@
--- a/tools/mkimage.h
+++ b/tools/mkimage.h
@@ -44,7 +44,7 @@ static inline ulong map_to_sysmem(void *
#define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) type name[size]
#define MKIMAGE_TMPFILE_SUFFIX ".tmp"
-#define MKIMAGE_MAX_TMPFILE_LEN 256
+#define MKIMAGE_MAX_TMPFILE_LEN 1024
#define MKIMAGE_DEFAULT_DTC_OPTIONS "-I dts -O dtb -p 500"
#define MKIMAGE_MAX_DTC_CMDLINE_LEN 2 * MKIMAGE_MAX_TMPFILE_LEN + 35