mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 18:59:13 +08:00
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
commit
56729f89c5
@ -287,6 +287,7 @@ if [ -n "$CONF_RESTORE" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
[ "$VERBOSE" -gt 1 ] && TAR_V="v" || TAR_V=""
|
[ "$VERBOSE" -gt 1 ] && TAR_V="v" || TAR_V=""
|
||||||
|
v "Restoring config files..."
|
||||||
tar -C / -x${TAR_V}zf "$CONF_RESTORE"
|
tar -C / -x${TAR_V}zf "$CONF_RESTORE"
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
@ -21,6 +21,7 @@ PKG_MIRROR_HASH:=0eda0e774a87e58e611d6436350e1cf2be3de50fddde334909a07a15b0c9862
|
|||||||
|
|
||||||
PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
|
PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
PKG_FLAGS:=nonshared
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
@ -38,7 +38,7 @@ if output:
|
|||||||
"make",
|
"make",
|
||||||
"--no-print-directory",
|
"--no-print-directory",
|
||||||
"-C",
|
"-C",
|
||||||
"target/linux/{}".format(output['target'].split('/')[0]),
|
"target/linux/",
|
||||||
"val.DEFAULT_PACKAGES",
|
"val.DEFAULT_PACKAGES",
|
||||||
"val.ARCH_PACKAGES",
|
"val.ARCH_PACKAGES",
|
||||||
],
|
],
|
||||||
@ -49,7 +49,8 @@ if output:
|
|||||||
universal_newlines=True,
|
universal_newlines=True,
|
||||||
).stdout.splitlines()
|
).stdout.splitlines()
|
||||||
|
|
||||||
output["default_packages"] = default_packages.split()
|
output["default_packages"] = sorted(default_packages.split())
|
||||||
|
|
||||||
output_path.write_text(json.dumps(output, sort_keys=True, separators=(",", ":")))
|
output_path.write_text(json.dumps(output, sort_keys=True, separators=(",", ":")))
|
||||||
else:
|
else:
|
||||||
print("JSON info file script could not find any JSON files for target")
|
print("JSON info file script could not find any JSON files for target")
|
||||||
|
@ -224,6 +224,7 @@ ath79_setup_interfaces()
|
|||||||
dlink,dir-842-c3|\
|
dlink,dir-842-c3|\
|
||||||
dlink,dir-859-a1|\
|
dlink,dir-859-a1|\
|
||||||
engenius,epg5000|\
|
engenius,epg5000|\
|
||||||
|
sitecom,wlr-7100|\
|
||||||
tplink,archer-c2-v3|\
|
tplink,archer-c2-v3|\
|
||||||
tplink,tl-wr1043nd-v4|\
|
tplink,tl-wr1043nd-v4|\
|
||||||
tplink,tl-wr1043n-v5)
|
tplink,tl-wr1043n-v5)
|
||||||
@ -263,7 +264,6 @@ ath79_setup_interfaces()
|
|||||||
iodata,wn-ac1600dgr2|\
|
iodata,wn-ac1600dgr2|\
|
||||||
iodata,wn-ag300dgr|\
|
iodata,wn-ag300dgr|\
|
||||||
pcs,cr5000|\
|
pcs,cr5000|\
|
||||||
sitecom,wlr-7100|\
|
|
||||||
wd,mynet-n750|\
|
wd,mynet-n750|\
|
||||||
xwrt,csac)
|
xwrt,csac)
|
||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
|
18
target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds
Executable file
18
target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
. /lib/functions/uci-defaults.sh
|
||||||
|
|
||||||
|
board_config_update
|
||||||
|
|
||||||
|
board=$(board_name)
|
||||||
|
|
||||||
|
case "$board" in
|
||||||
|
glinet,gl-mv1000)
|
||||||
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "wan"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
board_config_flush
|
||||||
|
|
||||||
|
exit 0
|
@ -8,6 +8,13 @@
|
|||||||
model = "GL.iNet GL-MV1000";
|
model = "GL.iNet GL-MV1000";
|
||||||
compatible = "glinet,gl-mv1000", "marvell,armada3720";
|
compatible = "glinet,gl-mv1000", "marvell,armada3720";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
led-boot = &led_power;
|
||||||
|
led-failsafe = &led_power;
|
||||||
|
led-running = &led_power;
|
||||||
|
led-upgrade = &led_power;
|
||||||
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
stdout-path = "serial0:115200n8";
|
stdout-path = "serial0:115200n8";
|
||||||
};
|
};
|
||||||
@ -29,6 +36,26 @@
|
|||||||
3300000 0x0>;
|
3300000 0x0>;
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
|
vpn {
|
||||||
|
label = "green:vpn";
|
||||||
|
gpios = <&gpionb 11 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
wan {
|
||||||
|
label = "green:wan";
|
||||||
|
gpios = <&gpionb 12 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
led_power: power {
|
||||||
|
label = "green:power";
|
||||||
|
gpios = <&gpionb 13 GPIO_ACTIVE_LOW>;
|
||||||
|
default-state = "on";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi0 {
|
&spi0 {
|
||||||
|
40
target/linux/ramips/dts/mt7621_elecom_wrc-1750gst2.dts
Normal file
40
target/linux/ramips/dts/mt7621_elecom_wrc-1750gst2.dts
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||||
|
|
||||||
|
#include "mt7621_elecom_wrc-gs-2pci.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
compatible = "elecom,wrc-1750gst2", "mediatek,mt7621-soc";
|
||||||
|
model = "ELECOM WRC-1750GST2";
|
||||||
|
};
|
||||||
|
|
||||||
|
&partitions {
|
||||||
|
partition@50000 {
|
||||||
|
compatible = "denx,uimage";
|
||||||
|
label = "firmware";
|
||||||
|
reg = <0x50000 0x1800000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@1850000 {
|
||||||
|
label = "tm_pattern";
|
||||||
|
reg = <0x1850000 0x400000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@1c50000 {
|
||||||
|
label = "tm_key";
|
||||||
|
reg = <0x1c50000 0x100000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@1d50000 {
|
||||||
|
label = "nvram";
|
||||||
|
reg = <0x1d50000 0xb0000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@1e00000 {
|
||||||
|
label = "user_data";
|
||||||
|
reg = <0x1e00000 0x200000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
};
|
@ -460,6 +460,14 @@ define Device/elecom_wrc-1750gs
|
|||||||
endef
|
endef
|
||||||
TARGET_DEVICES += elecom_wrc-1750gs
|
TARGET_DEVICES += elecom_wrc-1750gs
|
||||||
|
|
||||||
|
define Device/elecom_wrc-1750gst2
|
||||||
|
$(Device/elecom_wrc-gs)
|
||||||
|
IMAGE_SIZE := 24576k
|
||||||
|
DEVICE_MODEL := WRC-1750GST2
|
||||||
|
ELECOM_HWNAME := WRC-1750GST2
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += elecom_wrc-1750gst2
|
||||||
|
|
||||||
define Device/elecom_wrc-1750gsv
|
define Device/elecom_wrc-1750gsv
|
||||||
$(Device/elecom_wrc-gs)
|
$(Device/elecom_wrc-gs)
|
||||||
IMAGE_SIZE := 11264k
|
IMAGE_SIZE := 11264k
|
||||||
|
Loading…
x
Reference in New Issue
Block a user