1 (edytowany przez oranos7 2015-03-06 21:49:52)

Temat: Problem z połączeniem się z Routerem Trenda N60 po serial'u

Pierwszy raz podlutowałem się pod pcb w routerze i próbuje połączyć się z nim używając putty. Router to tenda n60 z fabrycznym oprogramowaniem.

Sprzęt: pl2303HX

RX - podlutowany pod punkt TP3
TX - podlutowany pod punkt TP4
GDN - pod obudowe od usb

Odlapam putty, ustawiam numer portu com oraz prędkość 115200. otwieram połączenie, putty czeka na router. Odpalam router i w miedzy czasie cały z wciskam ctrl + c. Niestety zero reakcji , router bootuje normalnie, nie przerywam mu bootowania. Czy ktoś może mi doradzić co robie źle ??

Ponizej log:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.03.06 21:31:01 =~=~=~=~=~=~=~=~=~=~=~=
   Decompressing...done


CFE version 5.100.138.22 based on BBP 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Sat Mar 31 16:54:11 CST 2012 (root@linux-6091)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 131072(0x20000)
Found an ST compatible serial flash with 128 64KB blocks; total size 8MB
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.100.138.22
CPU type 0x19749: 500MHz
Tot mem: 65536 KBytes

CFE mem:    0x80700000 - 0x80798520 (623904)
Data:       0x8072E340 - 0x80731590 (12880)
BSS:        0x80731590 - 0x80732520 (3984)
Heap:       0x80732520 - 0x80796520 (409600)
Stack:      0x80796520 - 0x80798520 (8192)
Text:       0x80700000 - 0x8072E340 (189248)

Device eth0:  hwaddr C8-3A-35-21-5C-C8, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:raw Filesys:tftp Dev:eth0 File:192.168.1.100:vmlinuz Options:(null)
Loading: Failed.
Could not load 192.168.1.100:vmlinuz: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: ...... 3601204 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
Linux version 2.6.22 (root@linux) (gcc version 4.2.3) #18 PREEMPT Tue Aug 6 09:57:18 CST 2013
CPU revision is: 00019749
Found an ST compatible serial flash with 128 64KB blocks; total size 8MB
wombo_reset set to gpio 22
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Built 1 zonelists.  Total pages: 16256
Kernel command line: root=/dev/mtdblock2 console=ttyS0,115200 init=/sbin/preinit
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 256 (order: 8, 1024 bytes)
CPU: BCM5357 rev 2 at 500 MHz
Using 250.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 60952k/65536k available (2779k kernel code, 4520k reserved, 568k data, 168k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
SCSI subsystem initialized
PCI: no core
PCI: no core
PCI: Fixing up bus 0
Time: MIPS clocksource has been installed.
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
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
fuse init (API version 7.8)
io scheduler noop registered (default)
HDLC line discipline: version $Revision: 1.1.1.1 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: 1.1.1.1 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 8) is a 16550A
loop: module loaded
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
pflash: found no supported devices
Boot partition size = 131072(0x20000)
sflash: squash filesystem with lzma found at block 21
Creating 4 MTD partitions on "sflash":
0x00000000-0x00020000 : "boot"
0x00020000-0x007f0000 : "linux"
0x00155b90-0x007f0000 : "rootfs"
0x007f0000-0x00800000 : "nvram"
nflash: found no supported devices
nf_conntrack version 0.5.0 (512 buckets, 4096 max)
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 1
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>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 168k freed
Warning: unable to open an initial console.
Failed to execute /init
Algorithmics/MIPS FPU Emulator v1.5
[sighandler]: No more events to be processed, quitting.
[cleanup]: Waiting for children.
[cleanup]: All children terminated.
ctf: module license 'Proprietary' taints kernel.
load_emf:253-----load_emf-----
insmod: emf.ko: no module by that name found
insmod: igs.ko: no module by that name found
et_module_init: passivemode set to 0x1
et_module_init: et_txq_thresh set to 0x0
eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.100.138.2205
insmod: bcm57xx.ko: no module by that name found
wl_module_init: passivemode set to 0x1
eth1: Broadcom BCM4347 802.11 Wireless Controller 5.100.138.2205
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
wombo_reset set to gpio 22
ohci_hcd 0000:00:04.0: OHCI Host Controller
ohci_hcd 0000:00:04.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:04.0: irq 5, io mem 0x18009000
CJ++ PRODUCT commit to nvram : 0/0/206
USB hotplug_usb detected product:  0/0/206
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
printer device not found
wombo_reset set to gpio 22
ehci_hcd 0000:00:04.1: EHCI Host Controller
ehci_hcd 0000:00:04.1: new USB bus registered, assigned bus number 2
ehci_hcd 0000:00:04.1: EHCI Fastpath: New EHCI driver starting
ehci_hcd 0000:00:04.1: irq 5, io mem 0x18004000
ehci_hcd 0000:00:04.1: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
CJ++ PRODUCT commit to nvram : 0/0/206
USB hotpusb usb2: configuration #1 chosen from 1 choice
lug_usb detected product:  0/0/206
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ehci_hcd 0000:00:04.1: Ehci port 2 had hsic capability
usb 2-2: new high speed USB device using ehci_hcd and address 2
ehci_hcd 0000:00:04.1: Ehci port 2 had hsic capability
CJ++ PRODUCT commit to nvram : a5c/bd17/1
USB hotplug_usb detected product:  a5c/bd17/1
usb 2-2: configuration #1 chosen from 1 choice
printer device not found
printer device not found
rc_signal: signalling RESTART
Symbol usb_register_driver is being used by a non-GPL module, which will not be allowed in the future
Please see the file Documentation/feature-removal-schedule.txt in the kernel source tree for more details.
Symbol usb_deregister is being used by a non-GPL module, which will not be allowed in the future
Please see the file Documentation/feature-removal-schedule.txt in the kernel source tree for more details.
EHCI Fastpath: usb_dev 83b2dc00
EHCI Fastpath: bus 83d71400
EHCI Fastpath: Hub 83fea000
ehci_hcd 0000:00:04.1: EHCI Fastpath: Got the bypass device command in EHCI 83b2dc00
EHCI Fastpath: usb_dev 83b2dc00
EHCI Fastpath: bus 83d71400
EHCI Fastpath: Hub 83fea000
ehci_hcd 0000:00:04.1: EHCI Fastpath: Got the bypass callback command in EHCI c0296180
EHCI Fastpath: usb_dev 83b2dc00
EHCI Fastpath: bus 83d71400
EHCI Fastpath: Hub 83fea000
ehci_hcd 0000:00:04.1: EHCI Fastpath: Got the bypass fastpath pool command in EHCI 8361c780
EHCI Fastpath: usb_dev 83b2dc00
EHCI Fastpath: bus 83d71400
EHCI Fastpath: Hub 83fea000
ehci_hcd 0000:00:04.1: EHCI Fastpath: Got the RH bypass command in EHCI for EP #0 0004
ehci_hcd 0000:00:04.1: EHCI Fastpath: release native dummy qtd and alloc new one
ehci_hcd 0000:00:04.1: EHCI Fastpath: EP 833af3ec QH a3ff8100 dummy a361d000
EHCI Fastpath: usb_dev 83b2dc00
EHCI Fastpath: bus 83d71400
EHCI Fastpath: Hub 83fea000
ehci_hcd 0000:00:04.1: EHCI Fastpath: Got the RH bypass command in EHCI for EP #1 0012
ehci_hcd 0000:00:04.1: EHCI Fastpath: release native dummy qtd and alloc new one
ehci_hcd 0000:00:04.1: EHCI Fastpath: EP 833af3a4 QH a3ff8180 dummy a361d060
EHCI Fastpath: EP in 18 EP in2 19 EP out 4
optimize_deinit_qtds 3108. qh = a3ff8100
optimize_deinit_qtds 3108. qh = a3ff8180
EHCI Fastpath: usb_dev 83b2dc00
EHCI Fastpath: bus 83d71400
EHCI Fastpath: Hub 83fea000
0 freeing 
1 freeing 
2 freeing 
rpc_dbus_state_change: DBUS is down
bcm_rpc_tp_attach: dbus_attach failed
usbcore: registered new interface driver dbus_usbdev
eth2: No such device
wl0 not up in 3 sec
sysinit: done
Hit enter to continue...init server success.1..
No need to start gpio thread.
main_loop: TIMER
main_loop: IDLE
start gpiod...
start_lan: br0
NET: Setting vlan1: dev_set_allmulti(master, 1)
br0 hw addr to c8:3a:35:21:5c:c8
vlan1: Operation not supported
vlan1: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device vlan1 entered promiscuous mode
wlconf: PHYTYPE: 4
eth1: Invalid argument
eth1: Invalid argument
eth1: Operation not supported
eth1: Operation not supported
device eth1 entered promiscuous mode
eth2: No such device
ifconfig: No sbr0: port 2(eth1) entering learning state
uch device
NET:br0: port 1(vlan1) entering learning state
 Setting br1 hw br0: topology change detected, propagating
addr to c8:3a:35br0: port 2(eth1) entering forwarding state
:21:5c:c9
br0: topology change detected, propagating
br0: port 1(vlan1) entering forwarding state
start_emf:236-----start_emf-----
killall: wps_monitor: no process killed
wl: wl driver adapter not found
wl: wl driver adapter not found
wl: wl driver adapter not found
wl: wl driver adapter not found
CJ++ printer disabled
main_loop: TIMER
main_loop: IDLE
Hit enter to continue...main.c check network 192.168.0.1 success


Yes:

      ****** WeLoveLinux ****** 

 Welcome to ...
cgi/main.c check network ip start
main.c check network 192.168.0.1 success
multwan init ok.
killall: dhcps: no process killed
open /proc/tdproc/lanip failed
Init tQoS dev success.
adding /dev/tQoS...
adding /dev/ufilter...
mac_filter_init..... 
ipmacbind_init..... 
groupip_init..... 
client_filter_init..... 
start url_filter_init...................
killall: ddns: no process killed
killall: ddns: no process killed
killall: ddns: no process killed
rm: cannot remove '/etc/ddns_*': No such file or directory
killall: dhcps_guest: no process killed
acsd: selected channel spec: 0x2d03
Hit enter to continue...open /dev/gsbmac failed.
open /dev/fence failed.
bad.map=00000
bad_bit=0
open /dev/fence failed.
ipop_bit:
ipop_bit=0
open /dev/fence failed.
set port 0 to AUTO

dnsmasq: bad dhcp-range at line 3 of /etc/dhcps_guest.conf
Hit enter to continue...httpd listen ip = 192.168.0.1 port = 80
webs: Listening for HTTP requests at address 192.168.0.1
init web server success: cgi/main.c
Restart logserver
killall: logserver: no process killed
logserver.c check network 192.168.0.1 success
Restart sntp
killall: sntp: no process killed
sntp.c check network 192.168.0.1 success

2 (edytowany przez MiG25 2015-03-06 22:07:55)

Odp: Problem z połączeniem się z Routerem Trenda N60 po serial'u

Ustawiłeś sprzęt na 3,3V ? Chyba z pl2303 to ogólne problemy są i nie jest on wymarzonym kabelkiem...

3

Odp: Problem z połączeniem się z Routerem Trenda N60 po serial'u

A o co chodzi z 3,3V ?? pinu 3v3 nigdzie nie podłączałem?? Przepraszam za głupie pytania ale robie to pierwszy raz.

Ogólnie sprawa już jest nieaktualna (chociaż chętnie pogłębię wiedzę na przyszłość) ponieważ udało mi się odratować router poprzez tftp , wysłałem mu plik z firmware przez lan'a, router sam go pobrał,  zaprogramował się i wszystko już działa. Niestety mój błąd bo na wszystkich forach pisano że bez kabelka się nie obejdzie a tu niespodzianka, niepotrzebnie rozbierałem router smile

4

Odp: Problem z połączeniem się z Routerem Trenda N60 po serial'u

To opisz jeszcze co wcześniej uwaliłeś i jak naprawiłeś - żeby została instrukcja dla potomnych smile

OpenWrt: WAX206/NWA50AX/EA6350v3 || W szufladzie: WNDR4300/TL-WDR4300/SR3200

5 (edytowany przez oranos7 2015-03-07 00:21:24)

Odp: Problem z połączeniem się z Routerem Trenda N60 po serial'u

Tenda N60 - router testowałem z ciekawości, jeszcze nie ma na to OpenWrt, wiec pokusiłem się na Tomato. Kupiony za 60 zł, 2,4GHZ + 5GHZ, porty Lan i Wan Gigabitowe. Uwalenie routera nastąpiło po zmianie oprogramowania z Tomato na Fabryczne. Ponieważ w paczce nie było przejściowego pliku z firmware (init) od razu pokusiłem się o zmiane na fabryczne. Wybranie wyczyszczenia nvram nie  pomogło. Fabryczne oprogramowanie wgrało się bez problemu i router działał ale nie przyjmowało standardowego loginu i hasła. Resetowanie też nie pomogło.

Procedura awaryjnego wgrywania firmware dla Tenda N60 przy fabrycznym oprogramowaniu producenta:
1. Sciagamy Firmware ze strony producenta lub inne alternatywne (u mnie na błedny login/hasło nie pomogło wrzucenie oryginalnego, dopiero na tomato mogłem sie zalogować).
2. Zmieniamy nazwę pliku (łącznie z rozszerzeniem) na "vmlinuz"
3. Podpinamy router do komputera (użyłem LAN2), ustawiamy adres ip karty sieciowej na 192.168.1.100
4. Uruchamiamy program "TENDA TFTP" albo inny klient tftp.
5. Wybieramy "server interface" 192.168.1.100
6. W zakładce tftp client podajemy nazwe pliku "vmlinuz" i adres ip hosta oraz wysyłamy plik (Put)
7. Odpalamy router, po chwili powinien on zacząć pobierać plik
8. Po pobraniu pliku przez router dajemy break aby po restarcie router nie pobrał pliku ponownie
9. Czekamy około 2 minut do zakończenia operacji i restartu routera.


Opinie co do routera Tenda N60.
1. Niezbyt wydajne Wifi, zarówno 2.4 jak i 5GHZ. Na 5GHZ i 40Mhz uzyskałem maksymalnie 63mb przy całkowicie czystym paśmie (dla porównania TP-Link wdr3600 na gargoyle około 100-120Mb). Prędkość dla 2,4GHz również nie zachwyca.
2. Router sie bardzo mocno grzeje, w środu brak dobrych radiatorów. Podobno przez to jest bardzo awaryjny.
3. Mimo gigabitowych portów w routerze i PC'cie nie osiągnąłem po Lanie pełnej prędkości internetu. Mimo połączenia 1000mb zarówno na WAN jak i na LAN nie udało mi się osiągnąć więcej niż 85% pasma (TP-Link wdr3600 - zero problemów)
4. Co do stabilności nie mam zastrzeżeń, mimo wysokiej temperatury nie zawiesza się.


Małe porównanie co do jakości sygnału (4 metry od routera, zero przeszkód):
                              Tenda N60               /               TP-Link Wdr-3600
2,4Ghz 40Mhz           48 dBi                                              41 dBi
5GHZ 40Mhz             67 dBi                                              50 dBi


Powyższe uwagi dotyczą zarówno Tomato jak i oprogramowania od Chinczyków. W obydwu przypadkach występują wspomniane niuanse smile

W skrócie, mimo ceny nie polecam. Bez wymiany radiatorów router nie wytrzyma dłużej niż 2 lata. Tracimy wiec gwarancję już na starcie albo czekamy aż w końcu padnie. Bardzo kiepskie Wifi, można pomarzyć o wysokich transferach w czystym paśmie 5Ghz. Niedopracowane firmware. Lepiej dołożyć i kupić coś droższego na OpenWRT co bedzie służyło latami smile. No chyba ze wypuszczą na to stabilne i dopracowane OpenWrt które wyciśnie z routera coś więcej (jeśli w ogóle się da), wtedy można się zastanowić nad zaryzykowaniem smile

6

Odp: Problem z połączeniem się z Routerem Trenda N60 po serial'u

oranos7 napisał/a:

A o co chodzi z 3,3V ?? pinu 3v3 nigdzie nie podłączałem?? Przepraszam za głupie pytania ale robie to pierwszy raz.

W PL2303 poziom napięcia TLL zależy od napiecia przyłożonego do pin4 układu. Ponieważ układ ten ma rowniez zasilanie 3,3V Na pin 17 najprościej jest podać takie napięcie z niego.
Datasheet mówi, ze napięcie na pin 4 może być z przedziału 3,3-1,8v ,ale z powodzeniem mozna podać tam 5V ( widziałem to w jednym czytniku kart).
Generalnie lepsza przejściówka jest cp2102 albo ftdi.

7

Odp: Problem z połączeniem się z Routerem Trenda N60 po serial'u

OT: ostatnio na ch340 się cała masa pojawiła.

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