找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: hzjnet@163.com

20190829更新,集成大雕9817版和Lienol190803版源码,含mesh\SFE\上网等,7615闭源驱动

 火... [复制链接]
发表于 2017-9-29 14:05 | 显示全部楼层
本帖最后由 hello_limin 于 2017-9-30 16:38 编辑
  1. /*
  2. *  TP-LINK TL-WDR3320-v2 board support
  3. *
  4. *  Copyright (C) 2012 Gabor Juhos <juhosg@openwrt.org>
  5. *  Copyright (C) 2013 Gui Iribarren <gui@altermundi.net>
  6. *
  7. *  This program is free software; you can redistribute it and/or modify it
  8. *  under the terms of the GNU General Public License version 2 as published
  9. *  by the Free Software Foundation.
  10. */

  11. #include <linux/pci.h>
  12. #include <linux/phy.h>
  13. #include <linux/gpio.h>
  14. #include <linux/platform_device.h>
  15. #include <linux/ath9k_platform.h>

  16. #include <asm/mach-ath79/ar71xx_regs.h>

  17. #include "common.h"
  18. #include "dev-ap9x-pci.h"
  19. #include "dev-eth.h"
  20. #include "dev-gpio-buttons.h"
  21. #include "dev-leds-gpio.h"
  22. #include "dev-m25p80.h"
  23. #include "dev-spi.h"
  24. #include "pci.h"
  25. #include "dev-wmac.h"
  26. #include "machtypes.h"

  27. #define WDR3320_GPIO_LED_WLAN                12
  28. #define WDR3320_GPIO_LED_SYSTEM                14
  29. #define WDR3320_GPIO_LED_QSS                15
  30. #define WDR3320_GPIO_LED_WAN                4
  31. #define WDR3320_GPIO_LED_LAN1                18
  32. #define WDR3320_GPIO_LED_LAN2                20
  33. #define WDR3320_GPIO_LED_LAN3                21
  34. #define WDR3320_GPIO_LED_LAN4                22

  35. #define WDR3320_GPIO_BTN_WPS                16

  36. #define WDR3320_KEYS_POLL_INTERVAL        20        /* msecs */
  37. #define WDR3320_KEYS_DEBOUNCE_INTERVAL        (3 * WDR3320_KEYS_POLL_INTERVAL)

  38. #define WDR3320_WMAC_CALDATA_OFFSET        0x1000
  39. #define WDR3320_PCIE_CALDATA_OFFSET        0x5000

  40. static const char *wdr3320_part_probes[] = {
  41.         "tp-link",
  42.         NULL,
  43. };

  44. static struct flash_platform_data wdr3320_flash_data = {
  45.         .part_probes        = wdr3320_part_probes,
  46. };

  47. static struct gpio_led wdr3320_leds_gpio[] __initdata = {
  48.         {
  49.                 .name                = "tp-link:green:qss",
  50.                 .gpio                = WDR3320_GPIO_LED_QSS,
  51.                 .active_low        = 1,
  52.         },
  53.         {
  54.                 .name                = "tp-link:green:system",
  55.                 .gpio                = WDR3320_GPIO_LED_SYSTEM,
  56.                 .active_low        = 1,
  57.         },
  58.         {
  59.                 .name                = "tp-link:green:wan",
  60.                 .gpio                = WDR3320_GPIO_LED_WAN,
  61.                 .active_low        = 1,
  62.         },
  63.         {
  64.                 .name                = "tp-link:green:wlan",
  65.                 .gpio                = WDR3320_GPIO_LED_WLAN,
  66.                 .active_low        = 1,
  67.         },
  68. };

  69. static struct gpio_keys_button wdr3320_gpio_keys[] __initdata = {
  70.         {
  71.                 .desc                = "QSS button",
  72.                 .type                = EV_KEY,
  73.                 .code                = KEY_WPS_BUTTON,
  74.                 .debounce_interval = WDR3320_KEYS_DEBOUNCE_INTERVAL,
  75.                 .gpio                = WDR3320_GPIO_BTN_WPS,
  76.                 .active_low        = 1,
  77.         },
  78. };


  79. static void __init wdr3320_setup(void)
  80. {
  81.         u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
  82.         u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
  83.         u8 tmpmac[ETH_ALEN];

  84.         ath79_register_m25p80(&wdr3320_flash_data);

  85.         ath79_register_leds_gpio(-1, ARRAY_SIZE(wdr3320_leds_gpio),
  86.                                  wdr3320_leds_gpio);
  87.         ath79_register_gpio_keys_polled(-1, WDR3320_KEYS_POLL_INTERVAL,
  88.                                         ARRAY_SIZE(wdr3320_gpio_keys),
  89.                                         wdr3320_gpio_keys);

  90.         ath79_init_mac(tmpmac, mac, -1);
  91.         ath79_register_wmac(art + WDR3320_WMAC_CALDATA_OFFSET, tmpmac);

  92.         ath79_register_pci();
  93.         ath79_init_mac(tmpmac, mac, -2);
  94.         ap9x_pci_setup_wmac_led_pin(0, 0);
  95.         ap91_pci_init(art + WDR3320_PCIE_CALDATA_OFFSET, tmpmac);

  96.         ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_SW_ONLY_MODE);

  97.         ath79_register_mdio(1, 0x0);

  98.         /* WAN */
  99.         ath79_init_mac(ath79_eth0_data.mac_addr, mac, 1);

  100.         /* LAN */
  101.         ath79_init_mac(ath79_eth1_data.mac_addr, mac, 0);

  102.         /* GMAC0 is connected to the PHY4 of the internal switch */
  103.         ath79_switch_data.phy4_mii_en = 1;
  104.         ath79_switch_data.phy_poll_mask = BIT(4);
  105.         ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
  106.         ath79_eth0_data.phy_mask = BIT(4);
  107.         ath79_eth0_data.mii_bus_dev = &ath79_mdio1_device.dev;
  108.         ath79_register_eth(0);

  109.         /* GMAC1 is connected to the internal switch */
  110.         ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
  111.         ath79_register_eth(1);

  112.         ath79_gpio_output_select(WDR3320_GPIO_LED_LAN1,
  113.                                  AR934X_GPIO_OUT_LED_LINK0);
  114.         ath79_gpio_output_select(WDR3320_GPIO_LED_LAN2,
  115.                                  AR934X_GPIO_OUT_LED_LINK1);
  116.         ath79_gpio_output_select(WDR3320_GPIO_LED_LAN3,
  117.                                  AR934X_GPIO_OUT_LED_LINK2);
  118.         ath79_gpio_output_select(WDR3320_GPIO_LED_LAN4,
  119.                                  AR934X_GPIO_OUT_LED_LINK3);
  120.         ath79_gpio_output_select(WDR3320_GPIO_LED_WAN,
  121.                                  AR934X_GPIO_OUT_LED_LINK4);
  122. }

  123. MIPS_MACHINE(ATH79_MACH_TL_WDR3320_V2, "TL-WDR3320-v2",
  124.              "TP-LINK TL-WDR3320 v2",
  125.              wdr3320_setup);
复制代码

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-9-29 14:18 | 显示全部楼层
本帖最后由 hzjnet@163.com 于 2017-9-29 14:25 编辑
hello_limin 发表于 2017-9-29 14:05
你不懂,它这个是外挂的PCIE的ar9287,原来的配置里没有注册设备,2.4G无线启动不了,你可以仔细比较一下 ...

我确实不懂  问题是你这个程序是替换哪个?  还是放在哪儿?  如何应用在编译配置选项中喃?
看见了:
./target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3320-v2.c
替换它  ;晚点编译

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-29 14:21 | 显示全部楼层
能编译MT7620系列的固件吗

点评

已经有了: http://118.112.31.123:10000/mt7620v741/  详情 回复 发表于 2017-9-30 22:01
已经有了 可以试试了  详情 回复 发表于 2017-9-30 21:50
有设备的具体型号吗? 现在有k2的  详情 回复 发表于 2017-9-29 14:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-9-29 14:23 | 显示全部楼层
AN_drew 发表于 2017-9-29 14:21
能编译MT7620系列的固件吗

有设备的具体型号吗?  现在有k2的

点评

把斐讯的都编译一下吧,需要的人应该很多  详情 回复 发表于 2017-9-29 14:24
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-29 14:24 | 显示全部楼层
hzjnet@163.com 发表于 2017-9-29 14:23
有设备的具体型号吗?  现在有k2的

把斐讯的都编译一下吧,需要的人应该很多

点评

7620的mult有问题 需要一个个的编译  详情 回复 发表于 2017-9-29 14:26
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-9-29 14:26 | 显示全部楼层
AN_drew 发表于 2017-9-29 14:24
把斐讯的都编译一下吧,需要的人应该很多

7620的mult有问题 需要一个个的编译
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-29 16:01 | 显示全部楼层
能不能弄个        NETGEAR WNDR4300 固件

点评

http://118.112.31.123:10000/ar71v741/nand/  详情 回复 发表于 2017-9-30 21:59
nand的都看: http://118.112.31.123:10000/nand/bin/  详情 回复 发表于 2017-9-29 21:38
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-9-29 21:38 | 显示全部楼层
本帖最后由 hzjnet@163.com 于 2017-9-29 21:51 编辑
goowjie 发表于 2017-9-29 16:01
能不能弄个        NETGEAR WNDR4300 固件

nand的都看:
http://118.112.31.123:10000/nand/bin/
想及时交流的请加群:663715289

点评

您好,麻烦能不能帮忙编译一个tp 4900V2的8M固件,非常感谢  详情 回复 发表于 2017-9-30 10:56
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-30 01:53 | 显示全部楼层
不错谢谢大师。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-30 10:46 来自手机 | 显示全部楼层
楼主 841v10  v12里面没有adbyby  而且还是英文

点评

自己安装中文包就可以了啊  详情 回复 发表于 2017-10-2 08:42
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-30 10:56 | 显示全部楼层
hzjnet@163.com 发表于 2017-9-29 21:38
nand的都看:
http://118.112.31.123:10000/nand/bin/
想及时交流的请加群:663715289

您好,麻烦能不能帮忙编译一个tp 4900V2的8M固件,非常感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-30 11:34 来自手机 | 显示全部楼层
看了下,很多固件,看到眼都花了,就是没看见2041 v1的

点评

这个用941n-v6,见文章: http://www.right.com.cn/forum/forum.php?mod=viewthread&tid=182968  详情 回复 发表于 2017-9-30 21:53
加群说吧 你要懂得多用搜素引擎  详情 回复 发表于 2017-9-30 12:56
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-30 11:43 | 显示全部楼层
B70路由器用户想求一个ADBYBY PLUS+的 luci IPK

点评

需要给我个方向 比如那个CPU  详情 回复 发表于 2017-9-30 21:51
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-9-30 12:56 | 显示全部楼层
kumwingchiu 发表于 2017-9-30 11:34
看了下,很多固件,看到眼都花了,就是没看见2041 v1的

加群说吧 你要懂得多用搜素引擎
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-9-30 15:03 | 显示全部楼层
本帖最后由 hzjnet@163.com 于 2017-9-30 15:46 编辑
hello_limin 发表于 2017-9-29 12:40
哦,搞好喽,

楼主能不能帮忙编译一份 tl-wdr3320-v2 的固件,原版编译出来的无线不能用, ...

好了 咋给你 ?
算了 发不出去 自己去下载吧:
http://118.112.31.123:10000/v74/generic/hello_limin-wdr3320v2/

点评

发我邮箱里, 谢谢楼主  详情 回复 发表于 2017-9-30 15:15
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-28 22:54

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表