Spróbuj podłączyć istniejącą konfigurację pod arduino, pozwoli to wyeliminować instalację i pullupy.
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Posty przez Heinz
Spróbuj podłączyć istniejącą konfigurację pod arduino, pozwoli to wyeliminować instalację i pullupy.
@Krynio widzę że masz ten problem co ja go miałem. Spróbuj dopisać te 3 zera do pliku index.php.
foreach($data as $time => $temp) {
if($prog+$limit_after > $ile) {
$t .= "[".$time."000,".$temp."],";
} else {
if(floor($lprog) <= floor($prog)) {
$t .= "[".$time."000,".$temp."],";
$lprog += $lim;
}
}
$prog++;
}
return rtrim($t, ",");
Ja u siebie mam taki problem że wchodząc na link http://IP/meteo/ widzę tylko pliki które są w katalogu, dopiero jak kliknę index.php to otwiera się wykres.
Jeśli to ważne to korzystam z uhttpd (mam też LuCI), TP-Link WDR4300, OpenWrt Barrier Breaker 14.07 / LuCI Trunk (0.12+svn-r10530), 1Wire z GPIO 1.
Konfiguracja:
root@OpenWrt:~# cat /etc/config/uhttpd
config uhttpd 'main'
list listen_http '0.0.0.0:80'
list listen_http '[::]:80'
list listen_https '0.0.0.0:443'
list listen_https '[::]:443'
option home '/www'
option rfc1918_filter '1'
option max_requests '3'
option max_connections '100'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option cgi_prefix '/cgi-bin'
option script_timeout '60'
option network_timeout '30'
option http_keepalive '20'
option tcp_keepalive '1'
option ubus_prefix '/ubus'
list interpreter '.php=/usr/bin/php-cgi'
config cert 'px5g'
option days '730'
option bits '1024'
option country 'DE'
option state 'Berlin'
option location 'Berlin'
option commonname 'OpenWrt'W nowym skrypcie jest chyba błąd. U mnie to też działać nie chciało. Pomogło zmienienie linii 40 w pliku /www/index.php
z:
$t .= "[".$time.",".$temp."],";
na
$t .= "[".$time."000,".$temp."],";
odmontuj nośnik i wejdź do fdisk /dev/sda
usuń partycję sda2
utwórz nową o rozmiarze np 4GB (83)
utwórz następną o rozmiarze maksymalnym możliwym jako linux swap ( 82) ( około 1GB, to i tak dużo na swap)
zapisz ustawienia i wyjdź
zrestartuj router i wejdź do konsoli
Sformatuj partycję sda2 przez mkfs.ext4 /dev/sda2
utwórz swap przez mkswap /dev/sda3
załącz swap przez swapon /dev/sda3
zrób extroota używając UUID
W gargoyle ustawiłeś szerokość kanału na 40MHz?
Na komputerze sprawdź właściwości karty sieciowej czy w zaawansowanych ustawieniach jest "szerokość kanału 802.11n dla pasma 2.4" i tutaj należy wybrać automatyczna.
teoretycznie. W praktyce ten procesor nie przetworzy tyle.
Napisz jaki masz sprzęt ( karta WiFi i karta LAN) w komputerze.
połączenie daje 100Mbit. Masz kartę gigabitową czy fast ethernet?
jak to drugie to rewelacja.
Może być to problem WAN-LAN.
Sprawdź go za pomocą iperf
na routerze wpisz:
opkg update
opkg install iperf-mt
po instalacji wpisz:
iperf -s
na komputerze uruchom jperf z javy lub iperf przez cmd (musisz sobie je najpierw pobrać)
jak z cmd to wpisz:
iperf -c ip.routera
lub
iperf -c ip.routera -P 3
Edit:
Te prędkości masz z podłączonym modemem?
pepe2k ma rację. Nic tam nie ma. 99% idle czyli procesor nie jest obciążony zadnym procesem.
Spróbuj z BB. Polecam wersję z Luci dla łatwiejszej konfiguracji.
Zaloguj sie przez ssh do routera, uruchom komendę "top", odczekaj z 15 sekund i naciśnij CTRL + C. Skopiuj nagówek i wstaw na forum
Chodzi o coś takiego:
Mem: 72252K used, 54088K free, 0K shrd, 4628K buff, 15972K cached
CPU: 0% usr 9% sys 0% nic 90% idle 0% io 0% irq 0% sirq
Load average: 0.18 0.17 0.15 1/68 14250
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
14250 17291 root R 1360 1% 9% topPrzy konfiguracji klienta na serwerze nie zaznaczyłeś opcji podsieć za klientem i wpisanie odpowiedniej podsieci.
Nie wiem czy to pomoże ale spróbuj dodać trasę w menu konfiguracja - trasy:
Cel/maska: 192.168.1.0/24
sieć: WAN
Brama: 10.8.0.3
Jak na porcie nic nie nasłuchuje to stronka wskazuje że port jest zamknięty.
uruchom usługę na porcie potem sprawdź czy jest otwarty.
Na WAN dostajesz swój zewnętrzny adres IP taki jaki jest podany na tej stronie?
Dziś poradziłem sobie z tym wpisem w System Logu.
W pliku /etc/dnsmasq.conf dopisałem na samym początku:
except-interface=eth0
Jednak pakiety:
IPV4 UDP 0.0.0.0:68 255.255.255.255:67 1.35 GB (4565600 Pkts.)
stale rosną.
Może jakaś regułka do firewalla by pomogła?
Trasa pewnie jest, będzie widoczna przez narzędzie traceroute6.
OK zignoruję ![]()
Pewnie ten wynik aktywnych połączeń:
IPV4 UDP 0.0.0.0:68 255.255.255.255:67 552.12 MB (1826941 Pkts.)
to też wina tego dhcp.
Co z tym switchem?
uci show network:
root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.globals=globals
network.globals.ula_prefix=fd5b:d974:9aaf::/48
network.lan=interface
network.lan.ifname=eth1
network.lan.force_link=1
network.lan.type=bridge
network.lan.proto=static
network.lan.ipaddr=10.1.1.1
network.lan.netmask=255.255.255.0
network.lan.ip6assign=60
network.wan=interface
network.wan.ifname=eth0
network.wan._orig_ifname=eth0
network.wan._orig_bridge=false
network.wan.proto=pppoe
network.wan.username=*login*
network.wan.password=*pass*
network.wan6=interface
network.wan6.ifname=@wan
network.wan6.proto=dhcpv6
network.@switch[0]=switch
network.@switch[0].name=switch0
network.@switch[0].reset=1
network.@switch[0].enable_vlan=1
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device=switch0
network.@switch_vlan[0].vlan=1
network.@switch_vlan[0].ports=0 2 3 4 5
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device=switch0
network.@switch_vlan[1].vlan=2
network.@switch_vlan[1].ports=1 6Czy tutaj switch z Vlanami jest dobrze ustawiony? jest to ustawienie domyślne.
uci show dhcp:
root@OpenWrt:~# uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded=1
dhcp.@dnsmasq[0].boguspriv=1
dhcp.@dnsmasq[0].localise_queries=1
dhcp.@dnsmasq[0].rebind_protection=1
dhcp.@dnsmasq[0].rebind_localhost=1
dhcp.@dnsmasq[0].local=/lan/
dhcp.@dnsmasq[0].domain=lan
dhcp.@dnsmasq[0].expandhosts=1
dhcp.@dnsmasq[0].authoritative=1
dhcp.@dnsmasq[0].readethers=1
dhcp.@dnsmasq[0].leasefile=/tmp/dhcp.leases
dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto
dhcp.lan=dhcp
dhcp.lan.interface=lan
dhcp.lan.start=100
dhcp.lan.limit=150
dhcp.lan.leasetime=12h
dhcp.lan.dhcpv6=server
dhcp.lan.ra=server
dhcp.wan=dhcp
dhcp.wan.interface=wan
dhcp.wan.ignore=1
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp=0
dhcp.odhcpd.leasefile=/tmp/hosts/odhcpd
dhcp.odhcpd.leasetrigger=/usr/sbin/odhcpd-update
dhcp.@host[0]=host
dhcp.@host[0].name=##
dhcp.@host[0].mac=##
dhcp.@host[0].ip=10.1.1.5
dhcp.@host[1]=host
dhcp.@host[1].name=##
dhcp.@host[1].mac=##
dhcp.@host[1].ip=10.1.1.20
dhcp.@host[2]=host
dhcp.@host[2].name=##
dhcp.@host[2].mac=##
dhcp.@host[2].ip=10.1.1.10
dhcp.@host[3]=host
dhcp.@host[3].name=##
dhcp.@host[3].mac=##
dhcp.@host[3].ip=10.1.1.50
dhcp.@host[4]=host
dhcp.@host[4].name=##
dhcp.@host[4].mac=##
dhcp.@host[4].ip=10.1.1.9Linijki o których wyżej wspominałem zostały usunięte.
Wpisałem raz jeden, raz drugi i nic to nie zmienia.
w system logu pojawia się cały czas jeden komunikat:
Mon Sep 8 17:22:18 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:18 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no address
Mon Sep 8 17:22:19 2014 daemon.warn dnsmasq-dhcp[29367]: DHCP packet received on eth0 which has no addressMam OpenWrt Barrier Breaker (r42420)
Konfiguracja WAN jako PPPoE
Szukałem troszkę i znalazłem informację aby dopisać do sekcji dnsmasq do pliku /etc/config/dhcp takie linijki:
option notinterface 'eth0'
option except-interface 'eth0'
jednak nic to nie zmienia. Co by szło na to poradzić?
Zajrzyj tutaj: ftp://tplink-forum.pl/Gargoyle/
Wersja z 9 sierpnia ma pewien wg. mnie bug. Aby działały repozytoria z openwrt.org trzeba dodać ich osobne ścieżki, a nie jedną tak jak jest to w pliku opkg.conf. Po dodaniu bezpośrednich odnośników wszystko działa.
Trzeba zmienić adres repozytorium z http://downloads.openwrt.org/snapshots/ … x/packages
na
http://downloads.openwrt.org/barrier_br … /packages/
ten pierwszy adres jest do repozytorium trunka dla nowej Chaos Calmer
Trzeba by drobne poprawki do Archera C7v2
Wgrało się idealnie:
BusyBox v1.22.1 (2014-08-03 16:22:37 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
----------------------------------------------------------------
| |
| OpenWrt Barrier Breaker RC2 (r41988) |
| Build time: 2014-08-03 19:55 CEST |
| |
| Cezary Jackiewicz (obsy), http://eko.one.pl |
| |
----------------------------------------------------------------
| Machine: TP-LINK Archer C7 |
| Uptime: 0d, 00:04:04 |
| Load: 0.03 0.08 0.05 |
| Flash: total: 12.1MB, free: 11.0MB, used: 9% |
| Memory: total: 123.4MB, free: 106.2MB, used: 13% |
| WAN: 10.0.0.2, proto: dhcp |
| LAN: 192.168.1.1 |
| WLAN: mode: ap, ssid: OpenWrt5, channel: 36, conn: |
| WLAN: mode: ap, ssid: OpenWrt2, channel: 11, conn: |
----------------------------------------------------------------Po uruchomieniu i uaktywnieniu WiFi przez usunięcie linii 'option disable' w interfejsach na 2,4 i 5GHz nie wystartowała sieć 5GHz
Dołączam plik wireless:
root@OpenWrt:/# cat /etc/config/wireless
config wifi-device radio0
option type mac80211
option channel 36
option hwmode 11a
option path 'pci0000:01/0000:01:00.0'
option htmode VHT80
config wifi-iface
option device radio0
option network lan
option mode ap
option ssid OpenWrt5
option encryption none
config wifi-device radio1
option type mac80211
option channel 11
option hwmode 11g
option path 'platform/qca955x_wmac'
option htmode HT20
config wifi-iface
option device radio1
option network lan
option mode ap
option ssid OpenWrt2
option encryption none oraz logread:
root@OpenWrt:/# logread
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 0.630000] msgmni has been set to 246
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 0.630000] io scheduler noop registered
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 0.630000] io scheduler deadline registered (default)
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 0.640000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 0.670000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 0.680000] console [ttyS0] enabled, bootconsole disabled
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 0.690000] ath79-spi ath79-spi: master is unqueued, this is deprecated
Sun Aug 3 21:34:24 2014 kern.warn kernel: [ 0.700000] m25p80 spi0.0: found w25q128, expected m25p80
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 0.700000] m25p80 spi0.0: w25q128 (16384 Kbytes)
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 0.710000] 5 tp-link partitions found on MTD device spi0.0
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 0.710000] Creating 5 MTD partitions on "spi0.0":
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 0.720000] 0x000000000000-0x000000020000 : "u-boot"
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 0.730000] 0x000000020000-0x000000129f24 : "kernel"
Sun Aug 3 21:34:24 2014 kern.warn kernel: [ 0.730000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 0.740000] 0x000000129f24-0x000000ff0000 : "rootfs"
Sun Aug 3 21:34:24 2014 kern.warn kernel: [ 0.750000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 0.760000] mtd: device 2 (rootfs) set to be root filesystem
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 0.770000] 1 squashfs-split partitions found on MTD device rootfs
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 0.770000] 0x0000003d0000-0x000000ff0000 : "rootfs_data"
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 0.780000] 0x000000ff0000-0x000001000000 : "art"
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 0.790000] 0x000000020000-0x000000ff0000 : "firmware"
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 0.820000] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 2.070000] libphy: ag71xx_mdio: probed
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 2.620000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 2.640000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 3.190000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 3.200000] TCP: cubic registered
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 3.200000] NET: Registered protocol family 17
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 3.210000] Bridge firewalling registered
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 3.210000] 8021q: 802.1Q VLAN Support v1.8
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 3.230000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 3.230000] Freeing unused kernel memory: 232K (80346000 - 80380000)
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.090000] usbcore: registered new interface driver usbfs
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.100000] usbcore: registered new interface driver hub
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.110000] usbcore: registered new device driver usb
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 6.140000] SCSI subsystem initialized
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.150000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.160000] ehci-platform: EHCI generic platform driver
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.160000] ehci-platform ehci-platform.0: EHCI Host Controller
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.170000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.180000] ehci-platform ehci-platform.0: TX-TX IDP fix enabled
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.180000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.210000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.210000] hub 1-0:1.0: USB hub found
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.220000] hub 1-0:1.0: 1 port detected
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.220000] ehci-platform ehci-platform.1: EHCI Host Controller
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.230000] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.240000] ehci-platform ehci-platform.1: TX-TX IDP fix enabled
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.240000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.270000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.270000] hub 2-0:1.0: USB hub found
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.280000] hub 2-0:1.0: 1 port detected
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.280000] usbcore: registered new interface driver usb-storage
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 6.740000] eth1: link up (1000Mbps/Full duplex)
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 10.340000] jffs2: notice: (385) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 15 of xref (0 dead, 3 orphan) found.
Sun Aug 3 21:34:24 2014 kern.notice kernel: [ 10.490000] jffs2: notice: (382) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 15 of xref (0 dead, 3 orphan) found.
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 10.590000] eth1: link down
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.120000] NET: Registered protocol family 10
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.140000] nf_conntrack version 0.5.0 (1974 buckets, 7896 max)
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.150000] ip6_tables: (C) 2000-2006 Netfilter Core Team
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.160000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.170000] Backport generated by backports.git backports-20140320-37-g5c33da0
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.200000] cfg80211: Calling CRDA to update world regulatory domain
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.200000] cfg80211: World regulatory domain updated:
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.210000] cfg80211: DFS Master region: unset
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.210000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.220000] cfg80211: (2400000 KHz - 2483000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.230000] cfg80211: (5140000 KHz - 5860000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.280000] ath10k_pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
Sun Aug 3 21:34:24 2014 kern.warn kernel: [ 12.290000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 12.590000] ath10k: pci irq legacy irq_mode 0 reset_mode 0
Sun Aug 3 21:34:24 2014 kern.warn kernel: [ 12.800000] ath10k: otp stream is empty, using board.bin contents
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 13.640000] ath10k: qca988x hw2.0 (0x4100016c, 0x043202ff) fw 10.1.467.2-1 api 2 htt 2.1
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.170000] ath: EEPROM regdomain: 0x0
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.170000] ath: EEPROM indicates default country code should be used
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.170000] ath: doing EEPROM country->regdmn map search
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.170000] ath: country maps to regdmn code: 0x3a
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.170000] ath: Country alpha2 being used: US
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.170000] ath: Regpair used: 0x3a
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 14.180000] cfg80211: Calling CRDA for country: US
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 14.190000] cfg80211: Regulatory domain changed to country: US
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 14.190000] cfg80211: DFS Master region: unset
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 14.200000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 14.210000] cfg80211: (2400000 KHz - 2483000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 14.210000] cfg80211: (5140000 KHz - 5860000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 14.240000] ip_tables: (C) 2000-2006 Netfilter Core Team
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 14.310000] xt_time: kernel timezone is -0000
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 14.330000] PPP generic driver version 2.4.2
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 14.350000] NET: Registered protocol family 24
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.360000] ath: EEPROM regdomain: 0x0
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.360000] ath: EEPROM indicates default country code should be used
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.360000] ath: doing EEPROM country->regdmn map search
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.360000] ath: country maps to regdmn code: 0x3a
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.360000] ath: Country alpha2 being used: US
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.360000] ath: Regpair used: 0x3a
Sun Aug 3 21:34:24 2014 kern.debug kernel: [ 14.380000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
Sun Aug 3 21:34:24 2014 kern.info kernel: [ 14.390000] ieee80211 phy1: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47
Sun Aug 3 21:34:24 2014 user.emerg syslog: Error: Failed to connect to ubus
Sun Aug 3 21:34:26 2014 user.emerg syslog: this file has been obseleted. please call "/sbin/block mount" directly
Sun Aug 3 21:34:26 2014 user.err syslog: /dev/mtdblock3 is already mounted
Sun Aug 3 21:34:26 2014 user.emerg syslog: block: /dev/mtdblock3 is already mounted
Sun Aug 3 21:34:27 2014 authpriv.info dropbear[905]: Not backgrounding
Sun Aug 3 21:34:28 2014 user.emerg syslog: setting up led USB1
Sun Aug 3 21:34:28 2014 user.emerg syslog: setting up led USB2
Sun Aug 3 21:34:28 2014 user.emerg syslog: setting up led WLAN2G
Sun Aug 3 21:34:28 2014 user.emerg syslog: sh: write error: Invalid argument
Sun Aug 3 21:34:28 2014 user.emerg syslog: - init complete -
Sun Aug 3 21:34:28 2014 kern.info kernel: [ 20.830000] eth1: link up (1000Mbps/Full duplex)
Sun Aug 3 21:34:28 2014 kern.info kernel: [ 20.830000] device eth1 entered promiscuous mode
Sun Aug 3 21:34:28 2014 daemon.notice netifd: Interface 'lan' is enabled
Sun Aug 3 21:34:28 2014 daemon.notice netifd: Interface 'lan' is setting up now
Sun Aug 3 21:34:28 2014 kern.info kernel: [ 20.840000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Sun Aug 3 21:34:28 2014 daemon.notice netifd: Interface 'lan' is now up
Sun Aug 3 21:34:28 2014 daemon.notice netifd: Interface 'loopback' is enabled
Sun Aug 3 21:34:28 2014 daemon.notice netifd: Interface 'loopback' is setting up now
Sun Aug 3 21:34:28 2014 daemon.notice netifd: Interface 'loopback' is now up
Sun Aug 3 21:34:28 2014 daemon.notice netifd: Interface 'wan' is enabled
Sun Aug 3 21:34:28 2014 kern.info kernel: [ 20.870000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Sun Aug 3 21:34:28 2014 daemon.warn odhcpd[867]: Failed to send to ff02::1%br-lan (Cannot assign requested address)
Sun Aug 3 21:34:28 2014 daemon.notice netifd: Network device 'eth1' link is up
Sun Aug 3 21:34:28 2014 daemon.notice netifd: Network device 'lo' link is up
Sun Aug 3 21:34:28 2014 daemon.notice netifd: Interface 'loopback' has link connectivity
Sun Aug 3 21:34:29 2014 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Sun Aug 3 21:34:29 2014 kern.info kernel: [ 21.830000] br-lan: port 1(eth1) entered forwarding state
Sun Aug 3 21:34:29 2014 kern.info kernel: [ 21.830000] br-lan: port 1(eth1) entered forwarding state
Sun Aug 3 21:34:29 2014 kern.info kernel: [ 21.860000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Sun Aug 3 21:34:29 2014 daemon.notice netifd: Bridge 'br-lan' link is up
Sun Aug 3 21:34:29 2014 daemon.notice netifd: Interface 'lan' has link connectivity
Sun Aug 3 21:34:30 2014 kern.info kernel: [ 22.820000] eth0: link up (1000Mbps/Full duplex)
Sun Aug 3 21:34:31 2014 kern.warn kernel: [ 23.130000] ath10k: otp stream is empty, using board.bin contents
Sun Aug 3 21:34:31 2014 kern.info kernel: [ 23.830000] br-lan: port 1(eth1) entered forwarding state
Sun Aug 3 21:34:32 2014 kern.info kernel: [ 23.980000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sun Aug 3 21:34:32 2014 kern.info kernel: [ 24.000000] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Sun Aug 3 21:34:32 2014 kern.info kernel: [ 24.010000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sun Aug 3 21:34:32 2014 kern.info kernel: [ 24.030000] device wlan0 entered promiscuous mode
Sun Aug 3 21:34:32 2014 kern.info kernel: [ 24.030000] device wlan1 entered promiscuous mode
Sun Aug 3 21:34:32 2014 daemon.notice netifd: Network device 'eth0' link is up
Sun Aug 3 21:34:32 2014 daemon.notice netifd: Interface 'wan' has link connectivity
Sun Aug 3 21:34:32 2014 daemon.notice netifd: Interface 'wan' is setting up now
Sun Aug 3 21:34:32 2014 kern.info kernel: [ 24.060000] br-lan: port 3(wlan1) entered forwarding state
Sun Aug 3 21:34:32 2014 kern.info kernel: [ 24.060000] br-lan: port 3(wlan1) entered forwarding state
Sun Aug 3 21:34:32 2014 kern.info kernel: [ 24.070000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Sun Aug 3 21:34:32 2014 daemon.notice netifd: wan (1159): udhcpc (v1.22.1) started
Sun Aug 3 21:34:32 2014 daemon.notice netifd: wan (1159): Sending discover...
Sun Aug 3 21:34:32 2014 daemon.notice netifd: Network device 'wlan1' link is up
Sun Aug 3 21:34:32 2014 daemon.notice netifd: wan (1159): Sending select for 10.0.0.2...
Sun Aug 3 21:34:32 2014 daemon.notice netifd: wan (1159): Lease of 10.0.0.2 obtained, lease time 268435455
Sun Aug 3 21:34:32 2014 daemon.notice netifd: Interface 'wan6' is enabled
Sun Aug 3 21:34:32 2014 daemon.notice netifd: Network alias 'eth0' link is up
Sun Aug 3 21:34:32 2014 daemon.notice netifd: Interface 'wan6' has link connectivity
Sun Aug 3 21:34:32 2014 daemon.notice netifd: Interface 'wan6' is setting up now
Sun Aug 3 21:34:32 2014 daemon.notice netifd: Interface 'wan' is now up
Sun Aug 3 21:34:33 2014 daemon.notice odhcp6c[1179]: (re)starting transaction on eth0
Sun Aug 3 21:34:33 2014 daemon.notice odhcp6c[1179]: Starting SOLICIT transaction (timeout 4294967295s, max rc 0)
Sun Aug 3 21:34:33 2014 kern.info kernel: [ 25.180000] device wlan0 left promiscuous mode
Sun Aug 3 21:34:33 2014 kern.info kernel: [ 25.190000] br-lan: port 2(wlan0) entered disabled state
Sun Aug 3 21:34:33 2014 daemon.notice netifd: radio0 (971): Configuration file: /var/run/hostapd-phy0.conf
Sun Aug 3 21:34:33 2014 daemon.notice netifd: radio0 (971): wlan0: interface state UNINITIALIZED->HT_SCAN
Sun Aug 3 21:34:33 2014 daemon.notice netifd: radio0 (971): Could not set channel for kernel driver
Sun Aug 3 21:34:33 2014 daemon.notice netifd: radio0 (971): Interface initialization failed
Sun Aug 3 21:34:33 2014 daemon.notice netifd: radio0 (971): wlan0: interface state HT_SCAN->DISABLED
Sun Aug 3 21:34:33 2014 daemon.notice netifd: radio0 (971): wlan0: AP-DISABLED
Sun Aug 3 21:34:33 2014 daemon.notice netifd: radio0 (971): hostapd_free_hapd_data: Interface wlan0 wasn't started
Sun Aug 3 21:34:33 2014 daemon.notice netifd: radio0 (971): ELOOP: remaining socket: sock=18 eloop_data=0x639c10 user_data=(nil) handler=0x413735
Sun Aug 3 21:34:33 2014 daemon.notice netifd: radio0 (971): cat: can't open '/var/run/wifi-phy0.pid': No such file or directory
Sun Aug 3 21:34:33 2014 daemon.notice netifd: radio0 (971): Command failed: Invalid argument
Sun Aug 3 21:34:34 2014 kern.info kernel: [ 26.060000] br-lan: port 3(wlan1) entered forwarding state
Sun Aug 3 21:34:35 2014 user.notice firewall: Reloading firewall due to ifup of wan (eth0)
Sun Aug 3 21:34:35 2014 kern.warn kernel: [ 26.380000] ath10k: otp stream is empty, using board.bin contents
Sun Aug 3 21:34:35 2014 kern.info kernel: [ 27.630000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sun Aug 3 21:34:35 2014 daemon.info dnsmasq[1277]: started, version 2.71 cachesize 150
Sun Aug 3 21:34:35 2014 daemon.info dnsmasq[1277]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC
Sun Aug 3 21:34:35 2014 daemon.info dnsmasq-dhcp[1277]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Sun Aug 3 21:34:35 2014 daemon.info dnsmasq[1277]: using local addresses only for domain lan
Sun Aug 3 21:34:35 2014 daemon.info dnsmasq[1277]: reading /tmp/resolv.conf.auto
Sun Aug 3 21:34:35 2014 daemon.info dnsmasq[1277]: using local addresses only for domain lan
Sun Aug 3 21:34:35 2014 daemon.info dnsmasq[1277]: using nameserver 10.0.0.1#53
Sun Aug 3 21:34:35 2014 daemon.info dnsmasq[1277]: using nameserver 10.0.0.1#53
Sun Aug 3 21:34:35 2014 daemon.info dnsmasq[1277]: read /etc/hosts - 1 addresses
Sun Aug 3 21:34:35 2014 daemon.info dnsmasq[1277]: read /tmp/hosts/dhcp - 0 addresses
Sun Aug 3 21:34:35 2014 daemon.info dnsmasq-dhcp[1277]: read /etc/ethers - 0 addresses
Sun Aug 3 21:49:34 2014 daemon.info hostapd: wlan1: STA 00:16:ea:b8:73:5c IEEE 802.11: authenticated
Sun Aug 3 21:49:34 2014 daemon.info hostapd: wlan1: STA 00:16:ea:b8:73:5c IEEE 802.11: associated (aid 1)
Sun Aug 3 21:49:34 2014 daemon.info dnsmasq-dhcp[1277]: DHCPREQUEST(br-lan) 192.168.1.214 00:16:ea:b8:73:5c
Sun Aug 3 21:49:34 2014 daemon.info dnsmasq-dhcp[1277]: DHCPACK(br-lan) 192.168.1.214 00:16:ea:b8:73:5c CompalDodatkowo nie zapalają się diody on WiFi ale to już wina konfiguracji w pliku system:
config system
option hostname 'OpenWrt'
option timezone 'M3.5.0,M10.5.0/3'
config timeserver 'ntp'
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'
option enabled '1'
option enable_server '0'
config led 'led_usb1'
option name 'USB1'
option sysfs 'tp-link:green:usb1'
option trigger 'usbdev'
option dev '1-1'
option interval '50'
config led 'led_usb2'
option name 'USB2'
option sysfs 'tp-link:green:usb2'
option trigger 'usbdev'
option dev '2-1'
option interval '50'
config led 'led_wlan2g'
option name 'WLAN2G'
option sysfs 'tp-link:blue:wlan2g'
option trigger 'phy0tpt'Przy konfiguracji z luci brakuje w opcji "trigger" 'phy0tpt:
Nie wiem jak inne C7v2 ale w moim nie ma niebieskich diod
w katalogu /sys/class/leds są dostępne:
ath9k-phy1/ tp-link:blue:lan2/ tp-link:blue:lan4/ tp-link:blue:system/ tp-link:blue:wlan2g/ tp-link:green:usb1/
tp-link:blue:lan1/ tp-link:blue:lan3/ tp-link:blue:qss/ tp-link:blue:wan/ tp-link:blue:wlan5g/ tp-link:green:usb2/
Zaświecić można wszystkie tylko nazwa nie pasuje.
Podłączony pendrive jest wykrywany prawidłowo jednak nie jest automatycznie zamontowany. Nie wiem czy to bug czy przywykłem do Gargoyle.
Brak jest katalogu usb w /proc/bus/, ale jest on też w /sys/bus/
Narazie tyle jutro będę dalej próbował
Dobre rozwiązanie to użycie huba USB i podłączenie pendrive z extroot i dysku na USB który będzie udostępniony.
Możesz też zrobić ręcznie partycję EXT4 na dysku ( wystarczy ze 100mb) i resztę na NTFS aby inne urządzenia potrafiły go obsłużyć. Jednak obsługa NTFS zużywa dużo zasobów routera przez co transfery są słabe.
Masz błąd w:
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'powinno być:
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'Źle. Szukasz bootloadera w pliku gdzie go nie ma.
Jedynie w drugim przypadku gdzie podglądasz plik z bootloaderem to tam widać miejsce 0x20200 gdzie zaczyna się firmware.
Jak chcesz sprawdzić to podglądając plik z obciętym bootloaderem powinieneś zobaczyć na początku pliku to, co widać od adresu 0x20200 w oryginalnym firmware. Dalsza zawartość pliku będzie się różnić.
eko.one.pl → Posty przez Heinz
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc