Hikvision FIRMWARE TOOLS - change language, extract files and create own firmware

pepeEL

Getting the hang of it
Joined
May 18, 2016
Messages
168
Reaction score
7
Ok
Can you update this file in firmware which i send you in previous message and repack it and share me file after repack to test ?

And please give me step by step manual how i can do it and install on ubuntu depending? This will help me to not ask you for help.
 

Attachments

Last edited:

pepeEL

Getting the hang of it
Joined
May 18, 2016
Messages
168
Reaction score
7
I try on my UBUNTU... but i dont know how replace this file(gui_value11) in archive overseas.tar.lzma

On windows by 7zip i can not do it. I get error.
 

Ivan1985

n3wb
Joined
May 6, 2019
Messages
19
Reaction score
12
Location
Russia
I try on my UBUNTU... but i dont know how replace this file(gui_value11) in archive overseas.tar.lzma

On windows by 7zip i can not do it. I get error.
I will send to you repacked file and all instructions later today.
 

pepeEL

Getting the hang of it
Joined
May 18, 2016
Messages
168
Reaction score
7
OK i am waitng...

But tell me now only how replace this one file in archive overseas.tar.lzma ?
 

pepeEL

Getting the hang of it
Joined
May 18, 2016
Messages
168
Reaction score
7
And see that i have problem with cryptodome... i install from this link and is problem
Installation — PyCryptodome 3.9a0 documentation

when try repack show me info that:
0,37% (+7397 bajtów) overseas.tar.lzma
0,37% (+4425 bajtów) ramdisk.gz
-45,49% (-11764 bajtów) showlogo
-10,95% (-249 bajtów) start.sh
0,20% (+4568 bajtów) uImage
166,67% (+15 bajtów) version
Łącznie: 14248 kilobajtów
Superblock: 76 bajtów
CRC: c381cdd
mkfs.cramfs: uwaga: gidy skrócone do 8 bitów (może to rzutować na bezpieczeństwo).
Traceback (most recent call last):
File "repackFirmwareH5.py", line 4, in <module>
from Cryptodome.Util.Padding import pad
ModuleNotFoundError: No module named 'Cryptodome'
mv: nie można wykonać stat na 'digicap.dav_unpacked/digicap.dav': Nie ma takiego pliku ani katalogu
 

Ivan1985

n3wb
Joined
May 6, 2019
Messages
19
Reaction score
12
Location
Russia
OK i am waitng...

But tell me now only how replace this one file in archive overseas.tar.lzma ?
Attached repacked firmware with updated gui_value11.cfg file.
I have also updated the scripts to replace gui_value11.cfg in the overseas.tar.lzma

Please use next sequence:
1. Copy gui_value11.cfg, digicap.dav and scripts into one folder.
2. Run ./unpack.sh
3. Run ./repack.sh
4. Updated firmware: repack_digicap.dav

There is link to Cryptodome python library installation: Installation — PyCryptodome 3.9a0 documentation
Note: This library shall be installed for Python3.
 

Attachments

Ivan1985

n3wb
Joined
May 6, 2019
Messages
19
Reaction score
12
Location
Russia
And see that i have problem with cryptodome... i install from this link and is problem
Installation — PyCryptodome 3.9a0 documentation

when try repack show me info that:
0,37% (+7397 bajtów) overseas.tar.lzma
0,37% (+4425 bajtów) ramdisk.gz
-45,49% (-11764 bajtów) showlogo
-10,95% (-249 bajtów) start.sh
0,20% (+4568 bajtów) uImage
166,67% (+15 bajtów) version
Łącznie: 14248 kilobajtów
Superblock: 76 bajtów
CRC: c381cdd
mkfs.cramfs: uwaga: gidy skrócone do 8 bitów (może to rzutować na bezpieczeństwo).
Traceback (most recent call last):
File "repackFirmwareH5.py", line 4, in <module>
from Cryptodome.Util.Padding import pad
ModuleNotFoundError: No module named 'Cryptodome'
mv: nie można wykonać stat na 'digicap.dav_unpacked/digicap.dav': Nie ma takiego pliku ani katalogu
Most probably you have installed this library for Python2 instead of Python3
 

pepeEL

Getting the hang of it
Joined
May 18, 2016
Messages
168
Reaction score
7
but can you give me manual how install it for python3 ?
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,930
Reaction score
6,779
Location
Scotland
Please do try a bit of self-help, Google will yield many answers to these questions.
That's one of the ways to learn things - research, test, understand, learn, share.

@Ivan1985 has been super helpful and responsive.
 

pepeEL

Getting the hang of it
Joined
May 18, 2016
Messages
168
Reaction score
7
Look i try install on python3:



Code:
piotr@piotr-ubuntu:~/Dokumenty/scripts/digicap.dav_unpacked/img/overseas$ sudo apt-get install build-essential python3-dev
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności       
Odczyt informacji o stanie... Gotowe
build-essential is already the newest version (12.4ubuntu1).
python3-dev is already the newest version (3.6.7-1~18.04).
sh: 0: getcwd() failed: No such file or directory
0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 326 nieaktualizowanych.
sh: 0: getcwd() failed: No such file or directory
piotr@piotr-ubuntu:~/Dokumenty/scripts/digicap.dav_unpacked/img/overseas$ pip install pycryptodomex
sh: 0: getcwd() failed: No such file or directory
The folder you are executing pip from can no longer be found.
piotr@piotr-ubuntu:~/Dokumenty/scripts/digicap.dav_unpacked/img/overseas$ python3 -m Cryptodome.SelfTest
/usr/bin/python3: Error while finding module specification for 'Cryptodome.SelfTest' (ModuleNotFoundError: No module named 'Cryptodome')
piotr@piotr-ubuntu:~/Dokumenty/scripts/digicap.dav_unpacked/img/overseas$
 

Ivan1985

n3wb
Joined
May 6, 2019
Messages
19
Reaction score
12
Location
Russia
Look i try install on python3:



Code:
piotr@piotr-ubuntu:~/Dokumenty/scripts/digicap.dav_unpacked/img/overseas$ sudo apt-get install build-essential python3-dev
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności      
Odczyt informacji o stanie... Gotowe
build-essential is already the newest version (12.4ubuntu1).
python3-dev is already the newest version (3.6.7-1~18.04).
sh: 0: getcwd() failed: No such file or directory
0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 326 nieaktualizowanych.
sh: 0: getcwd() failed: No such file or directory
piotr@piotr-ubuntu:~/Dokumenty/scripts/digicap.dav_unpacked/img/overseas$ pip install pycryptodomex
sh: 0: getcwd() failed: No such file or directory
The folder you are executing pip from can no longer be found.
piotr@piotr-ubuntu:~/Dokumenty/scripts/digicap.dav_unpacked/img/overseas$ python3 -m Cryptodome.SelfTest
/usr/bin/python3: Error while finding module specification for 'Cryptodome.SelfTest' (ModuleNotFoundError: No module named 'Cryptodome')
piotr@piotr-ubuntu:~/Dokumenty/scripts/digicap.dav_unpacked/img/overseas$
Please try:
pip3 install pycryptodomex
 

pepeEL

Getting the hang of it
Joined
May 18, 2016
Messages
168
Reaction score
7
ok works Thanks.

You think that if i have now write to my HikVision DS-KH8301-WT this firmware 1.5.1 from may, i can update again by the same but after repacked ? But it was the same version firmware.... I can ? And device should update ?
 
Last edited:

Ivan1985

n3wb
Joined
May 6, 2019
Messages
19
Reaction score
12
Location
Russia
ok works Thanks.

You think that if i have now write to my HikVision DS-KH8301-WT this firmware 1.5.1 from may, i can update again by the same but after repacked ? But it was the same version firmware.... I can ? And device should update ?
Please try to formulate questions in more structured way.
There are no limitations for the firmware version number and you can update this device by one and the same firmware or by repacked firmware this the same version.
 

pepeEL

Getting the hang of it
Joined
May 18, 2016
Messages
168
Reaction score
7
Ok thanks. Because i thinked that if device look that i try update the same version he stop and not accepted me. Thanks for your help. Today i try it.
 

pepeEL

Getting the hang of it
Joined
May 18, 2016
Messages
168
Reaction score
7
But you know where in firmware after unpack is located wallpaper from home screen and colors of block elements on home screen?
 

Ivan1985

n3wb
Joined
May 6, 2019
Messages
19
Reaction score
12
Location
Russia
But you know where in firmware after unpack is located wallpaper from home screen and colors of block elements on home screen?
I am not sure, but check next files:
  • app.tar.lzma/1024x600.cfg
  • app.tar.lzma/MiniGUI.cfg
 
Top