I try to extract.py NVR firmware and get:
osboxes@osboxes:/media/sf_vbox/nvr_hack/Dahua-Firmware-Mod-Kit$ ./extract.py ../DH_NVR4XXX-4KS2_Eng_V3.215.0000000.3.R.171106.bin
*snip*
create_inode: failed to create symlink DH_NVR4XXX-4KS2_Eng_V3.215.0000000.3.R.171106.bin.extracted/romfs-x.squashfs.img.extracted/bin/[, because Read-only file system
*snip*
What I have to do? What the reason of the eror ?
Various errors.What the reason of the eror ?
What failed message do you get?
I am pretty convinced with the right setup, you should succeed in downgrading via TFTP. Did that already a couple of times with my VTO2000.
Is it the latest firmware? I don't know.Hi,
I have a IPC-HFW4431R-Z. Is this really the latest firmware? https://i.botox.bz/DH_IPC-HX4XXX-Eos_EngFraSpaRus_PN_Stream3_V2.420.0000.22.R.20161209.bin
Thanks!
hwid_value =IPC-HFW4421B:01:02:02:23:19:00:01:06:01:01:04:258:03:00:00:00:00:01:00:00:100
product_name =IPC-HFW4421B
4iav_check_sys_clock(1210): DSP Core clock real [216000000] lower than target [288000000].
4iav_check_sys_clock(1220): DRAM clock real [528000000] lower than target [564000000].
6S2L chip ID [2], DSP memory bandwidth [427 MB/s], limit [1287 MB/s].
[0;32;32m10:05:56|[AEW] get amba sensor id=4106
[m[0;32;32m10:05:56|[AEW] get amba vin_mode=28, vin_fps=20480000
[m[0;32;32m10:05:56|[AEW] get the product info: sensor id is 34, product type is 161.
[m[0;32;32m10:05:56|[AEW] ../src/s2l/mw_sensor_param.c::chooseCurParam:76 curParamType=0
[m[0;32;32m10:05:56|[libpdi] pIcrAewType = 0
[m[0;32;32m10:05:56|[AEW] File[../src/s2l/mw_sensor_param.c] Line[207], icrAewType=0
[m[0;32;32m10:05:56|[AEW] pMw_info->sensor.sensor_id is 26
wb_param is cfg_wb_param!
[m[0;32;32m10:05:56|[AEW] lensType = 0
[m[0;32;32m10:05:56|[AEW] ../src/s2l/mw_sensor_param.c::chooseCurParam:76 curParamType=0
[m[0;32;32m10:05:56|[AEW] ====pMw_info->res.isp_pipeline=0====
[m>>> pipline:0, hdr_mode:0, expo_num:1, raw_pitch:0
>>> main:size 1920x1088, raw:2560x1440, resolution:10
[0;32;32m10:05:56|[AEW] get amba sensor id=4106
[m[0;32;32m10:05:56|[AEW] get amba vin_mode=28, vin_fps=20480000
[m[0;32;32m10:05:56|[AEW] get the product info: sensor id is 34, product type is 161.
[m[0;32;32m10:05:56|[AEW] ../src/s2l/mw_sensor_param.c::chooseCurParam:76 curParamType=0
[m[0;32;32m10:05:56|[libpdi] pIcrAewType = 0
[m[0;32;32m10:05:56|[AEW] File[../src/s2l/mw_sensor_param.c] Line[207], icrAewType=0
[m[0;32;32m10:05:56|[AEW] pMw_info->sensor.sensor_id is 26
wb_param is cfg_wb_param!
[m[0;32;32m10:05:56|[AEW] lensType = 0
[m[0;32;32m10:05:56|[AEW] ../src/s2l/mw_sensor_param.c::chooseCurParam:76 curParamType=0
[m[0;32;32m10:05:56|[AEW] ====pMw_info->res.isp_pipeline=0====
[m>>> ====amba_img_dsp_set_af_statistics_exe ok====
>>> ====amba_img_dsp_get_af_statistics_ex ok====
>>> AlgoMode:0 FuncMode:0 ContextId:0 BatchId:0 ConfigId:0
>>> horizontal_filter1_mode:0 stage1-3_enb:1 1 1
>>> gain:188 476 -235 375 -184 276 -206
>>> shift:7 2 2 0
>>> bias_off:0 0 0 8 8 123 132
>>> horizontal_filter2_mode:0 stage1-3_enb:1 1 0
>>> gain:168 -273 -219 -152 -213 0 0
>>> shift:9 0 0 0
>>> bias_off:0 0 0 8 8 123 132
[0;32;32m10:05:57|[libencode] idlecount 0
[m[0;32;32m10:05:58|[libencode] idlecount 1
[mno translater fordsp_put_cmd(348): ===== DSP CMD Q is full. Wait for next INT!
filter 10
dsp_put_cmd(348): ===== DSP CMD Q is full. Wait for next INT!
dsp_put_cmd(348): ===== DSP CMD Q is full. Wait for next INT!
dsp_put_cmd(348): ===== DSP CMD Q is full. Wait for next INT!
dsp_put_cmd(348): ===== DSP CMD Q is full. Wait for next INT!
dsp_put_cmd(348): ===== DSP CMD Q is full. Wait for next INT!
dsp_put_cmd(348): ===== DSP CMD Q is full. Wait for next INT!
dsp_put_cmd(348): ===== DSP CMD Q is full. Wait for next INT!
dsp_put_cmd(348): ===== DSP CMD Q is full. Wait for next INT!
dsp_put_cmd(348): ===== DSP CMD Q is full. Wait for next INT!
handle_enc_msg(209): Vsync loss detected!
handle_enc_msg(209): Vsync loss detected!
init 3A done
loop start now
handle_enc_msg(209): Vsync loss detected!
handle_enc_msg(209): Vsync loss detected!
tftp 0x82000000 pd-x.squashfs.img; flwrite
may i have your email ?I dared to upgrade my VTO2000A to latest 20180105 SIP FW and I advise anybody to NOT DO this!
There are some nice benefits built in the firmware but due to a brand new bootloader you are not able to upload something via TFTP anymore. It just requests "failed.txt" via TFTP, nothing else.
Also it seems that dahua f***** up the UART somehow: I don't get anything meaningful out of it now.
You can just do this then:
Code:cp "/dev/mtd0ro" "./mtd0_MinBoot" cp "/dev/mtd1ro" "./mtd1_U-Boot" cp "/dev/mtd2ro" "./mtd2_hwid" cp "/dev/mtd3ro" "./mtd3_partition" cp "/dev/mtd4ro" "./mtd4_Kernel" cp "/dev/mtd5ro" "./mtd5_romfs" cp "/dev/mtd6ro" "./mtd6_web" cp "/dev/mtd7ro" "./mtd7_user" cp "/dev/mtd8ro" "./mtd8_updateflag" cp "/dev/mtd9ro" "./mtd9_config" cp "/dev/mtd10ro" "./mtd10_product" cp "/dev/mtd11ro" "./mtd11_custom" cp "/dev/mtd12ro" "./mtd12_backupker" cp "/dev/mtd13ro" "./mtd13_backupfs"
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1Download Filename 'pd-x.squashfs.img'.Download to address: 0x2000000
Downloading: *
done
Bytes transferred = 3407872 (340000 hex)
## Checking Image at 02000000 ...
Unknown image format!
Bad Image Info
flwrite error 1!
cmd Failed tftp 0x2000000 pd-x.squashfs.img; flwrite!
[07:04:00] openhabian@OpenhabianPi-Server:~/Dahua-Firmware-Mod-Kit/test$ python3 ~/Dahua-Firmware-Mod-Kit/uImage.py -x partition-x.cramfs.img
Traceback (most recent call last):
File "/home/openhabian/Dahua-Firmware-Mod-Kit/uImage.py", line 555, in <module>
main()
File "/home/openhabian/Dahua-Firmware-Mod-Kit/uImage.py", line 542, in main
imageExtract(image)
File "/home/openhabian/Dahua-Firmware-Mod-Kit/uImage.py", line 441, in imageExtract
filename = d['name'].rstrip('\0')
TypeError: Type str doesn't support the buffer API
[07:04:14] openhabian@OpenhabianPi-Server:~/Dahua-Firmware-Mod-Kit/test$ python ~/Dahua-Firmware-Mod-Kit/uImage.py -x partition-x.cramfs.img
File "/home/openhabian/Dahua-Firmware-Mod-Kit/uImage.py", line 279
print("Image name:\t", end='')
^
SyntaxError: invalid syntax
Hello, finally did you fix it IPC-HDW4631C-A and get English back?I have a IPC-HDW4631C-A and tried to update it with the firmware for IPC-HDW4631EM-ASE "[PAL]DH_IPC-HX5X3X-Rhea_Eng_P_Stream3_V2.460.0000.7.R.20170306" but then it boot looped. After that I was able to flash
DH_IPC-HX5X3X-Rhea_Chn_PN_Stream3_V2.622.0000000.18.R.20171110.bin via TFTP. Now the cam is working again but all in Chinese. Does your firmware also work for this model? I would like to have it in english.
/edit
Now modded the chinese firmware by replacing the simplechinese.txt with English and modified the files where the language settings are. Furthermore I replaced the html in the help folder. But this is not working, after flashing it with tftp the camera is still in boot loop.
In a second attempt I just replaced the content of the simplechinese.txt by the english content.This ends in the same result.
I think the problem is because the new firmware is signed. Does anyone successfully modded a newer firmware?
@cor35vet, Can you help me!Hi @cor35vet!
My Dahua NVR model is 单盘位经济型NVR 21HS-S1系列 - 1盘位 - 浙江大华技术股份有限公司
It is local chinese products, and only chinese language.
I need translate to my local vietnamese language or english language.
Can you help me to do that!
Thank you so much !
PS: I've try your solution Dahua Firmware Mod Kit, but not successful to setup the squashfs-tools and cramfs in ubuntu linux 14.04 LTS
So can't extract the firmware to learn how to translate chinese language to vietnamese...
here the my dahua Nvr firmware: MEGA