301 (edytowany przez shevchenko1987 2018-08-13 19:38:53)

Odp: OpenWrt 18.06

wwns napisał/a:

Mam zagwozdkę czy konfigurując diody led w archer c2600 muszę każdą diodę led opisać w stanie włączonym i wyłączonym
Bo skonfigurowałem i wszystkie świecą smile Czy ktoś mógłby mnie nakiererować jak się poprawnie konfiguruje z góry dziękuje.

config led 'led_usb1'
    option name 'USB 1'
    option sysfs 'c2600:white:usb_2'
    option trigger 'usbport'
    list port 'usb1-port1'
    list port 'usb2-port1'
    option default '0'

config led 'led_usb2'
    option name 'USB 2'
    option sysfs 'c2600:white:usb_4'
    option trigger 'usbport'
    list port 'usb3-port1'
    list port 'usb4-port1'
    option default '0'

config led 'led_wan'
    option name 'wan'
    option sysfs 'c2600:white:wan'
    option trigger 'switch0'
    option port_mask '0x20'
    option default '0'

config led 'led_lan'
    option name 'lan'
    option sysfs 'c2600:white:lan'
    option trigger 'switch0'
    option port_mask '0x1e'
    option default '0'

config led
    option sysfs 'ath10k-phy0'
    option default '1'
    option trigger 'phy0radio'
    option name 'WiFi5GHz'

config led
    option name 'WiFi2.4GHz'
    option sysfs 'ath10k-phy1'
    option default '1'
    option trigger 'phy1radio'

config led
    option name 'Ledonoff'
    option sysfs 'c2600:white:general'
    option default '1'
    option trigger 'default-on'

Kolego napisałeś, że zapaliły Ci się wszystkie diody. Przekopiowałem twój konfig, usunałem "default" "1", ale u mnie dalej nie zapalają się diody od sieci Wi-Fi. Powiedz czy u Ciebie aby na pewno działają? A może stosowałeś jeszcze jakieś inne sztuczki?

Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

302

Odp: OpenWrt 18.06

Zainstaluj wersję rozwojową

303 (edytowany przez shevchenko1987 2018-08-14 05:20:32)

Odp: OpenWrt 18.06

Zainstalowałem: https://downloads.openwrt.org/snapshots … pgrade.bin

Restart do fabrycznych poprzez

firstboot

Zainstalowałem LuCI:

shevchenko1987@acer-nitro:~$ ssh root@192.168.1.1
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
RSA key fingerprint is SHA256:K3UfwMB7/BIA238ShHkpwuJHIGFGtBP9StMcJKxECPw.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.1' (RSA) to the list of known hosts.


BusyBox v1.29.2 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r7847-03e5dcb
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/targets/ipq806x/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/snapshots/targets/ipq806x/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/targets/ipq806x/generic/kmods/4.14.62-1-9a0465b2d30b80b0dcacc3106f438cfe/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading http://downloads.openwrt.org/snapshots/targets/ipq806x/generic/kmods/4.14.62-1-9a0465b2d30b80b0dcacc3106f438cfe/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/telephony/Packages.sig
Signature check passed.
root@OpenWrt:~# opkg install luci
Installing luci (git-18.225.48207-809d3b9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci_git-18.225.48207-809d3b9-1_all.ipk
Installing uhttpd (2018-06-26-796d42bc-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base/uhttpd_2018-06-26-796d42bc-1_arm_cortex-a15_neon-vfpv4.ipk
Installing liblua (5.1.5-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base/liblua_5.1.5-1_arm_cortex-a15_neon-vfpv4.ipk
Installing lua (5.1.5-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base/lua_5.1.5-1_arm_cortex-a15_neon-vfpv4.ipk
Installing luci-lib-nixio (git-18.225.48207-809d3b9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-lib-nixio_git-18.225.48207-809d3b9-1_arm_cortex-a15_neon-vfpv4.ipk
Installing luci-lib-ip (git-18.225.48207-809d3b9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-lib-ip_git-18.225.48207-809d3b9-1_arm_cortex-a15_neon-vfpv4.ipk
Installing rpcd (2018-05-13-82062195-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base/rpcd_2018-05-13-82062195-1_arm_cortex-a15_neon-vfpv4.ipk
Installing libubus-lua (2018-07-26-40e0931e-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base/libubus-lua_2018-07-26-40e0931e-1_arm_cortex-a15_neon-vfpv4.ipk
Installing luci-lib-jsonc (git-18.225.48207-809d3b9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-lib-jsonc_git-18.225.48207-809d3b9-1_arm_cortex-a15_neon-vfpv4.ipk
Installing liblucihttp (2018-05-18-cb119ded-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/liblucihttp_2018-05-18-cb119ded-1_arm_cortex-a15_neon-vfpv4.ipk
Installing liblucihttp-lua (2018-05-18-cb119ded-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/liblucihttp-lua_2018-05-18-cb119ded-1_arm_cortex-a15_neon-vfpv4.ipk
Installing luci-base (git-18.225.48207-809d3b9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-base_git-18.225.48207-809d3b9-1_arm_cortex-a15_neon-vfpv4.ipk
Installing luci-mod-admin-full (git-18.225.48207-809d3b9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-mod-admin-full_git-18.225.48207-809d3b9-1_arm_cortex-a15_neon-vfpv4.ipk
Installing luci-theme-bootstrap (git-18.225.48207-809d3b9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-theme-bootstrap_git-18.225.48207-809d3b9-1_all.ipk
Installing luci-app-firewall (git-18.225.48207-809d3b9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-app-firewall_git-18.225.48207-809d3b9-1_all.ipk
Installing luci-proto-ppp (git-18.225.48207-809d3b9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-proto-ppp_git-18.225.48207-809d3b9-1_all.ipk
Installing libiwinfo-lua (2018-07-31-65b8333f-1) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ipq806x/generic/packages/libiwinfo-lua_2018-07-31-65b8333f-1_arm_cortex-a15_neon-vfpv4.ipk
Installing luci-proto-ipv6 (git-18.225.48207-809d3b9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-proto-ipv6_git-18.225.48207-809d3b9-1_all.ipk
Installing rpcd-mod-rrdns (20170710) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/rpcd-mod-rrdns_20170710_arm_cortex-a15_neon-vfpv4.ipk
Configuring rpcd.
Configuring liblua.
Configuring luci-lib-ip.
Configuring libubus-lua.
Configuring libiwinfo-lua.
Configuring luci-theme-bootstrap.
Configuring luci-app-firewall.
Configuring lua.
Configuring luci-proto-ppp.
Configuring luci-lib-nixio.
Configuring luci-lib-jsonc.
Configuring liblucihttp.
Configuring liblucihttp-lua.
Configuring luci-base.
Configuring luci-mod-admin-full.
Configuring luci-proto-ipv6.
Configuring uhttpd.
Configuring rpcd-mod-rrdns.
Configuring luci.
root@OpenWrt:~# /etc/init.d/uhttpd start
root@OpenWrt:~# /etc/init.d/uhttpd enable
root@OpenWrt:~# 

Jednak interfejs graficzny nie chce się załadować poprzez przeglądarkę. Wyrzuca:
https://s8.postimg.cc/gmshq25cx/Zrzut_ekranu_z_2018-08-14_06-02-01.png

Zepsuli? Czy brakuje mi jakiegoś pakietu?

Ps. plus jest taki, że diody od Wi-Fi w końcu działają big_smile

---
Edycja:

Udało się uruchomić. Zainstalowałem jeszcze pakiety:

luci-ssl && luci-i18n-base-pl

i dopiero po tym wydałem jeszcze raz

 /etc/init.d/uhttpd start && /etc/init.d/uhttpd enable

---
Edycja 2:

Cezary, kiedy wypuścisz nowego snapshota? wink

Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

304

Odp: OpenWrt 18.06

Czyli rozumiem, że po aktualizacji z zachowaniem ustawień ledy wifi nie działają? Konieczny jest reset do fabrycznych?

Moja sieć domowa: LTE-A od PLAY -> Huawei B715 + antena ALL-ANT L4G MIMO -> Netgear R7800 (OpenWrt 18.06-SNAPSHOT od Cezarego) -> Netgear S8000 -> 2 x D-Link GO-SW-8G -> Netgear EX7300 -> Netgear WN3100RPv2 -> QNAP TS-251+ (2 x 4TB WD RED, RAID 1) -> APC Back BX700U-FR
Pozdrawiam!

305

Odp: OpenWrt 18.06

Ledy działają po aktualizacji tylko nie mogłem bez resetu zainstalować LuCi.

Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

306

Odp: OpenWrt 18.06

Dzięki za odpowiedź.

Może Cezary zdecydujesz się przenieść obsługę ledów wifi w ath10k do swoich obrazów? Z przyjemnością przetestuje na R7800.

Moja sieć domowa: LTE-A od PLAY -> Huawei B715 + antena ALL-ANT L4G MIMO -> Netgear R7800 (OpenWrt 18.06-SNAPSHOT od Cezarego) -> Netgear S8000 -> 2 x D-Link GO-SW-8G -> Netgear EX7300 -> Netgear WN3100RPv2 -> QNAP TS-251+ (2 x 4TB WD RED, RAID 1) -> APC Back BX700U-FR
Pozdrawiam!

307

Odp: OpenWrt 18.06

Ja również jestem za smile

Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

308

Odp: OpenWrt 18.06

Mogę dodać. Potrzebuję tylko królika doświadczalnego.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

309

Odp: OpenWrt 18.06

A to nie jest tak, że jak zaciągniesz z git'a nowe źródła wersji rozwojowej i skompilujesz ze swoimi dodatkami to ten patch nie będzie już działał od strzała?

Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

310

Odp: OpenWrt 18.06

No właśnie "potrzebuję tylko królika doświadczalnego". Bo diabli wiedzą czy to wystarczy czy trzeba coś innego jeszcze, a nie mam pod ręką żadnego sprzętu na którym mógłbym to sprawdzić.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

311

Odp: OpenWrt 18.06

Mogę sprawdzić, ale dopiero koło 16-17, bo obecnie jestem w pracy wink

Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

312

Odp: OpenWrt 18.06

Ja też, więc i tak obrazy zrobię dopiero wieczorem.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

313

Odp: OpenWrt 18.06

Ja również mogę potestować, ale dopiero dzisiaj wieczorem.

Moja sieć domowa: LTE-A od PLAY -> Huawei B715 + antena ALL-ANT L4G MIMO -> Netgear R7800 (OpenWrt 18.06-SNAPSHOT od Cezarego) -> Netgear S8000 -> 2 x D-Link GO-SW-8G -> Netgear EX7300 -> Netgear WN3100RPv2 -> QNAP TS-251+ (2 x 4TB WD RED, RAID 1) -> APC Back BX700U-FR
Pozdrawiam!

314

Odp: OpenWrt 18.06

Na jaki sprzęt?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

315

Odp: OpenWrt 18.06

R7800

Moja sieć domowa: LTE-A od PLAY -> Huawei B715 + antena ALL-ANT L4G MIMO -> Netgear R7800 (OpenWrt 18.06-SNAPSHOT od Cezarego) -> Netgear S8000 -> 2 x D-Link GO-SW-8G -> Netgear EX7300 -> Netgear WN3100RPv2 -> QNAP TS-251+ (2 x 4TB WD RED, RAID 1) -> APC Back BX700U-FR
Pozdrawiam!

316

Odp: OpenWrt 18.06

C2600

Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

317

Odp: OpenWrt 18.06

Testujcie: https://dl.eko.one.pl/test/

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

318

Odp: OpenWrt 18.06

Cezary, czy jeśli mam obecnie OpenWrt SNAPSHOT r7847-03e5dcb, a twoja wersja to r7254-75e4d2d18c to którą wersję mam wgrać? Factory czy sysupgrade? Skoro się "cofam" w rozwoju? smile

Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

319

Odp: OpenWrt 18.06

sysupgrade bez zachowania konfiguracji.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

320

Odp: OpenWrt 18.06

Ok, wrzucam smile

Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

321

Odp: OpenWrt 18.06

U mnie śmiga. Można dawać na produkcje wink

Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

322

Odp: OpenWrt 18.06

Jeszcze nie, produkcja będzie może w weekend.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

323

Odp: OpenWrt 18.06

Ok, czekamy smile

Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

324 (edytowany przez shevchenko1987 2018-08-15 06:40:01)

Odp: OpenWrt 18.06

wwns napisał/a:

Przepraszam ostatnie pytanie czy jak dodam taką linie

 0 9 * * * echo "255" > /sys/class/leds/c2600\:white\:wan/brightness start  

czyli o 9 rano dioda od wan zaświeci się?

Ja wczoraj zrobiłem kongifa z wyłączaniem LED'ów na noc i włączaniem ich w dzień. Proszę może się komuś przyda. Wyłączenie następuje o 22, a włączenie o 7 rano.

0 22 * * * echo "0" > /sys/class/leds/c2600\:white\:lan/brightness
0 22 * * * echo "0" > /sys/class/leds/c2600\:white\:wan/brightness
0 22 * * * echo "0" > /sys/class/leds/c2600\:white\:power/brightness
0 22 * * * echo "0" > /sys/class/leds/c2600\:white\:general/brightness
0 22 * * * echo "0" > /sys/class/leds/ath10k-phy0/brightness
0 22 * * * echo "0" > /sys/class/leds/ath10k-phy1/brightness
0 7 * * * echo "1" > /sys/class/leds/c2600\:white\:lan/brightness
0 7 * * * echo "1" > /sys/class/leds/c2600\:white\:wan/brightness
0 7 * * * echo "1" > /sys/class/leds/c2600\:white\:power/brightness
0 7 * * * echo "1" > /sys/class/leds/c2600\:white\:general/brightness
0 7 * * * echo "1" > /sys/class/leds/ath10k-phy0/brightness
0 7 * * * echo "1" > /sys/class/leds/ath10k-phy1/brightness
root@C2600:~# cat /etc/config/system

config system
    option ttylogin '0'
    option log_size '64'
    option urandom_seed '0'
    option timezone 'CET-1CEST,M3.5.0,M10.5.0/3'
    option zonename 'Europe/Warsaw'
    option hostname 'C2600'
    option log_proto 'udp'
    option conloglevel '8'
    option cronloglevel '8'
    option stat '1'

config timeserver 'ntp'
    option enabled '1'
    list server '0.openwrt.pool.ntp.org'
    list server '1.openwrt.pool.ntp.org'
    list server '2.openwrt.pool.ntp.org'
    list server '3.openwrt.pool.ntp.org'

config led 'led_usb1'
    option name 'USB 1'
    option sysfs 'c2600:white:usb_2'
    option trigger 'usbport'
    list port 'usb1-port1'
    list port 'usb2-port1'
    option default '0'

config led 'led_usb2'
    option name 'USB 2'
    option sysfs 'c2600:white:usb_4'
    option trigger 'usbport'
    list port 'usb3-port1'
    list port 'usb4-port1'
    option default '0'

config led 'led_wan'
    option name 'wan'
    option sysfs 'c2600:white:wan'
    option default '1'
    option trigger 'switch0'
    option port_mask '0x20'

config led 'led_lan'
    option name 'lan'
    option sysfs 'c2600:white:lan'
    option default '1'
    option trigger 'switch0'
    option port_mask '0x1e'

config led
    option name 'Wi-Fi 5GHz'
    option sysfs 'ath10k-phy0'
    option default '1'
    option trigger 'phy0radio'

config led
    option name 'Wi-Fi 2.4 GHz'
    option sysfs 'ath10k-phy1'
    option default '1'
    option trigger 'phy1radio'

config led
    option default '0'
    option name 'General'
    option sysfs 'c2600:white:general'
    option trigger 'default-on'
Internet: JMDI (1000/200 Mbps) | Router: QNAP QHora-301W | NAS: QNAP TS-233 + 2 x WD RED PLUS 2TB

325

Odp: OpenWrt 18.06

Żeby mieć pewność że faktycznie wyłączyłeś to w każdym zmień trigger na none.

A o ile nie chcesz mieć choinki rano to zrób po prostu /etc/init.d/led start jak chcesz mieć normalnie działające zgodnie z ich funkcjami.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.