I tried backup(copy) NVRAM from remote embedded device using telnet and console access(over a WAN), and save it to a file on local computer.
The MTD partition map for NVRAM:
Code:
MTDs:
dev: size erasesize name
mtd7: 00050000 00010000 "nvram"
Mounts:
...
/dev/mtdblock7 /nvram jffs2 rw 0 0
NVRAMADDR=0x48FB0000
I run on local computer:
Code:
nc -l -p 5555 > nvram.bak
and on remote device:
Code:
dd if=/dev/mtdblock7 bs=00010000 count=5 | nc 192.168.1.20 5555
but got the following:
Code:
BusyBox v1.4.2 (2010-04-30 17:58:45 CST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
~ # dd if=/dev/mtdblock7 bs=00010000 count=5 | nc 192.168.1.20 5555
5+0 records in
5+0 records out
nc: cannot connect to remote host (192.168.1.20): Connection timed out
and on local PC:
Code:
admin@debian:~/Downloads$ nc -l -p 5555 > nvram.bak
Can't grab 0.0.0.0:5555 with bind
What can be the problem?