Joined: 06 Jun 2006 Posts: 7463 Location: Dresden, Germany
Posted: Tue Feb 21, 2023 6:07 Post subject:
at least we made some progress. now to fix the wifi issue i need a full flash dump. login with ssh
and do
cat /dev/mtdblock6 > /tmp/flashdump.bin
now copy the flashdump.bin file using scp to your host computer and post it here in the forum. so i can analyze where the wifi calibration data is stored to get it to work
edit:
i think i know the reason. this device has originally a internal wmac chipset and a external pci chipset. but the wmac isnt used here, so the wifi driver exits since no wmac is operational. and the pci isnt probed. i will post a testimage here as next which ignores the case if the wmac isnt detected and will continue to try the external pci chipset
but in any way, please send me the requested flashdump. its very usefull _________________ "So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Joined: 06 Jun 2006 Posts: 7463 Location: Dresden, Germany
Posted: Tue Feb 21, 2023 6:54 Post subject:
here the latest images. if dd-wrt already installed you can also use the webflash file. might be easier. i hope it fixes the wifi issue _________________ "So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
here the latest images. if dd-wrt already installed you can also use the webflash file. might be easier. i hope it fixes the wifi issue
Still NO WIRELESS, after GUI flashing with webflash.bin you just provided. Sorry, forgot to attach ttl/putty during flashing procedure. but below is the boot-log after fresh webflash install & fulldump.bin too (just extracted).
Then WinSCP with above mentioned parameters, copied full flash dump from temp directory. took so much time time & effort just to learn a simple procedure.
Here is the recent bootlog:
Code:
U-Boot 1.1.4 (Oct 18 2012 - 01:11:49)
U-boot DB120
DRAM: 64 MB
id read 0x100000ff
flash size 4MB, sector count = 64
Flash: 4 MB
Using default environment
PCIe Reset OK!!!!!!
In: serial
Out: serial
Err: serial
Net: ag934x_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
wasp reset mask:c03300
WASP ----> S27 PHY
: cfg1 0x5 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
s27 reg init
athrs27_phy_setup ATHR_PHY_CONTROL 4 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4 :10
eth0 up
WASP ----> S27 PHY
: 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 :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
Autobooting in 1 seconds
## Booting image at 9f020000 ...
Uncompressing Kernel Image ... OK
Starting kernel ...
AR9344
detect mem size
Uart Init
Booting WASP !!! -:) ...
[ 0.000000] Linux version 3.10.108-d11 (root@linux) (gcc version 12.2.0 (OpenWrt GCC 12.2.0 r20374+7-a434795809) ) #126732 Tue Feb 21 12:44:03 +06 2023
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] cpu srif ddr srif cpu 560 ddr 450 ahb 225
[ 0.000000] sys id = 2122 Atheros AR9344 ver 1 rev 1.2 (0x2122)
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 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] 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: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 root=1f02 rootfstype=squashfs noinitrd init=/sbin/init
[ 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: 61712k/65536k available (2142k kernel code, 3824k reserved, 349k data, 196k init, 0k highmem)
[ 0.000000] NR_IRQS:83
[ 0.060000] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.070000] Mount-cache hash table entries: 512
[ 0.070000] NET: Registered protocol family 16
[ 0.480000] registering PCI controller with io_map_base unset
[ 0.480000] Can't analyze schedule() prologue at 80067d2c
[ 0.490000] bio: create slab <bio-0> at 0
[ 0.490000] PCI host bridge to bus 0000:00
[ 0.490000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.490000] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.490000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.490000] pci 0000:00:00.0: fixup device configuration
[ 0.490000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.490000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.490000] pci 0000:00:00.0: using irq 72 for pin 1
[ 0.490000] Switching to clocksource MIPS
[ 0.500000] NET: Registered protocol family 2
[ 0.500000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.500000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.500000] TCP: Hash tables configured (established 512 bind 512)
[ 0.500000] TCP: reno registered
[ 0.500000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.500000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.500000] NET: Registered protocol family 1
[ 0.500000] gpio_proc: module loaded and /proc/gpio/ created
[ 0.500000] wl0gpio_proc: module loaded and /proc/wl0gpio/ created
[ 0.500000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.500000] msgmni has been set to 120
[ 0.500000] io scheduler noop registered
[ 0.500000] io scheduler deadline registered (default)
[ 0.500000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.520000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[ 0.830000] console [ttyS0] enabled
[ 0.830000] guessed flashsize = 4M
[ 0.840000] scanning for root partition
[ 0.840000] tplink uboot detected
[ 0.840000] guessed bootloader size = 20000
[ 0.860000]
[ 0.860000] found squashfs at 102000
[ 0.860000] adjusted length 3E0000, original length 3D6CEA
[ 0.870000] Creating 9 MTD partitions on "ar7240-nor0":
[ 0.870000] 0x000000000000-0x000000020000 : "RedBoot"
[ 0.880000] 0x000000020000-0x0000003e0000 : "linux"
[ 0.890000] 0x000000102000-0x0000003e0000 : "rootfs"
[ 0.890000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.900000] mtd: partition "rootfs" set to be root filesystem
[ 0.910000] 0x0000003e0000-0x000000400000 : "ddwrt"
[ 0.920000] 0x0000003e0000-0x0000003f0000 : "nvram"
[ 0.920000] 0x0000003f0000-0x000000400000 : "board_config"
[ 0.930000] 0x000000000000-0x000000400000 : "fullflash"
[ 0.940000] 0x000000000000-0x000000020000 : "fullboot"
[ 0.940000] 0x000000010000-0x000000020000 : "uboot-env"
[ 0.950000] libphy: Fixed MDIO Bus: probed
[ 0.960000] PPP generic driver version 2.4.2
[ 0.960000] PPP BSD Compression module registered
[ 0.970000] PPP Deflate Compression module registered
[ 0.970000] PPP MPPE Compression module registered
[ 0.980000] NET: Registered protocol family 24
[ 1.000000] u32 classifier
[ 1.000000] Performance counters on
[ 1.000000] input device check on
[ 1.010000] Actions configured
[ 1.010000] Netfilter messages via NETLINK v0.30.
[ 1.020000] nf_conntrack version 0.5.0 (964 buckets, 3856 max)
[ 1.020000] nf_conntrack_rtsp v0.7 loading
[ 1.030000] nf_nat_rtsp v0.7 loading
[ 1.030000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.040000] TCP: westwood registered
[ 1.040000] TCP: hybla registered
[ 1.040000] TCP: vegas registered
[ 1.050000] NET: Registered protocol family 17
[ 1.050000] Bridge firewalling registered
[ 1.060000] 8021q: 802.1Q VLAN Support v1.8
[ 1.060000] searching for nvram
[ 1.060000] nvram size = 65536
[ 1.090000] Atheros AR71xx hardware watchdog driver version 0.1.0
[ 1.100000] ar71xx-wdt: timeout=15 secs (max=107) ref freq=40000000
[ 1.110000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 1.120000] Freeing unused kernel memory: 196K
[init] : starting devinit
cannot open /dev/nvram
udevtrigger[253]: parse_config_file: can't open '/etc/udev/udev.conf' as config file: No such file or directory
[init] : no previous bootfails detected! (all ok)
[init] : starting Architecture code for wasp
load ATH Ethernet Driver
[ 7.020000] libphy: ag71xx_mdio: probed
[ 7.610000] ag71xx-mdio.1: Found an AR934X built-in switch
[ 7.670000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[ 8.260000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
[ 8.270000] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
Unknown attribute "igmp_snooping"
Unknown attribute "igmp_v3"
load ATH 802.11 a/b/g Driver
load ATH9K 802.11n Driver
[ 9.970000] ath9k: probe of ar934x_wmac failed with error -5
[ 9.970000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 10.000000] gpiochip_find_base: cannot find free range
[ 10.010000] gpiochip_add: gpios -1..14 (ath9k-phy1) failed to register
[watchdog] : successfully started[ 10.440000] eth0: link up (1000Mbps/Full duplex)
cannot open /proc/sys/net/ipv4/ip_conntrack_max
cannot open /proc/sys/net/ipv4/ip_conntrack_max
[resetbutton] : successfully started[bridge] : bridge br0 successfully added
[ 12.290000] device br0 entered promiscuous mode
check eth0
name=[eth0] lan_ifname=[br0]
[ 12.330000] eth0: link down
[bridge] : interface eth0 successfully adde[ 12.640000] device eth0 entered promiscuous mode
d to bridge br0
check eth1
[ 12.660000] br0: port 1(eth0) entered forwarding state
[ 12.670000] br0: port 1(eth0) entered forwarding state
[ 12.680000] device br0 left promiscuous mode
[ 12.700000] device br0 entered promiscuous mode
[ 12.740000] device br0 left promiscuous mode
[ 13.290000] br0: port 1(eth0) entered disabled state
[telnetd] : successfully started[wland] : successfully started[ 13.540000] device eth1 entered promiscuous mode
[cron] : successfully startedcannot open /proc/ctf
[gratarp] : successfully started[sfe] : shortcut forwarding engine successfully stopped
[dnsmasq] : successfully started[ 14.790000] eth0: link up (1000Mbps/Full duplex)
[ 14.790000] br0: port 1(eth0) entered forwarding state
[ 14.800000] br0: port 1(eth0) entered forwarding state
[httpd] : httpd server started at port 80
[httpd] : successfully started[ 15.820000] fast-classifier (PBR safe v2.1.6b): starting up
[ 15.830000] fast-classifier: registered
[sfe] : shortcut forwarding engine successfully started
/usr/sbin/wrtbwmon: line 165: ip6tables: not found
/usr/sbin/wrtbwmon: line 165: ip6tables: not found
/usr/sbin/wrtbwmon: line 165: ip6tables: not found
/usr/sbin/wrtbwmon: eval: line 180: ip6tables: not found
/usr/sbin/wrtbwmon: eval: line 180: ip6tables: not found
/usr/sbin/wrtbwmon: eval: line 177: ip6tables: not found
/usr/sbin/wrtbwmon: eval: line 177: ip6tables: not found
/usr/sbin/wrtbwmon: line 207: ip6tables: not found
/usr/sbin/wrtbwmon: line 207: ip6tables: not found
/usr/sbin/wrtbwmon: line 207: ip6tables: not found
cannot open /proc/sys/net/core/default_qdisc
[sfe] : shortcut forwarding engine successfully started
[ 16.850000] device eth1 left promiscuous mode
[httpd] : httpd server shutdown[udhcpc] : successfully started[ttraff] : successfully started[httpd] : daemon successfully stopped
[httpd] : httpd server started at port 80
[httpd] : successfully started[resetbutton] : daemon successfully stopped
[resetbutton] : successfully started/opt/etc/init.d/rcS: No such file or directory
/jffs/etc/init.d/rcS: No such file or directory
/mmc/etc/init.d/rcS: No such file or directory
[ 17.950000] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[ 29.840000] br0: port 1(eth0) entered forwarding state
Please find the attatched 4mb full flash dump. Thanks again for your efforts
those are the commands for serial, tftp must be listening(tftpd32 or tftpd64), also those are hex values of the firmware size, check yours and replace those... i know its difficult, but read first and than try only if you are 100% sure..
here is the serial recovery procedure described in Openwrt i used the same guide to recover my 1043v2
https://openwrt.org/toh/tp-link/tl-wr1043nd scroll down to serial section...
as i said, you have to check the firmware size and replace it...
I Have come to know that one of the most important Bootloader Command before trying TFTP+SERIAL(TTL) Firmware Flashing / Recovery is:
Code:
printenv bootcmd
spitting out: bootcmd=bootm 0x9f020000
which tells you the start from where you are going to erase ROM & then write. & I am sure making a mistake can BRICK your router, it is the start point from where the firmware loads. In your case it was 0x9f020000 (your 1043v2 have 8MB ROM).
1. I used "0x9f020000" too, for my 4MB/64MB, I am not sure I did Right or Wrong?
2. I want to know about "0x80060000" is this number specific for 8MB/64MB or not?
As I have seen on forum & with my personal experience, some 4MB/32MB devices uses "0x810000000" for tftp & cp.b command & "0xbf020000" for erase,cp.b & bootm command.
Can Someone Please guide.??
Also Look into this, Both devices have 4MB ROM & DD-WRT, Then why is there difference in space of "mtbblock2". I am suspecting I have done something WRONG.???
......................................................................
I think there should be a tutorial online on this topic but was not able to found one.
-----
[b] Then WinSCP with above mentioned parameters, copied full flash dump from temp directory. took so much time time & effort just to learn a simple procedure.
-----
You were given instructions, but I guess you didn't read them or trust that they were correct:
BrainSlayer wrote:
at least we made some progress. now to fix the wifi issue i need a full flash dump. login with ssh
and do
cat /dev/mtdblock6 > /tmp/flashdump.bin
now copy the flashdump.bin file using scp to your host computer and post it here in the forum. so i can analyze where the wifi calibration data is stored to get it to work
_________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio
Joined: 06 Jun 2006 Posts: 7463 Location: Dresden, Germany
Posted: Wed Feb 22, 2023 6:24 Post subject:
this attached image should work now _________________ "So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Working fine. Wireless up & running. Internet access through WAN OK. Thanks a lot again.
Tried Station Mode twice. Unsuccessful. No connection to the Primary router on info page.
I've been using station mode for the last 10 years on different routers. So not the settings issue. But still I will try again & update about the issue.
Joined: 06 Jun 2006 Posts: 7463 Location: Dresden, Germany
Posted: Wed Feb 22, 2023 11:16 Post subject:
if you use station mode consider to enable wan first. the wan connection setup is used for wifi device in station mode. there is definitly no issue with that. can be just a setup problem _________________ "So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
if you use station mode consider to enable wan first. the wan connection setup is used for wifi device in station mode. there is definitly no issue with that. can be just a setup problem
Station Mode working fine on Wired Connection. I've solved the primary router connection issues & they were:
1. poor signal strength from primary1(a tenda device from other floor)
2. WDS was enabled for this Device on primary2 (broadcom). (I removed the Station MAC & it worked)
Now One of the last issue I am facing is, The Connection to the Primary Router disconnects immediately I enable any Virtual AP. It connects back when I Remove VAP. Tried several times on different Primary Routers & few configuration tweeks. Is it a bug or will it work like this?
Just Upgraded to DD-WRT v3.0-r51855 std (02/25/23).
Everything working fine.
AP mode OK
Station mode OK
Station Mode with VAP enabled: OK (WISP/Repeater)
Credit goes to @BrainSlayer. & Others who helped me learn so many things.