Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
commit
bc93b0a58c
@ -1,2 +1,2 @@
|
|||||||
LINUX_VERSION-5.15 = .140
|
LINUX_VERSION-5.15 = .141
|
||||||
LINUX_KERNEL_HASH-5.15.140 = be2bee8b346f3ccb35879f16c80a323edda571e36190403805c14a9ea24e4a47
|
LINUX_KERNEL_HASH-5.15.141 = 936d6ac65c692a986b4bde34b7f3d7ad90f7f86f19e4ef320e008d40f07e2cfa
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
LINUX_VERSION-6.1 = .64
|
LINUX_VERSION-6.1 = .65
|
||||||
LINUX_KERNEL_HASH-6.1.64 = 629daa38f3ea67f29610bfbd53f9f38f46834d3654451e9474100490c66dc7e7
|
LINUX_KERNEL_HASH-6.1.65 = 407229936802a44b1e484c2e9ac3bbe53a65d825cc468ccdbd76281b491ab20a
|
||||||
|
|||||||
@ -65,17 +65,14 @@ cmcc,rax3000m)
|
|||||||
cmcc,rax3000m-emmc-ubootmod)
|
cmcc,rax3000m-emmc-ubootmod)
|
||||||
ubootenv_add_uci_config "/dev/mmcblk0p1" "0x0" "0x80000" "0x80000"
|
ubootenv_add_uci_config "/dev/mmcblk0p1" "0x0" "0x80000" "0x80000"
|
||||||
;;
|
;;
|
||||||
glinet,gl-mt2500)
|
glinet,gl-mt2500|\
|
||||||
local envdev=$(find_mmc_part "u-boot-env")
|
|
||||||
ubootenv_add_uci_config "$envdev" "0x400000" "0x80000"
|
|
||||||
;;
|
|
||||||
glinet,gl-mt3000)
|
|
||||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x80000" "0x20000"
|
|
||||||
;;
|
|
||||||
glinet,gl-mt6000)
|
glinet,gl-mt6000)
|
||||||
local envdev=$(find_mmc_part "u-boot-env")
|
local envdev=$(find_mmc_part "u-boot-env")
|
||||||
ubootenv_add_uci_config "$envdev" "0x0" "0x80000"
|
ubootenv_add_uci_config "$envdev" "0x0" "0x80000"
|
||||||
;;
|
;;
|
||||||
|
glinet,gl-mt3000)
|
||||||
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x80000" "0x20000"
|
||||||
|
;;
|
||||||
h3c,magic-nx30-pro|\
|
h3c,magic-nx30-pro|\
|
||||||
h3c,magic-nx30-pro-nmbm|\
|
h3c,magic-nx30-pro-nmbm|\
|
||||||
jcg,q30|\
|
jcg,q30|\
|
||||||
|
|||||||
@ -8,12 +8,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=valgrind
|
PKG_NAME:=valgrind
|
||||||
PKG_VERSION:=3.21.0
|
PKG_VERSION:=3.22.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=https://sourceware.org/pub/valgrind/
|
PKG_SOURCE_URL:=https://sourceware.org/pub/valgrind/
|
||||||
PKG_HASH:=10ce1618bb3e33fad16eb79552b0a3e1211762448a0d7fce11c8a6243b9ac971
|
PKG_HASH:=c811db5add2c5f729944caf47c4e7a65dcaabb9461e472b578765dd7bf6d2d4c
|
||||||
|
|
||||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||||
PKG_LICENSE:=GPL-2.0+
|
PKG_LICENSE:=GPL-2.0+
|
||||||
|
|||||||
@ -48,7 +48,7 @@ This fixes the following error message when compiling with a GCC 10 MIPS BE 32:
|
|||||||
|
|
||||||
--- a/coregrind/m_machine.c
|
--- a/coregrind/m_machine.c
|
||||||
+++ b/coregrind/m_machine.c
|
+++ b/coregrind/m_machine.c
|
||||||
@@ -2106,6 +2106,7 @@ Bool VG_(machine_get_hwcaps)( void )
|
@@ -2109,6 +2109,7 @@ Bool VG_(machine_get_hwcaps)( void )
|
||||||
we are using alternative way to determine FP mode */
|
we are using alternative way to determine FP mode */
|
||||||
ULong result = 0;
|
ULong result = 0;
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ This fixes the following error message when compiling with a GCC 10 MIPS BE 32:
|
|||||||
if (!VG_MINIMAL_SETJMP(env_unsup_insn)) {
|
if (!VG_MINIMAL_SETJMP(env_unsup_insn)) {
|
||||||
__asm__ volatile (
|
__asm__ volatile (
|
||||||
".set push\n\t"
|
".set push\n\t"
|
||||||
@@ -2123,6 +2124,9 @@ Bool VG_(machine_get_hwcaps)( void )
|
@@ -2126,6 +2127,9 @@ Bool VG_(machine_get_hwcaps)( void )
|
||||||
|
|
||||||
fpmode = (result != 0x3FF0000000000000ull);
|
fpmode = (result != 0x3FF0000000000000ull);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,9 +5,9 @@ PKG_RELEASE=1
|
|||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/libubox.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/libubox.git
|
||||||
PKG_MIRROR_HASH:=7b87783f968eeafd7ae79e5bb04e6c32b2aaaf0e6aca5be6e94b5393fc20807f
|
PKG_MIRROR_HASH:=daf411244a7f87c09c383c6fb69636a038c85f351bba93e80cc9aa530301199e
|
||||||
PKG_SOURCE_DATE:=2023-11-30
|
PKG_SOURCE_DATE:=2023-12-04.1
|
||||||
PKG_SOURCE_VERSION:=40acbe34632b8e4e860fe41bb14ab5d7d5c9cfe9
|
PKG_SOURCE_VERSION:=ca3f6d0cdb1e588283c42d039779ceab303ceef2
|
||||||
PKG_ABI_VERSION:=$(call abi_version_str,$(PKG_SOURCE_DATE))
|
PKG_ABI_VERSION:=$(call abi_version_str,$(PKG_SOURCE_DATE))
|
||||||
CMAKE_INSTALL:=1
|
CMAKE_INSTALL:=1
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libxml2
|
PKG_NAME:=libxml2
|
||||||
PKG_VERSION:=2.11.4
|
PKG_VERSION:=2.11.6
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@GNOME/libxml2/$(basename $(PKG_VERSION))
|
PKG_SOURCE_URL:=@GNOME/libxml2/$(basename $(PKG_VERSION))
|
||||||
PKG_HASH:=737e1d7f8ab3f139729ca13a2494fd17bf30ddb4b7a427cf336252cab57f57f7
|
PKG_HASH:=c90eee7506764abbe07bb616b82da452529609815aefef423d66ef080eb0c300
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|||||||
@ -15,7 +15,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|||||||
|
|
||||||
--- a/drivers/gpu/drm/panel/panel-simple.c
|
--- a/drivers/gpu/drm/panel/panel-simple.c
|
||||||
+++ b/drivers/gpu/drm/panel/panel-simple.c
|
+++ b/drivers/gpu/drm/panel/panel-simple.c
|
||||||
@@ -3192,6 +3192,31 @@ static const struct panel_desc qishenglo
|
@@ -3193,6 +3193,31 @@ static const struct panel_desc qishenglo
|
||||||
.connector_type = DRM_MODE_CONNECTOR_DPI,
|
.connector_type = DRM_MODE_CONNECTOR_DPI,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|||||||
static const struct display_timing rocktech_rk070er9427_timing = {
|
static const struct display_timing rocktech_rk070er9427_timing = {
|
||||||
.pixelclock = { 26400000, 33300000, 46800000 },
|
.pixelclock = { 26400000, 33300000, 46800000 },
|
||||||
.hactive = { 800, 800, 800 },
|
.hactive = { 800, 800, 800 },
|
||||||
@@ -4223,6 +4248,9 @@ static const struct of_device_id platfor
|
@@ -4224,6 +4249,9 @@ static const struct of_device_id platfor
|
||||||
.compatible = "qishenglong,gopher2b-lcd",
|
.compatible = "qishenglong,gopher2b-lcd",
|
||||||
.data = &qishenglong_gopher2b_lcd,
|
.data = &qishenglong_gopher2b_lcd,
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@ -46,7 +46,7 @@ Acked-by: Maxime Ripard <maxime@cerno.tech>
|
|||||||
static const struct drm_display_mode giantplus_gpg482739qs5_mode = {
|
static const struct drm_display_mode giantplus_gpg482739qs5_mode = {
|
||||||
.clock = 9000,
|
.clock = 9000,
|
||||||
.hdisplay = 480,
|
.hdisplay = 480,
|
||||||
@@ -4107,6 +4133,9 @@ static const struct of_device_id platfor
|
@@ -4108,6 +4134,9 @@ static const struct of_device_id platfor
|
||||||
.compatible = "friendlyarm,hd702e",
|
.compatible = "friendlyarm,hd702e",
|
||||||
.data = &friendlyarm_hd702e,
|
.data = &friendlyarm_hd702e,
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@ -165,7 +165,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|||||||
static const struct drm_display_mode innolux_at070tn92_mode = {
|
static const struct drm_display_mode innolux_at070tn92_mode = {
|
||||||
.clock = 33333,
|
.clock = 33333,
|
||||||
.hdisplay = 800,
|
.hdisplay = 800,
|
||||||
@@ -4143,6 +4175,9 @@ static const struct of_device_id platfor
|
@@ -4144,6 +4176,9 @@ static const struct of_device_id platfor
|
||||||
.compatible = "innolux,at043tn24",
|
.compatible = "innolux,at043tn24",
|
||||||
.data = &innolux_at043tn24,
|
.data = &innolux_at043tn24,
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@ -554,7 +554,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
|
|||||||
static void xrs700x_mac_link_up(struct dsa_switch *ds, int port,
|
static void xrs700x_mac_link_up(struct dsa_switch *ds, int port,
|
||||||
--- a/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
|
--- a/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
|
||||||
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
|
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
|
||||||
@@ -369,9 +369,8 @@ static int xgbe_set_link_ksettings(struc
|
@@ -374,9 +374,8 @@ static int xgbe_set_link_ksettings(struc
|
||||||
__ETHTOOL_LINK_MODE_MASK_NBITS, cmd->link_modes.advertising,
|
__ETHTOOL_LINK_MODE_MASK_NBITS, cmd->link_modes.advertising,
|
||||||
__ETHTOOL_LINK_MODE_MASK_NBITS, lks->link_modes.supported);
|
__ETHTOOL_LINK_MODE_MASK_NBITS, lks->link_modes.supported);
|
||||||
|
|
||||||
@ -566,7 +566,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
|
|||||||
|
|
||||||
if ((cmd->base.autoneg == AUTONEG_ENABLE) &&
|
if ((cmd->base.autoneg == AUTONEG_ENABLE) &&
|
||||||
bitmap_empty(advertising, __ETHTOOL_LINK_MODE_MASK_NBITS)) {
|
bitmap_empty(advertising, __ETHTOOL_LINK_MODE_MASK_NBITS)) {
|
||||||
@@ -384,8 +383,7 @@ static int xgbe_set_link_ksettings(struc
|
@@ -389,8 +388,7 @@ static int xgbe_set_link_ksettings(struc
|
||||||
pdata->phy.autoneg = cmd->base.autoneg;
|
pdata->phy.autoneg = cmd->base.autoneg;
|
||||||
pdata->phy.speed = speed;
|
pdata->phy.speed = speed;
|
||||||
pdata->phy.duplex = cmd->base.duplex;
|
pdata->phy.duplex = cmd->base.duplex;
|
||||||
|
|||||||
@ -43,7 +43,7 @@ Subject: [PATCH] net/usb/qmi_wwan: add MeigLink modem support
|
|||||||
|
|
||||||
#define QUECTEL_VENDOR_ID 0x2c7c
|
#define QUECTEL_VENDOR_ID 0x2c7c
|
||||||
/* These Quectel products use Quectel's vendor ID */
|
/* These Quectel products use Quectel's vendor ID */
|
||||||
@@ -1144,6 +1149,11 @@ static const struct usb_device_id option
|
@@ -1146,6 +1151,11 @@ static const struct usb_device_id option
|
||||||
{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x0023)}, /* ONYX 3G device */
|
{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x0023)}, /* ONYX 3G device */
|
||||||
{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000), /* SIMCom SIM5218 */
|
{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000), /* SIMCom SIM5218 */
|
||||||
.driver_info = NCTRL(0) | NCTRL(1) | NCTRL(2) | NCTRL(3) | RSVD(4) },
|
.driver_info = NCTRL(0) | NCTRL(1) | NCTRL(2) | NCTRL(3) | RSVD(4) },
|
||||||
@ -55,7 +55,7 @@ Subject: [PATCH] net/usb/qmi_wwan: add MeigLink modem support
|
|||||||
/* Quectel products using Qualcomm vendor ID */
|
/* Quectel products using Qualcomm vendor ID */
|
||||||
{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC15)},
|
{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC15)},
|
||||||
{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC20),
|
{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC20),
|
||||||
@@ -1185,6 +1195,11 @@ static const struct usb_device_id option
|
@@ -1187,6 +1197,11 @@ static const struct usb_device_id option
|
||||||
.driver_info = ZLP },
|
.driver_info = ZLP },
|
||||||
{ USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_BG96),
|
{ USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_BG96),
|
||||||
.driver_info = RSVD(4) },
|
.driver_info = RSVD(4) },
|
||||||
|
|||||||
@ -43,7 +43,7 @@ Subject: [PATCH] net/usb/qmi_wwan: add MeigLink modem support
|
|||||||
|
|
||||||
#define QUECTEL_VENDOR_ID 0x2c7c
|
#define QUECTEL_VENDOR_ID 0x2c7c
|
||||||
/* These Quectel products use Quectel's vendor ID */
|
/* These Quectel products use Quectel's vendor ID */
|
||||||
@@ -1144,6 +1149,11 @@ static const struct usb_device_id option
|
@@ -1146,6 +1151,11 @@ static const struct usb_device_id option
|
||||||
{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x0023)}, /* ONYX 3G device */
|
{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x0023)}, /* ONYX 3G device */
|
||||||
{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000), /* SIMCom SIM5218 */
|
{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000), /* SIMCom SIM5218 */
|
||||||
.driver_info = NCTRL(0) | NCTRL(1) | NCTRL(2) | NCTRL(3) | RSVD(4) },
|
.driver_info = NCTRL(0) | NCTRL(1) | NCTRL(2) | NCTRL(3) | RSVD(4) },
|
||||||
@ -55,7 +55,7 @@ Subject: [PATCH] net/usb/qmi_wwan: add MeigLink modem support
|
|||||||
/* Quectel products using Qualcomm vendor ID */
|
/* Quectel products using Qualcomm vendor ID */
|
||||||
{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC15)},
|
{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC15)},
|
||||||
{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC20),
|
{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC20),
|
||||||
@@ -1185,6 +1195,11 @@ static const struct usb_device_id option
|
@@ -1187,6 +1197,11 @@ static const struct usb_device_id option
|
||||||
.driver_info = ZLP },
|
.driver_info = ZLP },
|
||||||
{ USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_BG96),
|
{ USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_BG96),
|
||||||
.driver_info = RSVD(4) },
|
.driver_info = RSVD(4) },
|
||||||
|
|||||||
@ -31,7 +31,7 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
|
|||||||
help
|
help
|
||||||
--- a/init/main.c
|
--- a/init/main.c
|
||||||
+++ b/init/main.c
|
+++ b/init/main.c
|
||||||
@@ -614,6 +614,29 @@ static inline void setup_nr_cpu_ids(void
|
@@ -618,6 +618,29 @@ static inline void setup_nr_cpu_ids(void
|
||||||
static inline void smp_prepare_cpus(unsigned int maxcpus) { }
|
static inline void smp_prepare_cpus(unsigned int maxcpus) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
|
|||||||
/*
|
/*
|
||||||
* We need to store the untouched command line for future reference.
|
* We need to store the untouched command line for future reference.
|
||||||
* We also need to store the touched command line since the parameter
|
* We also need to store the touched command line since the parameter
|
||||||
@@ -953,6 +976,7 @@ asmlinkage __visible void __init __no_sa
|
@@ -957,6 +980,7 @@ asmlinkage __visible void __init __no_sa
|
||||||
pr_notice("%s", linux_banner);
|
pr_notice("%s", linux_banner);
|
||||||
early_security_init();
|
early_security_init();
|
||||||
setup_arch(&command_line);
|
setup_arch(&command_line);
|
||||||
|
|||||||
238
target/linux/mediatek/dts/mt7986a-acelink-ew-7886cax.dts
Normal file
238
target/linux/mediatek/dts/mt7986a-acelink-ew-7886cax.dts
Normal file
@ -0,0 +1,238 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-only OR MIT
|
||||||
|
|
||||||
|
/dts-v1/;
|
||||||
|
#include <dt-bindings/input/input.h>
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
#include <dt-bindings/leds/common.h>
|
||||||
|
|
||||||
|
#include "mt7986a.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
compatible = "acelink,ew-7886cax", "mediatek,mt7986a";
|
||||||
|
model = "Acelink EW-7886CAX";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
serial0 = &uart0;
|
||||||
|
led-boot = &led_status_blue;
|
||||||
|
led-running = &led_status_green;
|
||||||
|
led-upgrade = &led_status_red;
|
||||||
|
led-failsafe = &led_status_red;
|
||||||
|
};
|
||||||
|
|
||||||
|
chosen {
|
||||||
|
stdout-path = "serial0:115200n8";
|
||||||
|
};
|
||||||
|
|
||||||
|
memory@40000000 {
|
||||||
|
reg = <0 0x40000000 0 0x20000000>;
|
||||||
|
device_type = "memory";
|
||||||
|
};
|
||||||
|
|
||||||
|
keys {
|
||||||
|
compatible = "gpio-keys";
|
||||||
|
|
||||||
|
key-restart {
|
||||||
|
label = "Reset";
|
||||||
|
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
|
||||||
|
linux,code = <KEY_RESTART>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
|
led_status_red: led-0 {
|
||||||
|
function = LED_FUNCTION_STATUS;
|
||||||
|
color = <LED_COLOR_ID_RED>;
|
||||||
|
gpios = <&pio 18 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led_status_green: led-1 {
|
||||||
|
function = LED_FUNCTION_STATUS;
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
|
gpios = <&pio 19 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led_status_blue: led-2 {
|
||||||
|
function = LED_FUNCTION_STATUS;
|
||||||
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
|
gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&crypto {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
ð {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
mac@1 {
|
||||||
|
compatible = "mediatek,eth-mac";
|
||||||
|
reg = <1>;
|
||||||
|
phy-mode = "2500base-x";
|
||||||
|
phy-handle = <&phy6>;
|
||||||
|
nvmem-cells = <&macaddr>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
};
|
||||||
|
|
||||||
|
mdio-bus {
|
||||||
|
reset-gpios = <&pio 6 GPIO_ACTIVE_LOW>;
|
||||||
|
reset-delay-us = <50000>;
|
||||||
|
reset-post-delay-us = <20000>;
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
/* Maxlinear GPY211C */
|
||||||
|
phy6: phy@6 {
|
||||||
|
compatible = "ethernet-phy-ieee802.3-c45";
|
||||||
|
reg = <6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pcie_phy {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&pio {
|
||||||
|
spi_flash_pins: spi-flash-pins-33-to-38 {
|
||||||
|
mux {
|
||||||
|
function = "spi";
|
||||||
|
groups = "spi0", "spi0_wp_hold";
|
||||||
|
};
|
||||||
|
conf-pu {
|
||||||
|
pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
|
||||||
|
drive-strength = <8>;
|
||||||
|
mediatek,pull-up-adv = <0>; /* bias-disable */
|
||||||
|
};
|
||||||
|
conf-pd {
|
||||||
|
pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
|
||||||
|
drive-strength = <8>;
|
||||||
|
mediatek,pull-down-adv = <0>; /* bias-disable */
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
wf_2g_5g_pins: wf_2g_5g-pins {
|
||||||
|
mux {
|
||||||
|
function = "wifi";
|
||||||
|
groups = "wf_2g", "wf_5g";
|
||||||
|
};
|
||||||
|
conf {
|
||||||
|
pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
|
||||||
|
"WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
|
||||||
|
"WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
|
||||||
|
"WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
|
||||||
|
"WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
|
||||||
|
"WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
|
||||||
|
"WF1_TOP_CLK", "WF1_TOP_DATA";
|
||||||
|
drive-strength = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
wf_dbdc_pins: wf-dbdc-pins {
|
||||||
|
mux {
|
||||||
|
function = "wifi";
|
||||||
|
groups = "wf_dbdc";
|
||||||
|
};
|
||||||
|
conf {
|
||||||
|
pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
|
||||||
|
"WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
|
||||||
|
"WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
|
||||||
|
"WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
|
||||||
|
"WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
|
||||||
|
"WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
|
||||||
|
"WF1_TOP_CLK", "WF1_TOP_DATA";
|
||||||
|
drive-strength = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&spi0 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&spi_flash_pins>;
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
flash@0 {
|
||||||
|
compatible = "spi-nand";
|
||||||
|
reg = <0>;
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
spi-max-frequency = <52000000>;
|
||||||
|
spi-rx-bus-width = <4>;
|
||||||
|
spi-tx-bus-width = <4>;
|
||||||
|
mediatek,nmbm;
|
||||||
|
mediatek,bmt-max-ratio = <1>;
|
||||||
|
mediatek,bmt-max-reserved-blocks = <64>;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
partition@0 {
|
||||||
|
reg = <0x0 0x100000>;
|
||||||
|
label = "bootloader";
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@100000 {
|
||||||
|
reg = <0x100000 0x80000>;
|
||||||
|
label = "u-boot-env";
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@180000 {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
reg = <0x180000 0x200000>;
|
||||||
|
label = "factory";
|
||||||
|
read-only;
|
||||||
|
|
||||||
|
nvmem-layout {
|
||||||
|
compatible = "fixed-layout";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
eeprom: eeprom@0 {
|
||||||
|
reg = <0x0 0x1000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
macaddr: macaddr@4 {
|
||||||
|
reg = <0x4 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@380000 {
|
||||||
|
reg = <0x380000 0x200000>;
|
||||||
|
label = "fip";
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@580000 {
|
||||||
|
reg = <0x580000 0x4000000>;
|
||||||
|
label = "ubi";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&trng {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&watchdog {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&wifi {
|
||||||
|
pinctrl-names = "default", "dbdc";
|
||||||
|
pinctrl-0 = <&wf_2g_5g_pins>;
|
||||||
|
pinctrl-1 = <&wf_dbdc_pins>;
|
||||||
|
nvmem-cells = <&eeprom>;
|
||||||
|
nvmem-cell-names = "eeprom";
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
@ -8,6 +8,9 @@ mediatek_setup_interfaces()
|
|||||||
local board="$1"
|
local board="$1"
|
||||||
|
|
||||||
case $board in
|
case $board in
|
||||||
|
acelink,ew-7886cax)
|
||||||
|
ucidef_set_interface_lan "eth0" "dhcp"
|
||||||
|
;;
|
||||||
abt,asr3000-ubootmod|\
|
abt,asr3000-ubootmod|\
|
||||||
cmcc,rax3000m|\
|
cmcc,rax3000m|\
|
||||||
cmcc,rax3000m-emmc-ubootmod|\
|
cmcc,rax3000m-emmc-ubootmod|\
|
||||||
|
|||||||
@ -105,6 +105,23 @@ define Build/cetron-header
|
|||||||
rm $@.tmp
|
rm $@.tmp
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Device/acelink_ew-7886cax
|
||||||
|
DEVICE_VENDOR := Acelink
|
||||||
|
DEVICE_MODEL := EW-7886CAX
|
||||||
|
DEVICE_DTS := mt7986a-acelink-ew-7886cax
|
||||||
|
DEVICE_DTS_DIR := ../dts
|
||||||
|
DEVICE_PACKAGES := kmod-mt7986-firmware mt7986-wo-firmware
|
||||||
|
UBINIZE_OPTS := -E 5
|
||||||
|
BLOCKSIZE := 128k
|
||||||
|
PAGESIZE := 2048
|
||||||
|
IMAGE_SIZE := 65536k
|
||||||
|
KERNEL_IN_UBI := 1
|
||||||
|
IMAGES += factory.bin
|
||||||
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
||||||
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += acelink_ew-7886cax
|
||||||
|
|
||||||
define Device/abt_asr3000-ubootmod
|
define Device/abt_asr3000-ubootmod
|
||||||
DEVICE_VENDOR := ABT
|
DEVICE_VENDOR := ABT
|
||||||
DEVICE_MODEL := ASR3000 (custom U-Boot layout)
|
DEVICE_MODEL := ASR3000 (custom U-Boot layout)
|
||||||
@ -435,14 +452,10 @@ define Device/glinet_gl-mt2500
|
|||||||
DEVICE_DTS := mt7981b-glinet-gl-mt2500
|
DEVICE_DTS := mt7981b-glinet-gl-mt2500
|
||||||
DEVICE_DTS_DIR := ../dts
|
DEVICE_DTS_DIR := ../dts
|
||||||
DEVICE_DTS_LOADADDR := 0x47000000
|
DEVICE_DTS_LOADADDR := 0x47000000
|
||||||
DEVICE_PACKAGES := kmod-usb3 automount
|
DEVICE_PACKAGES := -kmod-mt7915e -wpad-openssl f2fsck mkf2fs kmod-usb3 automount
|
||||||
SUPPORTED_DEVICES += glinet,mt2500-emmc
|
SUPPORTED_DEVICES += glinet,mt2500-emmc
|
||||||
IMAGES := sysupgrade.bin
|
IMAGES := sysupgrade.bin
|
||||||
KERNEL := kernel-bin | lzma | \
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-gl-metadata
|
||||||
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
|
|
||||||
KERNEL_INITRAMFS := kernel-bin | lzma | \
|
|
||||||
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
|
|
||||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += glinet_gl-mt2500
|
TARGET_DEVICES += glinet_gl-mt2500
|
||||||
|
|
||||||
|
|||||||
@ -9,6 +9,9 @@
|
|||||||
model = "Extreme Networks WS-AP3825i";
|
model = "Extreme Networks WS-AP3825i";
|
||||||
compatible = "extreme-networks,ws-ap3825i";
|
compatible = "extreme-networks,ws-ap3825i";
|
||||||
|
|
||||||
|
#address-cells = <2>;
|
||||||
|
#size-cells = <2>;
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
ethernet0 = &enet0;
|
ethernet0 = &enet0;
|
||||||
ethernet1 = &enet2;
|
ethernet1 = &enet2;
|
||||||
@ -301,8 +304,18 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
memory {
|
memory {
|
||||||
/* Reserve upper MB for second-core-bootpage */
|
reg = <0x0 0x0 0x0 0x10000000>;
|
||||||
reg = <0x0 0x0 0x0 0xff00000>;
|
};
|
||||||
|
|
||||||
|
reserved-memory {
|
||||||
|
#address-cells = <2>;
|
||||||
|
#size-cells = <2>;
|
||||||
|
ranges;
|
||||||
|
|
||||||
|
cpu1-bootpage@e000000 {
|
||||||
|
/* Reserve upper 1 MB for second-core-bootpage */
|
||||||
|
reg = <0x0 0xff00000 0x0 0x100000>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
soc@ffe00000 {
|
soc@ffe00000 {
|
||||||
|
|||||||
@ -0,0 +1,41 @@
|
|||||||
|
From 5f856ccc34df25060d36a5a81b7b45b574d86e35 Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Bauer <mail@david-bauer.net>
|
||||||
|
Date: Sun, 3 Dec 2023 20:09:24 +0100
|
||||||
|
Subject: [PATCH] arch: powerpc: simpleboot: prevent overwrite of CPU1
|
||||||
|
spin-table
|
||||||
|
|
||||||
|
Don't overwrite the spin-table of additional CPU cores with loader-heap.
|
||||||
|
|
||||||
|
U-Boot places the spin-table for CPU1 on P1020 SoCs in the top 1MB of
|
||||||
|
system-memory. Instead of parsing reserved-memory (which would be
|
||||||
|
considerable more work), reduce the available system-memory for the
|
||||||
|
loader by 1MB.
|
||||||
|
|
||||||
|
This prevents the loader from overwriting the spin-table of
|
||||||
|
additional CPU cores on these platforms.
|
||||||
|
|
||||||
|
Linux itself needs to be made aware by this using reserved-memory
|
||||||
|
definitions.
|
||||||
|
|
||||||
|
This patch is required for using CPU1 on the Extreme Networks
|
||||||
|
WS-AP3825i.
|
||||||
|
|
||||||
|
Signed-off-by: David Bauer <mail@david-bauer.net>
|
||||||
|
---
|
||||||
|
arch/powerpc/boot/simpleboot.c | 5 +++++
|
||||||
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
|
--- a/arch/powerpc/boot/simpleboot.c
|
||||||
|
+++ b/arch/powerpc/boot/simpleboot.c
|
||||||
|
@@ -65,6 +65,11 @@ void platform_init(unsigned long r3, uns
|
||||||
|
if (sizeof(void *) == 4 && memsize64 >= 0x100000000ULL)
|
||||||
|
memsize64 = 0xffffffff;
|
||||||
|
|
||||||
|
+ /* Reserve upper 1 MB of memory for CPU1 spin-table */
|
||||||
|
+ if (memsize64 > 0x100000) {
|
||||||
|
+ memsize64 = memsize64 - 0x100000;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
/* finally, setup the timebase */
|
||||||
|
node = fdt_node_offset_by_prop_value(_dtb_start, -1, "device_type",
|
||||||
|
"cpu", sizeof("cpu"));
|
||||||
@ -258,7 +258,7 @@ Signed-off-by: Michael Gray <michael.gray@lantisproject.com>
|
|||||||
static int kernel_init(void *);
|
static int kernel_init(void *);
|
||||||
|
|
||||||
extern void init_IRQ(void);
|
extern void init_IRQ(void);
|
||||||
@@ -988,6 +992,18 @@ asmlinkage __visible void __init __no_sa
|
@@ -992,6 +996,18 @@ asmlinkage __visible void __init __no_sa
|
||||||
page_alloc_init();
|
page_alloc_init();
|
||||||
|
|
||||||
pr_notice("Kernel command line: %s\n", saved_command_line);
|
pr_notice("Kernel command line: %s\n", saved_command_line);
|
||||||
|
|||||||
@ -239,7 +239,7 @@ Signed-off-by: Adrian Panella <ianchi74@outlook.com>
|
|||||||
static int kernel_init(void *);
|
static int kernel_init(void *);
|
||||||
|
|
||||||
extern void init_IRQ(void);
|
extern void init_IRQ(void);
|
||||||
@@ -988,6 +992,18 @@ asmlinkage __visible void __init __no_sa
|
@@ -992,6 +996,18 @@ asmlinkage __visible void __init __no_sa
|
||||||
page_alloc_init();
|
page_alloc_init();
|
||||||
|
|
||||||
pr_notice("Kernel command line: %s\n", saved_command_line);
|
pr_notice("Kernel command line: %s\n", saved_command_line);
|
||||||
|
|||||||
@ -3,12 +3,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=mold
|
PKG_NAME:=mold
|
||||||
PKG_VERSION:=2.3.1
|
PKG_VERSION:=2.3.2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL_FILE:=v$(PKG_VERSION).tar.gz
|
PKG_SOURCE_URL_FILE:=v$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/rui314/mold/archive/refs/tags
|
PKG_SOURCE_URL:=https://github.com/rui314/mold/archive/refs/tags
|
||||||
PKG_HASH:=380f540114408c37bcdb7f3bda91a056448a93124ca6992a373ae2bda35e9af7
|
PKG_HASH:=db172c0e97606565a81e37995bf5c911606d3f3b9f3829e92cd26985c9b0ed3b
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
include $(INCLUDE_DIR)/cmake.mk
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
|
|||||||
@ -7,12 +7,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=xz
|
PKG_NAME:=xz
|
||||||
PKG_VERSION:=5.4.4
|
PKG_VERSION:=5.4.5
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=@SF/lzmautils \
|
PKG_SOURCE_URL:=@SF/lzmautils \
|
||||||
http://tukaani.org/xz
|
http://tukaani.org/xz
|
||||||
PKG_HASH:=0b6fcde1ac38e90433a2556f500c065950b9bcd2d602006efc334782bdfe6296
|
PKG_HASH:=8ccf5fff868c006f29522e386fb4c6a1b66463fbca65a4cfc3c4bd596e895e79
|
||||||
PKG_CPE_ID:=cpe:/a:tukaani:xz
|
PKG_CPE_ID:=cpe:/a:tukaani:xz
|
||||||
|
|
||||||
HOST_BUILD_PARALLEL:=1
|
HOST_BUILD_PARALLEL:=1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user