Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tbblgm119
lede
提交
facb9642
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,发现更多精彩内容 >>
提交
facb9642
编写于
5月 12, 2019
作者:
C
coolsnowwolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ramips: add support for ASUS RT-AC54U
上级
95374449
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
177 addition
and
113 deletion
+177
-113
package/firmware/ath10k-firmware/Makefile
package/firmware/ath10k-firmware/Makefile
+8
-8
package/firmware/linux-firmware/qca_ath10k.mk
package/firmware/linux-firmware/qca_ath10k.mk
+0
-105
target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/base-files/etc/board.d/01_leds
+4
-0
target/linux/ramips/base-files/etc/board.d/02_network
target/linux/ramips/base-files/etc/board.d/02_network
+1
-0
target/linux/ramips/base-files/lib/ramips.sh
target/linux/ramips/base-files/lib/ramips.sh
+3
-0
target/linux/ramips/dts/RT-AC54U.dts
target/linux/ramips/dts/RT-AC54U.dts
+153
-0
target/linux/ramips/image/mt7620.mk
target/linux/ramips/image/mt7620.mk
+8
-0
未找到文件。
package/firmware/ath10k-firmware/Makefile
浏览文件 @
facb9642
...
...
@@ -403,7 +403,7 @@ define Package/ath10k-firmware-qca4019/install
$(PKG_BUILD_DIR)/QCA4019/hw1.0/board-2.bin
\
$(1)/lib/firmware/ath10k/QCA4019/hw1.0/
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/QCA4019/hw1.0/3.
5.3/firmware-5.bin_10.4-3.5.3-00057
\
$(PKG_BUILD_DIR)/QCA4019/hw1.0/3.
6/firmware-5.bin_10.4-3.6-00140
\
$(1)/lib/firmware/ath10k/QCA4019/hw1.0/firmware-5.bin
endef
...
...
@@ -606,13 +606,13 @@ define Package/ath10k-firmware-qca9888-ct-htt/install
$(1)
/lib/firmware/ath10k/QCA9888/hw2.0/ct-firmware-5.bin
endef
#
$(eval $(call BuildPackage,ath10k-firmware-qca9887))
#
$(eval $(call BuildPackage,ath10k-firmware-qca9888))
#
$(eval $(call BuildPackage,ath10k-firmware-qca988x))
#
$(eval $(call BuildPackage,ath10k-firmware-qca99x0))
#
$(eval $(call BuildPackage,ath10k-firmware-qca6174))
#
$(eval $(call BuildPackage,ath10k-firmware-qca9984))
#
$(eval $(call BuildPackage,ath10k-firmware-qca4019))
$(eval
$(call
BuildPackage,ath10k-firmware-qca9887))
$(eval
$(call
BuildPackage,ath10k-firmware-qca9888))
$(eval
$(call
BuildPackage,ath10k-firmware-qca988x))
$(eval
$(call
BuildPackage,ath10k-firmware-qca99x0))
$(eval
$(call
BuildPackage,ath10k-firmware-qca6174))
$(eval
$(call
BuildPackage,ath10k-firmware-qca9984))
$(eval
$(call
BuildPackage,ath10k-firmware-qca4019))
$(eval
$(call
BuildPackage,ath10k-firmware-qca9887-ct))
$(eval
$(call
BuildPackage,ath10k-firmware-qca9887-ct-htt))
...
...
package/firmware/linux-firmware/qca_ath10k.mk
已删除
100644 → 0
浏览文件 @
95374449
QCA99X0_BOARD_REV
:=
ddcec9efd245da9365c474f513a855a55f3ac7fe
QCA99X0_BOARD_FILE
:=
board-2.bin.
$(QCA99X0_BOARD_REV)
define
Download/qca99x0-board
URL
:=
https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA99X0/hw2.0
URL_FILE
:=
board-2.bin?id
=
$(QCA99X0_BOARD_REV)
FILE
:=
$(QCA99X0_BOARD_FILE)
HASH
:=
03711ac21e60ef59d3815e235eb721c0c22851b5410299411085aa6f2af45401
endef
$(eval
$(call
Download,qca99x0-board))
Package/
ath10k-firmware-qca4019
=
$(
call
Package/firmware-default,ath10k qca4019 firmware
)
define
Package/ath10k-firmware-qca4019/install
$(INSTALL_DIR)
$(1)/lib/firmware/ath10k/QCA4019/hw1.0
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA4019/hw1.0/board-2.bin
\
$(1)/lib/firmware/ath10k/QCA4019/hw1.0/
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA4019/hw1.0/firmware-5.bin
\
$(1)/lib/firmware/ath10k/QCA4019/hw1.0/firmware-5.bin
endef
$(eval
$(call
BuildPackage,ath10k-firmware-qca4019))
Package/
ath10k-firmware-qca9887
=
$(
call
Package/firmware-default,ath10k qca9887 firmware
)
define
Package/ath10k-firmware-qca9887/install
$(INSTALL_DIR)
$(1)/lib/firmware/ath10k/QCA9887/hw1.0
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA9887/hw1.0/firmware-5.bin
\
$(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-5.bin
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA9887/hw1.0/board.bin
\
$(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
endef
$(eval
$(call
BuildPackage,ath10k-firmware-qca9887))
Package/
ath10k-firmware-qca9888
=
$(
call
Package/firmware-default,ath10k qca9888 firmware
)
define
Package/ath10k-firmware-qca9888/install
$(INSTALL_DIR)
$(1)/lib/firmware/ath10k/QCA9888/hw2.0
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA9888/hw2.0/board-2.bin
\
$(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA9888/hw2.0/firmware-5.bin
\
$(1)/lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
endef
$(eval
$(call
BuildPackage,ath10k-firmware-qca9888))
Package/
ath10k-firmware-qca988x
=
$(
call
Package/firmware-default,ath10k qca988x firmware
)
define
Package/ath10k-firmware-qca988x/install
$(INSTALL_DIR)
$(1)/lib/firmware/ath10k/QCA988X/hw2.0
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA988X/hw2.0/board.bin
\
$(1)/lib/firmware/ath10k/QCA988X/hw2.0/
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA988X/hw2.0/firmware-5.bin
\
$(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
endef
$(eval
$(call
BuildPackage,ath10k-firmware-qca988x))
Package/
ath10k-firmware-qca6174
=
$(
call
Package/firmware-default,ath10k qca6174 firmware
)
define
Package/ath10k-firmware-qca6174/install
$(INSTALL_DIR)
$(1)/lib/firmware/ath10k/QCA6174/hw2.1
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA6174/hw2.1/board-2.bin
\
$(1)/lib/firmware/ath10k/QCA6174/hw2.1/
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA6174/hw2.1/firmware-5.bin
\
$(1)/lib/firmware/ath10k/QCA6174/hw2.1/firmware-5.bin
$(INSTALL_DIR)
$(1)/lib/firmware/ath10k/QCA6174/hw3.0
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA6174/hw3.0/board-2.bin
\
$(1)/lib/firmware/ath10k/QCA6174/hw3.0/
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA6174/hw3.0/firmware-6.bin
\
$(1)/lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin
endef
$(eval
$(call
BuildPackage,ath10k-firmware-qca6174))
Package/
ath10k-firmware-qca99x0
=
$(
call
Package/firmware-default,ath10k qca99x0 firmware
)
define
Package/ath10k-firmware-qca99x0/install
$(INSTALL_DIR)
$(1)/lib/firmware/ath10k/QCA99X0/hw2.0
$(INSTALL_DATA)
\
$(DL_DIR)/$(QCA99X0_BOARD_FILE)
\
$(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA99X0/hw2.0/board.bin
\
$(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA99X0/hw2.0/firmware-5.bin
\
$(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
endef
$(eval
$(call
BuildPackage,ath10k-firmware-qca99x0))
Package/
ath10k-firmware-qca9984
=
$(
call
Package/firmware-default,ath10k qca9984 firmware
)
define
Package/ath10k-firmware-qca9984/install
$(INSTALL_DIR)
$(1)/lib/firmware/ath10k/QCA9984/hw1.0
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA9984/hw1.0/board-2.bin
\
$(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
$(INSTALL_DATA)
\
$(PKG_BUILD_DIR)/ath10k/QCA9984/hw1.0/firmware-5.bin
\
$(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
endef
$(eval
$(call
BuildPackage,ath10k-firmware-qca9984))
target/linux/ramips/base-files/etc/board.d/01_leds
浏览文件 @
facb9642
...
...
@@ -299,6 +299,10 @@ rp-n53)
rt-ac51u
)
set_wifi_led
"
$boardname
:blue:wifi"
;;
rt-ac54u
)
ucidef_set_led_netdev
"wifi2g"
"Wifi 2.4G"
"
$boardname
:blue:wifi"
"wlan1"
set_usb_led
"
$boardname
:blue:usb"
;;
rt-n12p
)
ucidef_set_led_netdev
"lan"
"lan"
"
$boardname
:green:lan"
eth0.1
ucidef_set_led_netdev
"wan"
"wan"
"
$boardname
:green:wan"
eth0.2
...
...
target/linux/ramips/base-files/etc/board.d/02_network
浏览文件 @
facb9642
...
...
@@ -198,6 +198,7 @@ ramips_setup_interfaces()
;;
ar670w|
\
ar725w|
\
rt-ac54u|
\
rt-ac51u
)
ucidef_add_switch
"switch0"
\
"0:wan"
"1:lan"
"2:lan"
"3:lan"
"4:lan"
"6t@eth0"
...
...
target/linux/ramips/base-files/lib/ramips.sh
浏览文件 @
facb9642
...
...
@@ -442,6 +442,9 @@ ramips_board_detect() {
*
"RT-AC51U"
)
name
=
"rt-ac51u"
;;
*
"RT-AC54U"
)
name
=
"rt-ac54u"
;;
*
"RT-G32 B1"
)
name
=
"rt-g32-b1"
;;
...
...
target/linux/ramips/dts/RT-AC54U.dts
0 → 100644
浏览文件 @
facb9642
//
SPDX
-
License
-
Identifier
:
GPL
-
2.0
-
or
-
later
OR
MIT
/
dts
-
v1
/;
#
include
"mt7620a.dtsi"
#
include
<
dt
-
bindings
/
gpio
/
gpio
.
h
>
#
include
<
dt
-
bindings
/
input
/
input
.
h
>
/
{
compatible
=
"asus,rt-ac54u"
,
"ralink,mt7620a-soc"
;
model
=
"Asus RT-AC54U"
;
aliases
{
led
-
boot
=
&
led_power
;
led
-
failsafe
=
&
led_power
;
led
-
running
=
&
led_power
;
led
-
upgrade
=
&
led_power
;
};
leds
{
compatible
=
"gpio-leds"
;
led_power
:
power
{
label
=
"rt-ac54u:blue:power"
;
gpios
=
<&
gpio0
9
GPIO_ACTIVE_LOW
>;
};
usb
{
label
=
"rt-ac54u:blue:usb"
;
gpios
=
<&
gpio0
14
GPIO_ACTIVE_LOW
>;
trigger
-
sources
=
<&
ohci_port1
>,
<&
ehci_port1
>;
linux
,
default
-
trigger
=
"usbport"
;
};
wifi
{
label
=
"rt-ac54u:blue:wifi"
;
gpios
=
<&
gpio3
0
GPIO_ACTIVE_LOW
>;
};
};
keys
{
compatible
=
"gpio-keys-polled"
;
poll
-
interval
=
<
20
>;
reset
{
label
=
"reset"
;
gpios
=
<&
gpio0
1
GPIO_ACTIVE_LOW
>;
linux
,
code
=
<
KEY_RESTART
>;
};
wps
{
label
=
"wps"
;
gpios
=
<&
gpio0
2
GPIO_ACTIVE_LOW
>;
linux
,
code
=
<
KEY_WPS_BUTTON
>;
};
};
gpio_export
{
compatible
=
"gpio-export"
;
#
size
-
cells
=
<
0
>;
enable
-
leds
{
gpio
-
export
,
name
=
"enable-leds"
;
gpio
-
export
,
output
=
<
0
>;
gpios
=
<&
gpio0
10
GPIO_ACTIVE_HIGH
>;
};
};
};
&
spi0
{
status
=
"okay"
;
flash
@
0
{
compatible
=
"jedec,spi-nor"
;
reg
=
<
0
>;
spi
-
max
-
frequency
=
<
10000000
>;
partitions
{
compatible
=
"fixed-partitions"
;
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
1
>;
partition
@
0
{
label
=
"u-boot"
;
reg
=
<
0x0
0x30000
>;
read
-
only
;
};
partition
@
30000
{
label
=
"u-boot-env"
;
reg
=
<
0x30000
0x10000
>;
read
-
only
;
};
factory
:
partition
@
40000
{
label
=
"factory"
;
reg
=
<
0x40000
0x10000
>;
read
-
only
;
};
partition
@
50000
{
compatible
=
"denx,uimage"
;
label
=
"firmware"
;
reg
=
<
0x50000
0xfb0000
>;
};
};
};
};
&
ehci
{
status
=
"okay"
;
};
&
ohci
{
status
=
"okay"
;
};
&
gpio3
{
status
=
"okay"
;
};
&
ethernet
{
status
=
"okay"
;
mtd
-
mac
-
address
=
<&
factory
0x4
>;
mediatek
,
portmap
=
"wllll"
;
};
&
wmac
{
ralink
,
mtd
-
eeprom
=
<&
factory
0
>;
};
&
pinctrl
{
state_default
:
pinctrl0
{
gpio
{
ralink
,
group
=
"i2c"
,
"wled"
,
"uartf"
;
ralink
,
function
=
"gpio"
;
};
};
};
&
pcie
{
status
=
"okay"
;
};
&
pcie0
{
wifi
@
0
,
0
{
reg
=
<
0x0000
0
0
0
0
>;
mediatek
,
mtd
-
eeprom
=
<&
factory
0x8000
>;
led
{
led
-
sources
=
<
2
>;
};
};
};
target/linux/ramips/image/mt7620.mk
浏览文件 @
facb9642
...
...
@@ -536,6 +536,14 @@ define Device/rt-ac51u
endef
TARGET_DEVICES
+=
rt-ac51u
define
Device/rt-ac54u
DTS
:=
RT-AC54U
IMAGE_SIZE
:=
$(ralink_default_fw_size_16M)
DEVICE_TITLE
:=
Asus RT-AC54U
DEVICE_PACKAGES
:=
kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
endef
TARGET_DEVICES
+=
rt-ac54u
define
Device/tiny-ac
DTS
:=
TINY-AC
DEVICE_TITLE
:=
Dovado Tiny AC
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录