找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 494|回复: 5

ubnt er-x-sfp求助

[复制链接]
刷了openwrt后,sfp口识别不到…有大佬能解决吗? 固件原作者手上没有机器,也一起试了很多次,还是不行。
我的恩山、我的无线 The best wifi forum is right here.
https://openwrt.org/toh/ubiquiti/edgerouter_x_er-x_ka   要单独编译进去这个驱动还要设置好gpio才能在新建接口中看到设备。
  1. The routers can supply PoE on the LAN ports. This is controlled by a PCA9555A with GPIO 0..4.

  2. For documentation purposes - in order to get this running you need, already integrated into OpenWrt:

  3. install “kmod-i2c-gpio-custom” (pulls gpio and algo-bitbang)
  4. install “kmod-gpio-pca953x”
  5. “insmod i2c-gpio-custom bus0=0,3,4”
  6. “echo pca9555 0x25 >/sys/bus/i2c/devices/i2c-0/new_device”
  7. export the GPIOs 496..500 (/sys/class/gpio/)
  8. After reboot you need to run insmod and the echo line below to allow on/off functionality.

  9. Turn on POE all ports except eth0(WAN)
  10. #eth0 WAN port
  11. echo "out" > /sys/class/gpio/gpio496/direction
  12. echo "0" > /sys/class/gpio/gpio496/value
  13. #eth1
  14. echo "out" > /sys/class/gpio/gpio497/direction
  15. echo "1" > /sys/class/gpio/gpio497/value
  16. #eth2
  17. echo "out" > /sys/class/gpio/gpio498/direction
  18. echo "1" > /sys/class/gpio/gpio498/value
  19. #eth3
  20. echo "499" > /sys/class/gpio/export
  21. echo "out" > /sys/class/gpio/gpio499/direction
  22. echo "1" > /sys/class/gpio/gpio499/value
  23. #eth4
  24. echo "out" > /sys/class/gpio/gpio500/direction
  25. echo "1" > /sys/class/gpio/gpio500/value

  26. #turn all POE off
  27. echo "0" > /sys/class/gpio/gpio496/value
  28. echo "0" > /sys/class/gpio/gpio497/value
  29. echo "0" > /sys/class/gpio/gpio498/value
  30. echo "0" > /sys/class/gpio/gpio499/value
  31. echo "0" > /sys/class/gpio/gpio500/value
  32. !!! Update: While using kernel 5.4.33 on an ubnt-erx-sfp I noticed that the gpio numbers had changed as the pca9555 is attributed another gpio base number which is 400. So 496 .. 500 become 400 .. 404.

  33. Switch Ports (for VLANs)
  34. ER-X & ER-X SFP:

  35. Port        Switch port        Label
  36. WAN        0        eth0
  37. LAN 1        1        eth1
  38. LAN 2        2        eth2
  39. LAN 3        3        eth3
  40. LAN 4        4        eth4
  41. N/A        5        eth5 (Only on SFP)
  42. CPU (eth0)        6       
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
隐形的肩膀 发表于 2022-5-26 20:28
https://openwrt.org/toh/ubiquiti/edgerouter_x_er-x_ka   要单独编译进去这个驱动还要设置好gpio才能在新 ...

我的私信发不出去了,我刷的是sfp版的固件,链接我现在看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
隐形的肩膀 发表于 2022-5-26 20:28
https://openwrt.org/toh/ubiquiti/edgerouter_x_er-x_ka   要单独编译进去这个驱动还要设置好gpio才能在新 ...

方便加个QQ吗  我在openwrt论坛上也看到很多人说sfp口用不了,这个问题您有见过吗

点评

刷官方固件,然后按openwrt网上的说明 根据自己的设备gpio情况开启poe和sfp。我没设备测试不了。  详情 回复 发表于 2022-5-27 10:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

psycho-- 发表于 2022-5-27 00:53
方便加个QQ吗  我在openwrt论坛上也看到很多人说sfp口用不了,这个问题您有见过吗

刷官方固件,然后按openwrt网上的说明  根据自己的设备gpio情况开启poe和sfp。我没设备测试不了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
隐形的肩膀 发表于 2022-5-27 10:23
刷官方固件,然后按openwrt网上的说明  根据自己的设备gpio情况开启poe和sfp。我没设备测试不了。

你好,我在你发的链接没有看到关于sfp口的说明,可以帮我写个包吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 10:01

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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