mirror of
https://github.com/immortalwrt/immortalwrt
synced 2025-01-09 04:29:03 +08:00
Merge Official Source
This commit is contained in:
commit
4c9877f3e5
@ -360,6 +360,18 @@ config KERNEL_BLK_DEV_BSG
|
||||
config KERNEL_TRANSPARENT_HUGEPAGE
|
||||
bool
|
||||
|
||||
choice
|
||||
prompt "Transparent Hugepage Support sysfs defaults"
|
||||
depends on KERNEL_TRANSPARENT_HUGEPAGE
|
||||
default KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
|
||||
|
||||
config KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
|
||||
bool "always"
|
||||
|
||||
config KERNEL_TRANSPARENT_HUGEPAGE_MADVISE
|
||||
bool "madvise"
|
||||
endchoice
|
||||
|
||||
config KERNEL_HUGETLBFS
|
||||
bool
|
||||
|
||||
@ -795,6 +807,10 @@ if KERNEL_CGROUPS
|
||||
bool "legacy Control Group Classifier"
|
||||
default n
|
||||
|
||||
config KERNEL_CGROUP_NET_CLASSID
|
||||
bool "legacy Network classid cgroup"
|
||||
default n
|
||||
|
||||
config KERNEL_CGROUP_NET_PRIO
|
||||
bool "legacy Network priority cgroup"
|
||||
default n
|
||||
|
@ -275,13 +275,6 @@ define Build/check-size
|
||||
}
|
||||
endef
|
||||
|
||||
define Build/check-kernel-size
|
||||
@[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -ge "$$(stat -c%s $(IMAGE_KERNEL))" ] || { \
|
||||
echo "WARNING: Kernel for $@ is too big > $(1)" >&2; \
|
||||
rm -f $@; \
|
||||
}
|
||||
endef
|
||||
|
||||
define Build/combined-image
|
||||
-sh $(TOPDIR)/scripts/combined-image.sh \
|
||||
"$(IMAGE_KERNEL)" \
|
||||
|
@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
|
||||
include $(INCLUDE_DIR)/feeds.mk
|
||||
|
||||
PKG_NAME:=base-files
|
||||
PKG_RELEASE:=224
|
||||
PKG_RELEASE:=225
|
||||
PKG_FLAGS:=nonshared
|
||||
|
||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||
|
@ -36,6 +36,7 @@ boot() {
|
||||
ln -sf /tmp/resolv.conf.d/resolv.conf.auto /tmp/resolv.conf.auto
|
||||
ln -sf /tmp/resolv.conf.d/resolv.conf.auto /tmp/resolv.conf
|
||||
grep -q debugfs /proc/filesystems && /bin/mount -o noatime -t debugfs debugfs /sys/kernel/debug
|
||||
grep -q bpf /proc/filesystems && /bin/mount -o nosuid,nodev,noexec,noatime,mode=0700 -t bpf bpffs /sys/fs/bpf
|
||||
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
|
||||
|
||||
/sbin/kmodloader
|
||||
|
@ -34,6 +34,7 @@ netgear,wnr612-v2|\
|
||||
ocedo,koala|\
|
||||
ocedo,raccoon|\
|
||||
openmesh,om5p-ac-v2|\
|
||||
ubnt,nanostation-m|\
|
||||
yuncore,a770|\
|
||||
yuncore,a782|\
|
||||
yuncore,xd4200)
|
||||
|
@ -17,7 +17,8 @@ checkpoint,l-50|\
|
||||
cloudengines,pogoe02|\
|
||||
cloudengines,pogoplugv4|\
|
||||
iom,ix2-200|\
|
||||
linksys,viper|\
|
||||
linksys,e4200-v2|\
|
||||
linksys,ea4500|\
|
||||
raidsonic,ib-nas62x0|\
|
||||
seagate,dockstar|\
|
||||
zyxel,nsa310b|\
|
||||
@ -25,7 +26,7 @@ zyxel,nsa310s|\
|
||||
zyxel,nsa325)
|
||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
|
||||
;;
|
||||
linksys,audi)
|
||||
linksys,ea3500)
|
||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000"
|
||||
;;
|
||||
esac
|
||||
|
54
package/kernel/exfat/Makefile
Normal file
54
package/kernel/exfat/Makefile
Normal file
@ -0,0 +1,54 @@
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=exfat
|
||||
PKG_VERSION:=5.8.4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/namjaejeon/linux-exfat-oot/tar.gz/$(PKG_VERSION)?
|
||||
PKG_HASH:=47162495bdf9a7e02d6142dfcd4364d7325a4cf75a0439926cf9e8a9d959627b
|
||||
|
||||
PKG_MAINTAINER:=
|
||||
PKG_LICENSE:=GPL-2.0-only
|
||||
|
||||
#PKG_BUILD_PARALLEL:=1
|
||||
#PKG_USE_MIPS16:=0
|
||||
|
||||
# exfat-oot's makefile needs this to know where to build the kernel module
|
||||
#export KERNELDIR:=$(LINUX_DIR)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
#include $(INCLUDE_DIR)/kernel-defaults.mk
|
||||
|
||||
TAR_OPTIONS+= --strip-components 1
|
||||
TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
|
||||
|
||||
define KernelPackage/fs-exfat
|
||||
SECTION:=kernel
|
||||
CATEGORY:=Kernel modules
|
||||
SUBMENU:=Filesystems
|
||||
TITLE:=exFAT kernel module
|
||||
FILES:=$(PKG_BUILD_DIR)/exfat.ko
|
||||
AUTOLOAD:=$(call AutoProbe,exfat)
|
||||
endef
|
||||
|
||||
define KernelPackage/exfat/description
|
||||
This package provides the kernel module for exfat.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" \
|
||||
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
|
||||
$(PKG_EXTRA_KCONFIG) \
|
||||
CONFIG_EXFAT_FS=m \
|
||||
modules
|
||||
# $(MAKE) -C $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) M="$(PKG_BUILD_DIR)" modules
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,fs-exfat))
|
23
package/kernel/exfat/patches/010-fstream.patch
Normal file
23
package/kernel/exfat/patches/010-fstream.patch
Normal file
@ -0,0 +1,23 @@
|
||||
--- a/super.c
|
||||
+++ b/super.c
|
||||
@@ -292,14 +292,14 @@ static const struct fs_parameter_spec exfat_param_specs[] = {
|
||||
#endif
|
||||
fsparam_flag("discard", Opt_discard),
|
||||
fsparam_s32("time_offset", Opt_time_offset),
|
||||
- __fsparam(NULL, "utf8", Opt_utf8, fs_param_deprecated,
|
||||
- NULL),
|
||||
- __fsparam(NULL, "debug", Opt_debug, fs_param_deprecated,
|
||||
- NULL),
|
||||
+ __fsparam(NULL, "utf8", Opt_utf8, fs_param_deprecated
|
||||
+ ),
|
||||
+ __fsparam(NULL, "debug", Opt_debug, fs_param_deprecated
|
||||
+ ),
|
||||
__fsparam(fs_param_is_u32, "namecase", Opt_namecase,
|
||||
- fs_param_deprecated, NULL),
|
||||
+ fs_param_deprecated),
|
||||
__fsparam(fs_param_is_u32, "codepage", Opt_codepage,
|
||||
- fs_param_deprecated, NULL),
|
||||
+ fs_param_deprecated),
|
||||
{}
|
||||
};
|
||||
|
@ -163,30 +163,6 @@ endef
|
||||
$(eval $(call KernelPackage,fs-efivarfs))
|
||||
|
||||
|
||||
define KernelPackage/fs-exfat
|
||||
SUBMENU:=$(FS_MENU)
|
||||
TITLE:=exFAT filesystem support
|
||||
KCONFIG:= \
|
||||
CONFIG_EXFAT_FS \
|
||||
CONFIG_EXFAT_DONT_MOUNT_VFAT=y \
|
||||
CONFIG_EXFAT_DISCARD=y \
|
||||
CONFIG_EXFAT_DELAYED_SYNC=n \
|
||||
CONFIG_EXFAT_KERNEL_DEBUG=n \
|
||||
CONFIG_EXFAT_DEBUG_MSG=n \
|
||||
CONFIG_EXFAT_DEFAULT_CODEPAGE=437 \
|
||||
CONFIG_EXFAT_DEFAULT_IOCHARSET="utf8"
|
||||
FILES:=$(LINUX_DIR)/drivers/staging/exfat/exfat.ko
|
||||
AUTOLOAD:=$(call AutoLoad,30,exfat,1)
|
||||
DEPENDS:=@!(LINUX_4_14||LINUX_4_19) +kmod-nls-base
|
||||
endef
|
||||
|
||||
define KernelPackage/fs-exfat/description
|
||||
Kernel module for exFAT filesystem support
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,fs-exfat))
|
||||
|
||||
|
||||
define KernelPackage/fs-exportfs
|
||||
SUBMENU:=$(FS_MENU)
|
||||
TITLE:=exportfs kernel server support
|
||||
|
@ -993,7 +993,7 @@ drv_mac80211_setup() {
|
||||
add_ap=1
|
||||
ubus wait_for hostapd
|
||||
ubus call hostapd config_add "{\"iface\":\"$primary_ap\", \"config\":\"${hostapd_conf_file}\"}"
|
||||
local hostapd_pid=$(ubus call service list '{"name": "hostapd"}' | jsonfilter -l 1 -e "@['hostapd'].instances['hostapd'].pid")
|
||||
local hostapd_pid=$(ubus call service list '{"name": "wpad"}' | jsonfilter -l 1 -e "@['wpad'].instances['hostapd'].pid")
|
||||
wireless_add_process "$hostapd_pid" "/usr/sbin/hostapd" 1
|
||||
fi
|
||||
ret="$?"
|
||||
@ -1048,8 +1048,6 @@ list_phy_interfaces() {
|
||||
}
|
||||
|
||||
drv_mac80211_teardown() {
|
||||
wireless_process_kill_all
|
||||
|
||||
json_select data
|
||||
json_get_vars phy
|
||||
json_select ..
|
||||
|
@ -1127,7 +1127,7 @@ wpa_supplicant_run() {
|
||||
|
||||
[ "$ret" != 0 ] && wireless_setup_vif_failed WPA_SUPPLICANT_FAILED
|
||||
|
||||
local supplicant_pid=$(ubus call service list '{"name": "hostapd"}' | jsonfilter -l 1 -e "@['hostapd'].instances['supplicant'].pid")
|
||||
local supplicant_pid=$(ubus call service list '{"name": "wpad"}' | jsonfilter -l 1 -e "@['wpad'].instances['supplicant'].pid")
|
||||
wireless_add_process "$supplicant_pid" "/usr/sbin/wpa_supplicant" 1
|
||||
|
||||
return $ret
|
||||
|
@ -77,10 +77,10 @@ config openvpn sample_server
|
||||
|
||||
# Diffie hellman parameters.
|
||||
# Generate your own with:
|
||||
# openssl dhparam -out dh1024.pem 1024
|
||||
# openssl dhparam -out dh2048.pem 2048
|
||||
# Substitute 2048 for 1024 if you are using
|
||||
# 2048 bit keys.
|
||||
option dh /etc/openvpn/dh1024.pem
|
||||
# 1024 bit keys.
|
||||
option dh /etc/openvpn/dh2048.pem
|
||||
|
||||
# Configure server mode and supply a VPN subnet
|
||||
# for OpenVPN to draw client addresses from.
|
||||
@ -228,10 +228,52 @@ config openvpn sample_server
|
||||
# This file is secret:
|
||||
# option tls_auth "/etc/openvpn/ta.key 0"
|
||||
|
||||
# For additional privacy, a shared secret key
|
||||
# can be used for both authentication (as in tls_auth)
|
||||
# and encryption of the TLS control channel.
|
||||
#
|
||||
# Generate a shared secret with:
|
||||
# openvpn --genkey --secret ta.key
|
||||
#
|
||||
# The server and each client must have
|
||||
# a copy of this key.
|
||||
#
|
||||
# tls_auth and tls_crypt should NOT
|
||||
# be combined, as tls_crypt implies tls_auth.
|
||||
# Use EITHER tls_crypt, tls_auth, or neither option.
|
||||
# option tls_crypt "/etc/openvpn/ta.key"
|
||||
|
||||
# Set the minimum required TLS protocol version
|
||||
# for all connections.
|
||||
#
|
||||
# Require at least TLS 1.1
|
||||
# option tls_version_min "1.1"
|
||||
# Require at least TLS 1.2
|
||||
# option tls_version_min "1.2"
|
||||
# Require TLS 1.2, or the highest version supported
|
||||
# on the system
|
||||
# option tls_version_min "1.2 'or-highest'"
|
||||
|
||||
# OpenVPN versions 2.4 and later will attempt to
|
||||
# automatically negotiate the most secure cipher
|
||||
# between the client and server, regardless of a
|
||||
# configured "option cipher" (see below).
|
||||
# Automatic negotiation is recommended.
|
||||
#
|
||||
# Uncomment this option to disable this behavior,
|
||||
# and force all OpenVPN peers to use the configured
|
||||
# cipher option instead (not recommended).
|
||||
# option ncp_disable
|
||||
|
||||
# Select a cryptographic cipher.
|
||||
# This config item must be copied to
|
||||
# the client config file as well.
|
||||
# Blowfish (default):
|
||||
#
|
||||
# To see all supported ciphers, run:
|
||||
# openvpn --show-ciphers
|
||||
#
|
||||
# Blowfish (default for backwards compatibility,
|
||||
# but not recommended due to weaknesses):
|
||||
# option cipher BF-CBC
|
||||
# AES:
|
||||
# option cipher AES-128-CBC
|
||||
@ -241,11 +283,16 @@ config openvpn sample_server
|
||||
# Enable compression on the VPN link.
|
||||
# If you enable it here, you must also
|
||||
# enable it in the client config file.
|
||||
#
|
||||
# Compression is not recommended, as compression and
|
||||
# encryption in combination can weaken the security
|
||||
# of the connection.
|
||||
#
|
||||
# LZ4 requires OpenVPN 2.4+ client and server
|
||||
# option compress lz4
|
||||
# LZO is compatible with most OpenVPN versions
|
||||
# (set "compress lzo" on 2.4+ clients, and "comp-lzo yes" on older clients)
|
||||
option compress lzo
|
||||
# option compress lzo
|
||||
|
||||
# The maximum number of concurrently connected
|
||||
# clients we want to allow.
|
||||
@ -371,7 +418,7 @@ config openvpn sample_client
|
||||
option key /etc/openvpn/client.key
|
||||
|
||||
# Verify server certificate by checking
|
||||
# that the certicate has the nsCertType
|
||||
# that the certicate has the key usage
|
||||
# field set to "server". This is an
|
||||
# important precaution to protect against
|
||||
# a potential attack discussed here:
|
||||
@ -381,12 +428,27 @@ config openvpn sample_client
|
||||
# your server certificates with the nsCertType
|
||||
# field set to "server". The build_key_server
|
||||
# script in the easy_rsa folder will do this.
|
||||
# option ns_cert_type server
|
||||
# option remote_cert_tls server
|
||||
|
||||
# If a tls_auth key is used on the server
|
||||
# then every client must also have the key.
|
||||
# option tls_auth "/etc/openvpn/ta.key 1"
|
||||
|
||||
# If a tls_crypt key is used on the server
|
||||
# every client must also have the key.
|
||||
# option tls_crypt "/etc/openvpn/ta.key"
|
||||
|
||||
# Set the minimum required TLS protocol version
|
||||
# for all connections.
|
||||
#
|
||||
# Require at least TLS 1.1
|
||||
# option tls_version_min "1.1"
|
||||
# Require at least TLS 1.2
|
||||
# option tls_version_min "1.2"
|
||||
# Require TLS 1.2, or the highest version supported
|
||||
# on the system
|
||||
# option tls_version_min "1.2 'or-highest'"
|
||||
|
||||
# Select a cryptographic cipher.
|
||||
# If the cipher option is used on the server
|
||||
# then you must also specify it here.
|
||||
@ -395,10 +457,15 @@ config openvpn sample_client
|
||||
# Enable compression on the VPN link.
|
||||
# Don't enable this unless it is also
|
||||
# enabled in the server config file.
|
||||
#
|
||||
# Compression is not recommended, as compression and
|
||||
# encryption in combination can weaken the security
|
||||
# of the connection.
|
||||
#
|
||||
# LZ4 requires OpenVPN 2.4+ on server and client
|
||||
# option compress lz4
|
||||
# LZO is compatible with most OpenVPN versions
|
||||
option compress lzo
|
||||
# option compress lzo
|
||||
|
||||
# Set log file verbosity.
|
||||
option verb 3
|
||||
|
@ -22,7 +22,6 @@ PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_USE_MIPS16:=0
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/package-defaults.mk
|
||||
|
@ -391,7 +391,7 @@ sub top_of_openwrt_tree {
|
||||
my ($root) = @_;
|
||||
|
||||
my @tree_check = (
|
||||
"BSDmakefile", "Config.in", "LICENSE", "Makefile", "README",
|
||||
"BSDmakefile", "Config.in", "LICENSE", "Makefile", "README.md",
|
||||
"feeds.conf.default", "include", "package", "rules.mk",
|
||||
"scripts", "target", "toolchain", "tools"
|
||||
);
|
||||
|
@ -117,5 +117,6 @@ define Device/netgear_wndr4700
|
||||
NETGEAR_HW_ID := 29763875+128+256
|
||||
UBINIZE_OPTS := -E 5
|
||||
SUPPORTED_DEVICES += wndr4700
|
||||
DEFAULT := n
|
||||
endef
|
||||
TARGET_DEVICES += netgear_wndr4700
|
||||
|
@ -217,6 +217,7 @@ platform_check_image() {
|
||||
archer-c60-v2|\
|
||||
archer-c7-v4|\
|
||||
archer-c7-v5|\
|
||||
arduino-yun|\
|
||||
bullet-m|\
|
||||
bullet-m-xw|\
|
||||
c-55|\
|
||||
@ -346,7 +347,6 @@ platform_check_image() {
|
||||
ap152|\
|
||||
ap91-5g|\
|
||||
ap96|\
|
||||
arduino-yun|\
|
||||
bhr-4grv2|\
|
||||
bxu2000n-2-a1|\
|
||||
db120|\
|
||||
|
@ -117,8 +117,7 @@ static void __init ds_setup(void)
|
||||
ath79_gpio_function_disable(AR933X_GPIO_FUNC_ETH_SWITCH_LED0_EN |
|
||||
AR933X_GPIO_FUNC_ETH_SWITCH_LED1_EN |
|
||||
AR933X_GPIO_FUNC_ETH_SWITCH_LED2_EN |
|
||||
AR933X_GPIO_FUNC_ETH_SWITCH_LED3_EN |
|
||||
AR933X_GPIO_FUNC_ETH_SWITCH_LED4_EN);
|
||||
AR933X_GPIO_FUNC_ETH_SWITCH_LED3_EN);
|
||||
|
||||
//Disable the Function for some pins to have GPIO functionality active
|
||||
// GPIO6-7-8 and GPIO11
|
||||
@ -141,7 +140,7 @@ static void __init ds_setup(void)
|
||||
|
||||
// enable OE of level shifter
|
||||
if (gpio_request_one(DS_GPIO_OE,
|
||||
GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, "OE-1") != 0)
|
||||
GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED, "OE-1") != 0)
|
||||
printk("Error setting GPIO OE\n");
|
||||
|
||||
if (gpio_request_one(DS_GPIO_UART_ENA,
|
||||
@ -150,7 +149,7 @@ static void __init ds_setup(void)
|
||||
|
||||
// enable OE of level shifter
|
||||
if (gpio_request_one(DS_GPIO_OE2,
|
||||
GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, "OE-2") != 0)
|
||||
GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED, "OE-2") != 0)
|
||||
printk("Error setting GPIO OE2\n");
|
||||
}
|
||||
|
||||
|
@ -4,3 +4,17 @@ define Device/mikrotik
|
||||
KERNEL := kernel-bin | append-dtb | lzma | loader-kernel
|
||||
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel
|
||||
endef
|
||||
|
||||
define Device/mikrotik_nor
|
||||
$(Device/mikrotik)
|
||||
IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 -e | \
|
||||
pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
|
||||
append-metadata | check-size
|
||||
endef
|
||||
|
||||
define Device/mikrotik_nand
|
||||
$(Device/mikrotik)
|
||||
IMAGE/sysupgrade.bin = append-kernel | kernel2minor -s 2048 -e -c | \
|
||||
sysupgrade-tar kernel=$$$$@ | append-metadata
|
||||
DEVICE_PACKAGES := nand-utils
|
||||
endef
|
||||
|
@ -1,36 +1,28 @@
|
||||
include ./common-mikrotik.mk
|
||||
|
||||
define Device/mikrotik_routerboard-493g
|
||||
$(Device/mikrotik)
|
||||
$(Device/mikrotik_nand)
|
||||
SOC := ar7161
|
||||
DEVICE_MODEL := RouterBOARD 493G
|
||||
IMAGE/sysupgrade.bin = append-kernel | kernel2minor -s 2048 -e -c | \
|
||||
sysupgrade-tar kernel=$$$$@ | append-metadata
|
||||
DEVICE_PACKAGES += kmod-usb-ohci kmod-usb2 nand-utils
|
||||
DEVICE_PACKAGES += kmod-usb-ohci kmod-usb2
|
||||
SUPPORTED_DEVICES += rb-493g
|
||||
endef
|
||||
TARGET_DEVICES += mikrotik_routerboard-493g
|
||||
|
||||
define Device/mikrotik_routerboard-922uags-5hpacd
|
||||
$(Device/mikrotik)
|
||||
$(Device/mikrotik_nand)
|
||||
SOC := qca9558
|
||||
DEVICE_MODEL := RouterBOARD 922UAGS-5HPacD
|
||||
IMAGE/sysupgrade.bin = append-kernel | kernel2minor -s 2048 -e -c | \
|
||||
sysupgrade-tar kernel=$$$$@ | append-metadata
|
||||
DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct \
|
||||
kmod-usb2 nand-utils
|
||||
DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct kmod-usb2
|
||||
SUPPORTED_DEVICES += rb-922uags-5hpacd
|
||||
endef
|
||||
TARGET_DEVICES += mikrotik_routerboard-922uags-5hpacd
|
||||
|
||||
define Device/mikrotik_routerboard-wap-g-5hact2hnd
|
||||
$(Device/mikrotik)
|
||||
$(Device/mikrotik_nor)
|
||||
SOC := qca9556
|
||||
DEVICE_MODEL := RouterBOARD wAP G-5HacT2HnD (wAP AC)
|
||||
IMAGE_SIZE := 16256k
|
||||
IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 -e | \
|
||||
pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
|
||||
append-metadata | check-size
|
||||
DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
|
||||
SUPPORTED_DEVICES += rb-wapg-5hact2hnd
|
||||
endef
|
||||
|
@ -15,14 +15,20 @@ ROOTFSSIZE="$5"
|
||||
head=4
|
||||
sect=63
|
||||
|
||||
# Create two empty partitions followed by the boot partition with
|
||||
# the ./boot/zImage and then the rootfs partition.
|
||||
set $(ptgen -o $OUTPUT -h $head -s $sect -t 83 -n -p 0 -p 0 -p ${BOOTFSSIZE}M -p ${ROOTFSSIZE}M)
|
||||
# Create one empty partitions followed by the swap partition, then the
|
||||
# boot partition with the ./boot/zImage and then the rootfs partition.
|
||||
# The swap partition with type 82 is 128 MB since the DNS-313 has 64 MB of
|
||||
# memory so we assign twice of that as swap.
|
||||
# The boot partition must always be the third partition.
|
||||
# The user should use the first (blank) partition for user data storage,
|
||||
# this will typically be named /dev/sda1
|
||||
set $(ptgen -o $OUTPUT -h $head -s $sect -n -t 83 -p 0 -t 82 -p 128M -t 83 -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M)
|
||||
|
||||
BOOTOFFSET="$(($1 / 512))"
|
||||
BOOTSIZE="$(($2 / 512))"
|
||||
ROOTFSOFFSET="$(($3 / 512))"
|
||||
ROOTFSSIZE="$(($4 / 512))"
|
||||
# Swapoffset and swapsize will be $1 and $2
|
||||
BOOTOFFSET="$(($3 / 512))"
|
||||
BOOTSIZE="$(($4 / 512))"
|
||||
ROOTFSOFFSET="$(($5 / 512))"
|
||||
ROOTFSSIZE="$(($6 / 512))"
|
||||
|
||||
dd bs=512 if="$BOOTFS" of="$OUTPUT" seek="$BOOTOFFSET" conv=notrunc
|
||||
dd bs=512 if="$ROOTFS" of="$OUTPUT" seek="$ROOTFSOFFSET" conv=notrunc
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1009,6 +1009,7 @@ CONFIG_CRYPTO_PCRYPT=y
|
||||
# CONFIG_DEBUG_CREDENTIALS is not set
|
||||
# CONFIG_DEBUG_DEVRES is not set
|
||||
# CONFIG_DEBUG_DRIVER is not set
|
||||
# CONFIG_DEBUG_EFI is not set
|
||||
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
|
||||
CONFIG_DEBUG_FS=y
|
||||
# CONFIG_DEBUG_GPIO is not set
|
||||
|
@ -1067,6 +1067,7 @@ CONFIG_CRYPTO_PCRYPT=y
|
||||
# CONFIG_DEBUG_CREDENTIALS is not set
|
||||
# CONFIG_DEBUG_DEVRES is not set
|
||||
# CONFIG_DEBUG_DRIVER is not set
|
||||
# CONFIG_DEBUG_EFI is not set
|
||||
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
|
||||
CONFIG_DEBUG_FS=y
|
||||
# CONFIG_DEBUG_GPIO is not set
|
||||
|
@ -1139,6 +1139,7 @@ CONFIG_CRYPTO_PCRYPT=y
|
||||
# CONFIG_DEBUG_CREDENTIALS is not set
|
||||
# CONFIG_DEBUG_DEVRES is not set
|
||||
# CONFIG_DEBUG_DRIVER is not set
|
||||
# CONFIG_DEBUG_EFI is not set
|
||||
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
|
||||
CONFIG_DEBUG_FS=y
|
||||
# CONFIG_DEBUG_GPIO is not set
|
||||
@ -4211,6 +4212,7 @@ CONFIG_RCU_TORTURE_TEST_SLOW_INIT_DELAY=3
|
||||
# CONFIG_RD_LZO is not set
|
||||
# CONFIG_RD_XZ is not set
|
||||
# CONFIG_READABLE_ASM is not set
|
||||
# CONFIG_READ_ONLY_THP_FOR_FS is not set
|
||||
# CONFIG_REALTEK_PHY is not set
|
||||
# CONFIG_REDWOOD is not set
|
||||
# CONFIG_REED_SOLOMON_TEST is not set
|
||||
|
@ -10,10 +10,11 @@ board_config_update
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
"iom,ix2-200")
|
||||
iom,ix2-200)
|
||||
ucidef_set_led_timer "health" "health" "status:white:rebuild_led" "200" "800"
|
||||
;;
|
||||
"linksys,viper")
|
||||
linksys,e4200-v2|\
|
||||
linksys,ea4500)
|
||||
ucidef_set_led_default "pulse" "pulse" "viper:white:pulse" "1"
|
||||
;;
|
||||
esac
|
||||
|
@ -28,8 +28,9 @@ case "$board" in
|
||||
"zyxel,nsa310s")
|
||||
ucidef_set_interface_lan "eth0" "dhcp"
|
||||
;;
|
||||
"linksys,audi"|\
|
||||
"linksys,viper")
|
||||
"linksys,e4200-v2"|\
|
||||
"linksys,ea3500"|\
|
||||
"linksys,ea4500")
|
||||
ucidef_set_interfaces_lan_wan "ethernet1 ethernet2 ethernet3 ethernet4" "internet"
|
||||
ucidef_set_interface_macaddr "wan" $( mtd_get_mac_ascii u_env eth1addr )
|
||||
;;
|
||||
|
@ -9,8 +9,9 @@
|
||||
board_config_update
|
||||
|
||||
case "$(board_name)" in
|
||||
linksys,audi|\
|
||||
linksys,viper)
|
||||
linksys,e4200-v2|\
|
||||
linksys,ea3500|\
|
||||
linksys,ea4500)
|
||||
ucidef_set_compat_version "1.1"
|
||||
;;
|
||||
esac
|
||||
|
@ -4,8 +4,9 @@ START=99
|
||||
|
||||
boot() {
|
||||
case $(board_name) in
|
||||
linksys,audi|\
|
||||
linksys,viper)
|
||||
linksys,e4200-v2|\
|
||||
linksys,ea3500|\
|
||||
linksys,ea4500)
|
||||
mtd resetbc s_env || true
|
||||
;;
|
||||
esac
|
||||
|
@ -11,8 +11,9 @@ platform_do_upgrade() {
|
||||
local board="$(board_name)"
|
||||
|
||||
case "$board" in
|
||||
"linksys,audi"|\
|
||||
"linksys,viper")
|
||||
linksys,e4200-v2|\
|
||||
linksys,ea3500|\
|
||||
linksys,ea4500)
|
||||
platform_do_upgrade_linksys "$1"
|
||||
;;
|
||||
*)
|
||||
|
@ -0,0 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "kirkwood-linksys-viper.dts"
|
||||
|
||||
/ {
|
||||
model = "Linksys E4200 v2 (Viper)";
|
||||
compatible = "linksys,e4200-v2", "linksys,viper", "marvell,kirkwood-88f6282", "marvell,kirkwood";
|
||||
};
|
@ -15,8 +15,8 @@
|
||||
#include "kirkwood-6282.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Linksys Audi (EA3500)";
|
||||
compatible = "linksys,audi", "marvell,kirkwood-88f6282", "marvell,kirkwood";
|
||||
model = "Linksys EA3500 (Audi)";
|
||||
compatible = "linksys,ea3500", "linksys,audi", "marvell,kirkwood-88f6282", "marvell,kirkwood";
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
@ -0,0 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "kirkwood-linksys-viper.dts"
|
||||
|
||||
/ {
|
||||
model = "Linksys EA4500 (Viper)";
|
||||
compatible = "linksys,ea4500", "linksys,viper", "marvell,kirkwood-88f6282", "marvell,kirkwood";
|
||||
};
|
@ -96,34 +96,47 @@ define Device/iom_ix2-200
|
||||
endef
|
||||
TARGET_DEVICES += iom_ix2-200
|
||||
|
||||
define Device/linksys_audi
|
||||
$(Device/dsa-migration)
|
||||
define Device/linksys
|
||||
DEVICE_VENDOR := Linksys
|
||||
DEVICE_MODEL := EA3500 (Audi)
|
||||
DEVICE_PACKAGES := kmod-mwl8k wpad-basic kmod-gpio-button-hotplug
|
||||
KERNEL_IN_UBI :=
|
||||
UBINIZE_OPTS := -E 5
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
|
||||
endef
|
||||
|
||||
define Device/linksys_e4200-v2
|
||||
$(Device/linksys)
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_MODEL := E4200
|
||||
DEVICE_VARIANT := v2
|
||||
DEVICE_DTS := kirkwood-e4200-v2
|
||||
KERNEL_SIZE := 2688k
|
||||
SUPPORTED_DEVICES += linksys,viper linksys-viper
|
||||
endef
|
||||
TARGET_DEVICES += linksys_e4200-v2
|
||||
|
||||
define Device/linksys_ea3500
|
||||
$(Device/linksys)
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_MODEL := EA3500
|
||||
DEVICE_DTS := kirkwood-ea3500
|
||||
PAGESIZE := 512
|
||||
SUBPAGESIZE := 256
|
||||
BLOCKSIZE := 16k
|
||||
KERNEL_SIZE := 2624k
|
||||
KERNEL_IN_UBI :=
|
||||
UBINIZE_OPTS := -E 5
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
|
||||
BOARD_NAME := linksys-audi
|
||||
SUPPORTED_DEVICES += linksys,audi linksys-audi
|
||||
endef
|
||||
TARGET_DEVICES += linksys_audi
|
||||
TARGET_DEVICES += linksys_ea3500
|
||||
|
||||
define Device/linksys_viper
|
||||
define Device/linksys_ea4500
|
||||
$(Device/linksys)
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_VENDOR := Linksys
|
||||
DEVICE_MODEL := E4200v2 / EA4500 (Viper)
|
||||
DEVICE_PACKAGES := kmod-mwl8k wpad-basic kmod-gpio-button-hotplug
|
||||
DEVICE_MODEL := EA4500
|
||||
DEVICE_DTS := kirkwood-ea4500
|
||||
KERNEL_SIZE := 2688k
|
||||
KERNEL_IN_UBI :=
|
||||
UBINIZE_OPTS := -E 5
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
|
||||
BOARD_NAME := linksys-viper
|
||||
SUPPORTED_DEVICES += linksys,viper linksys-viper
|
||||
endef
|
||||
TARGET_DEVICES += linksys_viper
|
||||
TARGET_DEVICES += linksys_ea4500
|
||||
|
||||
define Device/raidsonic_ib-nas62x0
|
||||
DEVICE_VENDOR := RaidSonic
|
||||
|
Loading…
Reference in New Issue
Block a user