Correct RS232 Console settings for Dahua NVR?

Tygunn

Getting comfortable
Joined
Dec 24, 2016
Messages
398
Reaction score
313
Has anyone connected to a Dahua NVR via RS232 console? I set my Serial port settings on my pc to match what the NVR says, but I see no console-like stuff streaming to my pc.
 

Tygunn

Getting comfortable
Joined
Dec 24, 2016
Messages
398
Reaction score
313
It looks like the RS232 port in console mode on the back of the device doesn't expose the linux console. I rebooted the device; I see the boot loader and the linux kernel starting up, but after that nothing:

Booting kernel from Legacy Image at 42000000 ...
Image Name: Linux-3.10.0_hi3536
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3762472 Bytes = 3.6 MiB
Load Address: 40008000
Entry Point: 40008000
Loading Kernel Image ... OK
OK

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

Uncompressing Linux... done, booting the kernel.
 
Joined
Aug 3, 2015
Messages
3,829
Reaction score
12,293
Location
Charlotte
You might try changing the bootargs console= value from ttyAMA0 to either ttyAMA1 or ttyAMA2 or possibly ttyS0

Alternately, change the init= value from /linuxrc to /bin/bash
 

Tygunn

Getting comfortable
Joined
Dec 24, 2016
Messages
398
Reaction score
313
I should have recorded this in the past. I was able to enable Telnet so that I could hopefully get into the device and change the boot parameters. But I can't seem to get the right telnet admin/root login password. I've tried:
admin/admin
admin/<admin password>
admin/7ujMko0<admin password>
same variations with root

When uboot starts up I get the "press any key to interrupt boot" fromthe console, but apparently I don't have "any key". :)
 
Last edited:

Tygunn

Getting comfortable
Joined
Dec 24, 2016
Messages
398
Reaction score
313
I also tried using a keyboard connected over USB; can't stop the bootloader. RRR.
 

Tygunn

Getting comfortable
Joined
Dec 24, 2016
Messages
398
Reaction score
313
Derp, changed password back to "admin", and I can use Telnet now. Hahaha.
 

Tygunn

Getting comfortable
Joined
Dec 24, 2016
Messages
398
Reaction score
313
I've set the dh_keyboard value to 0 and rebooted the device.
Now I'm definitely seeing all the stuff I would expect to see in the console.

Okay, as a reference, here is all I did:
Based on: Dahua Enable Telnet

First, on NVR change admin password to "admin"
http://<myip_address>/cgi-bin/configManager.cgi?action=setConfig&Telnet.Enable=true
Authenticate as: admin/admin

Telnet to my ip address.
Use login: admin
Password: admin

Use this command to turn off dh_keyboard:
busybox bootenv dh_keyboard 0

Reboot.

Now, the RS232 console is showing the full trace logs of the NVR. I'm hoping it reboots and I can get some logs!!!
 

Tygunn

Getting comfortable
Joined
Dec 24, 2016
Messages
398
Reaction score
313
Hey, well done, you're you're on the chase.
Are you using PuTTY with full session logging?
Yup that's exactly what I'm doing. Hopefully there is something useful to be gleaned.

Sent from my Pixel XL using Tapatalk
 

Tygunn

Getting comfortable
Joined
Dec 24, 2016
Messages
398
Reaction score
313
Wow, the logs are VERY chatty. Continual logging about WLAN connectivity checks:

23:07:11|[NetProt-258532] error tid:1140 [getAddrInfo:74]Invalid param!
23:07:11|[NetApp-310260] error tid:1140 Src/P2P/P2P.cpp,680: IDNSManager::instance()->getaddrinfo failed
getIntelliFrameInfo success !!!!!!!!!!!
getIntelliFrameInfo success !!!!!!!!!!!
23:07:11|[NetApp-310260] warn tid:1257 CWlanConfigInterface::WLanConnChk. no wlan devices !
getIntelliFrameInfo success !!!!!!!!!!!
23:07:11|trace CDriverManagerImp::OnHotPlugProc
23:07:11|trace hdd_mask = 0
23:07:11|debug tracepoint: Storage/DriverManagerImp.cpp, 2636.
getIntelliFrameInfo success !!!!!!!!!!!
23:07:12|[NetApp-310260] warn tid:1257 CWlanConfigInterface::WLanConnChk. no wlan devices !
 
Joined
Dec 30, 2016
Messages
811
Reaction score
622
Location
Somewhere in the space/time continuum
Wow, the logs are VERY chatty. Continual logging about WLAN connectivity checks:

23:07:11|[NetProt-258532] error tid:1140 [getAddrInfo:74]Invalid param!
23:07:11|[NetApp-310260] error tid:1140 Src/P2P/P2P.cpp,680: IDNSManager::instance()->getaddrinfo failed
getIntelliFrameInfo success !!!!!!!!!!!
getIntelliFrameInfo success !!!!!!!!!!!
23:07:11|[NetApp-310260] warn tid:1257 CWlanConfigInterface::WLanConnChk. no wlan devices !
getIntelliFrameInfo success !!!!!!!!!!!
23:07:11|trace CDriverManagerImp::OnHotPlugProc
23:07:11|trace hdd_mask = 0
23:07:11|debug tracepoint: Storage/DriverManagerImp.cpp, 2636.
getIntelliFrameInfo success !!!!!!!!!!!
23:07:12|[NetApp-310260] warn tid:1257 CWlanConfigInterface::WLanConnChk. no wlan devices !
Please keep us posted on what you see when the NVR shuts down/reboots due to IVS events. Thanks, and great work on getting console access!
 
Top