Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
commit
772c002e9e
@ -44,6 +44,13 @@ etisalat,s3|\
|
|||||||
rostelecom,rt-sf-1)
|
rostelecom,rt-sf-1)
|
||||||
ubootenv_add_uci_config "/dev/mtd0" "0x80000" "0x1000" "0x20000"
|
ubootenv_add_uci_config "/dev/mtd0" "0x80000" "0x1000" "0x20000"
|
||||||
;;
|
;;
|
||||||
|
beeline,smartbox-pro|\
|
||||||
|
tplink,ec330-g5u-v1|\
|
||||||
|
wifire,s1500-nbn)
|
||||||
|
idx="$(find_mtd_index u-boot-env)"
|
||||||
|
[ -n "$idx" ] && \
|
||||||
|
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x1000" "0x20000"
|
||||||
|
;;
|
||||||
buffalo,wsr-1166dhp|\
|
buffalo,wsr-1166dhp|\
|
||||||
buffalo,wsr-600dhp|\
|
buffalo,wsr-600dhp|\
|
||||||
kroks,kndrt31r16|\
|
kroks,kndrt31r16|\
|
||||||
@ -97,11 +104,6 @@ snr,cpe-w4n-mt)
|
|||||||
[ -n "$idx" ] && \
|
[ -n "$idx" ] && \
|
||||||
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x1000" "0x1000"
|
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x1000" "0x1000"
|
||||||
;;
|
;;
|
||||||
tplink,ec330-g5u-v1)
|
|
||||||
idx="$(find_mtd_index u-boot-env)"
|
|
||||||
[ -n "$idx" ] && \
|
|
||||||
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x1000" "0x20000"
|
|
||||||
;;
|
|
||||||
xiaomi,mi-router-3g-v2|\
|
xiaomi,mi-router-3g-v2|\
|
||||||
xiaomi,mi-router-4a-gigabit|\
|
xiaomi,mi-router-4a-gigabit|\
|
||||||
xiaomi,miwifi-3c)
|
xiaomi,miwifi-3c)
|
||||||
|
|||||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=linux-firmware
|
PKG_NAME:=linux-firmware
|
||||||
PKG_VERSION:=20230515
|
PKG_VERSION:=20230515
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_URL:=@KERNEL/linux/kernel/firmware
|
PKG_SOURCE_URL:=@KERNEL/linux/kernel/firmware
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
|
|||||||
@ -3,6 +3,8 @@ define Package/ibt-firmware/install
|
|||||||
$(INSTALL_DIR) $(1)/lib/firmware/intel
|
$(INSTALL_DIR) $(1)/lib/firmware/intel
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(PKG_BUILD_DIR)/intel/*.bseq \
|
$(PKG_BUILD_DIR)/intel/*.bseq \
|
||||||
|
$(PKG_BUILD_DIR)/intel/ibt*.sfi \
|
||||||
|
$(PKG_BUILD_DIR)/intel/ibt*.ddc \
|
||||||
$(1)/lib/firmware/intel
|
$(1)/lib/firmware/intel
|
||||||
endef
|
endef
|
||||||
$(eval $(call BuildPackage,ibt-firmware))
|
$(eval $(call BuildPackage,ibt-firmware))
|
||||||
|
|||||||
@ -12,9 +12,9 @@ PKG_RELEASE:=1
|
|||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/libnl-tiny.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/libnl-tiny.git
|
||||||
PKG_SOURCE_DATE:=2023-04-02
|
PKG_SOURCE_DATE:=2023-07-01
|
||||||
PKG_SOURCE_VERSION:=11b7c5f0745af2637b48131287f28689bb80ed3e
|
PKG_SOURCE_VERSION:=d433990c00e804593f253cc709b8fe901492b530
|
||||||
PKG_MIRROR_HASH:=9bcae026ad1fde81865ea113d24bbc70c2bd1945655d51cd00181c41b70570d2
|
PKG_MIRROR_HASH:=fffb2782c7ed2ebabc7d57e5513f52ac53d1828014bc9a8ea131f50eab093086
|
||||||
CMAKE_INSTALL:=1
|
CMAKE_INSTALL:=1
|
||||||
|
|
||||||
PKG_LICENSE:=LGPL-2.1
|
PKG_LICENSE:=LGPL-2.1
|
||||||
|
|||||||
@ -59,6 +59,14 @@
|
|||||||
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
watchdog {
|
||||||
|
compatible = "linux,wdt-gpio";
|
||||||
|
gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
|
||||||
|
hw_algo = "toggle";
|
||||||
|
hw_margin_ms = <30000>;
|
||||||
|
always-running;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&wdt {
|
&wdt {
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
# CONFIG_CC_(CAN|HAS|IS|VERSION)_.* is not set
|
# CONFIG_CC_(CAN|HAS|IS|VERSION)_.* is not set
|
||||||
CONFIG_CLANG_VERSION=.*
|
CONFIG_CLANG_VERSION=.*
|
||||||
# CONFIG_GCC_VERSION is not set
|
# CONFIG_GCC_VERSION is not set
|
||||||
|
CONFIG_FRAME_WARN=.*
|
||||||
# CONFIG_HAVE_(?!(ARCH_TIMER|TCM|SMP)).* is not set
|
# CONFIG_HAVE_(?!(ARCH_TIMER|TCM|SMP)).* is not set
|
||||||
# CONFIG_INLINE_.* is not set
|
# CONFIG_INLINE_.* is not set
|
||||||
# CONFIG_LD_.* is not set
|
# CONFIG_LD_.* is not set
|
||||||
|
|||||||
@ -186,6 +186,11 @@
|
|||||||
spi-tx-buswidth = <4>;
|
spi-tx-buswidth = <4>;
|
||||||
spi-rx-buswidth = <4>;
|
spi-rx-buswidth = <4>;
|
||||||
|
|
||||||
|
mediatek,nmbm;
|
||||||
|
mediatek,bmt-max-ratio = <1>;
|
||||||
|
mediatek,bmt-max-reserved-blocks = <256>;
|
||||||
|
mediatek,bmt-remap-range = <0x0 0x580000>;
|
||||||
|
|
||||||
partitions: partitions {
|
partitions: partitions {
|
||||||
#address-cells = <0x1>;
|
#address-cells = <0x1>;
|
||||||
#size-cells = <0x1>;
|
#size-cells = <0x1>;
|
||||||
|
|||||||
118
target/linux/ramips/dts/mt7621_beeline_smartbox-pro.dts
Normal file
118
target/linux/ramips/dts/mt7621_beeline_smartbox-pro.dts
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include "mt7621_sercomm_s1500.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
compatible = "beeline,smartbox-pro", "mediatek,mt7621-soc";
|
||||||
|
model = "Beeline SmartBox PRO";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
label-mac-device = &gmac0;
|
||||||
|
};
|
||||||
|
|
||||||
|
keys {
|
||||||
|
switch_bt {
|
||||||
|
label = "ROUT<->REP Switch_bt";
|
||||||
|
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
||||||
|
linux,input-type = <EV_SW>;
|
||||||
|
linux,code = <KEY_RFKILL>;
|
||||||
|
debounce-interval = <60>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ubi-concat {
|
||||||
|
compatible = "mtd-concat";
|
||||||
|
devices = <&ubiconcat0 &ubiconcat1 &ubiconcat2 &ubiconcat3 \
|
||||||
|
&ubiconcat4 &ubiconcat5 &ubiconcat6>;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
partition@0 {
|
||||||
|
label = "ubi";
|
||||||
|
reg = <0x0 0xd2e0000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&led_wps {
|
||||||
|
label = "blue:wps";
|
||||||
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&partitions {
|
||||||
|
partition@0_all {
|
||||||
|
label = "ALL";
|
||||||
|
reg = <0x0 0xff80000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@200000 {
|
||||||
|
label = "sys_data";
|
||||||
|
reg = <0x200000 0x1400000>;
|
||||||
|
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
ubiconcat5: partition@0 {
|
||||||
|
label = "sys_data_1";
|
||||||
|
reg = <0x0 0x600000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Sercomm U-Boot saves the environment at 0x800000 from
|
||||||
|
* the start of the NAND, destroying the "sys_data"
|
||||||
|
* partition. To prevent this, we split "sys_data" into
|
||||||
|
* two parts with "u-boot-env" partition between them.
|
||||||
|
*/
|
||||||
|
partition@600000 {
|
||||||
|
label = "u-boot-env";
|
||||||
|
reg = <0x600000 0x20000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ubiconcat6: partition@620000 {
|
||||||
|
label = "sys_data_2";
|
||||||
|
reg = <0x620000 0xde0000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ubiconcat0: partition@1f00000 {
|
||||||
|
label = "RootFS_1";
|
||||||
|
reg = <0x1f00000 0x1e00000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@3d00000 {
|
||||||
|
label = "RootFS_2";
|
||||||
|
reg = <0x3d00000 0x1e00000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
ubiconcat1: partition@5b00000 {
|
||||||
|
label = "JVM/OSGI1";
|
||||||
|
reg = <0x5b00000 0x3200000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ubiconcat2: partition@8d00000 {
|
||||||
|
label = "JVM/OSGI2";
|
||||||
|
reg = <0x8d00000 0x3200000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ubiconcat3: partition@bf00000 {
|
||||||
|
label = "OSGI data";
|
||||||
|
reg = <0xbf00000 0x3c00000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ubiconcat4: partition@fb00000 {
|
||||||
|
label = "Ftool";
|
||||||
|
reg = <0xfb00000 0x100000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 4 MiB Reserved for the Bad Blocka
|
||||||
|
* 0x10000000-0xfc00000=0x400000
|
||||||
|
*/
|
||||||
|
};
|
||||||
281
target/linux/ramips/dts/mt7621_sercomm_s1500.dtsi
Normal file
281
target/linux/ramips/dts/mt7621_sercomm_s1500.dtsi
Normal file
@ -0,0 +1,281 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include "mt7621.dtsi"
|
||||||
|
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
#include <dt-bindings/input/input.h>
|
||||||
|
#include <dt-bindings/leds/common.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
aliases {
|
||||||
|
led-boot = &led_status;
|
||||||
|
led-running = &led_status;
|
||||||
|
led-upgrade = &led_wps;
|
||||||
|
led-failsafe = &led_wps;
|
||||||
|
};
|
||||||
|
|
||||||
|
keys {
|
||||||
|
compatible = "gpio-keys";
|
||||||
|
|
||||||
|
reset {
|
||||||
|
label = "reset";
|
||||||
|
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
||||||
|
linux,code = <KEY_RESTART>;
|
||||||
|
};
|
||||||
|
|
||||||
|
wps {
|
||||||
|
label = "wps";
|
||||||
|
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||||
|
linux,code = <KEY_WPS_BUTTON>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
|
led-0 {
|
||||||
|
label = "amber:lan4";
|
||||||
|
color = <LED_COLOR_ID_AMBER>;
|
||||||
|
function = LED_FUNCTION_LAN;
|
||||||
|
function-enumerator = <0>;
|
||||||
|
linux,default-trigger = "mt7530-0:00:1Gbps";
|
||||||
|
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led-1 {
|
||||||
|
label = "green:lan4";
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
|
function = LED_FUNCTION_LAN;
|
||||||
|
function-enumerator = <1>;
|
||||||
|
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led-2 {
|
||||||
|
label = "amber:lan3";
|
||||||
|
color = <LED_COLOR_ID_AMBER>;
|
||||||
|
function = LED_FUNCTION_LAN;
|
||||||
|
function-enumerator = <2>;
|
||||||
|
linux,default-trigger = "mt7530-0:01:1Gbps";
|
||||||
|
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led-3 {
|
||||||
|
label = "green:lan3";
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
|
function = LED_FUNCTION_LAN;
|
||||||
|
function-enumerator = <3>;
|
||||||
|
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led-4 {
|
||||||
|
label = "amber:lan2";
|
||||||
|
color = <LED_COLOR_ID_AMBER>;
|
||||||
|
function = LED_FUNCTION_LAN;
|
||||||
|
function-enumerator = <4>;
|
||||||
|
linux,default-trigger = "mt7530-0:02:1Gbps";
|
||||||
|
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led-5 {
|
||||||
|
label = "amber:lan1";
|
||||||
|
color = <LED_COLOR_ID_AMBER>;
|
||||||
|
function = LED_FUNCTION_LAN;
|
||||||
|
function-enumerator = <5>;
|
||||||
|
linux,default-trigger = "mt7530-0:03:1Gbps";
|
||||||
|
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led-6 {
|
||||||
|
label = "green:lan1";
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
|
function = LED_FUNCTION_LAN;
|
||||||
|
function-enumerator = <6>;
|
||||||
|
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led-7 {
|
||||||
|
label = "amber:wan";
|
||||||
|
color = <LED_COLOR_ID_AMBER>;
|
||||||
|
function = LED_FUNCTION_WAN;
|
||||||
|
function-enumerator = <0>;
|
||||||
|
linux,default-trigger = "mt7530-0:04:1Gbps";
|
||||||
|
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led-8 {
|
||||||
|
label = "green:wan";
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
|
function = LED_FUNCTION_WAN;
|
||||||
|
function-enumerator = <1>;
|
||||||
|
gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led-9 {
|
||||||
|
label = "green:lan2";
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
|
function = LED_FUNCTION_LAN;
|
||||||
|
function-enumerator = <7>;
|
||||||
|
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led-10 {
|
||||||
|
label = "white:wlan2g";
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
|
function = LED_FUNCTION_WLAN;
|
||||||
|
function-enumerator = <0>;
|
||||||
|
linux,default-trigger = "phy1radio";
|
||||||
|
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led_wps: led-11 {
|
||||||
|
function = LED_FUNCTION_WPS;
|
||||||
|
function-enumerator = <0>;
|
||||||
|
gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
|
||||||
|
panic-indicator;
|
||||||
|
};
|
||||||
|
|
||||||
|
led_status: led-12 {
|
||||||
|
label = "white:status";
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
|
function = LED_FUNCTION_STATUS;
|
||||||
|
function-enumerator = <0>;
|
||||||
|
gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led-13 {
|
||||||
|
label = "white:wlan5g";
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
|
function = LED_FUNCTION_WLAN;
|
||||||
|
function-enumerator = <1>;
|
||||||
|
linux,default-trigger = "phy0radio";
|
||||||
|
gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ðernet {
|
||||||
|
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&gmac0 {
|
||||||
|
nvmem-cells = <&macaddr_factory_1000>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
};
|
||||||
|
|
||||||
|
&nand {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
partitions: partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
partition@0 {
|
||||||
|
label = "u-boot";
|
||||||
|
reg = <0x0 0x100000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
factory: partition@100000 {
|
||||||
|
label = "Factory";
|
||||||
|
reg = <0x100000 0x100000>;
|
||||||
|
read-only;
|
||||||
|
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_factory_1000: macaddr@1000 {
|
||||||
|
reg = <0x1000 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@1600000 {
|
||||||
|
label = "boot_flag";
|
||||||
|
reg = <0x1600000 0x100000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@1700000 {
|
||||||
|
label = "kernel";
|
||||||
|
reg = <0x1700000 0x400000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@1b00000 {
|
||||||
|
label = "Kernel_2";
|
||||||
|
reg = <0x1b00000 0x400000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pcie {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
reset-gpios = <&gpio 8 GPIO_ACTIVE_LOW>,
|
||||||
|
<&gpio 19 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&pcie0 {
|
||||||
|
wifi@0,0 {
|
||||||
|
compatible = "mediatek,mt76";
|
||||||
|
reg = <0x0000 0 0 0 0>;
|
||||||
|
ieee80211-freq-limit = <5000000 6000000>;
|
||||||
|
mediatek,mtd-eeprom = <&factory 0x8000>;
|
||||||
|
|
||||||
|
nvmem-cells = <&macaddr_factory_1000>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
mac-address-increment = <2>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pcie1 {
|
||||||
|
wlan_2g: wifi@0,0 {
|
||||||
|
compatible = "mediatek,mt76";
|
||||||
|
reg = <0x0000 0 0 0 0>;
|
||||||
|
ieee80211-freq-limit = <2400000 2500000>;
|
||||||
|
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||||
|
|
||||||
|
nvmem-cells = <&macaddr_factory_1000>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&state_default {
|
||||||
|
gpio {
|
||||||
|
groups = "wdt", "uart3", "jtag", "uart2", "i2c", "rgmii2";
|
||||||
|
function = "gpio";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&switch0 {
|
||||||
|
ports {
|
||||||
|
port@0 {
|
||||||
|
status = "okay";
|
||||||
|
label = "lan4";
|
||||||
|
};
|
||||||
|
|
||||||
|
port@1 {
|
||||||
|
status = "okay";
|
||||||
|
label = "lan3";
|
||||||
|
};
|
||||||
|
|
||||||
|
port@2 {
|
||||||
|
status = "okay";
|
||||||
|
label = "lan2";
|
||||||
|
};
|
||||||
|
|
||||||
|
port@3 {
|
||||||
|
status = "okay";
|
||||||
|
label = "lan1";
|
||||||
|
};
|
||||||
|
|
||||||
|
wan: port@4 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
|
||||||
|
nvmem-cells = <&macaddr_factory_1000>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
mac-address-increment = <1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
81
target/linux/ramips/dts/mt7621_wifire_s1500-nbn.dts
Normal file
81
target/linux/ramips/dts/mt7621_wifire_s1500-nbn.dts
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include "mt7621_sercomm_s1500.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
compatible = "wifire,s1500-nbn", "mediatek,mt7621-soc";
|
||||||
|
model = "WiFire S1500.NBN";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
label-mac-device = &wan;
|
||||||
|
};
|
||||||
|
|
||||||
|
ubi-concat {
|
||||||
|
compatible = "mtd-concat";
|
||||||
|
devices = <&ubiconcat0 &ubiconcat1 &ubiconcat2 &ubiconcat3>;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
partition@0 {
|
||||||
|
label = "ubi";
|
||||||
|
reg = <0x0 0x4680000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&led_wps {
|
||||||
|
label = "white:wps";
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&partitions {
|
||||||
|
partition@0_all {
|
||||||
|
label = "ALL";
|
||||||
|
reg = <0x0 0x7f80000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@80000 {
|
||||||
|
label = "u-boot-env";
|
||||||
|
reg = <0x80000 0x20000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ubiconcat1: partition@200000 {
|
||||||
|
label = "sys_data";
|
||||||
|
reg = <0x200000 0x1400000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ubiconcat0: partition@1f00000 {
|
||||||
|
label = "RootFS_1";
|
||||||
|
reg = <0x1f00000 0x2e00000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@4d00000 {
|
||||||
|
label = "RootFS_2";
|
||||||
|
reg = <0x4d00000 0x2e00000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
ubiconcat2: partition@7b00000 {
|
||||||
|
label = "Ftool";
|
||||||
|
reg = <0x7b00000 0x100000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ubiconcat3: partition@7c00000 {
|
||||||
|
label = "BCT";
|
||||||
|
reg = <0x7c00000 0x380000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 512 KiB reserved for the Bad Blocks
|
||||||
|
* 0x8000000-0x7f80000=0x80000
|
||||||
|
*/
|
||||||
|
};
|
||||||
|
|
||||||
|
&wlan_2g {
|
||||||
|
mac-address-increment = <1>;
|
||||||
|
};
|
||||||
@ -1,6 +1,12 @@
|
|||||||
DEVICE_VARS += SERCOMM_KERNEL_OFFSET SERCOMM_ROOTFS_OFFSET
|
DEVICE_VARS += SERCOMM_KERNEL_OFFSET SERCOMM_ROOTFS_OFFSET
|
||||||
DEVICE_VARS += SERCOMM_KERNEL2_OFFSET SERCOMM_ROOTFS2_OFFSET
|
DEVICE_VARS += SERCOMM_KERNEL2_OFFSET SERCOMM_ROOTFS2_OFFSET
|
||||||
|
|
||||||
|
define Build/sercomm-append-tail
|
||||||
|
printf 16 | dd seek=$$((0x90)) of=$@ bs=1 conv=notrunc 2>/dev/null
|
||||||
|
printf 11223344556677889900112233445566 | \
|
||||||
|
sed 's/../\\x&/g' | xargs -d . printf >> $@
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/sercomm-crypto
|
define Build/sercomm-crypto
|
||||||
$(TOPDIR)/scripts/sercomm-crypto.py \
|
$(TOPDIR)/scripts/sercomm-crypto.py \
|
||||||
--input-file $@ \
|
--input-file $@ \
|
||||||
@ -22,18 +28,20 @@ define Build/sercomm-factory-cqr
|
|||||||
--hw-version $(SERCOMM_HWVER) \
|
--hw-version $(SERCOMM_HWVER) \
|
||||||
--hw-id $(SERCOMM_HWID) \
|
--hw-id $(SERCOMM_HWID) \
|
||||||
--sw-version $(SERCOMM_SWVER) \
|
--sw-version $(SERCOMM_SWVER) \
|
||||||
--pid-file $@.fhdr
|
--pid-file $@.fhdr \
|
||||||
|
--extra-padding-size 0x190
|
||||||
printf $$(stat -c%s $(IMAGE_KERNEL)) | \
|
printf $$(stat -c%s $(IMAGE_KERNEL)) | \
|
||||||
dd seek=$$((0x70)) of=$@.fhdr bs=1 conv=notrunc 2>/dev/null
|
dd seek=$$((0x70)) of=$@.fhdr bs=1 conv=notrunc 2>/dev/null
|
||||||
printf $$(($$(stat -c%s $@)-$$(stat -c%s $(IMAGE_KERNEL))-$$((0x200)))) | \
|
printf $$(($$(stat -c%s $@)-$$(stat -c%s $(IMAGE_KERNEL))-$$((0x200)))) | \
|
||||||
dd seek=$$((0x80)) of=$@.fhdr bs=1 conv=notrunc 2>/dev/null
|
dd seek=$$((0x80)) of=$@.fhdr bs=1 conv=notrunc 2>/dev/null
|
||||||
dd bs=$$((0x200)) skip=1 if=$@ conv=notrunc 2>/dev/null | \
|
|
||||||
$(MKHASH) md5 | awk '{print $$1}' | tr -d '\n' | \
|
|
||||||
dd seek=$$((0x1e0)) of=$@.fhdr bs=1 conv=notrunc 2>/dev/null
|
|
||||||
dd if=$@ >> $@.fhdr 2>/dev/null
|
dd if=$@ >> $@.fhdr 2>/dev/null
|
||||||
mv $@.fhdr $@
|
mv $@.fhdr $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/sercomm-fix-buc-pid
|
||||||
|
printf 1 | dd seek=$$((0x13)) of=$@ bs=1 conv=notrunc 2>/dev/null
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/sercomm-kernel
|
define Build/sercomm-kernel
|
||||||
$(TOPDIR)/scripts/sercomm-kernel-header.py \
|
$(TOPDIR)/scripts/sercomm-kernel-header.py \
|
||||||
--kernel-image $@ \
|
--kernel-image $@ \
|
||||||
@ -60,6 +68,12 @@ define Build/sercomm-kernel-factory
|
|||||||
mv $@.khdr $@
|
mv $@.khdr $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/sercomm-mkhash
|
||||||
|
dd bs=$$((0x400)) skip=1 if=$@ conv=notrunc 2>/dev/null | \
|
||||||
|
$(MKHASH) md5 | awk '{print $$1}' | tr -d '\n' | \
|
||||||
|
dd seek=$$((0x1e0)) of=$@ bs=1 conv=notrunc 2>/dev/null
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/sercomm-part-tag
|
define Build/sercomm-part-tag
|
||||||
$(call Build/sercomm-part-tag-common,$(word 1,$(1)) $@)
|
$(call Build/sercomm-part-tag-common,$(word 1,$(1)) $@)
|
||||||
endef
|
endef
|
||||||
@ -98,19 +112,28 @@ define Build/sercomm-prepend-tagged-kernel
|
|||||||
mv $(IMAGE_KERNEL).tagged $@
|
mv $(IMAGE_KERNEL).tagged $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/sercomm-reset-slot1-chksum
|
||||||
|
printf "\xff\xff\xff\xff" | \
|
||||||
|
dd of=$@ seek=$$((0x118)) bs=1 conv=notrunc 2>/dev/null
|
||||||
|
endef
|
||||||
|
|
||||||
define Device/sercomm
|
define Device/sercomm
|
||||||
$(Device/nand)
|
$(Device/nand)
|
||||||
LOADER_TYPE := bin
|
LOADER_TYPE := bin
|
||||||
|
IMAGES += factory.img
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Device/sercomm_cxx_dxx
|
||||||
|
$(Device/sercomm)
|
||||||
KERNEL_SIZE := 6144k
|
KERNEL_SIZE := 6144k
|
||||||
KERNEL_LOADADDR := 0x81001000
|
KERNEL_LOADADDR := 0x81001000
|
||||||
LZMA_TEXT_START := 0x82800000
|
LZMA_TEXT_START := 0x82800000
|
||||||
SERCOMM_KERNEL_OFFSET := 0x400100
|
SERCOMM_KERNEL_OFFSET := 0x400100
|
||||||
SERCOMM_ROOTFS_OFFSET := 0x1000000
|
SERCOMM_ROOTFS_OFFSET := 0x1000000
|
||||||
IMAGES += factory.img
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Device/sercomm_cxx
|
define Device/sercomm_cxx
|
||||||
$(Device/sercomm)
|
$(Device/sercomm_cxx_dxx)
|
||||||
SERCOMM_KERNEL2_OFFSET := 0xa00100
|
SERCOMM_KERNEL2_OFFSET := 0xa00100
|
||||||
SERCOMM_ROOTFS2_OFFSET := 0x3000000
|
SERCOMM_ROOTFS2_OFFSET := 0x3000000
|
||||||
KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | lzma -a0 | \
|
KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | lzma -a0 | \
|
||||||
@ -118,11 +141,11 @@ define Device/sercomm_cxx
|
|||||||
IMAGE/sysupgrade.bin := append-kernel | sercomm-kernel | \
|
IMAGE/sysupgrade.bin := append-kernel | sercomm-kernel | \
|
||||||
sysupgrade-tar kernel=$$$$@ | append-metadata
|
sysupgrade-tar kernel=$$$$@ | append-metadata
|
||||||
IMAGE/factory.img := append-kernel | sercomm-kernel-factory | \
|
IMAGE/factory.img := append-kernel | sercomm-kernel-factory | \
|
||||||
append-ubi | sercomm-factory-cqr
|
append-ubi | sercomm-factory-cqr | sercomm-mkhash
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Device/sercomm_dxx
|
define Device/sercomm_dxx
|
||||||
$(Device/sercomm)
|
$(Device/sercomm_cxx_dxx)
|
||||||
KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | lzma -a0 | \
|
KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | lzma -a0 | \
|
||||||
uImage lzma | sercomm-kernel
|
uImage lzma | sercomm-kernel
|
||||||
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel | \
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel | \
|
||||||
@ -132,3 +155,17 @@ define Device/sercomm_dxx
|
|||||||
sercomm-part-tag rootfs | sercomm-prepend-tagged-kernel kernel | \
|
sercomm-part-tag rootfs | sercomm-prepend-tagged-kernel kernel | \
|
||||||
gzip | sercomm-payload | sercomm-crypto
|
gzip | sercomm-payload | sercomm-crypto
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Device/sercomm_s1500
|
||||||
|
$(Device/sercomm)
|
||||||
|
SERCOMM_KERNEL_OFFSET := 0x1700100
|
||||||
|
SERCOMM_ROOTFS_OFFSET := 0x1f00000
|
||||||
|
SERCOMM_KERNEL2_OFFSET := 0x1b00100
|
||||||
|
KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | lzma -a0 | \
|
||||||
|
uImage lzma
|
||||||
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel | \
|
||||||
|
lzma -a0 | uImage lzma
|
||||||
|
IMAGE/sysupgrade.bin := append-kernel | sercomm-kernel | \
|
||||||
|
sysupgrade-tar kernel=$$$$@ | append-metadata
|
||||||
|
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3
|
||||||
|
endef
|
||||||
|
|||||||
@ -398,6 +398,23 @@ define Device/beeline_smartbox-giga
|
|||||||
endef
|
endef
|
||||||
TARGET_DEVICES += beeline_smartbox-giga
|
TARGET_DEVICES += beeline_smartbox-giga
|
||||||
|
|
||||||
|
define Device/beeline_smartbox-pro
|
||||||
|
$(Device/sercomm_s1500)
|
||||||
|
DEVICE_VENDOR := Beeline
|
||||||
|
DEVICE_MODEL := SmartBox PRO
|
||||||
|
DEVICE_ALT0_VENDOR := Sercomm
|
||||||
|
DEVICE_ALT0_MODEL := S1500 AWI
|
||||||
|
IMAGE_SIZE := 34816k
|
||||||
|
IMAGE/factory.img := append-kernel | sercomm-kernel-factory | \
|
||||||
|
sercomm-reset-slot1-chksum | append-ubi | check-size | \
|
||||||
|
sercomm-factory-cqr | sercomm-append-tail | sercomm-mkhash
|
||||||
|
SERCOMM_HWID := AWI
|
||||||
|
SERCOMM_HWVER := 10000
|
||||||
|
SERCOMM_ROOTFS2_OFFSET := 0x3d00000
|
||||||
|
SERCOMM_SWVER := 2020
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += beeline_smartbox-pro
|
||||||
|
|
||||||
define Device/beeline_smartbox-turbo
|
define Device/beeline_smartbox-turbo
|
||||||
$(Device/sercomm_dxx)
|
$(Device/sercomm_dxx)
|
||||||
IMAGE_SIZE := 32768k
|
IMAGE_SIZE := 32768k
|
||||||
@ -2446,6 +2463,24 @@ define Device/wevo_w2914ns-v2
|
|||||||
endef
|
endef
|
||||||
TARGET_DEVICES += wevo_w2914ns-v2
|
TARGET_DEVICES += wevo_w2914ns-v2
|
||||||
|
|
||||||
|
define Device/wifire_s1500-nbn
|
||||||
|
$(Device/sercomm_s1500)
|
||||||
|
DEVICE_VENDOR := WiFire
|
||||||
|
DEVICE_MODEL := S1500.NBN
|
||||||
|
DEVICE_ALT0_VENDOR := Sercomm
|
||||||
|
DEVICE_ALT0_MODEL := S1500 BUC
|
||||||
|
IMAGE_SIZE := 51200k
|
||||||
|
IMAGE/factory.img := append-kernel | sercomm-kernel-factory | \
|
||||||
|
sercomm-reset-slot1-chksum | append-ubi | check-size | \
|
||||||
|
sercomm-factory-cqr | sercomm-fix-buc-pid | sercomm-mkhash | \
|
||||||
|
sercomm-crypto
|
||||||
|
SERCOMM_HWID := BUC
|
||||||
|
SERCOMM_HWVER := 10000
|
||||||
|
SERCOMM_ROOTFS2_OFFSET := 0x4d00000
|
||||||
|
SERCOMM_SWVER := 2015
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += wifire_s1500-nbn
|
||||||
|
|
||||||
define Device/winstars_ws-wn583a6
|
define Device/winstars_ws-wn583a6
|
||||||
$(Device/dsa-migration)
|
$(Device/dsa-migration)
|
||||||
$(Device/uimage-lzma-loader)
|
$(Device/uimage-lzma-loader)
|
||||||
|
|||||||
@ -40,6 +40,14 @@ etisalat,s3|\
|
|||||||
rostelecom,rt-sf-1)
|
rostelecom,rt-sf-1)
|
||||||
ucidef_set_led_netdev "wan" "wan" "blue:wan" "wan"
|
ucidef_set_led_netdev "wan" "wan" "blue:wan" "wan"
|
||||||
;;
|
;;
|
||||||
|
beeline,smartbox-pro|\
|
||||||
|
wifire,s1500-nbn)
|
||||||
|
ucidef_set_led_netdev "lan1" "lan1" "green:lan1" "lan1" "link tx rx"
|
||||||
|
ucidef_set_led_netdev "lan2" "lan2" "green:lan2" "lan2" "link tx rx"
|
||||||
|
ucidef_set_led_netdev "lan3" "lan3" "green:lan3" "lan3" "link tx rx"
|
||||||
|
ucidef_set_led_netdev "lan4" "lan4" "green:lan4" "lan4" "link tx rx"
|
||||||
|
ucidef_set_led_netdev "wan" "wan" "green:wan" "wan" "link tx rx"
|
||||||
|
;;
|
||||||
belkin,rt1800)
|
belkin,rt1800)
|
||||||
ucidef_set_led_netdev "wan" "wan" "white:wan" "wan"
|
ucidef_set_led_netdev "wan" "wan" "white:wan" "wan"
|
||||||
;;
|
;;
|
||||||
|
|||||||
@ -59,6 +59,7 @@ platform_do_upgrade() {
|
|||||||
asus,rt-ax54|\
|
asus,rt-ax54|\
|
||||||
beeline,smartbox-flash|\
|
beeline,smartbox-flash|\
|
||||||
beeline,smartbox-giga|\
|
beeline,smartbox-giga|\
|
||||||
|
beeline,smartbox-pro|\
|
||||||
beeline,smartbox-turbo|\
|
beeline,smartbox-turbo|\
|
||||||
beeline,smartbox-turbo-plus|\
|
beeline,smartbox-turbo-plus|\
|
||||||
belkin,rt1800|\
|
belkin,rt1800|\
|
||||||
@ -107,6 +108,7 @@ platform_do_upgrade() {
|
|||||||
sercomm,na502s|\
|
sercomm,na502s|\
|
||||||
sim,simax1800t|\
|
sim,simax1800t|\
|
||||||
tplink,ec330-g5u-v1|\
|
tplink,ec330-g5u-v1|\
|
||||||
|
wifire,s1500-nbn|\
|
||||||
xiaomi,mi-router-3g|\
|
xiaomi,mi-router-3g|\
|
||||||
xiaomi,mi-router-3-pro|\
|
xiaomi,mi-router-3-pro|\
|
||||||
xiaomi,mi-router-4|\
|
xiaomi,mi-router-4|\
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user