[OpenWrt-Devel] [PATCH] ar71xx: fix qca956x ge0 speed

2016-03-25 Thread Weijie Gao
when qca956x uses the internal fe switch, the dummy function should be used Signed-off-by: Weijie Gao --- target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux

[OpenWrt-Devel] [PATCH v2] ar71xx: fix qca956x ethernet initialization

2016-03-05 Thread Weijie Gao
Signed-off-by: Weijie Gao Complete internal switch initialization for QCA956X. Set default mdio device if the interface mode of GE0 is not SGMII (fix ticket #21520). --- target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 21 ++--- 1 file changed, 18 insertions(+), 3

[OpenWrt-Devel] [PATCH] ar71xx: fix qca956x ethernet initialization

2016-03-05 Thread Weijie Gao
Signed-off-by: Weijie Gao fix ticket #21520 --- target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux/ar71xx/files/arch/mips/ath79/dev

Re: [OpenWrt-Devel] [PATCH] ramips: reset m25p80 when shutdown

2015-11-11 Thread Weijie Gao
2015-11-08 4:42 GMT+08:00 Shonn Lu : > Signed-off-by: Shonn Lu > --- > .../0064-reset-m25p80-when-shutdown.patch | 24 > ++ > 1 file changed, 24 insertions(+) > create mode 100644 > target/linux/ramips/patches-3.18/0064-reset-m25p80-when-shutdown.patch > > diff --gi

Re: [OpenWrt-Devel] [PATCH 3/7] ar71xx/image: migrate tl-wdr6500-v2 to new image build steps

2015-11-01 Thread Weijie Gao
2015-10-31 22:20 GMT+08:00 Felix Fietkau : > On 2015-10-31 15:02, Weijie Gao wrote: > > HI, > > > > I have this router and I submitted this router's mach. > > > > Have you noticed that the TPLINK-64K generates a U-Boot image for the > > kernel at fi

Re: [OpenWrt-Devel] [PATCH 3/7] ar71xx/image: migrate tl-wdr6500-v2 to new image build steps

2015-10-31 Thread Weijie Gao
I'll have a try. But there's another issue. The firmware uses a version 2 magic, specified by "-m 2" cmdline passed to mktplinkfw. Directly call mktplinkfw-initramfs or mktplinkfw will create a version 1 firmware. 2015-10-31 22:20 GMT+08:00 Felix Fietkau : > On 2015-

Re: [OpenWrt-Devel] [PATCH 3/7] ar71xx/image: migrate tl-wdr6500-v2 to new image build steps

2015-10-31 Thread Weijie Gao
HI, I have this router and I submitted this router's mach. Have you noticed that the TPLINK-64K generates a U-Boot image for the kernel at first? The normal routine does not do that. So this firmware has two headers, first the tp-link header then the u-boot header. If the u-boot header disappea

Re: [OpenWrt-Devel] [PATCH 3/7] ar71xx/image: migrate tl-wdr6500-v2 to new image build steps

2015-10-31 Thread Weijie Gao
Hi, The TL-WDR6500 v2 does not use the standard TP-LINK firmware header. The kernel has a U-Boot header. If you use tplink-8mlzma, the bootloader won't recognize it. Please revert this patch. Regards, Weijie 2015-10-31 8:54 GMT+08:00 Alexander Couzens : > Signed-off-by: Alexander Couzens > -

[OpenWrt-Devel] [PATCH] ar71xx: add TP-LINK TL-WDR3320 v2 support

2015-09-09 Thread Weijie Gao
Signed-off-by: Weijie Gao This patch adds support for TP-LINK TL-WDR3320 v2. This router uses a chinese version 2 firmware header,. --- target/linux/ar71xx/base-files/etc/diag.sh | 1 + .../ar71xx/base-files/etc/uci-defaults/01_leds | 4 + .../ar71xx/base-files/etc/uci-defaults

[OpenWrt-Devel] [PATCH] ar71xx: fix ar724x clock calculation

2015-09-08 Thread Weijie Gao
Signed-off-by: Weijie Gao According to the AR7242 datasheet section 2.8, AR724X CPUs use a 40MHz input clock as the REF_CLK instead of 5MHz. The correct CPU PLL calculation procedure is as follows: CPU_PLL = (DIV * REF_CLK) / REF_DIV / 2. This patch is compatible with the current calculation

[OpenWrt-Devel] [PATCH 3/3] ar71xx: add support for TP-Link TL-WDR6500 v2

2015-08-05 Thread Weijie Gao
Signed-off-by: Weijie Gao This patch adds support for TP-Link TL-WDR6500 v2. The firmware has a U-Boot header for kernel, and a TP-LINK v2 header for the whole firmware, so I have to create a new firmware creation method. --- target/linux/ar71xx/base-files/etc/diag.sh | 3 + .../etc

[OpenWrt-Devel] [PATCH 2/3] ar71xx: add 64kb bootloader mtd parser for tplinkpart

2015-08-05 Thread Weijie Gao
Signed-off-by: Weijie Gao This patch adds flash layout parser for TP-Link firmwares which have a 64kb bootloader. This is used for TP-Link TL-WDR6500 v2. --- target/linux/ar71xx/files/drivers/mtd/tplinkpart.c | 35 ++ 1 file changed, 29 insertions(+), 6 deletions(-) diff

[OpenWrt-Devel] [PATCH 1/3] tools/firmware-utils: add header version 2 support for mktplinkfw

2015-08-05 Thread Weijie Gao
Signed-off-by: Weijie Gao This patch adds header version 2 option for mktplinkfw. The version 2 header is used for AR/QCA firmwares and is not the same as the header generated by mktplinkfw2. Instead, it is nearly the same as version 1 header except for the header version and the RSA signature

Re: [OpenWrt-Devel] [PATCH] ar71xx: add support for qca956x soc

2014-12-13 Thread Weijie Gao
在 2014/12/13 23:16, Felix Fietkau 写道: > On 2014-12-12 16:13, Weijie Gao wrote: >> This patch adds soc support for QCA9561 and TP9343. >> TP9343 is a reduced version of QCA9561, which can be found in TP-LINK >> routers in China. >> The qca956x_wmac has not

[OpenWrt-Devel] [PATCH] ar71xx: add support for qca956x soc

2014-12-12 Thread Weijie Gao
This patch adds soc support for QCA9561 and TP9343. TP9343 is a reduced version of QCA9561, which can be found in TP-LINK routers in China. The qca956x_wmac has not yet been supported by ath9k. tested on TL-WDR6500 and TL-WR882N v1 (Chinese version) Signed-off-by: Weijie Gao --- target/linux

[OpenWrt-Devel] [PATCH] ar8216: enable cpu port to receive arp and broadcast frames for ar8236

2014-12-08 Thread Weijie Gao
Signed-off-by: Weijie Gao --- target/linux/generic/files/drivers/net/phy/ar8216.c | 9 + target/linux/generic/files/drivers/net/phy/ar8216.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers

Re: [OpenWrt-Devel] On support status of OpenWrt for Qihoo C301

2014-09-23 Thread Weijie Gao
kernel, the MD5 digest will not be corrupted. The three ethernet LEDs are directly configured in mach-qihoo-c301.c, so it is not necessary to defined as GPIO LEDs. BTW, there are two status LEDs in the front, one is green and another one is red. Weijie Gao. 于 2014年09月23日 17:00, Yousong Zhou

Re: [OpenWrt-Devel] [PATCH][RESEND.3] ar71xx:stops qihoo c301 booting into backup firmware

2014-09-20 Thread Weijie Gao
Hi, You need to register a account at patchwork.openwrt.org, and mark your previous patches Superseded. Weijie Gao On 2014/9/20 17:18, swigger wrote: > Openwrt recently adds Qihoo [NYSE:QIHU] C301 router support. > However, this router has a backup firmware in the second flash a

Re: [OpenWrt-Devel] [PATCH] [ar71xx] stops qihoo 360 c301 booting into backup firmware

2014-09-19 Thread Weijie Gao
Hi, It's great. I hope this can be applied. However, your patch seems to be whitespace broken. Please fix it and resend. Weijie Gao On 2014/9/20 0:50, swigger wrote: > Openwrt recently adds Qihoo [NYSE:QIHU] C301 router support. > However, this router has a backup firmware in the s

[OpenWrt-Devel] [PATCH v2] ar71xx: add qihoo 360 c301 router support

2014-09-11 Thread Weijie Gao
: Weijie Gao --- target/linux/ar71xx/base-files/etc/diag.sh | 3 + .../ar71xx/base-files/etc/uci-defaults/01_leds | 4 + .../ar71xx/base-files/etc/uci-defaults/02_network | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 + .../lib/preinit/81_load_ath10k_board_bin

[OpenWrt-Devel] [PATCH] [RESEND] ar71xx: add qihoo 360 c301 router support

2014-09-11 Thread Weijie Gao
Qihoo 360 C301 is a dual band wireless router supports 802.11n and 802.11ac. Its chipset is AR9344 + AR9882 with two 16MB flashes. This patch adds its initial support. Signed-off-by: Weijie Gao --- target/linux/ar71xx/base-files/etc/diag.sh | 3 + .../ar71xx/base-files/etc/uci

[OpenWrt-Devel] [PATCH] ar71xx: add qihoo 360 c301 router support

2014-09-09 Thread Weijie Gao
Add Qihoo 360 C301 router support Signed-off-by: Weijie Gao --- The hardware of Qihoo 360 C301 router is AR9344 + AR9882 with 128MB RAM and two 16MB flashes. The sysupgrade firmware can be upgraded directly in its offical bootloader. target/linux/ar71xx/base-files/etc/diag.sh |3