Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
#
|
||||
# Copyright (C) 2011-2015 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/functions/leds.sh
|
||||
. /lib/functions/uci-defaults.sh
|
||||
|
||||
board_config_update
|
||||
|
||||
led_wifi="$(get_dt_led wifi)"
|
||||
[ -n "$led_wifi" ] && ucidef_set_led_wlan "wifi" "wifi" "$led_wifi" "phy0tpt"
|
||||
|
||||
led_usb="$(get_dt_led usb)"
|
||||
[ -n "$led_usb" ] && ucidef_set_led_usbdev "usb" "usb" "$led_usb" "1-1"
|
||||
|
||||
led_usb2="$(get_dt_led usb2)"
|
||||
[ -n "$led_usb2" ] && ucidef_set_led_usbdev "usb2" "usb2" "$led_usb2" "2-1"
|
||||
|
||||
led_dsl="$(get_dt_led dsl)"
|
||||
[ -n "$led_dsl" ] && {
|
||||
led_internet="$(get_dt_led internet)"
|
||||
if [ -n "$led_internet" ]; then
|
||||
ucidef_set_led_default "dsl" "dsl" "$led_dsl" "0"
|
||||
ucidef_set_led_netdev "internet" "internet" "$led_internet" "pppoe-wan"
|
||||
else
|
||||
ucidef_set_led_netdev "dsl" "dsl" "$led_dsl" "dsl0"
|
||||
fi
|
||||
}
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
arcadyan,arv4525pw)
|
||||
ucidef_set_led_netdev "wifi" "wifi" "green:wlan" "wlan0"
|
||||
;;
|
||||
esac
|
||||
|
||||
board_config_flush
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#
|
||||
# Copyright (C) 2011-2015 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/functions/uci-defaults.sh
|
||||
. /lib/functions/system.sh
|
||||
. /lib/functions/lantiq.sh
|
||||
|
||||
lantiq_setup_interfaces()
|
||||
{
|
||||
local board="$1"
|
||||
|
||||
case "$board" in
|
||||
arcadyan,arv4520pw)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5t@eth0"
|
||||
;;
|
||||
*)
|
||||
ucidef_set_interface_lan 'eth0'
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
lantiq_setup_dsl()
|
||||
{
|
||||
local board="$1"
|
||||
local annex="a"
|
||||
|
||||
case "$board" in
|
||||
arcadyan,arv4520pw|\
|
||||
arcadyan,arv4525pw|\
|
||||
arcadyan,arv452cqw)
|
||||
annex="b"
|
||||
;;
|
||||
esac
|
||||
|
||||
lantiq_setup_dsl_helper "$annex"
|
||||
}
|
||||
|
||||
lantiq_setup_macs()
|
||||
{
|
||||
local board="$1"
|
||||
local lan_mac=""
|
||||
local wan_mac=""
|
||||
|
||||
case "$board" in
|
||||
esac
|
||||
|
||||
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"
|
||||
[ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" "$wan_mac"
|
||||
}
|
||||
|
||||
board_config_update
|
||||
board=$(board_name)
|
||||
lantiq_setup_interfaces $board
|
||||
lantiq_setup_dsl $board
|
||||
lantiq_setup_macs $board
|
||||
board_config_flush
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,30 @@
|
||||
#
|
||||
# Copyright (C) 2013 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/functions/migrations.sh
|
||||
|
||||
do_internet_led_rename()
|
||||
{
|
||||
config_load system
|
||||
|
||||
[ -n $(config_get led_internet name) ] || return
|
||||
[ -z $(config_get led_dsl name) ] || return
|
||||
|
||||
uci rename system.led_internet=led_dsl
|
||||
uci set system.led_dsl.name=dsl
|
||||
|
||||
logger -t led-migration "internet led renamed to dsl"
|
||||
}
|
||||
|
||||
case "$(board_name)" in
|
||||
arcadyan,arv452cqw)
|
||||
do_internet_led_rename
|
||||
;;
|
||||
esac
|
||||
|
||||
remove_devicename_leds
|
||||
|
||||
migrations_apply system
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,5 @@
|
||||
set_preinit_iface() {
|
||||
ifname=eth0
|
||||
}
|
||||
|
||||
boot_hook_add preinit_main set_preinit_iface
|
||||
10
target/linux/lantiq/xway_legacy/base-files/lib/upgrade/platform.sh
Executable file
10
target/linux/lantiq/xway_legacy/base-files/lib/upgrade/platform.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
PART_NAME=firmware
|
||||
REQUIRE_IMAGE_METADATA=1
|
||||
|
||||
platform_check_image() {
|
||||
return 0
|
||||
}
|
||||
|
||||
platform_do_upgrade() {
|
||||
default_do_upgrade "$1"
|
||||
}
|
||||
30
target/linux/lantiq/xway_legacy/config-6.6
Normal file
30
target/linux/lantiq/xway_legacy/config-6.6
Normal file
@@ -0,0 +1,30 @@
|
||||
CONFIG_ADM6996_PHY=y
|
||||
CONFIG_BLK_MQ_PCI=y
|
||||
CONFIG_CRC16=y
|
||||
CONFIG_CRYPTO_DEFLATE=y
|
||||
CONFIG_CRYPTO_LZO=y
|
||||
CONFIG_GENERIC_ALLOCATOR=y
|
||||
# CONFIG_GPIO_CDEV is not set
|
||||
# CONFIG_GPIO_SYSFS is not set
|
||||
CONFIG_INPUT=y
|
||||
CONFIG_INPUT_EVDEV=y
|
||||
# CONFIG_ISDN is not set
|
||||
CONFIG_LANTIQ_ETOP=y
|
||||
# CONFIG_LEDS_TRIGGER_TIMER is not set
|
||||
CONFIG_LZO_COMPRESS=y
|
||||
CONFIG_LZO_DECOMPRESS=y
|
||||
CONFIG_NLS=y
|
||||
CONFIG_PCI=y
|
||||
# CONFIG_PCIE_LANTIQ is not set
|
||||
CONFIG_PCI_DOMAINS=y
|
||||
CONFIG_PCI_LANTIQ=y
|
||||
CONFIG_REGULATOR=y
|
||||
CONFIG_REGULATOR_FIXED_VOLTAGE=y
|
||||
CONFIG_RTL8306_PHY=y
|
||||
CONFIG_SGL_ALLOC=y
|
||||
CONFIG_SWCONFIG=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_COMMON=y
|
||||
CONFIG_USB_SUPPORT=y
|
||||
CONFIG_ZLIB_DEFLATE=y
|
||||
CONFIG_ZLIB_INFLATE=y
|
||||
9
target/linux/lantiq/xway_legacy/profiles/00-default.mk
Normal file
9
target/linux/lantiq/xway_legacy/profiles/00-default.mk
Normal file
@@ -0,0 +1,9 @@
|
||||
define Profile/Default
|
||||
NAME:=Default Profile
|
||||
PRIORITY:=1
|
||||
endef
|
||||
|
||||
define Profile/Default/Description
|
||||
Default package set compatible with most boards.
|
||||
endef
|
||||
$(eval $(call Profile,Default))
|
||||
11
target/linux/lantiq/xway_legacy/target.mk
Normal file
11
target/linux/lantiq/xway_legacy/target.mk
Normal file
@@ -0,0 +1,11 @@
|
||||
ARCH:=mips
|
||||
SUBTARGET:=xway_legacy
|
||||
BOARDNAME:=XWAY Legacy
|
||||
FEATURES+=atm ramdisk small_flash
|
||||
CPU_TYPE:=24kc
|
||||
|
||||
DEFAULT_PACKAGES+=kmod-leds-gpio kmod-gpio-button-hotplug swconfig
|
||||
|
||||
define Target/Description
|
||||
Lantiq XWAY Legacy for old boards with small flash
|
||||
endef
|
||||
Reference in New Issue
Block a user