Got TL-WR941N v6 (Chinese market). Needs dd-wrt.

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3, 4  Next
Author Message
zarkmughal
DD-WRT Novice


Joined: 05 Feb 2023
Posts: 33

PostPosted: Wed Feb 15, 2023 13:40    Post subject: Reply with quote
BrainSlayer wrote:
pointless if i say just test it with a serial attached, but no one ever downloaded it so far here. i dont know why i spended work into it if its just a troll request


GOT BRICKED AFTER FLASHING YOUR PROVIDED TEST IMAGE Sad

Code:

Now flash open!
Erase from 0X20000 to 0X3E0000:............................................................
Program from 0X20000 to 0X3E0000:............................................................
write successfully
reboot...
Restarting system.


UK¨ë
?18 2.L Bz
     2 ­
        Ò

         :4¹JC¡H¨Õ½ot Ij

!5:  j  5
!+Íh sZ¯¢jd 0øLf± ®ÖÑ½É cï]
!+Íh: ¢ MÂCáUsinç"ult*¹Ù¥ÉonmY4
                              5
                               CáPCIe?Ñ OKHHH


ÉKseòZX«Hè*Ñé   óY®+±
Eò.'?al
Net: 
     å34xU¹ÑýiniW+±¥ée.®©ÈN
                           ²±¥d aÍÍ iî2±Íh. ?ËëfixY
                                                   res®ÈNï²±¥d aÍÍ in2±Í¡. U®Ëfixå
  resóCá WÍA reóYjsk:,
!'g1 ÂÕ ãÖÂÝ1±SHøå
                  Òébe:f?Â:4±C¡É7 reJ¹¥Ñ
athr.¦Ó¡å}?tup
              Q!IýPHY5=9QROL ?0
XKÍ27_¡å}Ítup
¡UMA --KKI7 P*jIýPHÙ5A
¡.ºiniôb¹      '1 0cæÂÝ21´Cáeô+ÒébY'Véce:0Ò41
AÔJ5%ºÒ rY®Ñ¥ng .¦SHøATJ5%ºÒ s²Íet äË5
ON?                                   athr.¦Ó¡y_sYWAATHR!e}
   0 :1°j
         XKÍ27_ð+}?tup PJõ!e}SPEõQUS 0 §j
                                         atè®.ºúÁ¡å}setõATJõå_C?%õ1 1 ºLj
                                                                         atKÍÉ·¡å}setõATJõå_SÐQ¨5EUM1 :1j
ONTª                     áKÍÉ7_p+}?Ñup PJõe}
    ²?
XKÍÉ7_p+}?Ñup PJõe}ÍPEC5QUÍ 2 §j
                                ath®.¦Ó¡å}ÍetuAT?e_CO
                                                     ¥=13 :Lj
                                                             atè®.¦Ó¡å}ÍetuAT?e_SPQ¨5EUM3 :1j
             ethLªÁ5
                    ethâ eô+j
                             AuôK½½Ñing Z

á## Bë
      ¥¹ iíXVat 9? .?
ompòY®¥¹g KY.«±ImaVrrr OK
C¡*WÉtinZ?el ÉÉj

Ñmem¥é
Bo.J¹¥Ñ)
  ¥¹ WAÓ


[    0.000000] Linux version 3.10.108-d11 (root@linux) (gcc version 12.2.0 (OpenWrt GCC 12.2.0 r20374+7-a434795809) ) #125325 Tue Feb 7 15:27:22 +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.280000] registering PCI controller with io_map_base unset
[    0.280000] Can't analyze schedule() prologue at 80067d2c
[    0.290000] bio: create slab <bio-0> at 0
[    0.290000] PCI host bridge to bus 0000:00
[    0.290000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    0.290000] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.290000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.290000] pci 0000:00:00.0: fixup device configuration
[    0.290000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    0.290000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    0.290000] pci 0000:00:00.0: using irq 72 for pin 1
[    0.290000] Switching to clocksource MIPS
[    0.300000] NET: Registered protocol family 2
[    0.300000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.300000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.300000] TCP: Hash tables configured (established 512 bind 512)
[    0.300000] TCP: reno registered
[    0.300000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.300000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.300000] NET: Registered protocol family 1
[    0.300000] gpio_proc: module loaded and /proc/gpio/ created
[    0.300000] wl0gpio_proc: module loaded and /proc/wl0gpio/ created
[    0.300000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.300000] msgmni has been set to 120
[    0.300000] io scheduler noop registered
[    0.300000] io scheduler deadline registered (default)
[    0.300000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.320000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.630000] console [ttyS0] enabled
[    0.630000] guessed flashsize = 4M
[    0.640000] scanning for root partition
[    0.640000] tplink uboot detected
[    0.640000] guessed bootloader size = 20000
[    0.660000]
[    0.660000] found squashfs at 103000
[    0.660000] adjusted length 3E0000, original length 3DF8EE
[    0.670000] Creating 9 MTD partitions on "ar7240-nor0":
[    0.670000] 0x000000000000-0x000000020000 : "RedBoot"
[    0.680000] 0x000000020000-0x0000003e0000 : "linux"
[    0.690000] 0x000000103000-0x0000003f0000 : "rootfs"
[    0.690000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.700000] mtd: partition "rootfs" set to be root filesystem
[    0.710000] 0x0000003f0000-0x0000003e0000 : "ddwrt"
[    0.720000] 0x0000003e0000-0x0000003f0000 : "nvram"
[    0.720000] 0x0000003f0000-0x000000400000 : "board_config"
[    0.730000] 0x000000000000-0x000000400000 : "fullflash"
[    0.740000] 0x000000000000-0x000000020000 : "fullboot"
[    0.740000] 0x000000010000-0x000000020000 : "uboot-env"
[    0.750000] libphy: Fixed MDIO Bus: probed
[    0.760000] PPP generic driver version 2.4.2
[    0.760000] PPP BSD Compression module registered
[    0.770000] PPP Deflate Compression module registered
[    0.770000] PPP MPPE Compression module registered
[    0.780000] NET: Registered protocol family 24
[    0.800000] u32 classifier
[    0.800000]     Performance counters on
[    0.800000]     input device check on
[    0.810000]     Actions configured
[    0.810000] Netfilter messages via NETLINK v0.30.
[    0.820000] nf_conntrack version 0.5.0 (964 buckets, 3856 max)
[    0.820000] nf_conntrack_rtsp v0.7 loading
[    0.830000] nf_nat_rtsp v0.7 loading
[    0.830000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    0.840000] TCP: westwood registered
[    0.840000] TCP: hybla registered
[    0.840000] TCP: vegas registered
[    0.850000] NET: Registered protocol family 17
[    0.850000] Bridge firewalling registered
[    0.860000] 8021q: 802.1Q VLAN Support v1.8
[    0.860000] searching for nvram
[    0.860000] nvram size = 65536
[    0.900000] nvram empty
[    0.900000] Atheros AR71xx hardware watchdog driver version 0.1.0
[    0.910000] ar71xx-wdt: timeout=15 secs (max=107) ref freq=40000000
[    0.920000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.930000] Freeing unused kernel memory: 196K
[init] : starting devinit
cannot open /dev/nvram
udevtrigger[252]: 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
[    5.120000] libphy: ag71xx_mdio: probed
[    5.710000] ag71xx ag71xx.0: no PHY found with phy_mask=00000001
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
load ATH 802.11 a/b/g Driver
load ATH9K 802.11n Driver
[    7.050000] ath9k: probe of ar934x_wmac failed with error -5
[    7.060000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    7.090000] gpiochip_find_base: cannot find free range
[    7.090000] gpiochip_add: gpios -1..14 (ath9k-phy1) failed to register
[watchdog] : successfully startedcannot 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
[    9.560000] device br0 entered promiscuous mode
[    9.580000] device br0 left promiscuous mode
[    9.590000] device br0 entered promiscuous mode
[    9.830000] device br0 left promiscuous mode
cannot open /proc/ctf
[gratarp] : successfully started[sfe] : shortcut forwarding engine successfully stopped
[dnsmasq] : successfully started[wland] : successfully started[cron] : successfully started[   12.220000] fast-classifier (PBR safe v2.1.6b): starting up
[   12.230000] 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
[httpd] : httpd server started at port 80
[httpd] : successfully started/usr/sbin/wrtbwmon: line 165: 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
Write WAN mac fail :
: Invalid argument
[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
Sponsor
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7463
Location: Dresden, Germany

PostPosted: Wed Feb 15, 2023 17:03    Post subject: Reply with quote
its not bricked. just recover it using the serial console

i think i found a typo. please test this image attached here. it may fix the issue but i cannot test it since i dont have your device

_________________
"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


Last edited by BrainSlayer on Thu Feb 16, 2023 5:19; edited 1 time in total
zarkmughal
DD-WRT Novice


Joined: 05 Feb 2023
Posts: 33

PostPosted: Thu Feb 16, 2023 5:19    Post subject: Reply with quote
BrainSlayer wrote:
i think i found a typo. please test this image attached here


As I already told you, everything is readable when kernel starts but before kernal, bootloader is spitting out garbage, I am unable to understand the communication.(see response from help command in screenshot. I am successful in breaking CFE Boot by typing tpl.

I am using these settings:
Baud: 115200
Data bits: 8
Stop Bits: 1
Parity: none
Flow control: None

USB to TTL ch340
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1899

PostPosted: Thu Feb 16, 2023 7:12    Post subject: Reply with quote
Check PuTTY settings, or use an older version.

Sticky: USB to TTL Tips - HOW TO FIX Garbage/Garbled PuTTY output

Also, you may have a cold-ish solder joint / unreliable lead connection.

51729 was also just released and should be fixed:

https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2023/02-16-2023-r51729/tplink_tl-wr941nv6-cn/

_________________
"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

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
zarkmughal
DD-WRT Novice


Joined: 05 Feb 2023
Posts: 33

PostPosted: Thu Feb 16, 2023 17:46    Post subject: Reply with quote
dale_gribble39 wrote:
Check PuTTY settings, or use an older version.

Sticky: USB to TTL Tips - HOW TO FIX Garbage/Garbled PuTTY output

Also, you may have a cold-ish solder joint / unreliable lead connection.

51729 was also just released and should be fixed:

https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2023/02-16-2023-r51729/tplink_tl-wr941nv6-cn/



Tried everything, this issue is always only during bootloader data, (initial one) not with linux kernal. (you can check already shared stock firmware serial boot data)

So definitely not a hardware issue i think.
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1899

PostPosted: Fri Feb 17, 2023 14:05    Post subject: Reply with quote
Please test previously attached test image or current release as requested by the lead developer. The garbage is either related to a connection or translation / configuration issue in PuTTY. Without knowing what "everything" you've tried, there's not much more advice I personally can offer.
_________________
"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

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7463
Location: Dresden, Germany

PostPosted: Sun Feb 19, 2023 9:36    Post subject: Reply with quote
zarkmughal wrote:
BrainSlayer wrote:
i think i found a typo. please test this image attached here


As I already told you, everything is readable when kernel starts but before kernal, bootloader is spitting out garbage, I am unable to understand the communication.(see response from help command in screenshot. I am successful in breaking CFE Boot by typing tpl.

I am using these settings:
Baud: 115200
Data bits: 8
Stop Bits: 1
Parity: none
Flow control: None

USB to TTL ch340


if the kernel prints out all correct, everything i can do is done. please test the image. the garbage before the kernel starts is caused by the tplink bootloader and has nothing todo with dd-wrt. this is usually related to a different baudrate setting. so final request. test the image or i will not continue to work on this and the device will not be supported. you are wasting time

_________________
"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
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5660

PostPosted: Mon Feb 20, 2023 7:18    Post subject: Reply with quote
zarkmughal wrote:
USB to TTL ch340

Maybe try another USB to TTL serial adapter with a different chip, such as FTDI FT232RL, and with current drivers.
zarkmughal
DD-WRT Novice


Joined: 05 Feb 2023
Posts: 33

PostPosted: Mon Feb 20, 2023 11:06    Post subject: Reply with quote
I am trying to test the testfile but still unsuccessful using tftp. the only success i got is to use baudrate 120000 & can communicate with u-boot boot loader. now I have come to know that it doesn't have auto-upload-firmware=0 option. so still struggling to use tftp recovery method. just please anyone which method should I use to test the image now or to recover this router.

u-boot responds only to the commands written in help menu, not mentioned in dd-wrt or open wrt tutorials.

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
db12x> tpl
Unknown command 'tpl' - try 'help'
db12x> help
?       - alias for 'help'
bootm   - boot application image from memory
cp      - memory copy
erase   - erase FLASH memory
help    - print online help
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
progmac - Set ethernet MAC addresses
reset   - Perform RESET of the CPU
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
db12x>


i am trying my best to try the test image & recover the router. but facing difficulties which is because i am not skilled enough.
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6410
Location: UK, London, just across the river..

PostPosted: Mon Feb 20, 2023 11:34    Post subject: Reply with quote
tftp 0x80060000 firmware.bin
erase 0x9f020000 +0x7c0000
cp.b 0x80060000 0x9f020000 0x7c0000
boot.m 0x9f020000

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 link what i did for my 1043v2 serial recovery read carefully !!!
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1251510

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...

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55460 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55460 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
zarkmughal
DD-WRT Novice


Joined: 05 Feb 2023
Posts: 33

PostPosted: Mon Feb 20, 2023 17:37    Post subject: Reply with quote
delete

Last edited by zarkmughal on Mon Feb 20, 2023 17:44; edited 1 time in total
zarkmughal
DD-WRT Novice


Joined: 05 Feb 2023
Posts: 33

PostPosted: Mon Feb 20, 2023 17:40    Post subject: Reply with quote
Thanks for everyone's help. Now recovered, up & running.

but NO WIRELESS. hope will be OK. Soon. @BrainSlayer

I must have been done something wrong. Sad

1.used CH340G USB to TTL adapter with latest Putty.
Bits per second: 120000 (using 115200 gives garbled character at U-Boot bootloader)
Data bits: 8, Parity: None, Stop bits: 1, Flow control: None
Tx to Rx, Rx to Tx and Gnd to Gnd (connections in photos)
Computer LAN port to LAN Port of router. static IP Address 192.168.1.100, subnet 255.255.255.0, Gateway 192.168.1.1.
2.tftpd32: The tftp server listening on 192.168.1.100 (TL-WR941N V6.0 - U-Boot 1.1.4 (Oct 18 2012 - 01:11:49) U-boot DB120)
copied factory-to-ddwrt file to tftpd32 directory and renamed to firmware.bin and point tftpd32 to it....
3. turned off firewall and antivirus.
4. When serial interface shows output, right at the begining, quickly type tpl
5. in U-boot command prompt will show db12x>
than commands i used:

tftp 0x80060000 firmware.bin
erase 0x9f020000 +{filesize}
cp.b 0x80060000 0x9f020000 {filesize}
boot.m 0x9f020000

in my 4MB ROM case:

tftp 0x80060000 firmware.bin
erase 0x9f020000 +3c0000
cp.b 0x80060000 0x9f020000 3c0000
boot.m 0x9f020000

factory-to-ddwrt.bin 3.75mb file has the size of 3c0000 which converted from hex to decimal mode is 3932160,
also erase line and cp.b line must match the hex size.



test file serial flashing data with first boot


Code:

db12x> tftp 0x80060000 firmware.bin
Using eth1 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.111
Filename 'firmware.bin'.
Load address: 0x80060000
Loading: *
TFTP error: 'File not found' (1)
Starting again

eth0 link down
Using eth1 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.111
Filename 'firmware.bin'.
Load address: 0x80060000
Loading: ###########################################################################
         ###########################################################################
         ############################################################################
         #
         ##########################################################################
         ############################################################################
         ###########################################################################
         ###########################################################################
         ############################################################################
         #
         ##########################################################################
         ############################################################################
         ###########################################################################
         ###############################################################
done
Bytes transferred = 3932160 (3c0000 hex)
db12x> erase 0x9f020000 +3c0000

First 0x2 last 0x3d sector size 0x10000                                       61
Erased 60 sectors
db12x> cp.b 0x80060000 0x9f020000 3c0000
Copy to Flash... write addr: 9f020000
done
db12x> boot.m 0x9f020000
## 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) ) #126124 Wed Feb 15 22:57:50 +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 (2157k kernel code, 3824k reserved, 366k data, 164k 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 105000
[    0.860000] adjusted length 3E0000, original length 3D972E
[    0.870000] Creating 9 MTD partitions on "ar7240-nor0":
[    0.870000] 0x000000000000-0x000000020000 : "RedBoot"
[    0.880000] 0x000000020000-0x0000003e0000 : "linux"
[    0.890000] 0x000000105000-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: 164K
[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] : boot failed 1 times, will reset after 5 attempts
[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.980000] 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.380000] 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.580000] device br0 entered promiscuous mode
check eth0
name=[eth0] lan_ifname=[br0]
[   12.840000] eth0: link down
[bridge] : interface eth0 successfully adde[   13.160000] device eth0 entered promiscuous mode
d to bridge br0
check eth1
[   13.190000] device br0 left promiscuous mode
[   13.210000] device br0 entered promiscuous mode
[   13.250000] device br0 left promiscuous mode
[   13.750000] device eth1 entered promiscuous mode
[wland] : successfully startedcannot open /proc/ctf
[gratarp] : successfully started[sfe] : shortcut forwarding engine successfully stopped
[dnsmasq] : successfully started[cron] : successfully started[   15.460000] eth0: link up (1000Mbps/Full duplex)
[   15.460000] br0: port 1(eth0) entered forwarding state
[   15.470000] br0: port 1(eth0) entered forwarding state
[httpd] : httpd server started at port 80
[httpd] : successfully started[   16.470000] fast-classifier (PBR safe v2.1.6b): starting up
[   16.480000] 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
[   17.460000] 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
[   18.040000] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[   30.480000] br0: port 1(eth0) entered forwarding state



after test file serial boot data

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) ) #126124 Wed Feb 15 22:57:50 +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 (2157k kernel code, 3824k reserved, 366k data, 164k 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 105000
[    0.860000] adjusted length 3E0000, original length 3D972E
[    0.870000] Creating 9 MTD partitions on "ar7240-nor0":
[    0.870000] 0x000000000000-0x000000020000 : "RedBoot"
[    0.880000] 0x000000020000-0x0000003e0000 : "linux"
[    0.890000] 0x000000105000-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: 164K
[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.010000] 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.670000] 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.280000] br0: port 1(eth0) entered disabled state
[telnetd] : successfully started[wland] : successfully started[   13.520000] device eth1 entered promiscuous mode
cannot open /proc/ctf
[gratarp] : successfully started[sfe] : shortcut forwarding engine successfully stopped
[dnsmasq] : successfully started[cron] : successfully started[   14.320000] eth0: link up (1000Mbps/Full duplex)
[   14.320000] br0: port 1(eth0) entered forwarding state



after recovery with ttl + tftp


Code:

db12x> printenv bootcmd
bootcmd=bootm 0x9f020000
db12x> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtd                                            parts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0                                            ),64k(ART)
bootcmd=bootm 0x9f020000
bootdelay=1
baudrate=115200
ethaddr=0xba:0xbe:0xfa:0xce:0x08:0x41
ipaddr=192.168.1.111
serverip=192.168.1.100
dir=
lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize;cp.b $fileaddr                                             0x9f000000 $filesize
lf=tftp 0x80060000 ${dir}db12x${bc}-jffs2&&erase 0x9f050000 +0x630000;cp.b $file                                            addr 0x9f050000 $filesize
lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9f680000 +$filesize;c                                            p.b $fileaddr 0x9f680000 $filesize
stdin=serial
stdout=serial
stderr=serial
ethact=eth0


after recovery with ttl + tftp

Code:

                      DD-WRT v3.0
                   https://www.dd-wrt.com


==========================================================
login[1215]: root login on 'console'


BusyBox v1.36.0 (2023-02-15 22:58:12 +06) built-in shell (ash)

root@DD-WRT:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00010000 "RedBoot"
mtd1: 003c0000 00010000 "linux"
mtd2: 002db000 00010000 "rootfs"
mtd3: 00020000 00010000 "ddwrt"
mtd4: 00010000 00010000 "nvram"
mtd5: 00010000 00010000 "board_config"
mtd6: 00400000 00010000 "fullflash"
mtd7: 00020000 00010000 "fullboot"
mtd8: 00010000 00010000 "uboot-env"


1st TEST IMAGE: flashed using GUI

Code:

[    0.660000] adjusted length 3E0000, original length 3DF8EE
[    0.670000] Creating 9 MTD partitions on "ar7240-nor0":
[    0.670000] 0x000000000000-0x000000020000 : "RedBoot"
[    0.680000] 0x000000020000-0x0000003e0000 : "linux"
[    0.690000] 0x000000103000-0x0000003f0000 : "rootfs"
[    0.690000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.700000] mtd: partition "rootfs" set to be root filesystem
[    0.710000] 0x0000003f0000-0x0000003e0000 : "ddwrt"
[    0.720000] 0x0000003e0000-0x0000003f0000 : "nvram"
[    0.720000] 0x0000003f0000-0x000000400000 : "board_config"
[    0.730000] 0x000000000000-0x000000400000 : "fullflash"
[    0.740000] 0x000000000000-0x000000020000 : "fullboot"
[    0.740000] 0x000000010000-0x000000020000 : "uboot-env"


2nd TEST IMAGE: Flashed using TTL+TFTP

Code:

[    0.860000] adjusted length 3E0000, original length 3D972E
[    0.870000] Creating 9 MTD partitions on "ar7240-nor0":
[    0.870000] 0x000000000000-0x000000020000 : "RedBoot"
[    0.880000] 0x000000020000-0x0000003e0000 : "linux"
[    0.890000] 0x000000105000-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"


Please help how to bring back Wi-Fi. I am afraid I have spoiled the ART Partition.


Last edited by zarkmughal on Mon Feb 20, 2023 19:34; edited 1 time in total
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1899

PostPosted: Mon Feb 20, 2023 18:39    Post subject: Reply with quote
Interesting that the bootloader uses a different baudrate. Progress, nonetheless. What exactly is the issue with wireless?
_________________
"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

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
zarkmughal
DD-WRT Novice


Joined: 05 Feb 2023
Posts: 33

PostPosted: Mon Feb 20, 2023 19:29    Post subject: Reply with quote
dale_gribble39 wrote:
Interesting that the bootloader uses a different baudrate. Progress, nonetheless. What exactly is the issue with wireless?


There are no Wireless Signals at all, No settings or wireless info page in GUI through LAN access. & the test image shows that it is a TL-WDR-3500v1 which is a dual band router (have Atheros AR9582 AC/N). although have similar AR9344 (SoC) but don't have AR9381(802.11N Chip) which TL-WR941Nv6 have.

Seems "drivers issue" or I have "damaged the ART partition" or have done a easily correctable mistake during flashing.


Code:
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
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Mon Feb 20, 2023 20:11    Post subject: Reply with quote
Keep in mind, this is a work in progress and no device in developer's hands to test himself. The feedback is appreciated, but need to be more timely, if possible. Thanks!
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Goto page Previous  1, 2, 3, 4  Next Display posts from previous:    Page 2 of 4
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