[solved] wrong firmware on wr841n

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
bialabs
DD-WRT Novice


Joined: 06 Apr 2013
Posts: 43

PostPosted: Sat May 31, 2014 1:10    Post subject: [solved] wrong firmware on wr841n Reply with quote
i've flashed v9 firmware on a v8.4
Now the router reboot continuously (power led -> wifi led and reboot)
If i connect via COM port (Nokia DKU-5 usb) i get this prompt continuously.
What can i do?
thank you

Code:

U-Boot 1.1.4 (Nov  1 2012 - 10:25:30)

U-boot AP123


DRAM:  32 MB
id read 0x100000ff
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
wasp reset mask:c03300
WASP ----> S27 PHY
file: ag934x.c,line: 179==: set LAN&WAN SWAP. --debug by HouXB
GMAC: cfg1 0x5 cfg2 0x7114


U-Boot 1.1.4 (Nov  1 2012 - 10:25:30)

U-boot AP123


DRAM:  32 MB
id read 0x100000ff
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
wasp reset mask:c03300
WASP ----> S27 PHY
file: ag934x.c,line: 179==: set LAN&WAN SWAP. --debug by HouXB
GMAC: cfg1 0x5 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
s27 reg init
athrs27_phy_setup ATHR_PHY_CONTROL 4: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4: 0x10
eth0 up
WASP ----> S27 PHY
file: ag934x.c,line: 179==: set LAN&WAN SWAP. --debug by HouXB
GMAC: cfg1 0xf cfg2 0x7214
eth1: ba:be:fa:ce:08:41
s27 reg init lan
ATHRS27: resetting s27
ATHRS27: s27 reset done
athrs27_phy_setup ATHR_PHY_CONTROL 0: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0: 0x10
athrs27_phy_setup ATHR_PHY_CONTROL 1: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1: 0x10
athrs27_phy_setup ATHR_PHY_CONTROL 2: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2: 0x10
athrs27_phy_setup ATHR_PHY_CONTROL 3: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3: 0x10
eth1 up
eth0, eth1
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.10.40 (root@dd-wrt.buildserver) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.01 r39555) ) #9977 Tue May 27 11:21:49 CEST 2014
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001974c (MIPS 74Kc)
[    0.000000] cpu srif ddr srif cpu 535 ddr 400 ahb 200
AR9341
detect mem size
Uart Init
Booting WASP !!! -:) ...
[    0.000000] sys id = 10123 Atheros AR9341 rev 1.3 (0x0123)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Primary instruction cache 64kB, 4-way, VIPT, I-cache aliases, 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: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 root=1f02 rootfstype=squashfs noinitrd init=/sbin/init
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 29196k/32768k available (2092k kernel code, 3572k reserved, 342k data, 188k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:83
[    0.000000] Calibrating delay loop... 266.64 BogoMIPS (lpj=1333248)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.090000] ar71xx: invalid PHY interface mode for GE1
[    0.300000] 25MHZ ref freq
[    0.310000] bio: create slab <bio-0> at 0
[    0.320000] Switching to clocksource MIPS
[    0.330000] NET: Registered protocol family 2
[    0.330000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.330000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.340000] TCP: Hash tables configured (established 512 bind 512)
[    0.340000] TCP: reno registered
[    0.340000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.350000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.360000] NET: Registered protocol family 1
[    0.360000] gpio_proc: module loaded and /proc/gpio/ created
[    0.370000] wl0gpio_proc: module loaded and /proc/wl0gpio/ created
[    0.390000] squashfs: version 3.0 (2006/03/15) Phillip Lougher
[    0.390000] msgmni has been set to 57
[    0.400000] io scheduler noop registered (default)
[    0.400000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
¦¦r¦¦¦¦¦¦¦serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.440000] console [ttyS0] enabled, bootconsole disabled
[    0.440000] console [ttyS0] enabled, bootconsole disabled
[    0.450000] guessed flashsize = 4M
[    0.450000] scanning for root partition
[    0.460000] tplink uboot detected
[    0.460000] guessed bootloader size = 20000
[    0.470000]
[    0.470000] found squashfs at 110000
[    0.480000] Creating 8 MTD partitions on "ar7240-nor0":
[    0.480000] 0x000000000000-0x000000020000 : "RedBoot"
[    0.490000] 0x000000020000-0x0000003e0000 : "linux"
[    0.490000] 0x000000110000-0x0000003d0000 : "rootfs"
[    0.500000] mtd: partition "rootfs" set to be root filesystem
[    0.510000] 0x0000003d0000-0x0000003e0000 : "ddwrt"
[    0.510000] 0x0000003e0000-0x0000003f0000 : "nvram"
[    0.520000] 0x0000003f0000-0x000000400000 : "board_config"
[    0.530000] 0x000000000000-0x000000400000 : "fullflash"
[    0.530000] 0x000000000000-0x000000020000 : "fullboot"
[    0.540000] libphy: Fixed MDIO Bus: probed
[    0.550000] tun: Universal TUN/TAP device driver, 1.6
[    0.550000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.560000] PPP generic driver version 2.4.2
[    0.560000] PPP BSD Compression module registered
[    0.570000] PPP Deflate Compression module registered
[    0.570000] PPP MPPE Compression module registered
[    0.580000] NET: Registered protocol family 24
[    0.600000] u32 classifier
[    0.600000]     Performance counters on
[    0.610000]     input device check on
[    0.610000]     Actions configured
[    0.620000] Netfilter messages via NETLINK v0.30.
[    0.620000] nf_conntrack version 0.5.0 (456 buckets, 1824 max)
[    0.630000] nf_conntrack_rtsp v0.6.21 loading
[    0.630000] nf_nat_rtsp v0.6.21 loading
[    0.640000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    0.640000] TCP: westwood registered
[    0.650000] TCP: hybla registered
[    0.650000] TCP: vegas registered
[    0.650000] NET: Registered protocol family 17
[    0.660000] Bridge firewalling registered
[    0.660000] 8021q: 802.1Q VLAN Support v1.8
[    0.670000] searching for nvram
[    0.670000] nvram size = 0
[    0.700000] Atheros AR71xx hardware watchdog driver version 0.1.0
[    0.710000] ar71xx-wdt: timeout=15 secs (max=171) ref freq=25000000
[    0.720000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.730000] Freeing unused kernel memory: 188K (802c1000 - 802f0000)
start service
starting Architecture code for dir615e
starting hotplug
Jan  1 00:00:01 udevtrigger[290]: parse_config_file: can't open '/etc/udev/udev.conf' as config file: No such file or directory
done
load ATH Ethernet Driver
[    2.770000] libphy: ag71xx_mdio: probed
[    3.330000] ag71xx ag71xx.0: invalid speed specified
[    3.330000] ag71xx: probe of ag71xx.0 failed with error -22
Failed to connect to the switch
Failed to connect to the switch
Failed to connect to the switch
Failed to connect to the switch
/bin/sh: can't create /sys/class/leds/generic_11/port_mask: nonexistent directory
/bin/sh: can't create /sys/class/leds/generic_14/port_mask: nonexistent directory
/bin/sh: can't create /sys/class/leds/generic_15/port_mask: nonexistent directory
/bin/sh: can't create /sys/class/leds/generic_16/port_mask: nonexistent directory
load ATH 802.11 a/b/g Driver
load ATH9K 802.11n Driver
[    3.560000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[    3.570000] Backport generated by backports.git backports-20140320-37-g5c33da0
[    3.700000] cfg80211: Calling CRDA to update world regulatory domain
[    3.770000] cfg80211: World regulatory domain updated:
[    3.770000] cfg80211:  DFS Master region: unset
[    3.780000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    3.790000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    3.790000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    3.800000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    3.810000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    3.820000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    3.830000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    4.290000] ieee80211 phy0: Atheros AR9340 Rev:0 mem=0xb8100000, irq=78
[    4.300000] cfg80211: Calling CRDA for country: US
[    4.300000] cfg80211: Regulatory domain changed to country: US
[    4.310000] cfg80211:  DFS Master region: FCC
[    4.310000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    4.320000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[    4.330000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
[    4.340000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (N/A)
[    4.350000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[    4.360000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
ath9k deconfigure_single: phy0 ath0
[    6.350000] device br0 entered promiscuous mode
[    6.380000] device br0 left promiscuous mode
[    6.390000] device br0 entered promiscuous mode
ath9k deconfigure_single: phy0 ath0
[    6.440000] cfg80211: Calling CRDA to update world regulatory domain
[    6.470000] cfg80211: Invalid regulatory domain detected:
[    6.470000] cfg80211: Regulatory domain: 00
[    6.480000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    6.490000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    6.490000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    6.500000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    6.510000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    6.520000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    6.530000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    6.560000] cfg80211: Calling CRDA to update world regulatory domain
[    6.590000] cfg80211: World regulatory domain updated:
[    6.590000] cfg80211:  DFS Master region: unset
[    6.600000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    6.610000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    6.620000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    6.620000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    6.630000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    6.640000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    6.650000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    6.660000] cfg80211: Calling CRDA for country: US
[    6.660000] cfg80211: Regulatory domain changed to country: US
[    6.670000] cfg80211:  DFS Master region: FCC
[    6.670000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    6.680000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[    6.690000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
[    6.700000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (N/A)
[    6.710000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[    6.720000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
ath9k configure_single: phy0 ath0
585:ath0
call mac80211autochannel for interface: ath0
freq:2412 qual:100 noise:-95
freq:2417 qual:40 noise:-95
freq:2422 qual:75 noise:-95
freq:2427 qual:75 noise:-95
freq:2432 qual:48 noise:-95
freq:2437 qual:94 noise:-95
freq:2442 qual:49 noise:-95
freq:2447 qual:73 noise:-95
freq:2452 qual:74 noise:-95
freq:2457 qual:50 noise:-95
freq:2462 qual:97 noise:-95
freq:2467 qual:48 noise:-95
mac80211autochannel interface: ath0 frequency: 2412
setup ath0 F8:1A:67:8C:88:E0
[    9.890000] device ath0 entered promiscuous mode
[    9.890000] br0: port 1(ath0) entered forwarding state
[    9.900000] br0: port 1(ath0) entered forwarding state
[    9.960000] device br0 left promiscuous mode
SIOCGIFFLAGS: No such device
Sending SIGTERM to all processes[   11.310000] ar71xx-wdt: device closed unexpectedly, watchdog timer will not stop!

[   11.350000] br0: port 1(ath0) entered disabled state
Sending SIGKILL to all processes
[   19.340000] Restarting system.


Last edited by bialabs on Wed Aug 27, 2014 17:33; edited 1 time in total
Sponsor
TendaW311R+
DD-WRT User


Joined: 19 Oct 2011
Posts: 354

PostPosted: Sat May 31, 2014 8:27    Post subject: Reply with quote
use tpl to stop boot and tftp the right firmware
bialabs
DD-WRT Novice


Joined: 06 Apr 2013
Posts: 43

PostPosted: Sat May 31, 2014 13:26    Post subject: Reply with quote
TendaW311R+ wrote:
use tpl to stop boot and tftp the right firmware


if i type tpl when appears Autobooting in 1 seconds nothing happens.
it seems that the command does not arrive.
It's possible that something wrong with Putty?
TendaW311R+
DD-WRT User


Joined: 19 Oct 2011
Posts: 354

PostPosted: Sat May 31, 2014 13:47    Post subject: Reply with quote
bialabs wrote:
TendaW311R+ wrote:
use tpl to stop boot and tftp the right firmware


if i type tpl when appears Autobooting in 1 seconds nothing happens.
it seems that the command does not arrive.
It's possible that something wrong with Putty?


You need to be very fast. Also "click" on putty screen just to be sure that you send the command. Check your connection -> you need TX to RX and RX to TX, GND-GND. Do not use very long wires.


Use this guide http://blog.flozz.fr/?d=2013/07/13/15/57/39-debriquer-un-routeur-tp-link-tl-wr841nd-v84


GOOD LUCK !
bialabs
DD-WRT Novice


Joined: 06 Apr 2013
Posts: 43

PostPosted: Sat May 31, 2014 13:59    Post subject: Reply with quote
if I reverse the TX and RX nothing appears in Putty. So I think the connection is ok.
Config of Putty is the same of your screenshot.
when i enter tpl after Autobooting in 1 seconds appears always ## Booting image at 9f020000 ...
Uncompressing Kernel Image ... OK


thank you for your time
TendaW311R+
DD-WRT User


Joined: 19 Oct 2011
Posts: 354

PostPosted: Sat May 31, 2014 14:14    Post subject: Reply with quote
bialabs wrote:
if I reverse the TX and RX nothing appears in Putty. So I think the connection is ok.
Config of Putty is the same of your screenshot.
when i enter tpl after Autobooting in 1 seconds appears always ## Booting image at 9f020000 ...
Uncompressing Kernel Image ... OK


thank you for your time


Please try to connect adapter's TX and RX and type something in terminal to see if your adapter works properly.

Fo to windows device manager and set the adapter the same setting as putty
bialabs
DD-WRT Novice


Joined: 06 Apr 2013
Posts: 43

PostPosted: Sat May 31, 2014 14:26    Post subject: Reply with quote
TendaW311R+ wrote:

Please try to connect adapter's TX and RX and type something in terminal to see if your adapter works properly.

Fo to windows device manager and set the adapter the same setting as putty


in the Putty terminal i don't see any character typed from the keyboard, even when the router is turned off. If I turn on the router I see all the output:

U-Boot 1.1.4 (Nov 1 2012 - 10:25:30)
U-boot AP123
etc...etc....
TendaW311R+
DD-WRT User


Joined: 19 Oct 2011
Posts: 354

PostPosted: Sat May 31, 2014 14:44    Post subject: Reply with quote
I mean:
1.Disconnect USB-TTL adapter from router's board
2.With wire connect adapter's TX and RX
3.Plug adapter to your PC
4.Open Putty and type something
5.If you see what you type then the adapter is working properly else the adapter is not working and you need new one to unbrick the router. Wink
bialabs
DD-WRT Novice


Joined: 06 Apr 2013
Posts: 43

PostPosted: Sat May 31, 2014 14:51    Post subject: Reply with quote
yes, if i connect RX and TX between themselves i see the text that i type but is very slow...i can type only one letter every 5-6 seconds.
perhaps for this reason I can not send the tpl command
TendaW311R+
DD-WRT User


Joined: 19 Oct 2011
Posts: 354

PostPosted: Sat May 31, 2014 15:15    Post subject: Reply with quote
Yes, I think this is the reason. Find another PC and try on it
bialabs
DD-WRT Novice


Joined: 06 Apr 2013
Posts: 43

PostPosted: Wed Aug 27, 2014 17:32    Post subject: Reply with quote
solved by inverting TX and RX!
i used this guide:

https://forum.openwrt.org/viewtopic.php?id=33906
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum