[SOLVED] Upgrading from DD-WRT v24SP2 (03/25/13) build 21061

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


Joined: 23 Jun 2021
Posts: 7

PostPosted: Wed Jun 23, 2021 5:31    Post subject: [SOLVED] Upgrading from DD-WRT v24SP2 (03/25/13) build 21061 Reply with quote
Hello,


Router Model: TP-Link TL-WR1043ND v1.8
Firmware Version: DD-WRT v24SP2- (03/25/13) std - build 21061
Kernel Version: Linux 3.5.7 #6146 Mon Mar 25 08:43:27 CET 2013 mips

OpenVPN v2.3.0 and apparently I have to update to a more recent OpenVPN version in order to be able to connect to NordVPN servers.

Can anybody please recommend a stable build and the appropriate update method?


(((((

I've read quite a few pages on this forum and I've seen a few threads, e.g.:

TP-LINK TL-WR1043ND hw rev. 1.8 and DD-WRT firmware
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=86533&postdays=0&postorder=asc&start=90

New Build - 06/05/2021 - r46885
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=329298&highlight=wr1043nd

WHERE DO I FIND THE BEST BUILD FOR MY ROUTER?
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324389

But I'm still unable to chose a build.

)))))
Sponsor
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Wed Jun 23, 2021 6:23    Post subject: Reply with quote
https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2021/06-21-2021-r46979/tplink_tl-wr1043nd/

ftp://ftp.dd-wrt.com/betas/2021/06-21-2021-r46979/tplink_tl-wr1043nd/

Upgrade with webflash.bin, either from web interface or CLI Telnet/SSH.

If using web interface, keep the dropdown option "Don't reset" selected.

New Build - 06/21/2021 - r46979
kernel-panic69
DD-WRT Guru


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

PostPosted: Wed Jun 23, 2021 14:34    Post subject: Reply with quote
*MAY NOT* be able to webflash if the user is on an older build due to the header change: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=311642

EDIT: as it turns out, 21061 had an older kernel version than 33375, and therefore the webflash upgrade function should work properly, as I found after looking through all the key commits.

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


Last edited by kernel-panic69 on Thu Jun 24, 2021 6:24; edited 1 time in total
overw
DD-WRT Novice


Joined: 23 Jun 2021
Posts: 7

PostPosted: Wed Jun 23, 2021 20:58    Post subject: I'm afraid I need more detailed answers, sorry. Reply with quote
Thanks to both of you for answering.

kernel-panic69 wrote:
Won't be able to webflash if the user is on an older build due to the header change: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=311642



Doesn't the problem only exist for users with a build after r33375 and before r42954? I have 21061.


I've gone through the linked pages and the pages they link in turn, e.g.:

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=311642&postdays=0&postorder=asc&start=120

edgardmessias's post => https://github.com/edgardmessias/dd-wrt-wr1043ndv1


Also:
https://svn.dd-wrt.com/ticket/6266

(Not the slightest idea at the moment whether this router uses ar7100_flash.c or ar7240_flash.c or whatever, looks like the name of a C source file to me.)

I'm afraid I need more detailed answers, sorry.
kernel-panic69
DD-WRT Guru


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

PostPosted: Wed Jun 23, 2021 23:45    Post subject: Reply with quote
I guess more confirmation is required for you to just read and follow directions.

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=328142

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327940

_________________
"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
overw
DD-WRT Novice


Joined: 23 Jun 2021
Posts: 7

PostPosted: Thu Jun 24, 2021 2:23    Post subject: Straightforward, thanks! Reply with quote
blkt wrote:
https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2021/06-21-2021-r46979/tplink_tl-wr1043nd/

ftp://ftp.dd-wrt.com/betas/2021/06-21-2021-r46979/tplink_tl-wr1043nd/

Upgrade with webflash.bin, either from web interface or CLI Telnet/SSH.

If using web interface, keep the dropdown option "Don't reset" selected.

New Build - 06/21/2021 - r46979


After reading a few more pages, I went with your answer and it was straightforward.

After visiting https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2021/06-21-2021-r46979/tplink_tl-wr1043nd/ and retrieving tl-wr1043nd-webflash.bin

I used DD-WRT web interface, Administration | Firmware Upgrade, I left "Don't reset" selected as you recommended, which spared me to configure again most settings (it only changed a few, for instance the wireless settings and the time zone, easily reconfigured, and a few OpenVPN cipher settings, NordVPN server is complaining about some deprecated options but OpenVPN is now working, I'll check about those settings for possible finer tuning).

Thank you. (Going to check DD-WRT "donate" modalities".)

P.S.: I don't see how to mark this thread as SOLVED.
kernel-panic69
DD-WRT Guru


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

PostPosted: Thu Jun 24, 2021 2:43    Post subject: Reply with quote
That build must've been old enough that it didn't check the header on upgrading via webUI; but you are absolutely positive that it is upgraded?
_________________
"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
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Thu Jun 24, 2021 3:44    Post subject: Reply with quote
r21061 has old dd-wrt header, before a bug introduced with r33375, so it properly detected bootloader size.
kernel-panic69
DD-WRT Guru


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

PostPosted: Thu Jun 24, 2021 5:38    Post subject: Reply with quote
blkt wrote:
r21061 has old dd-wrt header, before a bug introduced with r33375, so it properly detected bootloader size.

BrainSlayer wrote:
in older firmwares the string isnt tp-link but dd-wrt. i changed that string to tp-link in that firmware and this all caused the bug since my mtd partition code was looking for the wrong string to detect the bootloader size

Now, read that all again. The bug was the old header that existed *before* 33375 being looked for by the webupgrade / mtd code *in* 33375. So, it shouldn't have flashed the upgrade, *unless* the checks for the header (or kernel version) were different, etc. in 21061 (which was actually the case, different kernel version with good code in it). I didn't just pull the 33375 thread or the other threads out of my orifice for no reason. See the image...

https://ibb.co/Q91N6QX



And then there was the webflash issue that was finally fixed later: https://svn.dd-wrt.com/ticket/6266

I can back-trace through all the relevant commits, too, if you really want.

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


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Thu Jun 24, 2021 6:45    Post subject: Reply with quote
kernel-panic69 wrote:
The bug was the old header that existed *before* 33375 being looked for by the webupgrade / mtd code *in* 33375. So, it shouldn't have flashed the upgrade, *unless* the checks for the header (or kernel version) were different, etc. in 21061 (which was actually the case, different kernel version with good code in it).

I can back-trace through all the relevant commits, too, if you really want.
Do want, for posterity of course. Smile Would be nice to know the first build requiring fullflash after webupgrade.
kernel-panic69
DD-WRT Guru


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

PostPosted: Thu Jun 24, 2021 15:47    Post subject: Reply with quote
The answer is already in this thread for when a fullflash was required (33375 thru 42925, fixed with commit 42928 for build 42954). The other relevant commits (kernel updates, changing from older kernel (pre-3.10, 3.18, etc.) start here:

https://svn.dd-wrt.com/search?changeset=on&q=3.10&page=5

https://svn.dd-wrt.com/search?changeset=on&q=3.18&page=3

I would have to look further into when 3.10 and 3.18 were actually ported to TP-Links specifically, but both were added after 21061. I'm not going to let my OCD chase that rabbit farther than I already have, but feel free to let your clicker do the clicking.

Anyhow, this was a case of my presuming that there was a likelihood of the CLI magic voodoo being required, where it turned out that it wasn't. No harm, no foul. Very Happy

_________________
"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
overw
DD-WRT Novice


Joined: 23 Jun 2021
Posts: 7

PostPosted: Thu Jun 24, 2021 17:04    Post subject: Reply with quote
kernel-panic69 wrote:
That build must've been old enough that it didn't check the header on upgrading via webUI; but you are absolutely positive that it is upgraded?


Absolutely positive, upgrade confirmed, and it's working flawlessly so far.

(I've also unblocked the super channel feature, although for now I'm leaving it deactivated in the Wireless advanced settings, basically because I don't need it and I fear to submit the final output stage of the radio to higher SWR ratio.)


Last edited by overw on Thu Jun 24, 2021 17:11; edited 1 time in total
overw
DD-WRT Novice


Joined: 23 Jun 2021
Posts: 7

PostPosted: Thu Jun 24, 2021 17:10    Post subject: Reply with quote
blkt wrote:
r21061 has old dd-wrt header, before a bug introduced with r33375, so it properly detected bootloader size.


Exactly, which is why after reading a bit, I was asking above:

Quote:
Doesn't the problem only exist for users with a build after r33375 and before r42954? I have 21061.


[EDIT: more precisely I should have said build number >= r33375 and < r42954.]

I see it has been pointed out by now in this thread anyways.
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