nvden писал(а):update.img
можешь скачать отсюда
http://www.dh-vision.com/main/firmware/ ... .20130403/
Скачал update.img залил по инструкции, результат:
invaild image name: linux
flwrite error!
В чем может быть проблема?
nvden писал(а):update.img
можешь скачать отсюда
http://www.dh-vision.com/main/firmware/ ... .20130403/
nvden писал(а):update.img
можешь скачать отсюда
http://www.dh-vision.com/main/firmware/ ... .20130403/
Valcom81 писал(а):Скачал update.img залил по инструкции, результат:
invaild image name: linux
flwrite error!
В чем может быть проблема?
iTuneDVR писал(а):Не всегда!
img образ он другой для полного восстановления, а образ флеша тем более.
Т.е. у дахуа идёт 3 файла в каталогах в прошивками: bin, img и полный образ флеша!
Но, можно по частям восстановить, если загрузчик живой!
iTuneDVR писал(а):Лога загрузки регистратора я так и не было представлено!
Код: Выделить всё
Board: STx7108-HDK [32-bit mode]
U-Boot 1.3.1 (svn:645, Feb 22 2013 - 13:46:30) - N6II
DRAM: 128 MiB
SPI: info: found S25FL128P (16MiB) device (page=256,erase=65536)
In: serial
Out: serial
Err: serial
DVR_ORIG_HWID: high_32bit(hex):307942a8 low_32bit(hex):c04e70f0
DVR_ORIG_HWID: video_channel_num=16, dsp_chip=1
Hit any key to stop autoboot: 3 2 1 0
### squashfs loading '/boot/uImage' to 0x80000000
### squashfs load complete: 2190954 bytes loaded to 0x80000000
## Booting image at 80000000 ...
Image Name: Linux-2.6.32.28_stm24_0207-HDK71
Image Type: SuperH Linux Kernel Image (lzma compressed)
Data Size: 2190890 Bytes = 2.1 MiB
Load Address: 82000000
Entry Point: 82001000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1 dh_keyboard=0 load_modules=1 oem_type=N6II - 0x00000000 - 0 ...
Linux version 2.6.32.28_stm24_0207-HDK7108_7108-STSDK (jenkins@localhost.localdomain) (gcc version 4.2.4 (snapshot) (STMicroelectronics/Linux Base 4.2.4-67)) #8 PREEMPT Tue Mar 19 15:44:20 CST 2013, svn:1870
Boot params:
... MOUNT_ROOT_RDONLY - 00000001
... RAMDISK_FLAGS - 00000000
... ORIG_ROOT_DEV - 00000200
... LOADER_TYPE - 00000000
... INITRD_START - 00000000
... INITRD_SIZE - 00000000
Booting machvec: hdk7108
Node 0: start_pfn = 0x42000, low = 0x4a000
Zone PFN ranges:
Normal 0x00042000 -> 0x0004a000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00042000 -> 0x0004a000
STMicroelectronics HDK7108 board initialisation
STx7108 version 2.x, HOST core
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1 dh_keyboard=0 load_modules=1 oem_type=N6II
bpa2: partition 'bigphysarea' created at 0x425cd000, size 6048 kB (0x005e8000 B)
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
PVR=04909300 CVR=60880000 PRR=0000a320
I-cache : n_ways=2 n_sets=512 way_incr=16384
I-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
D-cache : n_ways=2 n_sets=512 way_incr=16384
D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
Memory: 118840k/131072k available (3419k kernel code, 1168k data, 156k init)
Hierarchical RCU implementation.
NR_IRQS:500
Failed to enable clk CLKA0_REF, ignoring
Failed to enable clk CLKA0_PLL0LS, ignoring
Failed to enable clk CLKA1_REF, ignoring
Failed to enable clk CLKA1_PLL0LS, ignoring
Console: colour dummy device 80x25
console [ttyAS0] enabled
sh_tmu: TMU0 used for clock events
sh_tmu: TMU0 used for periodic clock events
sh_tmu: TMU1 used as clock source
Calibrating delay loop... 494.59 BogoMIPS (lpj=247296)
Mount-cache hash table entries: 512
CPU: STx7108
NET: Registered protocol family 16
Configuring FLASH for boot-from-SPI
Configuring GMAC0 for rgmii mode
GMAC1: no PHY found
pci_stm: Setting PCI clock to 33MHz
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Scanning bus 0000:00
pci 0000:00:00.0: found [19e5:3520] class 000400 header type 00
pci 0000:00:01.0: found [19e5:3520] class 000400 header type 00
PCI: Fixups for bus 0000:00
PCI: Bus scan for 0000:00 returning with max=00
PCIe RC Compiled at Mar 19 2013 15:42:19
port:1, miphy->mode:2
Board: STx7108-HDK [32-bit mode]
U-Boot 1.3.1 (svn:645, Feb 22 2013 - 13:46:30) - N6II
DRAM: 128 MiB
SPI: info: found S25FL128P (16MiB) device (page=256,erase=65536)
In: serial
Out: serial
Err: serial
DVR_ORIG_HWID: high_32bit(hex):307942a8 low_32bit(hex):c04e70f0
DVR_ORIG_HWID: video_channel_num=16, dsp_chip=1
Hit any key to stop autoboot: 3 0
HDK7108> printenv
bootargs=mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1
bootcmd=fsload; bootm
bootdelay=3
load_modules=1
logserver=127.0.0.1
da=tftp 0x80000000 u-boot.bin.img; flwrite
dr=tftp 0x80000000 romfs-x.cramfs.img; flwrite
du=tftp 0x80000000 user-x.cramfs.img; flwrite
dw=tftp 0x80000000 web-x.cramfs.img; flwrite
dl=tftp 0x80000000 logo-x.cramfs.img; flwrite
ds=tftp 0x80000000 slave-x.cramfs.img; flwrite
dc=tftp 0x80000000 custom-x.cramfs.img; flwrite
up=tftp 0x80000000 update.img; flwrite
tk=tftp 0x80000000 uImage; bootm
baudrate=115200
oem_type=N6II
ethaddr=90:02:A9:72:79:84
eth1addr=20:11:08:04:17:01
ID=PA1MP05100342
DEVID=DVR
HWID=0000000000000
gatewayip=10.6.0.1
restore=0
serverip=192.168.1.10
ipaddr=192.168.1.50
netmask=255.255.255.0
app=auto 2
appauto=0
dh_keyboard=0
stdin=serial
stdout=serial
stderr=serial
Environment size: 840/16380 bytes
HDK7108> run up
Realtek 8211C found
STM-GMAC: 100Mbs full duplex link detected
TFTP from server 192.168.1.10; our IP address is 192.168.1.50
Filename 'update.img'.
Load address: 0x80000000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#############################################################
done
Bytes transferred = 14287104 (da0100 hex)
## Checking Image at 0x80000040 ...
invaild image name: linux
flwrite error!
HDK7108>
Board: STx7108-HDK [32-bit mode]
U-Boot 1.3.1 (svn:645, Feb 22 2013 - 13:46:30) - N6II
DRAM: 128 MiB
SPI: info: found S25FL128P (16MiB) device (page=256,erase=65536)
In: serial
Out: serial
Err: serial
DVR_ORIG_HWID: high_32bit(hex):307942a8 low_32bit(hex):c04e70f0
DVR_ORIG_HWID: video_channel_num=16, dsp_chip=1
Hit any key to stop autoboot: 3 2 1 0
### squashfs loading '/boot/uImage' to 0x80000000
### squashfs load complete: 2190954 bytes loaded to 0x80000000
## Booting image at 80000000 ...
Image Name: Linux-2.6.32.28_stm24_0207-HDK71
Image Type: SuperH Linux Kernel Image (lzma compressed)
Data Size: 2190890 Bytes = 2.1 MiB
Load Address: 82000000
Entry Point: 82001000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1 dh_keyboard=0 load_modules=1 oem_type=N6II - 0x00000000 - 0 ...
Linux version 2.6.32.28_stm24_0207-HDK7108_7108-STSDK (jenkins@localhost.localdomain) (gcc version 4.2.4 (snapshot) (STMicroelectronics/Linux Base 4.2.4-67)) #8 PREEMPT Tue Mar 19 15:44:20 CST 2013, svn:1870
Boot params:
... MOUNT_ROOT_RDONLY - 00000001
... RAMDISK_FLAGS - 00000000
... ORIG_ROOT_DEV - 00000200
... LOADER_TYPE - 00000000
... INITRD_START - 00000000
... INITRD_SIZE - 00000000
Booting machvec: hdk7108
Node 0: start_pfn = 0x42000, low = 0x4a000
Zone PFN ranges:
Normal 0x00042000 -> 0x0004a000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00042000 -> 0x0004a000
STMicroelectronics HDK7108 board initialisation
STx7108 version 2.x, HOST core
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1 dh_keyboard=0 load_modules=1 oem_type=N6II
bpa2: partition 'bigphysarea' created at 0x425cd000, size 6048 kB (0x005e8000 B)
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
PVR=04909300 CVR=60880000 PRR=0000a320
I-cache : n_ways=2 n_sets=512 way_incr=16384
I-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
D-cache : n_ways=2 n_sets=512 way_incr=16384
D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
Memory: 118840k/131072k available (3419k kernel code, 1168k data, 156k init)
Hierarchical RCU implementation.
NR_IRQS:500
Failed to enable clk CLKA0_REF, ignoring
Failed to enable clk CLKA0_PLL0LS, ignoring
Failed to enable clk CLKA1_REF, ignoring
Failed to enable clk CLKA1_PLL0LS, ignoring
Console: colour dummy device 80x25
console [ttyAS0] enabled
sh_tmu: TMU0 used for clock events
sh_tmu: TMU0 used for periodic clock events
sh_tmu: TMU1 used as clock source
Calibrating delay loop... 494.59 BogoMIPS (lpj=247296)
Mount-cache hash table entries: 512
CPU: STx7108
NET: Registered protocol family 16
Configuring FLASH for boot-from-SPI
Configuring GMAC0 for rgmii mode
GMAC1: no PHY found
pci_stm: Setting PCI clock to 33MHz
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Scanning bus 0000:00
pci 0000:00:00.0: found [19e5:3520] class 000400 header type 00
pci 0000:00:01.0: found [19e5:3520] class 000400 header type 00
PCI: Fixups for bus 0000:00
PCI: Bus scan for 0000:00 returning with max=00
PCIe RC Compiled at Mar 19 2013 15:42:19
port:1, miphy->mode:2
Valcom81 писал(а):Случайно добавил параметр "app=auto 0" путем ввода команды set app auto 0 (ошибочно ввел appauto через пробел) влияет ли он на работу регистратора? И как его убрать?
Код: Выделить всё
da=tftp 0x80000000 u-boot.bin.img; flwrite
dr=tftp 0x80000000 romfs-x.cramfs.img; flwrite
du=tftp 0x80000000 user-x.cramfs.img; flwrite
dw=tftp 0x80000000 web-x.cramfs.img; flwrite
dl=tftp 0x80000000 logo-x.cramfs.img; flwrite
ds=tftp 0x80000000 slave-x.cramfs.img; flwrite
dc=tftp 0x80000000 custom-x.cramfs.img; flwrite
up=tftp 0x80000000 update.img; flwrite
tk=tftp 0x80000000 uImage; bootm
iTuneDVR писал(а):Страшного пока ничего нет, потом можно будет убрать, установив параметр с пустым значением.
А так,вот правильный образ из каталога дахуа. http://iTuneDVR.ru/_ftp/DAHUA/DVR/DVR16 ... update.img
Если он вдруг непойдёт из u-boot командой восстановления, то можно будет попробовать частями, либо обновить прошивкой чуть младше!
Код: Выделить всё
Board: STx7108-HDK [32-bit mode]
U-Boot 1.3.1 (svn:645, Feb 22 2013 - 13:46:30) - N6II
DRAM: 128 MiB
SPI: info: found S25FL128P (16MiB) device (page=256,erase=65536)
In: serial
Out: serial
Err: serial
DVR_ORIG_HWID: high_32bit(hex):307942a8 low_32bit(hex):c04e70f0
DVR_ORIG_HWID: video_channel_num=16, dsp_chip=1
Hit any key to stop autoboot: 3 2 0
HDK7108> printenv
bootargs=mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1
bootcmd=fsload; bootm
bootdelay=3
load_modules=1
logserver=127.0.0.1
da=tftp 0x80000000 u-boot.bin.img; flwrite
dr=tftp 0x80000000 romfs-x.cramfs.img; flwrite
du=tftp 0x80000000 user-x.cramfs.img; flwrite
dw=tftp 0x80000000 web-x.cramfs.img; flwrite
dl=tftp 0x80000000 logo-x.cramfs.img; flwrite
ds=tftp 0x80000000 slave-x.cramfs.img; flwrite
dc=tftp 0x80000000 custom-x.cramfs.img; flwrite
up=tftp 0x80000000 update.img; flwrite
tk=tftp 0x80000000 uImage; bootm
baudrate=115200
oem_type=N6II
ethaddr=90:02:A9:72:79:84
eth1addr=20:11:08:04:17:01
ID=PA1MP05100342
DEVID=DVR
HWID=0000000000000
gatewayip=10.6.0.1
restore=0
serverip=192.168.1.10
ipaddr=192.168.1.50
netmask=255.255.255.0
app=auto
appauto=0
dh_keyboard=0
stdin=serial
stdout=serial
stderr=serial
Environment size: 838/16380 bytes
HDK7108> run up
Realtek 8211C found
STM-GMAC: 100Mbs full duplex link detected
TFTP from server 192.168.1.10; our IP address is 192.168.1.50
Filename 'update.img'.
Load address: 0x80000000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#
done
Bytes transferred = 13979904 (d55100 hex)
## Checking Image at 0x80000040 ...
Header CRC Checking ... OK
Image Name: N6II
Image Type: Blackfin Linux Standalone Program (gzip compressed)
Data Size: 4096 Bytes = 4 KiB
Load Address: a0e60000
Entry Point: a0e80000
Data CRC Checking ... OK
Programing start at: 0xa0e60000
write : 0
write : 0
write : 100
done
## Checking Image at 0x80001080 ...
Header CRC Checking ... OK
Image Name: N6II
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 12582912 Bytes = 12 MiB
Load Address: a0060000
Entry Point: a0ce0000
Data CRC Checking ... OK
Programing start at: 0xa0060000
write : 0
write : 0
write : 1
write : 2
write : 3
write : 4
write : 5
write : 6
write : 7
write : 8
write : 9
write : 10
write : 11
write : 12
write : 13
write : 14
write : 15
write : 16
write : 17
write : 18
write : 19
write : 20
write : 21
write : 22
write : 23
write : 25
write : 26
write : 27
write : 28
write : 29
write : 30
write : 31
write : 32
write : 33
write : 34
write : 35
write : 36
write : 37
write : 38
write : 39
write : 40
write : 41
write : 42
write : 43
write : 44
write : 45
write : 46
write : 47
write : 48
write : 50
write : 51
write : 52
write : 53
write : 54
write : 55
write : 56
write : 57
write : 58
write : 59
write : 60
write : 61
write : 62
write : 63
write : 64
write : 65
write : 66
write : 67
write : 68
write : 69
write : 70
write : 71
write : 72
write : 73
write : 75
write : 76
write : 77
write : 78
write : 79
write : 80
write : 81
write : 82
write : 83
write : 84
write : 85
write : 86
write : 87
write : 88
write : 89
write : 90
write : 91
write : 92
write : 93
write : 94
write : 95
write : 96
write : 97
write : 98
write : 100
done
## Checking Image at 0x80c010c0 ...
Header CRC Checking ... OK
Image Name: N6II
Image Type: Blackfin Linux Standalone Program (gzip compressed)
Data Size: 1392640 Bytes = 1.3 MiB
Load Address: a0ce0000
Entry Point: a0e60000
Data CRC Checking ... OK
Programing start at: 0xa0ce0000
write : 0
write : 0
write : 9
write : 18
write : 27
write : 36
write : 45
write : 54
write : 63
write : 72
write : 81
write : 90
write : 100
done
HDK7108>
Board: STx7108-HDK [32-bit mode]
U-Boot 1.3.1 (svn:645, Feb 22 2013 - 13:46:30) - N6II
DRAM: 128 MiB
SPI: info: found S25FL128P (16MiB) device (page=256,erase=65536)
In: serial
Out: serial
Err: serial
DVR_ORIG_HWID: high_32bit(hex):307942a8 low_32bit(hex):c04e70f0
DVR_ORIG_HWID: video_channel_num=16, dsp_chip=1
Hit any key to stop autoboot: 3 2 1 0
### squashfs loading '/boot/uImage' to 0x80000000
### squashfs load complete: 2190954 bytes loaded to 0x80000000
## Booting image at 80000000 ...
Image Name: Linux-2.6.32.28_stm24_0207-HDK71
Image Type: SuperH Linux Kernel Image (lzma compressed)
Data Size: 2190890 Bytes = 2.1 MiB
Load Address: 82000000
Entry Point: 82001000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1 dh_keyboard=0 load_modules=1 oem_type=N6II - 0x00000000 - 0 ...
Linux version 2.6.32.28_stm24_0207-HDK7108_7108-STSDK (jenkins@localhost.localdomain) (gcc version 4.2.4 (snapshot) (STMicroelectronics/Linux Base 4.2.4-67)) #8 PREEMPT Tue Mar 19 15:44:20 CST 2013, svn:1870
Boot params:
... MOUNT_ROOT_RDONLY - 00000001
... RAMDISK_FLAGS - 00000000
... ORIG_ROOT_DEV - 00000200
... LOADER_TYPE - 00000000
... INITRD_START - 00000000
... INITRD_SIZE - 00000000
Booting machvec: hdk7108
Node 0: start_pfn = 0x42000, low = 0x4a000
Zone PFN ranges:
Normal 0x00042000 -> 0x0004a000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00042000 -> 0x0004a000
STMicroelectronics HDK7108 board initialisation
STx7108 version 2.x, HOST core
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1 dh_keyboard=0 load_modules=1 oem_type=N6II
bpa2: partition 'bigphysarea' created at 0x425cd000, size 6048 kB (0x005e8000 B)
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
PVR=04909300 CVR=60880000 PRR=0000a320
I-cache : n_ways=2 n_sets=512 way_incr=16384
I-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
D-cache : n_ways=2 n_sets=512 way_incr=16384
D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
Memory: 118840k/131072k available (3419k kernel code, 1168k data, 156k init)
Hierarchical RCU implementation.
NR_IRQS:500
Failed to enable clk CLKA0_REF, ignoring
Failed to enable clk CLKA0_PLL0LS, ignoring
Failed to enable clk CLKA1_REF, ignoring
Failed to enable clk CLKA1_PLL0LS, ignoring
Console: colour dummy device 80x25
console [ttyAS0] enabled
sh_tmu: TMU0 used for clock events
sh_tmu: TMU0 used for periodic clock events
sh_tmu: TMU1 used as clock source
Calibrating delay loop... 494.59 BogoMIPS (lpj=247296)
Mount-cache hash table entries: 512
CPU: STx7108
NET: Registered protocol family 16
Configuring FLASH for boot-from-SPI
Configuring GMAC0 for rgmii mode
GMAC1: no PHY found
pci_stm: Setting PCI clock to 33MHz
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Scanning bus 0000:00
pci 0000:00:00.0: found [19e5:3520] class 000400 header type 00
pci 0000:00:01.0: found [19e5:3520] class 000400 header type 00
PCI: Fixups for bus 0000:00
PCI: Bus scan for 0000:00 returning with max=00
PCIe RC Compiled at Mar 19 2013 15:42:19
port:1, miphy->mode:2
Board: STx7108-HDK [32-bit mode]
U-Boot 1.3.1 (svn:645, Feb 22 2013 - 13:46:30) - N6II
DRAM: 128 MiB
SPI: info: found S25FL128P (16MiB) device (page=256,erase=65536)
In: serial
Out: serial
Err: serial
DVR_ORIG_HWID: high_32bit(hex):307942a8 low_32bit(hex):c04e70f0
DVR_ORIG_HWID: video_channel_num=16, dsp_chip=1
Hit any key to stop autoboot: 3 2 0
HDK7108> *
Unknown command '*' - try 'help'
HDK7108> set appauto 1
HDK7108> set dh_keyboard 1
HDK7108> save
Saving Environment to SPI Serial Flash...
HDK7108> printenv
bootargs=mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1
bootcmd=fsload; bootm
bootdelay=3
load_modules=1
logserver=127.0.0.1
da=tftp 0x80000000 u-boot.bin.img; flwrite
dr=tftp 0x80000000 romfs-x.cramfs.img; flwrite
du=tftp 0x80000000 user-x.cramfs.img; flwrite
dw=tftp 0x80000000 web-x.cramfs.img; flwrite
dl=tftp 0x80000000 logo-x.cramfs.img; flwrite
ds=tftp 0x80000000 slave-x.cramfs.img; flwrite
dc=tftp 0x80000000 custom-x.cramfs.img; flwrite
up=tftp 0x80000000 update.img; flwrite
tk=tftp 0x80000000 uImage; bootm
baudrate=115200
oem_type=N6II
ethaddr=90:02:A9:72:79:84
eth1addr=20:11:08:04:17:01
ID=PA1MP05100342
DEVID=DVR
HWID=0000000000000
gatewayip=10.6.0.1
restore=0
serverip=192.168.1.10
ipaddr=192.168.1.50
netmask=255.255.255.0
app=auto
stdin=serial
stdout=serial
stderr=serial
appauto=1
dh_keyboard=1
Environment size: 838/16380 bytes
HDK7108> bootd
### squashfs loading '/boot/uImage' to 0x80000000
### squashfs load complete: 2190954 bytes loaded to 0x80000000
## Booting image at 80000000 ...
Image Name: Linux-2.6.32.28_stm24_0207-HDK71
Image Type: SuperH Linux Kernel Image (lzma compressed)
Data Size: 2190890 Bytes = 2.1 MiB
Load Address: 82000000
Entry Point: 82001000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1 dh_keyboard=1 load_modules=1 oem_type=N6II - 0x00000000 - 0 ...
Valcom81 писал(а):Образ прошился коректно, но регистратор все равно не стартует. Вот лог:
...
В чем может быть проблема?
iTuneDVR писал(а):Проблема скорее всего, что железка немного старовата и предназначена немного под более новое.
Надо пробовать восстановить более ранним образом!
http://iTuneDVR.ru/_ftp/DAHUA/DVR/DVR16 ... update.img
Но, может быть и другая ситуация, что название железки у тебя не совсем совпадает с тем, что на самом деле у тебя, потому и эффект такой
Код: Выделить всё
Board: STx7108-HDK [32-bit mode]
U-Boot 1.3.1 (svn:645, Feb 22 2013 - 13:46:30) - N6II
DRAM: 128 MiB
SPI: info: found S25FL128P (16MiB) device (page=256,erase=65536)
In: serial
Out: serial
Err: serial
DVR_ORIG_HWID: high_32bit(hex):307942a8 low_32bit(hex):c04e70f0
DVR_ORIG_HWID: video_channel_num=16, dsp_chip=1
Hit any key to stop autoboot: 3 2 0
HDK7108> printenv
bootargs=mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1
bootcmd=fsload; bootm
bootdelay=3
load_modules=1
logserver=127.0.0.1
da=tftp 0x80000000 u-boot.bin.img; flwrite
dr=tftp 0x80000000 romfs-x.cramfs.img; flwrite
du=tftp 0x80000000 user-x.cramfs.img; flwrite
dw=tftp 0x80000000 web-x.cramfs.img; flwrite
dl=tftp 0x80000000 logo-x.cramfs.img; flwrite
ds=tftp 0x80000000 slave-x.cramfs.img; flwrite
dc=tftp 0x80000000 custom-x.cramfs.img; flwrite
up=tftp 0x80000000 update.img; flwrite
tk=tftp 0x80000000 uImage; bootm
baudrate=115200
oem_type=N6II
ethaddr=90:02:A9:72:79:84
eth1addr=20:11:08:04:17:01
ID=PA1MP05100342
DEVID=DVR
HWID=0000000000000
gatewayip=10.6.0.1
restore=0
serverip=192.168.1.10
ipaddr=192.168.1.50
netmask=255.255.255.0
appauto=1
dh_keyboard=1
stdin=serial
stdout=serial
stderr=serial
Environment size: 829/16380 bytes
HDK7108> set appauto 0
HDK7108> set dh_keyboard 0
HDK7108> save
Saving Environment to SPI Serial Flash...
HDK7108> printenv
bootargs=mem=128M, console=ttyAS0,115200 bigphysarea=1512 root=/dev/mtdblock1
bootcmd=fsload; bootm
bootdelay=3
load_modules=1
logserver=127.0.0.1
da=tftp 0x80000000 u-boot.bin.img; flwrite
dr=tftp 0x80000000 romfs-x.cramfs.img; flwrite
du=tftp 0x80000000 user-x.cramfs.img; flwrite
dw=tftp 0x80000000 web-x.cramfs.img; flwrite
dl=tftp 0x80000000 logo-x.cramfs.img; flwrite
ds=tftp 0x80000000 slave-x.cramfs.img; flwrite
dc=tftp 0x80000000 custom-x.cramfs.img; flwrite
up=tftp 0x80000000 update.img; flwrite
tk=tftp 0x80000000 uImage; bootm
baudrate=115200
oem_type=N6II
ethaddr=90:02:A9:72:79:84
eth1addr=20:11:08:04:17:01
ID=PA1MP05100342
DEVID=DVR
HWID=0000000000000
gatewayip=10.6.0.1
restore=0
serverip=192.168.1.10
ipaddr=192.168.1.50
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
appauto=0
dh_keyboard=0
Environment size: 829/16380 bytes
HDK7108> run up
Realtek 8211C found
STM-GMAC: 100Mbs full duplex link detected
TFTP from server 192.168.1.10; our IP address is 192.168.1.50
Filename 'update.img'.
Load address: 0x80000000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#
done
Bytes transferred = 14311808 (da6180 hex)
## Checking Image at 0x80000040 ...
invaild image name: linux
flwrite error!
HDK7108>
Board: STx7108-HDK [32-bit mode]
U-Boot 1.3.1 (svn:645, Feb 22 2013 - 13:46:30) - N6II
DRAM: 128 MiB
SPI: info: found S25FL128P (16MiB) device (page=256,erase=65536)
In: serial
Out: serial
Err: serial
DVR_ORIG_HWID: high_32bit(hex):307942a8 low_32bit(hex):c04e70f0
DVR_ORIG_HWID: video_channel_num=16, dsp_chip=1
Hit any key to stop autoboot: 3 2 1 0
HDK7108>
Valcom81 писал(а):Этот образ не подходит:
....
На самой плате написано DVR-1604HF-A, думаю проблема в этом.