Dahua IPC EASY unbricking / recovery over TFTP

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
13,688
Reaction score
4,905
Location
Scotland
List the .img files in the tftp server root directory.
It looks like this for example is missing
TFTP from server 192.168.254.254; our IP address is 192.168.1.251; sending through gateway 192.168.1.1Download Filename 'romfs-x.squashfs.img'.Download to address: 0x2000000
Downloading: T T T
TFTP error: (0)
 

rrands1

n3wb
Joined
Oct 16, 2020
Messages
13
Reaction score
1
Location
Mesa, az
That file is there, I think... Path to this dir: C:\dahua\Dahua_TFTPBackup\root
View attachment 79557
note that my "install" file is 0 bytes, and that is what threw the error in 7-zip - I went to a different firmware file from Dahua, and that file there seemed to have the order of install - here is the contents from the different FW version (so assuming it won't work for me, but wanted to see what was in one anyway...

{
"Commands" : [
"burn kernel.img kernel",
"burn partition-x.cramfs.img partition",
"burn romfs-x.squashfs.img rootfs",
"burn pd-x.squashfs.img pd",
"burn user-x.squashfs.img user",
"burn custom-x.squashfs.img custom",
"burn web-x.squashfs.img web"
],
"Devices" : [
[ "IPC-HX3XXX", "1.00" ]
],
"Vendor" : "General"
}
/IPC_RestoreDefault
 

rrands1

n3wb
Joined
Oct 16, 2020
Messages
13
Reaction score
1
Location
Mesa, az
It is indeed.
It's not clear (at least to me) why the romfs-x.squashfs.img is inaccessible to the tftp server, yet the upgrade_info ... file is OK.
Just guessing here :
Presumably the .img files are rw as opposed to ro ?
how do I check that? From a Windows FS perspective, they are RW to my account - is that different since the TFTP app is presenting Root up as some sort of share?
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
13,688
Reaction score
4,905
Location
Scotland
starting TFTP...
alias / is mapped to root\
permitted clients: all
server port range: all
max blksize: 65464
default blksize: 512
default timeout: 60
file read allowed: Yes
file create allowed: No
file overwrite allowed: No
thread pool size: 1
Listening On: 192.168.254.254:69
Client 192.168.1.251:3281 root\upgrade_info_7db780a713a4.txt, 1 Blocks Served
Client 192.168.1.251:3445 root\romfs-x.squashfs.img, Timeout
Client 192.168.1.251:3464 root\failed.txt, 1 Blocks Served
Maybe configure what's not allowed to all 'Yes'.
 

rrands1

n3wb
Joined
Oct 16, 2020
Messages
13
Reaction score
1
Location
Mesa, az
I changed the .ini file to allow write to everything, but same result.. :(

But - in looking at your link in your sig, I found someone who ran into issues in a multi-nic machine, and my laptop has a dock, so has 3 nics - 2 wired & 1 wireless. I disabled the 2nd wired & the wireless & tried again... 1 time I got through the first file... but then it timed out, and I never got it to go that far again... :(

So, I moved the apps (and re-pointed static route) to my NVR box, and tried again from scratch. Still timing out, same errors. I have tried older / different FW versions, but same result. Also, every .img file I have downloaded says it's corrupt, both in WinRar & 7Zip - is that normal?? (It's the "install" file in each of them) - are you able to replicate that by chance?

Please help - I feel like I am close, but not sure what might be wrong! (I disabled Windows Defender as well, just FYI, in case it was causing issues...)


Thank you!

-randy
 
Top