Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tbblgm119
lede
提交
5c05cbbc
L
lede
项目概览
tbblgm119
/
lede
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
lede
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5c05cbbc
编写于
5月 16, 2018
作者:
C
coolsnowwolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add support for Linksys WRT32X (venom)
上级
b308fdea
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
248 addition
and
8 deletion
+248
-8
package/boot/uboot-envtools/files/mvebu
package/boot/uboot-envtools/files/mvebu
+2
-1
target/linux/mvebu/base-files/etc/board.d/01_leds
target/linux/mvebu/base-files/etc/board.d/01_leds
+6
-0
target/linux/mvebu/base-files/etc/board.d/02_network
target/linux/mvebu/base-files/etc/board.d/02_network
+1
-0
target/linux/mvebu/base-files/etc/diag.sh
target/linux/mvebu/base-files/etc/diag.sh
+3
-0
target/linux/mvebu/base-files/etc/init.d/linksys_recovery
target/linux/mvebu/base-files/etc/init.d/linksys_recovery
+1
-1
target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
+1
-1
target/linux/mvebu/base-files/lib/mvebu.sh
target/linux/mvebu/base-files/lib/mvebu.sh
+3
-0
target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac
target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac
+1
-1
target/linux/mvebu/base-files/lib/preinit/81_linksys_syscfg
target/linux/mvebu/base-files/lib/preinit/81_linksys_syscfg
+1
-1
target/linux/mvebu/base-files/lib/upgrade/linksys.sh
target/linux/mvebu/base-files/lib/upgrade/linksys.sh
+1
-1
target/linux/mvebu/base-files/lib/upgrade/platform.sh
target/linux/mvebu/base-files/lib/upgrade/platform.sh
+2
-2
target/linux/mvebu/cortexa53/config-default
target/linux/mvebu/cortexa53/config-default
+2
-0
target/linux/mvebu/cortexa72/config-default
target/linux/mvebu/cortexa72/config-default
+3
-0
target/linux/mvebu/files-4.14/arch/arm/boot/dts/armada-385-linksys-venom.dts
...files-4.14/arch/arm/boot/dts/armada-385-linksys-venom.dts
+201
-0
target/linux/mvebu/image/cortex-a9.mk
target/linux/mvebu/image/cortex-a9.mk
+10
-0
target/linux/mvebu/patches-4.14/105-build_new_dtbs.patch
target/linux/mvebu/patches-4.14/105-build_new_dtbs.patch
+10
-0
未找到文件。
package/boot/uboot-envtools/files/mvebu
浏览文件 @
5c05cbbc
...
...
@@ -19,7 +19,8 @@ armada-385-linksys-cobra|\
armada-385-linksys-shelby
)
ubootenv_add_uci_config
"/dev/mtd1"
"0x0"
"0x20000"
"0x40000"
;;
armada-385-linksys-rango
)
armada-385-linksys-rango|
\
armada-385-linksys-venom
)
ubootenv_add_uci_config
"/dev/mtd1"
"0x0"
"0x20000"
"0x20000"
;;
armada-385-turris-omnia
)
...
...
target/linux/mvebu/base-files/etc/board.d/01_leds
浏览文件 @
5c05cbbc
...
...
@@ -35,6 +35,12 @@ armada-385-linksys-shelby)
ucidef_set_led_usbport
"usb2"
"USB 2"
"pca963x:shelby:white:usb3_1"
"usb2-port1"
"usb3-port1"
ucidef_set_led_usbport
"usb2_ss"
"USB 2 SS"
"pca963x:shelby:white:usb3_2"
"usb3-port1"
;;
armada-385-linksys-venom
)
ucidef_set_led_netdev
"wan"
"WAN"
"pca963x:venom:blue:wan"
"eth1"
ucidef_set_led_usbport
"usb1"
"USB 1"
"pca963x:venom:blue:usb2"
"usb1-port1"
ucidef_set_led_usbport
"usb2"
"USB 2"
"pca963x:venom:blue:usb3_1"
"usb2-port1"
"usb3-port1"
ucidef_set_led_usbport
"usb2_ss"
"USB 2 SS"
"pca963x:venom:blue:usb3_2"
"usb3-port1"
;;
armada-xp-linksys-mamba
)
ucidef_set_led_netdev
"wan"
"WAN"
"mamba:white:wan"
"eth1"
ucidef_set_led_usbport
"usb1"
"USB 1"
"mamba:white:usb2"
"usb1-port1"
...
...
target/linux/mvebu/base-files/etc/board.d/02_network
浏览文件 @
5c05cbbc
...
...
@@ -18,6 +18,7 @@ armada-385-linksys-caiman|\
armada-385-linksys-cobra|
\
armada-385-linksys-rango|
\
armada-385-linksys-shelby|
\
armada-385-linksys-venom|
\
armada-xp-linksys-mamba
)
ucidef_set_interfaces_lan_wan
"eth0.1"
"eth1.2"
ucidef_add_switch
"switch0"
\
...
...
target/linux/mvebu/base-files/etc/diag.sh
浏览文件 @
5c05cbbc
...
...
@@ -19,6 +19,9 @@ get_status_led() {
armada-385-linksys-shelby
)
status_led
=
"shelby:white:power"
;;
armada-385-linksys-venom
)
status_led
=
"venom:blue:power"
;;
armada-xp-linksys-mamba
)
status_led
=
"mamba:white:power"
;;
...
...
target/linux/mvebu/base-files/etc/init.d/linksys_recovery
浏览文件 @
5c05cbbc
...
...
@@ -7,7 +7,7 @@ boot() {
.
/lib/functions.sh
case
$(
board_name
)
in
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-xp-linksys-mamba
)
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-
385-linksys-venom|armada-
xp-linksys-mamba
)
# make sure auto_recovery in uboot is always on
AUTO_RECOVERY_ENA
=
"
`
fw_printenv
-n
auto_recovery
`
"
if
[
"
$AUTO_RECOVERY_ENA
"
!=
"yes"
]
;
then
...
...
target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
浏览文件 @
5c05cbbc
...
...
@@ -11,7 +11,7 @@
board
=
$(
board_name
)
case
"
$board
"
in
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-shelby|armada-xp-linksys-mamba
)
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-shelby|armada-
385-linksys-venom|armada-
xp-linksys-mamba
)
SKU
=
$(
strings /dev/mtd3|sed
-ne
's/^cert_region=//p'
)
WIFIMAC2G
=
$(
macaddr_add
$(
cat
/sys/class/net/eth0/address
)
+1
)
WIFIMAC5G
=
$(
macaddr_add
$WIFIMAC2G
+1
)
...
...
target/linux/mvebu/base-files/lib/mvebu.sh
浏览文件 @
5c05cbbc
...
...
@@ -53,6 +53,9 @@ mvebu_board_detect() {
*
"Linksys WRT3200ACM"
)
name
=
"armada-385-linksys-rango"
;;
*
"Linksys WRT32X"
)
name
=
"armada-385-linksys-venom"
;;
*
"Marvell Armada 385 Access Point Development Board"
)
name
=
"armada-385-db-ap"
;;
...
...
target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac
浏览文件 @
5c05cbbc
...
...
@@ -14,7 +14,7 @@ preinit_set_mac_address() {
ip link set dev eth0 address $mac 2>/dev/null
ip link set dev eth1 address $mac 2>/dev/null
;;
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby)
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby
|armada-385-linksys-venom
)
# rename interfaces back to the way they were with 4.4
case "$(readlink /sys/class/net/eth0)" in
*f1070000*)
...
...
target/linux/mvebu/base-files/lib/preinit/81_linksys_syscfg
浏览文件 @
5c05cbbc
...
...
@@ -8,7 +8,7 @@ preinit_mount_syscfg() {
. /lib/functions.sh
case $(board_name) in
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-xp-linksys-mamba)
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-
385-linksys-venom|armada-
xp-linksys-mamba)
needs_recovery=0
syscfg_part=$(grep syscfg /proc/mtd |cut -c4)
ubiattach -m $syscfg_part || needs_recovery=1
...
...
target/linux/mvebu/base-files/lib/upgrade/linksys.sh
浏览文件 @
5c05cbbc
...
...
@@ -55,7 +55,7 @@ platform_do_upgrade_linksys() {
nand_upgrade_tar
"
$1
"
}
[
"
$magic_long
"
=
"27051956"
]
&&
{
[
"
$magic_long
"
=
"27051956"
-o
"
$magic_long
"
=
"0000a0e1"
]
&&
{
# check firmwares' rootfs types
local
target_mtd
=
$(
find_mtd_part
$part_label
)
local
oldroot
=
"
$(
linksys_get_root_magic
$target_mtd
)
"
...
...
target/linux/mvebu/base-files/lib/upgrade/platform.sh
浏览文件 @
5c05cbbc
...
...
@@ -13,7 +13,7 @@ platform_check_image() {
platform_do_upgrade
()
{
case
"
$(
board_name
)
"
in
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-xp-linksys-mamba
)
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-
385-linksys-venom|armada-
xp-linksys-mamba
)
platform_do_upgrade_linksys
"
$ARGV
"
;;
armada-385-turris-omnia|armada-388-clearfog-base|armada-388-clearfog-pro|globalscale,espressobin|marvell,armada8040-mcbin
)
...
...
@@ -26,7 +26,7 @@ platform_do_upgrade() {
}
platform_copy_config
()
{
case
"
$(
board_name
)
"
in
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-xp-linksys-mamba
)
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-
385-linksys-venom|armada-
xp-linksys-mamba
)
platform_copy_config_linksys
;;
armada-385-turris-omnia|armada-388-clearfog-base|armada-388-clearfog-pro|globalscale,espressobin|marvell,armada8040-mcbin
)
...
...
target/linux/mvebu/cortexa53/config-default
浏览文件 @
5c05cbbc
...
...
@@ -64,6 +64,7 @@ CONFIG_GENERIC_CSUM=y
CONFIG_GENERIC_IRQ_MIGRATION=y
CONFIG_GENERIC_PINCONF=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_HARDEN_BRANCH_PREDICTOR=y
CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
CONFIG_HAVE_ARCH_HUGE_VMAP=y
CONFIG_HAVE_ARCH_KASAN=y
...
...
@@ -109,4 +110,5 @@ CONFIG_SPI_ARMADA_3700=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_SYS_SUPPORTS_HUGETLBFS=y
CONFIG_THREAD_INFO_IN_TASK=y
CONFIG_UNMAP_KERNEL_AT_EL0=y
CONFIG_VMAP_STACK=y
target/linux/mvebu/cortexa72/config-default
浏览文件 @
5c05cbbc
...
...
@@ -62,6 +62,7 @@ CONFIG_GENERIC_CSUM=y
CONFIG_GENERIC_IRQ_MIGRATION=y
CONFIG_GENERIC_PINCONF=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_HARDEN_BRANCH_PREDICTOR=y
CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
CONFIG_HAVE_ARCH_HUGE_VMAP=y
CONFIG_HAVE_ARCH_KASAN=y
...
...
@@ -77,6 +78,7 @@ CONFIG_HAVE_RCU_TABLE_FREE=y
# CONFIG_HUGETLBFS is not set
CONFIG_I2C_MUX_PCA954x=y
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
CONFIG_MARVELL_10G_PHY=y
CONFIG_MFD_SYSCON=y
CONFIG_MMC_SDHCI_XENON=y
CONFIG_MODULES_USE_ELF_RELA=y
...
...
@@ -117,4 +119,5 @@ CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_SYS_SUPPORTS_HUGETLBFS=y
CONFIG_THREAD_INFO_IN_TASK=y
CONFIG_UNMAP_KERNEL_AT_EL0=y
CONFIG_VMAP_STACK=y
target/linux/mvebu/files-4.14/arch/arm/boot/dts/armada-385-linksys-venom.dts
0 → 100644
浏览文件 @
5c05cbbc
/*
*
Device
Tree
file
for
the
Linksys
WRT32X
(
Venom
)
*
*
Copyright
(
C
)
2017
Imre
Kaloz
<
kaloz
@
openwrt
.
org
>
*
*
*
This
file
is
dual
-
licensed
:
you
can
use
it
either
under
the
terms
*
of
the
GPL
or
the
X11
license
,
at
your
option
.
Note
that
this
dual
*
licensing
only
applies
to
this
file
,
and
not
this
project
as
a
*
whole
.
*
*
a
)
This
file
is
licensed
under
the
terms
of
the
GNU
General
Public
*
License
version
2.
This
program
is
licensed
"as is"
without
*
any
warranty
of
any
kind
,
whether
express
or
implied
.
*
*
Or
,
alternatively
,
*
*
b
)
Permission
is
hereby
granted
,
free
of
charge
,
to
any
person
*
obtaining
a
copy
of
this
software
and
associated
documentation
*
files
(
the
"Software"
),
to
deal
in
the
Software
without
*
restriction
,
including
without
limitation
the
rights
to
use
,
*
copy
,
modify
,
merge
,
publish
,
distribute
,
sublicense
,
and
/
or
*
sell
copies
of
the
Software
,
and
to
permit
persons
to
whom
the
*
Software
is
furnished
to
do
so
,
subject
to
the
following
*
conditions
:
*
*
The
above
copyright
notice
and
this
permission
notice
shall
be
*
included
in
all
copies
or
substantial
portions
of
the
Software
.
*
*
THE
SOFTWARE
IS
PROVIDED
"AS IS"
,
WITHOUT
WARRANTY
OF
ANY
KIND
,
*
EXPRESS
OR
IMPLIED
,
INCLUDING
BUT
NOT
LIMITED
TO
THE
WARRANTIES
*
OF
MERCHANTABILITY
,
FITNESS
FOR
A
PARTICULAR
PURPOSE
AND
*
NONINFRINGEMENT
.
IN
NO
EVENT
SHALL
THE
AUTHORS
OR
COPYRIGHT
*
HOLDERS
BE
LIABLE
FOR
ANY
CLAIM
,
DAMAGES
OR
OTHER
LIABILITY
,
*
WHETHER
IN
AN
ACTION
OF
CONTRACT
,
TORT
OR
OTHERWISE
,
ARISING
*
FROM
,
OUT
OF
OR
IN
CONNECTION
WITH
THE
SOFTWARE
OR
THE
USE
OR
*
OTHER
DEALINGS
IN
THE
SOFTWARE
.
*/
/
dts
-
v1
/;
#
include
<
dt
-
bindings
/
gpio
/
gpio
.
h
>
#
include
<
dt
-
bindings
/
input
/
input
.
h
>
#
include
"armada-385-linksys.dtsi"
/
{
model
=
"Linksys WRT32X"
;
compatible
=
"linksys,venom"
,
"linksys,armada385"
,
"marvell,armada385"
,
"marvell,armada380"
;
};
&
expander0
{
wan_amber
@
0
{
label
=
"venom:amber:wan"
;
reg
=
<
0x0
>;
};
wan_blue
@
1
{
label
=
"venom:blue:wan"
;
reg
=
<
0x1
>;
};
usb2
@
5
{
label
=
"venom:blue:usb2"
;
reg
=
<
0x5
>;
};
usb3_1
@
6
{
label
=
"venom:blue:usb3_1"
;
reg
=
<
0x6
>;
};
usb3_2
@
7
{
label
=
"venom:blue:usb3_2"
;
reg
=
<
0x7
>;
};
wps_blue
@
8
{
label
=
"venom:blue:wps"
;
reg
=
<
0x8
>;
};
wps_amber
@
9
{
label
=
"venom:amber:wps"
;
reg
=
<
0x9
>;
};
};
&
gpio_leds
{
power
{
gpios
=
<&
gpio1
24
GPIO_ACTIVE_HIGH
>;
label
=
"venom:blue:power"
;
};
sata
{
gpios
=
<&
gpio1
21
GPIO_ACTIVE_LOW
>;
label
=
"venom:blue:sata"
;
};
wlan_2g
{
gpios
=
<&
gpio1
13
GPIO_ACTIVE_LOW
>;
label
=
"venom:blue:wlan_2g"
;
};
wlan_5g
{
gpios
=
<&
gpio1
14
GPIO_ACTIVE_LOW
>;
label
=
"venom:blue:wlan_5g"
;
};
};
&
gpio_leds_pins
{
marvell
,
pins
=
"mpp21"
,
"mpp45"
,
"mpp46"
,
"mpp56"
;
};
&
nand
{
/*
Spansion
S34ML02G2
256
MiB
,
OEM
Layout
*/
partition
@
0
{
label
=
"u-boot"
;
reg
=
<
0x0000000
0x200000
>;
/*
2
MB
*/
read
-
only
;
};
partition
@
200000
{
label
=
"u_env"
;
reg
=
<
0x200000
0x20000
>;
/*
128
KB
*/
};
partition
@
220000
{
label
=
"s_env"
;
reg
=
<
0x220000
0x40000
>;
/*
256
KB
*/
};
partition
@
180000
{
label
=
"unused_area"
;
reg
=
<
0x260000
0x5c0000
>;
/*
5.75
MB
*/
};
partition
@
7e0000
{
label
=
"devinfo"
;
reg
=
<
0x7e0000
0x40000
>;
/*
256
KB
*/
read
-
only
;
};
/*
kernel1
overlaps
with
rootfs1
by
design
*/
partition
@
900000
{
label
=
"kernel1"
;
reg
=
<
0x900000
0x7b00000
>;
/*
123
MB
*/
};
partition
@
c00000
{
label
=
"rootfs1"
;
reg
=
<
0xc00000
0x7800000
>;
/*
120
MB
*/
};
/*
kernel2
overlaps
with
rootfs2
by
design
*/
partition
@
8400000
{
label
=
"kernel2"
;
reg
=
<
0x8400000
0x7b00000
>;
/*
123
MB
*/
};
partition
@
8700000
{
label
=
"rootfs2"
;
reg
=
<
0x8700000
0x7800000
>;
/*
120
MB
*/
};
/*
last
MB
is
for
the
BBT
,
not
writable
*/
partition
@
ff00000
{
label
=
"BBT"
;
reg
=
<
0xff00000
0x100000
>;
};
};
&
pcie1
{
mwlwifi
{
marvell
,
chainmask
=
<
4
4
>;
};
};
&
pcie2
{
mwlwifi
{
marvell
,
chainmask
=
<
4
4
>;
};
};
&
sdhci
{
pinctrl
-
names
=
"default"
;
pinctrl
-
0
=
<&
sdhci_pins
>;
no
-
1
-
8
-
v
;
non
-
removable
;
wp
-
inverted
;
bus
-
width
=
<
8
>;
status
=
"okay"
;
};
&
usb3_1_vbus
{
gpio
=
<&
gpio1
12
GPIO_ACTIVE_HIGH
>;
};
&
usb3_1_vbus_pins
{
marvell
,
pins
=
"mpp44"
;
};
target/linux/mvebu/image/cortex-a9.mk
浏览文件 @
5c05cbbc
...
...
@@ -51,6 +51,16 @@ define Device/linksys-wrt1900acs
endef
TARGET_DEVICES
+=
linksys-wrt1900acs
define
Device/linksys-wrt32x
$(call
Device/linksys,WRT32X
(Venom))
DEVICE_DTS
:=
armada-385-linksys-venom
DEVICE_PACKAGES
+=
kmod-btmrvl kmod-mwifiex-sdio mwlwifi-firmware-88w8964
$(Device/armada-385-linksys)
KERNEL_SIZE
:=
3072k
KERNEL
:=
kernel-bin | append-dtb
endef
TARGET_DEVICES
+=
linksys-wrt32x
define
Device/linksys-wrt1900ac
$(call
Device/linksys,WRT1900AC
(Mamba))
DEVICE_DTS
:=
armada-xp-linksys-mamba
...
...
target/linux/mvebu/patches-4.14/105-build_new_dtbs.patch
0 → 100644
浏览文件 @
5c05cbbc
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1027,6 +1027,7 @@
dtb-$(CONFIG_MACH_ARMADA_38X) += \
armada-385-linksys-cobra.dtb \
armada-385-linksys-rango.dtb \
armada-385-linksys-shelby.dtb \
+ armada-385-linksys-venom.dtb \
armada-385-synology-ds116.dtb \
armada-385-turris-omnia.dtb \
armada-388-clearfog.dtb \
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录