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

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:
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.
 
OK i am waitng...

But tell me now only how replace this one file in archive overseas.tar.lzma ?
 
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
 
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

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
 
  • Like
Reactions: alastairstevenson
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$
 
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
 
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:
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.
 
  • Like
Reactions: alastairstevenson
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.
 
But you know where in firmware after unpack is located wallpaper from home screen and colors of block elements on home screen?