i have extract file cramfs.img fw dvr hikvision. Now I want to repack the cramfs.img file to upgrade
that I do not know how? People guide me to do?
thank you!
that I do not know how? People guide me to do?
thank you!
alastair@PC-I5 ~/cctv/NVRFirmware/3.4.80/NVR_78_79_EXX_V3.4.80_160718/custom $ ll build_from_this
total 14960
drwxr-xr-x 2 alastair alastair 4096 Aug 14 2016 ./
drwxr-xr-x 10 alastair alastair 4096 Aug 20 2016 ../
-rwxr-xr-x 1 alastair alastair 3365 Aug 14 2016 dec_newstart.sh*
-rw-r--r-- 1 alastair alastair 1344480 Jul 31 2016 gui_res.tar.lzma
-rwxr-xr-x 1 alastair alastair 616 Aug 14 2016 new_10.bin*
-rwxrwxr-x 1 alastair alastair 48 Jan 3 2016 start.sh*
-rw-r--r-- 1 alastair alastair 7650583 Aug 14 2016 sys_app.tar.lzma
-rwxr-xr-x 1 alastair alastair 3083056 Jul 31 2016 uImage*
-rw-r--r-- 1 alastair alastair 3215032 Jul 31 2016 webs.tar.lzma
alastair@PC-I5 ~/cctv/NVRFirmware/3.4.80/NVR_78_79_EXX_V3.4.80_160718/custom $ mkcramfs build_from_this newcramfs.img
Directory data: 252 bytes
Everything: 14988 kilobytes
Super block: 76 bytes
CRC: 22a8a795
warning: gids truncated to 8 bits (this may be a security concern)
alastair@PC-I5 ~/cctv/NVRFirmware/3.4.80/NVR_78_79_EXX_V3.4.80_160718/custom $ file newcramfs.img
newcramfs.img: Linux Compressed ROM File System data, little endian size 15347712 version #2 sorted_dirs CRC 0x22a8a795, edition 0, 3738 blocks, 8 files
alastair@PC-I5 ~/cctv/NVRFirmware/3.4.80/NVR_78_79_EXX_V3.4.80_160718/custom $
You have forgotten to encrypt the file.I have packaged it but when loading dvr plan it has bad lzma header error
Looking at your plaintext sys_app.tar.lzma that you attached - the lib folder is empty.when changing and repacking is always error
think there was a problem where the lzma file
Isn't the problem due to the missing files?Looking at your plaintext sys_app.tar.lzma that you attached - the lib folder is empty.
OK, so my guess as to the cause of the problem was not correct.Isn't the problem due to the missing files?
Check the original, unchanged, archive and see if there are files in the lib folder.
Nếu bạn thay đổi bất kỳ tập tin-các nội dung của các tập tin bảo mật new_10. bin cần phải được Cập Nhật với các giá trị MD5 Hash mới.Tôi đã làm như vậy và không có vấn đề xảy ra cho đến khi tôi thay đổi tập tin sys_app.tar.lzma
I'm sorry, but it is a large and technically complex topic that cannot be simply explained by a few sentences in some posts.Can you explain more? i don't understand