Jump to content

resurs

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. I rcvd Dahua NVR 4416 in English. I need to make it Russian. usings ubuntu 16.10 as virtual machine. Unziping current firmware DH_NVR4xxx_Eng_P_V3.201.0000.1.R.20160409.bin https://cloud.mail.ru/public/N63A/oe5BPRqYB we have files: -rwxrwxrwx 1 adminka adminka 8908 апр 9 2016 Install.lua -rwxrwxrwx 1 adminka adminka 36928 май 31 21:59 logo-x.cramfs.img -rwxrwxrwx 1 adminka adminka 12877888 окт 22 12:19 romfs-x.cramfs.img -rwxrwxrwx 1 adminka adminka 259076 май 31 21:59 u-boot.bin.img -rwxrwxrwx 1 adminka adminka 1568832 май 31 21:59 web-x.cramfs.img Install.lua is a installing script which says how to flash images inside bin firmware. romfs-x - is a image which contains linux OS no we have squashed cram filesystem images, turning them into real files: first removing first 64bit of the files # dd bs=1 skip=64 if=romfs-x.cramfs.img of=romfs-x.cramfs now unsquashing them: (if dont have unsquashfs just "apt-get install" them in ubuntu) sudo mkdir romfs sudo unsquashfs -f -d ./romfs romfs-x.cramfs now we have $ ls -la drwxrwxrwx 20 root root 4096 ноя 3 15:37 . drwxr-xr-x 6 adminka adminka 4096 ноя 7 10:04 .. drwxrwxrwx 2 root root 4096 янв 3 2014 bin drwxrwxrwx 2 root root 4096 сен 6 2012 boot drwxr-xr-x 2 adminka adminka 4096 ноя 3 15:38 custom drwxrwxrwx 2 root root 4096 сен 4 2012 dev drwxrwxrwx 6 root root 4096 дек 18 2013 etc drwxrwxrwx 2 root root 4096 сен 4 2012 home lrwxrwxrwx 1 root root 9 ноя 3 15:07 init -> sbin/init drwxrwxrwx 2 root root 4096 дек 8 2012 lib lrwxrwxrwx 1 root root 11 ноя 3 15:07 linuxrc -> bin/busybox drwxrwxrwx 8 root root 4096 сен 11 2012 mnt drwxrwxrwx 2 root root 4096 ноя 6 2012 nfs drwxrwxrwx 3 root root 4096 янв 31 2013 proc drwxrwxrwx 2 root root 4096 дек 18 2013 root drwxrwxrwx 2 root root 4096 июл 30 2014 sbin drwxrwxrwx 2 root root 4096 ноя 6 2012 share drwxrwxrwx 2 root root 4096 апр 9 2016 slave drwxrwxrwx 2 root root 4096 сен 4 2012 sys drwxrwxrwx 2 root root 4096 сен 4 2012 tmp drwxrwxrwx 7 root root 4096 май 31 15:59 usr drwxrwxrwx 2 root root 4096 сен 4 2012 var inside "custom" directory we have custom$ ls -la -rw-r--r-- 1 adminka adminka 1674 янв 1 1970 custom.lua -rwxr--r-x 1 adminka adminka 1268 янв 1 1970 ProductDefinition inside custom.lua script we have different custom parameters for our NVR 4416 local custom = { -- All, English, SimpChinese, TradChinese, Italian, Spanish, Japanese, Russian, French, German,Turkey,Hungarian,Finnish,Estonian, SupportedLanguage = "English", SupportedLanguageDefault = "English", DefaultDahuaddns = ".quickddns.com", DahuaddnsType = "QUICK DDNS", --All, PAL , NTSC SupportedVideoStand = "PAL|NTSC", SupportedVideoStandDefault = "PAL", ShowLogo = 1, DefaultNatProxySvrAddr = "www.easy4ipcloud.com", DefaultNatProxySvrPort = 8800, DefaultNatProxySvrKey = "YXQ3Mahe-5H-R1Z_", DefaultCloudDdnsSvrAddr = "www.easy4ip.com", DefaultCloudDdnsSvrPort = 12366, MaxStreams = 2, SupportedSmartIPC = "YES", DVR_VENDOR_ID = "General", DefaultClientWebsite = "http://mobile.easy4ipcloud.com/detect/detect.html", DefaultIpv6HostIp = "", DefaultIpv6HostIp0 = "", DefaultIpv6HostIp1 = "", DefaultIpv6HostIp2 = "", DefaultIpv6Gateway = "", DefaultIpv6Gateway0 = "", DefaultIpv6Gateway1 = "", DefaultIpv6Gateway2 = "", DefaultIpv6PriFix = 1, DefaultIpv6PriFix0 = 1, DefaultIpv6PriFix1 = 1, DefaultIpv6PriFix2 = 1, DefaultAutoGet = 0, DefaultAutoGet0 = 0, DefaultAutoGet1 = 0, DefaultAutoGet2 = 0, DefaultPrimaryDns = "8.8.8.8", DefaultSecondDns = "8.8.4.4", DefaultNatProxySvrEnable = 1, } and also ProductDefinition file $ cat ProductDefinition { "3G" : false, "AllLanguages" : [ "English", "SimpChinese", "TradChinese", "Italian", "Spanish", "Japanese", "Russian", "French", "German", "Portugal", "Turkey", "Poland", "Romanian", "Hungarian", "Finnish", "Estonian", "Korean", "Farsi", "Dansk", "Czechish", "Bulgaria", "Slovakian", "Slovenia", "Croatian", "Dutch", "Greek", "Ukrainian", "Swedish", "Serbian", "Vietnamese", "Lithuanian", "Filipino", "Arabic", "Catalan", "Latvian" ], "DevStringFiles" : [ "StringsCn.txt" ], "RemoteDecodeChannels" : 16, "RemoteRecordChannels" : 16, "Device" : "DVR", "Languages" : [ "SimpChinese" , "English" ], "DefaultLanguage" : "SimpChinese", "MajorVersion" : 3, "MaxExtraStream" : 1, "MinorVersion" : 0, "OEMVersion" : 0, "Revision" : 0, "TypeVersion" : "R", "VSP" : "None", "Vendor" : "General", "VendorAbbr" : "00", "VideoStandards" : [ "PAL", "NTSC" ], "WebStringFiles" : [ "webCN.lang" ], "webSpec" : "NVR3.200", "webSubVer" : "1" } Changing evr. to Russian here SupportedLanguage = "English", SupportedLanguageDefault = "English", and here "DevStringFiles" : [ "StringsCn.txt" ], to StringsRu.txt and "WebStringFiles" : [ "webCN.lang" ], to webRU.lang etc etc now packing evr back sudo mkcramfs romfs-x romfs-x.cramfs then making img with adding first 64b block that we removed before mkimage -A arm -O linux -T ramdisk -n "linux" -e 0x00580000 -a 0x00080000 -d romfs-x.cramfs romfs-x.cramfs.img last thing packing back firmware # zip -D -X fupdate.bin * after flashing this firmware we still see no Russian, but variables in the buttons. Can somebody share the thoughts or tell solution?
  2. would you please kindly post this special command line here?
  3. Maybe somebody knows how to extract romfs from new firmware (DH_NVR4xxx_Eng_P_V3.201.0000.1.R.20160409.bin ) ?
  4. Hello! I have Dahua NVR4416, English version. I need to make it Russian. Current firmware is DH_NVR4xxx_Eng_P_V3.201.0000.1.R.20160409.bin https://cloud.mail.ru/public/N63A/oe5BPRqYB inside we have this files -rwxrwxrwx 1 adminka adminka 8908 апр 9 2016 Install.lua -rwxrwxrwx 1 adminka adminka 36928 май 31 21:59 logo-x.cramfs.img -rwxrwxrwx 1 adminka adminka 12877888 окт 22 12:19 romfs-x.cramfs.img -rwxrwxrwx 1 adminka adminka 259076 май 31 21:59 u-boot.bin.img -rwxrwxrwx 1 adminka adminka 1568832 май 31 21:59 web-x.cramfs.img And i have this file, which is translation to Russian: CONFIG_General_RusEng_P_General_WebRusEng_General_NVR4X_V3.200.0000.0.R.141222.bin https://cloud.mail.ru/public/3tom/VPmXZacEz inside we have this files: -rw-rw-r-- 1 adminka adminka 6239 янв 19 2038 Install.lua -rw-rw-r-- 1 adminka adminka 4160 дек 22 2014 logo-x.cramfs.img and inside Install.lua this content: http://pastebin.com/bvpfZ50K But it does't working on Engl firmware, turning translation phrasese to variables. Seems like V.3.201 and V3.200 have different translation methods. Need help to solve this situation! Please, advice! UPDATE I found General_NVR4xxx_Rus_Eng_P_V3.200.0000.2.R.20140516.bin its an old full russian firmware. I found out that translation is in custom-x.cramfs.img , inside there is 2 extracted files: custom.lua --- script how to install custom files Russian.txt -- variables with translation to russian lang. Exacly that variables i see on the screen when translation failed (nothing to choose in translation field menu). Seems like bingo! Take custom from old firmware and then put it into new firmware, compress to cramfs and ... nothing. It did't help. Again i see only variables instead of russian. Format back to .bin files seems completly normal since i upgrading went without any problem and my english translation gone.
  5. Hello! I scanned from 1 to 65535 ports, and none of the opened ports are telnet. Default port:23, not working. opened ports: 443 554 5000 8686 37777 none of them is telnet. Whan should i do to open telnet?
×