26

Odp: TL-WR842N v3

Niestety, widzę że dorobienie UARTa będzie wymagało dołożenia brakujących rezystorów. R105 będzie pewnie potrzebny mostek z cyny, R101 nie widzę dokładnie do czego miał służyć, ale też znajduje się na którejś linii.
Widzę że sterowanie zasilaniem USB za pomocą GPIO jest możliwe.
Jaki zasilacz tplink daje do takiego routerka?

27

Odp: TL-WR842N v3

+bezpiecznik polimerowy do usb jest?

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

28

Odp: TL-WR842N v3

unreal napisał/a:

Niestety, widzę że dorobienie UARTa będzie wymagało dołożenia brakujących rezystorów. R105 będzie pewnie potrzebny mostek z cyny, R101 nie widzę dokładnie do czego miał służyć, ale też znajduje się na którejś linii.

Chyba oba to tylko zworki odcinające gniazdo konsoli.

Cezary napisał/a:

+bezpiecznik polimerowy do usb jest?

Nie, standardowo - układ Texasa, U25. Najpewniej z odcięciem przy 500 mA, sterowanie przez GPIO.
TP-Link dolną półkę składa z klocków... wszędzie te same sekcje zasilania, USB, etc. Od czasu do czasu podmieniają tylko SoC na coś nowszego i jazda...

Jeżeli dobrze widzę, to jest to QCA9531 v2, więc wyższy zegar (650 MHz).

29

Odp: TL-WR842N v3

A to F1?

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

30

Odp: TL-WR842N v3

Koralik ferrytowy na liniach danych.

31

Odp: TL-WR842N v3

unreal napisał/a:

Niestety, widzę że dorobienie UARTa będzie wymagało dołożenia brakujących rezystorów. R105 będzie pewnie potrzebny mostek z cyny, R101 nie widzę dokładnie do czego miał służyć, ale też znajduje się na którejś linii.
Widzę że sterowanie zasilaniem USB za pomocą GPIO jest możliwe.
Jaki zasilacz tplink daje do takiego routerka?

Bez zmian: 12V, 1A.

Nie ukrywam, że jak już dochodzi do dokładania rezystorów to mój zakres umiejętności się kończy, chyba, że ktoś by miał cierpliwość wyjaśnić jak debilowi co trzeba by zrobić. I tak zgodnie z oczekiwaniami proste podłączenie nie działa wink Kolejność od lewej na zdjęciu:
VCC/GND/RX/TX

32

Odp: TL-WR842N v3

Zrób zworkę z cyny na R105 i zobacz, czy coś wypluwa. Masz adapter na 3.3V?

33

Odp: TL-WR842N v3

unreal napisał/a:

Zrób zworkę z cyny na R105 i zobacz, czy coś wypluwa. Masz adapter na 3.3V?

Mam. I nie pomogło, konsola jest cicha. Próbowałem defaultowo 115200 8N1

34 (edytowany przez unreal 2016-03-21 17:57:09)

Odp: TL-WR842N v3

Dałeś rx adaptera do tx routera, tak jak powinno być?
Wygląda, jakby tx routera było ściągnięte do masy przez R68, możesz to na 100% potwierdzić? Nie ma jeszcze jakichś elementów po drodze tej linii do układu? (widzę, że chyba nie, ale potwierdź z miernikiem ciągłości).
Edit: oczywiście, nie podłączaj vcc routera z vcc adaptera!

35

Odp: TL-WR842N v3

unreal napisał/a:

Dałeś rx adaptera do tx routera, tak jak powinno być?
Wygląda, jakby tx routera było ściągnięte do masy przez R68, możesz to na 100% potwierdzić? Nie ma jeszcze jakichś elementów po drodze tej linii do układu? (widzę, że chyba nie, ale potwierdź z miernikiem ciągłości).
Edit: oczywiście, nie podłączaj vcc routera z vcc adaptera!

Rx-tx i oczywiście vcc nie podłączone. Sprawdzę jeszcze jutro R68 tylko chyba muszę lupę kupić bo miniaturyzacja mnie osłabia wink
Dziekuje za podpowiedzi smile

36 (edytowany przez pacuro 2016-03-30 08:34:55)

Odp: TL-WR842N v3

Czy ruter odzyskał sprawnośc?

Co do rozmiaru flash, to nigdzie nie potrafię znaleźc info o Winbond 250128CS16. To już bardziej pasowałoby 25Q128CS16 jednak też nic nie ma w internecie, no i te liczby w symbolu (i jedna i druga) raczej potwierdzają 16MB.

Intel DQ77KB + Celeron G1620 + WLE900VX (Luci Obsy 19.07) + UPC300
R6220 (Luci Obsy 19.07) + E3272S-153 ndis

37

Odp: TL-WR842N v3

Sprawny to jest, ale z serialem walczę, ale mnie przywaliły inne tematy wink

Z kością flash - to może faktycznie być Q a nie 0 w 3 znaku - na tyle małe te napisy, że trudno odczytać z 100% pewnością.
16 MB jest na 100% - widać po rozmiarze fabrycznego firmware'u.

38

Odp: TL-WR842N v3

pacuro napisał/a:

Czy ruter odzyskał sprawnośc?

Co do rozmiaru flash, to nigdzie nie potrafię znaleźc info o Winbond 250128CS16. To już bardziej pasowałoby 25Q128CS16 jednak też nic nie ma w internecie, no i te liczby w symbolu (i jedna i druga) raczej potwierdzają 16MB.

Symbol to W25Q128. Pozostałe/dalsze oznaczenia mają mniejsze znaczenie.

39

Odp: TL-WR842N v3

Jakiś update odnośnie wsparcia OpenWrt tym routerze? Ostatnio stałem się szczęśliwym posiadaczem tego urządzenia.
Niestety oficjalny firmware TP-Linka uniemożliwia mi korzystanie z druku przez WiFi więc czekam z niecierpliwością na alternatywę.
W razie potrzeby służę pomocą w testowaniu buildów smile

40 (edytowany przez Heinz 2016-04-27 20:40:56)

Odp: TL-WR842N v3

Ktoś chętny do pomocy przy wsparciu?

bootlog:

U-Boot 1.1.4 (Sep 21 2015 - 13:00:39)

DRAM:  64 MB
Flash Manuf Id 0xc8, DeviceId0 0x40, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
ath_gmac_enet_initialize: reset mask:c02200
Scorpion ---->S27 PHY*
S27 reg init
: cfg1 0x800c0000 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
athrs27_phy_setup ATHR_PHY_CONTROL 4 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4 :10
eth0 up
Honey Bee ---->  MAC 1 S27 PHY *
S27 reg init
ATHRS27: resetting s27
ATHRS27: s27 reset done
: cfg1 0x800c0000 cfg2 0x7214
eth1: ba:be:fa:ce:08:41
athrs27_phy_setup ATHR_PHY_CONTROL 0 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0 :10
athrs27_phy_setup ATHR_PHY_CONTROL 1 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1 :10
athrs27_phy_setup ATHR_PHY_CONTROL 2 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2 :10
athrs27_phy_setup ATHR_PHY_CONTROL 3 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3 :10
eth1 up
eth0, eth1
Setting 0x181162c0 to 0x4891a100
is_auto_upload_firmware=0
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

Booting QCA953x
Linux version 2.6.31 (tomcat@buildserver) (gcc version 4.3.3 (GCC) ) #59 Mon Sep                                                                                                                      21 13:06:05 CST 2015
Ram size passed from bootloader =64M
flash_size passed from bootloader = 16
CPU revision is: 00019374 (MIPS 24Kc)
ath_sys_frequency: cpu apb ddr apb cpu 650 ddr 392 ahb 216
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Zone PFN ranges:
  Normal   0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/s                                                                                                                     bin/init mtdparts=ath-nor0:128k(u-boot),1024k(kernel),15104k(rootfs),64k(config)                                                                                                                     ,64k(art) mem=64M
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 59340k/65536k available (1770k kernel code, 6128k reserved, 503k data, 1                                                                                                                     16k init, 0k highmem)
NR_IRQS:128
plat_time_init: plat time init done
Calibrating delay loop... 433.15 BogoMIPS (lpj=866304)
Mount-cache hash table entries: 512

****************ALLOC***********************
 Packet mem: 802694e0 (0x300000 bytes)
********************************************

NET: Registered protocol family 16
ath_pcibios_init: bus 0
***** Warning PCIe 0 H/W not found !!!
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
ATH GPIOC major 0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 116
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for stdrng (ansi_cprng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A
console [ttyS0] enabled
PPP generic driver version 2.4.2
NET: Registered protocol family 24
5 cmdlinepart partitions found on MTD device ath-nor0
Creating 5 MTD partitions on "ath-nor0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000120000 : "kernel"
0x000000120000-0x000000fe0000 : "rootfs"
0x000000fe0000-0x000000ff0000 : "config"
0x000000ff0000-0x000001000000 : "art"
->Oops: flash id 0xc84018 .
Ooops, why the devices couldn't been initialed?
TCP cubic registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
athwdt_init: Registering WDT success
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 116k freed
init started:  BusyBox v1.01 (2015.09.21-05:12+0000) multi-call binary
mount: Mounting none on /proc/bus/usb failed: No such file or directory
This Board use 2.6.31
xt_time: kernel timezone is -0000
nf_conntrack version 0.5.0 (1024 buckets, 5120 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ip_tables: (C) 2000-2006 Netfilter Core Team
insmod: cannot open module `/lib/modules/2.6.31/kernel/iptable_raw.ko': No such                                                                                                                      file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/flashid.ko': No such file                                                                                                                      or directory
PPPoL2TP kernel driver, V1.0
PPTP driver version 0.8.3
insmod: cannot open module `/lib/modules/2.6.31/kernel/harmony.ko': No such file                                                                                                                      or directory
NET: Registered protocol family 15
Initializing XFRM netlink socket
Now flash open!
Now flash open!

 (none) mips #59 Mon Sep 21 13:06:05 CST 2015 (none)
(none) login: qca955x_GMAC: Length per segment 1536
953x_GMAC: qca953x_gmac_attach
Link Int Enabled
qca953x_set_gmac_caps  CHECK DMA STATUS
mac:1 Registering S27....
qca955x_GMAC: RX TASKLET - Pkts per Intr:18
qca955x_GMAC: Max segments per packet :   1
qca955x_GMAC: Max tx descriptor count :   511
qca955x_GMAC: Max rx descriptor count :   128
qca955x_GMAC: Mac capability flags    :   2D81
953x_GMAC: qca953x_gmac_attach
Link Int Enabled
qca953x_set_gmac_caps  CHECK DMA STATUS
mac:0 Registering S27....
qca955x_GMAC: RX TASKLET - Pkts per Intr:18
qca955x_GMAC: Max segments per packet :   1
qca955x_GMAC: Max tx descriptor count :   511
qca955x_GMAC: Max rx descriptor count :   128
qca955x_GMAC: Mac capability flags    :   2581
athr_gmac_ring_alloc Allocated 8176 at 0x83856000
athr_gmac_ring_alloc Allocated 2048 at 0x838b9000
HONEYBEE ----> S27 PHY MDIO
ATHRS27: resetting s27
ATHRS27: s27 reset done
++++ athrs27_igmp_setup once
port0 vid is 0xb000b
port1 vid is 0x30003
port2 vid is 0x50005
port3 vid is 0x70007
port4 vid is 0x90009
++ PVID: 0x0000000b, bitmap: 0x0000001f
++ PVID: 0x00000003, bitmap: 0x0000001f
++ PVID: 0x00000005, bitmap: 0x0000001f
++ PVID: 0x00000007, bitmap: 0x0000001f
++ PVID: 0x00000009, bitmap: 0x0000001f
vtable vid: 0x00000002, bitmap 0x00000003
vtable vid: 0x00000004, bitmap 0x00000005
vtable vid: 0x00000006, bitmap 0x00000007
vtable vid: 0x00000008, bitmap 0x00000009
vtable vid: 0x0000000a, bitmap 0x0000000b
vtable vid: 0x0000000c, bitmap 0x0000000d
vtable vid: 0x0000000e, bitmap 0x0000000f
vtable vid: 0x00000010, bitmap 0x00000011
vtable vid: 0x00000012, bitmap 0x00000013
vtable vid: 0x00000014, bitmap 0x00000015
vtable vid: 0x00000016, bitmap 0x00000017
vtable vid: 0x00000018, bitmap 0x00000019
vtable vid: 0x0000001a, bitmap 0x0000001b
vtable vid: 0x0000001c, bitmap 0x0000001d
vtable vid: 0x0000001e, bitmap 0x0000001f
vtable vid: 0x00000020, bitmap 0x00000021
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
athr_gmac_ring_alloc Allocated 8176 at 0x83a76000
athr_gmac_ring_alloc Allocated 2048 at 0x83a45000
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
device eth0 entered promiscuous mode
Now flash open!
athr_gmac_ring_free Freeing at 0x83a76000
athr_gmac_ring_free Freeing at 0x83a45000
athr_gmac_ring_alloc Allocated 8176 at 0x83aea000
athr_gmac_ring_alloc Allocated 2048 at 0x83a45000
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
athr_gmac_ring_free Freeing at 0x83856000
athr_gmac_ring_free Freeing at 0x838b9000
athr_gmac_ring_alloc Allocated 8176 at 0x838e6000
athr_gmac_ring_alloc Allocated 2048 at 0x838b9000
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
nf_conntrack_rtsp v0.6.21 loading
nf_nat_rtsp v0.6.21 loading
adf: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 0.9.17.1 (AR5416, AR9380, REGOPS_FUNC, WRITE_EEPROM, TX_DATA_SWAP, RX_D                                                                                                                     ATA_SWAP, 11D)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Right                                                                                                                     s Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserve                                                                                                                     d
ath_ahb: 10.2-00082-4 (Atheros/multi-bss)
__ath_attach: Set global_scn[0]
Enterprise mode: 0x03fc0000
Restoring Cal data from Flash
ath_get_caps[6191] rx chainmask mismatch actual 3 sc_chainmak 0
ath_get_caps[6166] tx chainmask mismatch actual 3 sc_chainmak 0
wifi0: Atheros ???: mem=0xb8100000, irq=2
ath_pci: 10.2-00082-4 (Atheros/multi-bss)
VAP device ath0 created
Setting Max Stations:32
 ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
Set freq vap stop send + 831f8000
Set freq vap stop send -831f8000
Set wait done --831f8000
Set freq vap stop send + 831f8000
Set freq vap stop send -831f8000
Set wait done --831f8000
athr_gmac_ring_free Freeing at 0x838e6000
athr_gmac_ring_free Freeing at 0x838b9000
br0: port 1(eth0) entering disabled state
athr_gmac_ring_alloc Allocated 8176 at 0x83b56000
athr_gmac_ring_alloc Allocated 2048 at 0x838b9000
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
device ath0 entered promiscuous mode
br0: port 2(ath0) entering forwarding state
 ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
br0: port 2(ath0) entering disabled state

 DES SSID SET=etwork-7c82cf5706dda49
br0: port 2(ath0) entering forwarding state
====>>>>wlanBootupAll ok
br0: port 2(ath0) entering disabled state

 DES SSID SET=TP-LINK_4A20
br0: port 2(ath0) entering forwarding state
 ieee80211_ioctl_siwmode: imr.ifm_active=1442432, new mode=3, valid=1
br0: port 2(ath0) entering disabled state
usb_power_write 1084: write gpio(Port-1):value = 0

 DES SSID SET=TP-LINK_4A20
br0: port 2(ath0) entering forwarding state
usb_power_write 1078: write gpio(Port-1):value = 1
fuse init (API version 7.12)
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Port Status 1c000004
ath-ehci ath-ehci.0: ATH EHCI
ath-ehci ath-ehci.0: new USB bus registered, assigned bus number 1
ehci_reset Intialize USB CONTROLLER in host mode: 13
ehci_reset Port Status 1c000000
ath-ehci ath-ehci.0: irq 3, io mem 0x1b000000
ehci_reset Intialize USB CONTROLLER in host mode: 13
ehci_reset Port Status 1c000000
ath-ehci ath-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
SCSI subsystem initialized
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
kcg 333 :GPL NetUSB up!
kc   90 : run_telnetDBGDServer start
kc  227 : init_DebugD end
INFO17F8: NetUSB 1.02.69, 0002061F : Jul  2 2015 13:52:39
INFO17FA: 7437: TL-WR842NDv3 :TL-WR842NDv3
INFO17FB:  AUTH ISOC
INFO17FC:  filterAudio
usbcore: registered new interface driver KC NetUSB General Driver
INFO0145:  init proc : PAGE_SIZE 4096
INFO16EC:  infomap 8334bf00
INFO16EF:  sleep to wait br0 to wake up
INFO15BF: tcpConnector() started... : br0
NET: Registered protocol family 10
ADDRCONF(NETDEV_UP): eth0: link is not ready
ADDRCONF(NETDEV_UP): eth1: link is not ready
IPv6 over IPv4 tunneling driver
qca955x_GMAC: GE0 RX DMA ENABLE
blockWps_proc_write 1157: write value = 0
INFO1572: Bind to br0

 TL-WR842N mips #59 Mon Sep 21 13:06:05 CST 2015 (none)
TL-WR842N login: root
Password:
Jan  1 00:00:59 login[210]: root login  on `ttyS0'



BusyBox v1.01 (2015.09.21-05:12+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

# 

Wgrałem mu openwrt z WR841N v10 tylko nie rozpoznaje flasha, Wgrałem firmware dla archer C7v2 i sprzęt się uruchamia, WiFi działa, USB działa, Interfejsy lan nie działają.

poszukałem trochę GPIO:

Ledy:
gpio 2 - power led
gpio 4 - wan red
gpio 11- wan green
gpio 12- lan1
gpio 14- lan3
gpio 15- lan4

Co do diody WAN jest to jedna dioda na dwóch liniach gpio. żeby uzyskać kolor czerwony to trzeba ustawić stan wysoki na 4 i niski na 11. Dla koloru zielonego stany ustawia się na odwrót. Ustawienie dwóch stanów wysokich lub niskich skutkuje zgaszeniem diody.

Przyciski:
gpio 0 - wifi on off
gpio 1 - wps/reset

Pewnie musi być jeszcze sterowanie zasilaniem portu USB ale nie potrafiłem tego znaleźć bo niektóre gpio są zajęte przez firmware z archera.

https://tplinkforum.pl - Polskie forum poświęcone tematyce urządzeń firmy TP-Link i Neffos

41

Odp: TL-WR842N v3

Tzn co z tym flashem? Tylko Id dodać?

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

42 (edytowany przez Heinz 2016-04-27 20:55:09)

Odp: TL-WR842N v3

Pewnie tak. Do wr841 v10 pewnie jeszcze obsługę USB.
Zaraz napisze jaki jest błąd tylko wgram te firmware.

m25p80 spi0.0: unrecognized JEDEC id c84018

Firmware z  C7v2:

[    0.576355] m25p80 spi0.0: found gd25q128, expected m25p80
[    0.582048] m25p80 spi0.0: gd25q128 (16384 Kbytes)
https://tplinkforum.pl - Polskie forum poświęcone tematyce urządzeń firmy TP-Link i Neffos

43

Odp: TL-WR842N v3

Heinz napisał/a:

Pewnie tak. Do wr841 v10 pewnie jeszcze obsługę USB.
Zaraz napisze jaki jest błąd tylko wgram te firmware.

m25p80 spi0.0: unrecognized JEDEC id c84018

Firmware z  C7v2:

[    0.576355] m25p80 spi0.0: found gd25q128, expected m25p80
[    0.582048] m25p80 spi0.0: gd25q128 (16384 Kbytes)

W trunku ostatnio dodali ten FLASH:
https://dev.openwrt.org/changeset/49220

44

Odp: TL-WR842N v3

W gargoyle też to już jest.

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

45

Odp: TL-WR842N v3

Bezpiecznie jest wgrać firmware C7v2 zamiast fabrycznego 842N v3? Czy brak obsługi portów LAN jest jedyną przeszkodą w funkcjonowaniu sprzętu? (WAN działa)? Kiedy spodziewana jest oficjalna obsługa tego urządzenia przez OpenWRT? Chciałbym pozbyć się 1043ND v1.8, który służy mi wyłącznie jako print server smile Swoją drogą będę miał go do opchnięcia w momencie obsługi serwera wydruku w 842N v3.

46

Odp: TL-WR842N v3

Ja całkiem przypadkowo wgrałem trunk Archera C7 który ma obsługę pamięci tej pamięci flash. N apewno lepiej działał by firmware WR841N ale tamte nie posiadają obsługi tej kostki.

Zostaje poczekać aż Cezary skompiluje firmware dla tego sprzętu lub na oficjalne wydanie ze strony openwrt.org

Jak co to mogę testować obrazy.

https://tplinkforum.pl - Polskie forum poświęcone tematyce urządzeń firmy TP-Link i Neffos

47

Odp: TL-WR842N v3

@Heinz: wgraj to: http://dl.eko.one.pl/test/openwrt-ar71x … actory.bin

Aktualne CC, na profilu 841-v10, na razie bez usb, ze zmienionymi ledami i przyciskami jak pisałeś. hwid oczywiście do 842v3

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

48

Odp: TL-WR842N v3

Działa bardzo dobrze.
Porty WAN i LAN razem z diodami OK.

Starting kernel ...

[    0.000000] Linux version 3.18.29 (cezary@eko.one.pl) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r46943) ) #1 Fri Apr 29 18:41:54 CEST 2016
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=TL-WR841N-v9  console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 60812K/65536K available (2607K kernel code, 127K rwdata, 544K rodata, 232K init, 193K bss, 4724K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:650.000MHz, DDR:391.430MHz, AHB:216.666MHz, Ref:25.000MHz
[    0.000000] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] NET: Registered protocol family 16
[    0.080000] MIPS: machine is TP-LINK TL-WR841N/ND v9
[    0.530000] Switched to clocksource MIPS
[    0.540000] NET: Registered protocol family 2
[    0.540000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.540000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.550000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.560000] TCP: reno registered
[    0.560000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.570000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.570000] NET: Registered protocol family 1
[    0.580000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.610000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.610000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.630000] msgmni has been set to 118
[    0.630000] io scheduler noop registered
[    0.640000] io scheduler deadline registered (default)
[    0.640000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.650000] console [ttyS0] disabled
[    0.670000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.680000] console [ttyS0] enabled
[    0.680000] console [ttyS0] enabled
[    0.690000] bootconsole [early0] disabled
[    0.690000] bootconsole [early0] disabled
[    0.700000] m25p80 spi0.0: found gd25q128, expected m25p80
[    0.710000] m25p80 spi0.0: gd25q128 (16384 Kbytes)
[    0.710000] 5 tp-link partitions found on MTD device spi0.0
[    0.720000] Creating 5 MTD partitions on "spi0.0":
[    0.720000] 0x000000000000-0x000000020000 : "u-boot"
[    0.730000] 0x000000020000-0x000000141b48 : "kernel"
[    0.740000] 0x000000141b48-0x000000ff0000 : "rootfs"
[    0.740000] mtd: device 2 (rootfs) set to be root filesystem
[    0.750000] 1 squashfs-split partitions found on MTD device rootfs
[    0.750000] 0x000000320000-0x000000ff0000 : "rootfs_data"
[    0.760000] 0x000000ff0000-0x000001000000 : "art"
[    0.770000] 0x000000020000-0x000000ff0000 : "firmware"
[    0.800000] libphy: ag71xx_mdio: probed
[    1.390000] ag71xx-mdio.1: Found an AR934X built-in switch
[    1.430000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    2.030000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
[    2.040000] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    2.050000] TCP: cubic registered
[    2.050000] NET: Registered protocol family 17
[    2.050000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.070000] Bridge firewalling registered
[    2.070000] 8021q: 802.1Q VLAN Support v1.8
[    2.080000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.090000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.100000] Freeing unused kernel memory: 232K (80396000 - 803d0000)
[    3.060000] init: Console is alive
[    3.070000] init: - watchdog -
[    5.120000] init: - preinit -
[    5.690000] random: mktemp urandom read with 9 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.930000] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    8.970000] procd: - early -
[    8.970000] procd: - watchdog -
[    9.790000] procd: - ubus -
[   10.800000] procd: - init -
Please press Enter to activate this console.
[   11.670000] NET: Registered protocol family 10
[   11.680000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.700000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
[   11.710000] Backport generated by backports.git backports-20151218-0-g2f58d9d
[   11.720000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.730000] nf_conntrack version 0.5.0 (953 buckets, 3812 max)
[   11.780000] xt_time: kernel timezone is -0000
[   11.880000] PPP generic driver version 2.4.2
[   11.890000] NET: Registered protocol family 24
[   11.970000] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=47
[   18.150000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   18.160000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   18.170000] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   21.840000] device eth0 entered promiscuous mode
[   21.890000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   21.950000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   24.610000] eth1: link up (100Mbps/Full duplex)
[   24.610000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   38.350000] done.
[   38.360000] jffs2: notice: (944) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   38.610000] eth1: link down
[   38.920000] eth0: link up (1000Mbps/Full duplex)
[   38.920000] br-lan: port 1(eth0) entered forwarding state
[   38.930000] br-lan: port 1(eth0) entered forwarding state
[   38.950000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   40.930000] br-lan: port 1(eth0) entered forwarding state
[   44.610000] eth1: link up (100Mbps/Full duplex)
[   59.920000] eth0: link down
[   59.920000] br-lan: port 1(eth0) entered disabled state
[   61.920000] eth0: link up (1000Mbps/Full duplex)
[   61.920000] br-lan: port 1(eth0) entered forwarding state
[   61.930000] br-lan: port 1(eth0) entered forwarding state
[   62.420000] eth0: link down
[   62.920000] br-lan: port 1(eth0) entered disabled state
[   63.920000] eth0: link up (1000Mbps/Full duplex)
[   63.920000] br-lan: port 1(eth0) entered forwarding state
[   63.930000] br-lan: port 1(eth0) entered forwarding state
[   64.920000] eth0: link down
[   64.920000] br-lan: port 1(eth0) entered disabled state
[   66.420000] eth0: link up (1000Mbps/Full duplex)
[   66.420000] br-lan: port 1(eth0) entered forwarding state
[   66.430000] br-lan: port 1(eth0) entered forwarding state
[   67.420000] eth0: link down
[   67.420000] br-lan: port 1(eth0) entered disabled state
[   68.920000] eth0: link up (1000Mbps/Full duplex)
[   68.920000] br-lan: port 1(eth0) entered forwarding state
[   68.930000] br-lan: port 1(eth0) entered forwarding state
[   70.930000] br-lan: port 1(eth0) entered forwarding state
[   75.480000] random: nonblocking pool is initialized



BusyBox v1.23.2 (2016-03-12 09:24:50 CET) built-in shell (ash)


        _______                     ________        __
       |       |.-----.-----.-----.|  |  |  |.----.|  |_
       |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
       |_______||   __|_____|__|__||________||__|  |____|
                |__| W I R E L E S S   F R E E D O M

 ----------------------------------------------------------------
 |                                                              |
 | OpenWrt Chaos Calmer 15.05.1 (r49261)                        |
 | Build time: 2016-04-29 18:39 CEST                            |
 |                                                              |
 | Cezary Jackiewicz (obsy), http://eko.one.pl                  |
 |                                                              |
 ----------------------------------------------------------------
 | Machine: TP-Link TL-WR842N/ND v3                             |
 | Uptime: 0d, 00:02:11                                         |
 | Load: 0.30 0.23 0.09                                         |
 | Flash: total: 12.8MB, free: 12.4MB, used: 4%                 |
 | Memory: total: 59.6MB, free: 47.6MB, used: 20%               |
 | WAN: 10.1.1.241, proto: dhcp                                 |
 | LAN: 192.168.1.1                                             |
 ----------------------------------------------------------------

Na końcu logu widać jak przełączałem kabel do każdego portu LAN i wszędzie pokazuje 1000Mbps a na laptopie pokazuje 100mbps.
Przy porcie WAN jest 100 tak jak ma być.



dioda wifi - gpio 3
pin rx złącza uart - gpio 10

Za chwilkę poszukam diody wps i usb.

https://tplinkforum.pl - Polskie forum poświęcone tematyce urządzeń firmy TP-Link i Neffos

49

Odp: TL-WR842N v3

Ok mam tyle:
ledy:
gpio 2 - power led
gpio 3 - wifi
gpio 4 - wan red
gpio 11- wan gren
gpio 12- lan1
gpio 13- lan2
gpio 14- lan3
gpio 15- lan4
gpio 16- usb
gpio 17- wps
przyciski:
gpio 0 - wifi on off
gpio 1 - wps/reset
złącze uart:
gpio 9 - tx
gpio 10- rx


W tym firmware trzeba jeszcze dodać obsługę przycisków
Dioda Power świeci na odwrót - jeśli można to fajnie by było jak by działała jako SYS.
WiFi działa

Nie umiem znaleźć GPIO od zasilania USB - chyba ze to wogóle nie jest tym sterowane.
Gdy pozamieniałem stany na gpio 5-8 to nie można było nic zapisać na flashu.

https://tplinkforum.pl - Polskie forum poświęcone tematyce urządzeń firmy TP-Link i Neffos

50

Odp: TL-WR842N v3

Do obrazów się nie przyzwyczajaj - jest brzydko na szybko zrobione.

Weź jeszcze raz - dodałem usb, przyciski tak jak w poprzednim powinny być obsługiwane - na tych gpio je zrobiłem.

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