PROBLEMS WITH UPGRADE/DOWNGRADE from build 33375 (SOLVED)

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Author Message
denstarr
DD-WRT Novice


Joined: 17 Oct 2017
Posts: 7

PostPosted: Wed Oct 18, 2017 8:46    Post subject: Reply with quote
Alozaros wrote:
Writing from boot.bin to fullflash ... [w]

at this point you suppose to wait for 3-5 min or even more
did you read my posts above been rushy and not read is not an option ...???


i had the same issue, but you have to wait for a couple of minutes. when the update is ready you can enter 'reboot'.
Sponsor
Lusitano
DD-WRT User


Joined: 25 Jun 2014
Posts: 142
Location: São Paulo - Brazil

PostPosted: Fri Oct 20, 2017 0:18    Post subject: Reply with quote
Hi Alozaros, Hi, i'm trying following instructions.. but i stuck here:

Code:
D:\>pscp.exe factory-to-ddwrt.bin root@192.168.1.1:/tmp/factory-to-ddwrt.bin
root@192.168.1.1's password:
sh: /usr/libexec/sftp-server: not found
Fatal: Received unexpected end-of-file from server


before try to upgrade, i reset the tl-wr841ndv11 (r33375), and enable SSHd, both files in same dir, any idea ? thx.
epsilon
DD-WRT Novice


Joined: 13 Oct 2017
Posts: 11

PostPosted: Fri Oct 20, 2017 6:05    Post subject: Reply with quote
I've got the same error when I try to use sftp.
Try force scp protocol:
pscp.exe -scp factory-to-ddwrt.bin root@192.168.1.1:/tmp/factory-to-ddwrt.bin
Lusitano
DD-WRT User


Joined: 25 Jun 2014
Posts: 142
Location: São Paulo - Brazil

PostPosted: Sat Oct 21, 2017 0:53    Post subject: Reply with quote
Alozaros and epsilon, thank you for the tips, worked perfectly Smile
rscm
DD-WRT Novice


Joined: 23 Oct 2017
Posts: 9

PostPosted: Mon Oct 30, 2017 20:50    Post subject: Reply with quote
do we have to do this every time we want to upgrade from now on?
bc i downgraded to 33492 from 33555 hoping to be able to use the web-gui to upgrade but still can't

model: tl-wr1043nd_v1.8
-
(edit: update status)
i used it to upgrade to 33607, at least works well

-
(step-by-step what I did)
--
router(ssh)
Code:
root@DD-WRT:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "RedBoot"
mtd1: 007a0000 00010000 "linux"
mtd2: 006ae000 00010000 "rootfs"
mtd3: 00030000 00010000 "ddwrt"
mtd4: 00010000 00010000 "nvram"
mtd5: 00010000 00010000 "FIS directory"
mtd6: 00010000 00010000 "board_config"
mtd7: 00800000 00010000 "fullflash
root@DD-WRT:~# dd if=/dev/mtdblock7 of=/tmp/boot.bin bs=1 count=131072

i got 131072 using a hexeditor from a dump of mtd7 (read above @epsilon) (wr1043nd_v1.8 )

linux machine
Code:
$ scp root@192.168.1.1:/tmp/boot.bin .
$ wget ftp://ftp.dd-wrt.com/betas/2017/10-10-2017-r33492/tplink_tl-wr1043nd/factory-to-ddwrt.bin
$ cat factory-to-ddwrt.bin >> boot.bin
$ scp boot.bin root@192.168.1.1:/tmp/boot.bin


router(ssh)
Code:
root@DD-WRT:~# mtd -f write /tmp/boot.bin fullflash

wait a few minutes until you get the prompt back, then reboot (i had to manually recycle power the reboot command didn't work at all)


Last edited by rscm on Mon Nov 06, 2017 19:09; edited 1 time in total
akynxs
DD-WRT Novice


Joined: 31 Oct 2017
Posts: 6

PostPosted: Tue Oct 31, 2017 6:48    Post subject: Reply with quote
I am having the same problem on the router "TP-Link TL-WR743ND v1"

I can not in any way restore the original firmware or upgrade to the latest firmware, could anyone guide me?
akynxs
DD-WRT Novice


Joined: 31 Oct 2017
Posts: 6

PostPosted: Wed Nov 01, 2017 14:09    Post subject: Reply with quote
akynxs wrote:
I am having the same problem on the router "TP-Link TL-WR743ND v1"

I can not in any way restore the original firmware or upgrade to the latest firmware, could anyone guide me?


Sorry for the flood, no one can help me with the problem?

I do not know how to find the size of the bootloader, when I go to the string "00020000" it has no name "tp-link", tplink, or dd-wrt ", encounter tp-link just at the beginning of the file.

I use windows and I'm using PuTTY, can I use this one?

I understand little of linux!

the "factory-to-ddwrt.bin" that I will use is "r33375" or the version I want to use?

if anyone can guide me in the commands on windows, I thank





epsilon
DD-WRT Novice


Joined: 13 Oct 2017
Posts: 11

PostPosted: Wed Nov 01, 2017 15:09    Post subject: Reply with quote
@akynxs

In order to find out the bootloader size, you need to find "TP-LINK" string in the dump of "fullflash" partition.

So, login to your router via ssh
and do as @ciscodlink did, described in post above.

dd if=/dev/mtdblock6 | hexdump -C | less

next type after :
/TP-
push enter, and you should get offset size.

you leave the command by typing q

I think it would be a good thing, to do the Hard Reset (aka 30/30/30 reset) before you start the whole upgrade operation.
epsilon
DD-WRT Novice


Joined: 13 Oct 2017
Posts: 11

PostPosted: Wed Nov 01, 2017 15:18    Post subject: Reply with quote
@rscm

I don't understand your post, probably because of my bad English.
So, did you downgrade the build 33555 into 33492 with success?
If so, why didn't you upgrade with this method to the latest version?
You should use the method described in this thread only if you stuck with build 33375, because webflash from this build is faulty.
x0101222
DD-WRT Novice


Joined: 10 Jun 2008
Posts: 18

PostPosted: Wed Nov 01, 2017 15:43    Post subject: Reply with quote
Please excuse me if I will say something stupid or wrong.

I do like and follow this topics and technology with How-to and guides, I followed the electronic but did not enter in the programming mode. So networks is a hobby and support for friends

BrainSlayer (thank you so much for your dedication to us)wrote that :

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

could it be possible to release a fix that could contain both strings in order to bypass the bootloader size?

Because I believe that the incoming releases may have this fixed, so we just need to cover a few releases that are blocking the upgrade process.

In my case I would like to downgrade for a old version to see if I can solve LAN low speed transfer rate that I am have with a WR941 v3.6 under 33525.

The network is ok, tested with other router and same configs.

Only the 941 on the lan side is "cutted" or appears limited speed like effective QOS


Well.. so maybe we could have a patch to apply and go back to release XXXX that could avoid the advanced tasks for DD-WRT fans but not so experience.

thanks!

Rui.
akynxs
DD-WRT Novice


Joined: 31 Oct 2017
Posts: 6

PostPosted: Wed Nov 01, 2017 15:47    Post subject: Reply with quote
epsilon wrote:
@akynxs

In order to find out the bootloader size, you need to find "TP-LINK" string in the dump of "fullflash" partition.

So, login to your router via ssh
and do as @ciscodlink did, described in post above.

dd if=/dev/mtdblock6 | hexdump -C | less

next type after :
/TP-
push enter, and you should get offset size.

you leave the command by typing q

I think it would be a good thing, to do the Hard Reset (aka 30/30/30 reset) before you start the whole upgrade operation.


after I give the command: dd if=/dev/mtdblock6 | hexdump -C | less

I can not type anything



Thank you for your help
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 265

PostPosted: Wed Nov 01, 2017 17:51    Post subject: Reply with quote
@akynxs scroll down the output with the arrow keys or j/k keys until you reach 00020000 or whatever is the correct offset that contains the tp-link or dd-wrt string.
akynxs
DD-WRT Novice


Joined: 31 Oct 2017
Posts: 6

PostPosted: Wed Nov 01, 2017 19:05    Post subject: Reply with quote
fizikz wrote:
@akynxs scroll down the output with the arrow keys or j/k keys until you reach 00020000 or whatever is the correct offset that contains the tp-link or dd-wrt string.


Thanks guys for the help

I managed to get out of this bugged firmware

Just to confirm, the router "TP-Link TL-WR743ND v1" = 131072 (bootloader size).
rscm
DD-WRT Novice


Joined: 23 Oct 2017
Posts: 9

PostPosted: Mon Nov 06, 2017 19:07    Post subject: Reply with quote
epsilon wrote:
@rscm

I don't understand your post, probably because of my bad English.
So, did you downgrade the build 33555 into 33492 with success?
If so, why didn't you upgrade with this method to the latest version?
You should use the method described in this thread only if you stuck with build 33375, because webflash from this build is faulty.

I'm not a native english speaker either Razz

About your 1st Q... yes, I did downgrade like you said successfully and then using the same method I upgraded to r33607

2nd Q: I thought reverting to a previous could bring the ability to use the webgui to upgrade like before, but after thinking what I was doing I understood that I was actually reusing the bootsector and injecting it into a firmware without it

btw 33375 is not the only one generating this, there have been reports of other versions doing the same
SYN1ST3R
DD-WRT Novice


Joined: 06 Nov 2014
Posts: 40

PostPosted: Thu Nov 09, 2017 5:17    Post subject: Reply with quote
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


Will future dd-wrt firmwares fix this problem or will all those who are effected (can't upgrade/switch back to stock) have to manually fix the problem discussed in this thread?
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next Display posts from previous:    Page 2 of 9
Post new topic   This topic is locked: you cannot edit posts or make replies.    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