Lorex

I went to bed the other night with hisilicon # prompt showing on NCOM was able to *** went thru setenv ip comands......got almost to run up command. Something happened while typing - i have to look at my keyboard - but was satisfied i'd get it the next day after some sleep.

I am now at a point i cant see anything on the NCOM window. Gonna rest up for a while and try again. (NVR is OK. It's default to factory.

I've done most of the recomended stuff. It's probably my ignorance of tftp server - how to set it up.... Why it wants to change to loopbak ip...

OK I'll get back on it in the future. Like i said i made it almost to the run up command....damnet. Maybe i should have sat up all night trying?

Gotta work tomorrow.....wish i coud say i'll try again soon...but ....got some honey do things that seem to take priority over my frustrating camera/nvr time.
 
I swear i was so close....and now i can't even see anything on NCOM. I vven tested ny cable (db9) to make sure it was still null....

crazy...

gotta be my inability to do TFTP on an nvr with db9 console ...
 
Last edited:
OK. The original thread said if you can't see anything on NCOM app you have a serial connection issue. I went to bed the other night thinking i'll get it tomorrow but never could get back to where i was......ordered a new null modem cable along with a db9 to usb with a fancy chip in it.
Decided to take my nvr back to the basement and looked to see if i had a db9 ioio connection on my computer down there...well it has two. So i threw a cheap switch in the floor, hooked my nvr network cable to it along with unplugging my basement desktop from my router and plugged it into the switch....set up my nic's in the nvr and computer to be similar.
Plugged in the db9 null modem cable to the easiest db9 ioio port to access and opened NCOM...it showed connected at the top, basicaslly did all the work for me.

So i must have a bad db9 on the computer upstairs. Maybe it went bad while i was asleep.

I got so excited i started doing the trick before realizing i hadnt pointed any file or pasted the img file to the tftp root file.....damn

Here is what i got ....
 
  • Like
Reactions: mat200
Couldn't upload the txt file so here is all the stuf in the window of NCOM

ÿ
Spi(cs1) ID: 0xEF 0x30 0x13 0x00 0x00 0x00
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
stmmac_init,568,0x70431,3
MAC: 00-00-23-34-45-66



U-Boot 2010.06-svn2281 (Jul 08 2017 - 21:02:09)

Spi(cs1) ID: 0xEF 0x30 0x13 0x00 0x00 0x00
CS:1 Block:64KB Chip:512KB Name:"w25x40"
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
Block:128KB Page:2KB Chip:128MB*1 OOB:64B ECC:none Nand total size: 128MB
In: serial
Out: serial
Err: serial
SCU: load slave image ...OK
uboot default partition:
size:0x100000 offset:0x0 name:reserve
size:0x100000 offset:0x100000 name:updateflag
size:0x100000 offset:0x200000 name:boot
size:0x400000 offset:0x300000 name:uImage
size:0x1a00000 offset:0x700000 name:rootfs
size:0x100000 offset:0x2100000 name:bootslave
size:0x300000 offset:0x2200000 name:uImageslave
size:0xe00000 offset:0x2500000 name:rootfsslave
size:0x500000 offset:0x3300000 name:web
size:0x200000 offset:0x3800000 name:custom
size:0x200000 offset:0x3a00000 name:logo
size:0x300000 offset:0x3c00000 name:config2
size:0x40000 offset:0x3f00000 name:pmfirmware
size:0xc0000 offset:0x3f40000 name:misc
size:0x1400000 offset:0x4000000 name:web2
size:0x1e00000 offset:0x5400000 name:rootfs2
size:0xa00000 offset:0x7200000 name:config
spi env sysbackup=0
Read backup misc byte ... ok!
GpioI2cMcuRecvAck 114 err
FUNCTION = GpioI2cReadByteMcu, LINE = 244
GpioI2cReadByteMcu faield
[is2uProduct] get failed
PRODUCT:1U
stmmac_init,550,0x70431,3
MAC: 00-40-7F-B9-73-FB
Hit any key to stop autoboot: 0
hisilicon # setenv bootdelay 9
hisilicon # saveenv
Saving Environment to NAND...
Erasing Nand...
Writing to Nand... done
hisilicon # seLenv serverip 192.0.0.128
Unknown command 'seLenv' - try 'help'
hisilicon # setenv ipaddr 192.0.0.64
hisilicon # setenv gatewayip 2
Spi(cs1) ID: 0xEF 0x30 0x13 0x00 0x00 0x00
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
stmmac_init,568,0x70431,3
MAC: 00-00-23-34-45-66



U-Boot 2010.06-svn2281 (Jul 08 2017 - 21:02:09)

Spi(cs1) ID: 0xEF 0x30 0x13 0x00 0x00 0x00
CS:1 Block:64KB Chip:512KB Name:"w25x40"
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
Block:128KB Page:2KB Chip:128MB*1 OOB:64B ECC:none Nand total size: 128MB
In: serial
Out: serial
Err: serial
SCU: load slave image ...OK
uboot default partition:
size:0x100000 offset:0x0 name:reserve
size:0x100000 offset:0x100000 name:updateflag
size:0x100000 offset:0x200000 name:boot
size:0x400000 offset:0x300000 name:uImage
size:0x1a00000 offset:0x700000 name:rootfs
size:0x100000 offset:0x2100000 name:bootslave
size:0x300000 offset:0x2200000 name:uImageslave
size:0xe00000 offset:0x2500000 name:rootfsslave
size:0x500000 offset:0x3300000 name:web
size:0x200000 offset:0x3800000 name:custom
size:0x200000 offset:0x3a00000 name:logo
size:0x300000 offset:0x3c00000 name:config2
size:0x40000 offset:0x3f00000 name:pmfirmware
size:0xc0000 offset:0x3f40000 name:misc
size:0x1400000 offset:0x4000000 name:web2
size:0x1e00000 offset:0x5400000 name:rootfs2
size:0xa00000 offset:0x7200000 name:config
spi env sysbackup=0
Read backup misc byte ... ok!
GpioI2cMcuRecvAck 114 err
FUNCTION = GpioI2cReadByteMcu, LINE = 244
GpioI2cReadByteMcu faield
[is2uProduct] get failed
PRODUCT:1U
stmmac_init,550,0x70431,3
MAC: 00-40-7F-B9-73-FB
Hit any key to stop autoboot: 0
stmmac_init,550,0x70431,3
MAC: 00-40-7F-B9-73-FB
stmmac_init,550,0x70431,3
MAC: 00-40-7F-B9-73-FB
NET_autoLipDetect timeout

stmmac_init,550,0x70431,3
MAC: 00-40-7F-B9-73-FB
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1
Download Filename 'ID_ND031712005738.txt'.
Download to address: 0x42000000
Downloading:
ARP Retry count exceeded; starting again
stmmac_init,550,0x70431,3
MAC: 00-40-7F-B9-73-FB
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1
Download Filename 'failed.txt'.
Download to address: 0x42000000
Downloading:
ARP Retry count exceeded; starting again
.## Booting kernel from Legacy Image at 42000000 ...
Image Name: Linux-3.10.0_hi3536
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4041328 Bytes = 3.9 MiB
Load Address: 40008000
Entry Point: 40008000
Loading Kernel Image ... OK
OK

Starting kernel ...
bootargs = console=ttyAMA0,115200 mem=928M root=/dev/mtdblock4 rootfstype=squashfs init=/linuxrc dh_keyboard=1 load_modules=1 toe=0 need_reset=0

Uncompressing Linux... done, booting the kernel.
 
  • Like
Reactions: mat200
So i went to do it right. Got going and the NICOM window just quit showing characters...? here is what i had on the screen.....

--------------------------------------------------------------------------------


pi(cs1) ID: 0xEF 0x30 0x13 0x00 0x00 0x00
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
stmmac_init,568,0x70431,3
MAC: 00-00-23-34-45-66



U-Boot 2010.06-svn2281 (Jul 08 2017 - 21:02:09)

Spi(cs1) ID: 0xEF 0x30 0x13 0x00 0x00 0x00
CS:1 Block:64KB Chip:512KB Name:"w25x40"
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
Block:128KB Page:2KB Chip:128MB*1 OOB:64B ECC:none Nand total size: 128MB
In: serial
Out: serial
Err: serial
SCU: load slave image ..

------------------------------------------------------------
That is as far as i got. Took a shot of cheap whisky and went bak down to the basement and saw the serial cable had pulled loose from my computer...I think i'll get it after while......crazy how age makes you get dumber and then you die.
 
So before i go at it again....i've extracted all the files from DH_NVR5XXX-4KS2_Eng_V3.215.0000000.3.R.20171211 but i think all i need is the img file installed into my tftp root folder. Not the entire contents extracted. Does it matter if i put all the extracted files into the tftp root file or just the img file? I've read the Lorex to Dahua thread that MixManSC told us how to do this several times and not sure if all i need is the img file from all the extracted files. Hate to fuk this up more than i have....it's becoming not fun anymore....no shit.

I'll be happy if this works but if not i'll trade this nvr for a paperclip...because i think i read where someone started with a paperclip and got a dam house after multiple trades....:idk:
 
So before i go at it again...

setenv bootdelay 9
enter
6) saveenv
enter
7) setenv serverip 192.0.0.128
enter
8) setenv ipaddr 192.0.0.64
enter
9) setenv gatewayip 255.255.255.0 (192.0.0.1)
enter
10) setenv netmask 192.0.0.1 (255.255.255.0)
enter
11) saveenv
enter

12) type: reset
hit enter

Hit *** before the countdown ends
type: run up
hit enter

I have changed the gateway and netmask ip's above...see in parentheses. Makes more sense to me but haven't tried again......soon!

assuming computer is 0.128 and nvr is 0.64...
 
  • Like
Reactions: mat200
Here is what i got after going thru the steps.......
------------------------------------------------------------------------------:facepalm:

hisilicon # run up
stmmac_init,550,0x70431,3
MAC: 00-40-7F-B9-73-FB
TFTP from server 255.255.255.255; our IP address is 255.255.255.255
Download Filename 'update.img'.
Download to address: 0x42000000
Downloading: T T T T T
Retry count exceeded; starting again
Bad Magic Number
boottype=1:
dh_wdt_stop called
 
it's up and running Dahua now. Kept the same PW i had in the lorex. Just now did a factory reset....so we'll see if it's still there in a minute.....


came up with the factory screen that prompts you for a new PW. Finally after this thing sitting in my basement for over 5 years.:headbang:


edit = i want v4 on this thing. I like the layout better but not sure of which firmware to try........but not today....
 
Last edited:
  • Like
Reactions: mat200
NVR5XXX-4KS2_DH_MultiLang_V4.002.1CKA000.0.R.231205 was loaded via config tool so now i have rhe v4 interface.

I think that is a 2021 firmware. No tests made to see if any bugs are in it but i'm very happy. The ptz camera i fixed a week or two back should work perfectly. and i have more dahua cam's in my basement than any other kind.

But if they do not have good night vision they are worthless ro me.....

also just goi another ai code projest update on my blu iris. Life is good on some days.....
 
  • Like
Reactions: mat200