Окирпичился домофон dahua VTO2000a

Вопросы по восстановлению, настройке, апгрейду, прошивкам и т.п.
nutone
Новичок
Сообщения: 9
Зарегистрирован: 07 янв 2022, 14:53

Re: Окирпичился домофон dahua VTO2000a

Сообщение nutone » 22 янв 2022, 22:28

Остановил загрузку. В терминал отправляю
printenv

Код: Выделить всё

bootcmd=kload 0x82000000; bootm 0x82000000
bootdelay=1
baudrate=115200
ipaddr=192.168.1.108
gatewayip=192.168.1.1
netmask=255.255.255.0
bootfile="uImage"
wifiaddr=00:12:34:56:78:91
dh_keyboard=1
sysbackup=1
loglevel=4
ethact=gmac
verify=n
da=tftp 0x82000000 dhboot.bin.img;flwrite;tftp 0x82000000 dhboot-min.bin.img;nand protect off;flwrite;
dr=tftp 0x82000000 romfs-x.squashfs.img; flwrite;
dk=tftp 0x82000000 kernel.img;flwrite;
du=tftp 0x82000000 user-x.squashfs.img; flwrite
dw=tftp 0x82000000 web-x.squashfs.img; flwrite
dp=tftp 0x82000000 partition-x.cramfs.img;flwrite;
dc=tftp 0x82000000 custom-x.squashfs.img; flwrite
up=tftp 0x82000000 update.img;flwrite;
tk=tftp 0x82000000 uImage;bootm;
HWID=VTO3221D:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
bootargs=mem=349M console=ttyS0,115200 root=/dev/mtdblock7 rootfstype=squashfs
appauto=1
ID=5LxxxxXXXxxxxxx
ethaddr=xx:xx:xx:xx:xx:xx
filesize=4D
fileaddr=82000000
serverip=192.168.1.11
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2010.06-svn7470 (Oct 19 2019 - 15:40:14)

Environment size: 1061/131068 bytes
bootd

Код: Выделить всё

pImgHead->ih_magic:0x27051956
len:2733056,pDest:82000000,offset:0xd00000
   Verifying Checksum ... OK
   Loading Kernel Image ...OK
OK
partition file version 2
rootfstype squashfs root /dev/mtdblock7
fail to load bootargsParameters.txt
fail to load bootargsParameters.txt file
get bootargs info failed
cmdLine mem=349M console=ttyS0,115200 root=/dev/mtdblock7 rootfstype=squashfs
fail to load bootargsParameters.txt
fail to load bootargsParameters.txt file
get bootargs info failed
cmdLine mem=349M console=ttyS0,115200 root=/dev/mtdblock7 rootfstype=squashfs
crashflasg:1, logmagic:54410011.

Starting kernel ...
Uncompressing Linux... done, booting the kernel.
boot

Код: Выделить всё

pImgHead->ih_magic:0x27051956
len:2733056,pDest:82000000,offset:0xd00000
   Verifying Checksum ... OK
   Loading Kernel Image ...OK
OK
partition file version 2
rootfstype squashfs root /dev/mtdblock7
fail to load bootargsParameters.txt
fail to load bootargsParameters.txt file
get bootargs info failed
cmdLine mem=349M console=ttyS0,115200 root=/dev/mtdblock7 rootfstype=squashfs
fail to load bootargsParameters.txt
fail to load bootargsParameters.txt file
get bootargs info failed
cmdLine mem=349M console=ttyS0,115200 root=/dev/mtdblock7 rootfstype=squashfs

Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Попробовал выполнить backup

Код: Выделить всё

partition file version 2
rootfstype squashfs root /dev/mtdblock7
bootfromback:0
backup partition from 0x500000 to 0x3b80000
write 100%
backup custom from 0x600000 to 0x3c80000
write 100%
backup product from 0x980000 to 0x4000000
write 100%
backup Kernel from 0xd00000 to 0x4380000
write 100%
backup romfs from 0x1200000 to 0x4880000
write 100%
backup web from 0x1a00000 to 0x5080000
write 100%
backup data from 0x1e00000 to 0x5480000
write 100%
backup user from 0x2200000 to 0x5880000
erase 28%Skip bad block 0x6000000
write 28%Skip bad block 0x6000000
write 100%
waring! Partition may be destory!

Аватара пользователя
fobos
Специалист
Сообщения: 1116
Зарегистрирован: 21 июн 2014, 18:15

Re: Окирпичился домофон dahua VTO2000a

Сообщение fobos » 23 янв 2022, 19:12

остановите загрузку, сделайте:
setenv dh_keyboard 0
reset
...и полный лог загрузки сюда...скорее всего надо будет просто сделать run up

nutone
Новичок
Сообщения: 9
Зарегистрирован: 07 янв 2022, 14:53

Re: Окирпичился домофон dahua VTO2000a

Сообщение nutone » 24 янв 2022, 18:34

Сделал
putty_serial2022-01-24 19-23-03.png
putty_serial2022-01-24 19-23-03.png (5.69 КБ) 1144 просмотра
изменений не обнаружил, циклическая загрузка

Аватара пользователя
fobos
Специалист
Сообщения: 1116
Зарегистрирован: 21 июн 2014, 18:15

Re: Окирпичился домофон dahua VTO2000a

Сообщение fobos » 24 янв 2022, 21:40

?
Последний раз редактировалось fobos 24 янв 2022, 21:44, всего редактировалось 1 раз.

Аватара пользователя
fobos
Специалист
Сообщения: 1116
Зарегистрирован: 21 июн 2014, 18:15

Re: Окирпичился домофон dahua VTO2000a

Сообщение fobos » 24 янв 2022, 21:44

setenv dh_keyboard 0
saveenv
reset
и вывод сюда в текстовом виде

nutone
Новичок
Сообщения: 9
Зарегистрирован: 07 янв 2022, 14:53

Re: Окирпичился домофон dahua VTO2000a

Сообщение nutone » 30 янв 2022, 17:00

Вот что получил в выводе:

Код: Выделить всё

> reset
resetting ...


U-Boot 2010.06-svn7470 (Oct 19 2019 - 15:40:14)
DRAM:  1 GiB
gBootLogPtr:80b80008.
NAND:  Check nand flash controller v610. found
Special NAND id table Version 1.36
Nand ID: 0x98 0xF1 0x80 0x15 0xF2 0x16 0x08 0x00
ECC provided by Flash Memory Controller
128 MiB
partition file version 2
rootfstype squashfs root /dev/mtdblock7
fail to load bootargsParametersV22.txt
fail to load bootargsParametersV21.txt
fail to init bootargsParametersV2
In:    serial
Out:   serial
Err:   serial
TEXT_BASE:81000000
Net:   PHY found at 3

partition file version 2
rootfstype squashfs root /dev/mtdblock7
ETH0: PHY(phyaddr=-1, rmii) link UP: DUPLEX=FULL : SPEED=100M
Using gmac device
Download Filename 'upgrade_info_7db780a713a4.txt'.
Downloading: *
Retry count exceeded; starting again
Try again use backup_serverip
ETH0: PHY(phyaddr=-1, rmii) link UP: DUPLEX=FULL : SPEED=100M
*** ERROR: `serverip' not set
Failed to get info.txt
Fail to get info file!
Init error!
ETH0: PHY(phyaddr=-1, rmii) link UP: DUPLEX=FULL : SPEED=100M
Using gmac device
Download Filename 'failed.txt'.
Downloading: *
Retry count exceeded; starting again
Support backupVer:255
state:ff,err_count:02
fail to load bootargsParameters.txt
fail to load bootargsParameters.txt file
get bootargs info failed
cmdLine mem=349M console=ttyS0,115200 root=/dev/mtdblock7 rootfstype=squashfs
hmagic=0xffffffff
Before write boot backup version page, it should be erased!!!
pImgHead->ih_magic:0x27051956
len:2733056,pDest:82000000,offset:0xd00000
   Verifying Checksum ... OK
   Loading Kernel Image ...OK
OK
partition file version 2
rootfstype squashfs root /dev/mtdblock7
fail to load bootargsParameters.txt
fail to load bootargsParameters.txt file
get bootargs info failed
cmdLine mem=349M console=ttyS0,115200 root=/dev/mtdblock7 rootfstype=squashfs
crashflasg:1, logmagic:54410011.

Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Linux version 3.4.35 (jenkins@d7c655f17eeb) (gcc version 4.8.3 20131202 (prerelease) (Hisilicon_v300) ) #1 Sat Oct 19 15:51:29 CST 2019
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: hi3516a
U-Boot 0x100000 0x200000 0x0
hwid 0x100000 0x300000 0x0
updateflag 0x100000 0x400000 0x0
partition 0x100000 0x500000 0x0
custom 0x380000 0x600000 0x0
product 0x380000 0x980000 0x0
Kernel 0x500000 0xd00000 0x0
romfs 0x800000 0x1200000 0x0
web 0x400000 0x1a00000 0x0
data 0x400000 0x1e00000 0x0
user 0x1980000 0x2200000 0x0
syslog 0x400000 0x7200000 0x0
config 0x400000 0x7600000 0x0
backup 0x400000 0x7a00000 0x0
gLogRamRes: start=0x95c7e000;size=0x80000
Ignoring unrecognised tag 0x44040416
mem_relimitAddr:0x95cfe000
init gLogRamRes: start=0x95c7e000;size=0x80000
init mem_relimitAddr:0x95cfe000
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 88646
Kernel command line: mem=349M console=ttyS0,115200 root=/dev/mtdblock7 rootfstype=squashfs
dh_keyboard:0
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 349MB = 349MB total
Memory: 348192k/348192k available, 9184k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xd6000000 - 0xff000000   ( 656 MB)
    lowmem  : 0xc0000000 - 0xd5d00000   ( 349 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc04d3000   (4908 kB)
      .init : 0xc04d3000 - 0xc04f39b8   ( 131 kB)
      .data : 0xc04f4000 - 0xc0522c40   ( 188 kB)
       .bss : 0xc0522e04 - 0xc0546758   ( 143 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:128
sched_clock: 32 bits at 49MHz, resolution 20ns, wraps every 86767ms
Console: colour dummy device 80x30
Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x803b04d8 - 0x803b0530
devtmpfs: initialized
NET: Registered protocol family 16
Serial: AMBA PL011 UART driver
uart:0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
console [ttyS0] enabled
uart:1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
uart:2: ttyAMA2 at MMIO 0x200a0000 (irq = 42) is a PL011 rev2
uart:3: ttyAMA3 at MMIO 0x20230000 (irq = 43) is a PL011 rev2
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
Switching to clocksource timer0
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NFS: Registering the id_resolver key type
msgmni has been set to 680
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
loop: module loaded
Found Nand Flash Controller V610.
Nand ID: 0x98 0xF1 0x80 0x15 0xF2 0x16 0x08 0x00
Nand: Toshiba NAND 128MiB 3,3V 8-bit
Nand(HW-Auto): Block:128KB Page:2KB OOB:64B ECC:4bit/512 Chip:128MB*1
hinfc_os_add_paratitions nr_parts:0.
Creating 14 MTD partitions on "hinand":
0x000000200000-0x000000300000 : "U-Boot"
0x000000300000-0x000000400000 : "hwid"
0x000000400000-0x000000500000 : "updateflag"
0x000000500000-0x000000600000 : "partition"
0x000000600000-0x000000980000 : "custom"
0x000000980000-0x000000d00000 : "product"
0x000000d00000-0x000001200000 : "Kernel"
0x000001200000-0x000001a00000 : "romfs"
0x000001a00000-0x000001e00000 : "web"
0x000001e00000-0x000002200000 : "data"
0x000002200000-0x000003b80000 : "user"
0x000007200000-0x000007600000 : "syslog"
0x000007600000-0x000007a00000 : "config"
0x000007a00000-0x000007e00000 : "backup"
Higmac dma_sg_phy: 0x95a00000
higmac_mdio_bus: probed
ETH0: rmii, phy_addr=0, mii_name=mdio0
PPP generic driver version 2.4.2
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
hiusb-ehci hiusb-ehci.0: HIUSB EHCI
hiusb-ehci hiusb-ehci.0: new USB bus registered, assigned bus number 1
hiusb-ehci hiusb-ehci.0: irq 53, io mem 0x100b0000
hiusb-ehci hiusb-ehci.0: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
i2c-simulate i2c-simulate.2: Hisilicon [i2c-2] probed!
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (5440 buckets, 21760 max)
xt_time: kernel timezone is -0000
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
safe_abn_init : Failed to open /proc/net/sockstat
safe_abn_init : Failed to open /proc/net/sockstat6
VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
devtmpfs: mounted
devtmpfs: mounted
Freeing init memory: 128K
mount: mounting tmpfs on /tmp failed: No such file or directory
mknod: /dev/console: File exists
mknod: /dev/null: File exists
udev[525]: starting version 164
chmod: /dev/fd: Operation not permitted
chmod: /dev/fd: Operation not permitted

yaffs: dev is 32505866 name is "mtdblock10" rw
yaffs: passed flags ""
UBI: attaching mtd11 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: max. sequence number:       35635
UBI: attached mtd11 to ubi0
UBI: MTD device name:            "syslog"
UBI: MTD device size:            4 MiB
UBI: number of good PEBs:        32
UBI: number of bad PEBs:         0
UBI: number of corrupted PEBs:   0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             6
UBI: total number of reserved PEBs: 26
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 1279/1114
UBI: image sequence number:  -865011000
UBI: background thread "ubi_bgt0d" started, PID 736
UBI device number 0, total 32 LEBs (4063232 bytes, 3.9 MiB), available 6 LEBs (761856 bytes, 744UBI error: ubi_create_volume: cannot create volume 1, error -17
.0 KiB), LEB size 126976 bytes (124.0 KiB)
ubimkvol: error!: cannot UBI create volume
          error 17 (File exists)
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "syslog"
UBIFS: file system size:   1523712 bytes (1488 KiB, 1 MiB, 12 LEBs)
UBIFS: journal size:       888833 bytes (868 KiB, 0 MiB, 5 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  71968 bytes (70 KiB)
UBI: attaching mtd12 to ubi1
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: max. sequence number:       126877
UBI: attached mtd12 to ubi1
UBI: MTD device name:            "config"
UBI: MTD device size:            4 MiB
UBI: number of good PEBs:        32
UBI: number of bad PEBs:         0
UBI: number of corrupted PEBs:   0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             6
UBI: total number of reserved PEBs: 26
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 4487/3965
UBI: image sequence number:  -1339662747
UBI: background thread "ubi_bgt1d" started, PID 745
UBI device number 1, total 32 LEBs (4063232 bytes, 3.9 MiB), available 6 LEBs (761856 bytes, 744.0 KiB),UBI error: ubi_create_volume: cannot create volume 1, error -17
 LEB size 126976 bytes (124.0 KiB)
ubimkvol: error!: cannot UBI create volume
          error 17 (File exists)
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 1, volume 0, name "config"
UBIFS: file system size:   1523712 bytes (1488 KiB, 1 MiB, 12 LEBs)
UBIFS: journal size:       888833 bytes (868 KiB, 0 MiB, 5 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  71968 bytes (70 KiB)
UBI: attaching mtd13 to ubi2
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: max. sequence number:       7348
UBI: attached mtd13 to ubi2
UBI: MTD device name:            "backup"
UBI: MTD device size:            4 MiB
UBI: number of good PEBs:        32
UBI: number of bad PEBs:         0
UBI: number of corrupted PEBs:   0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             6
UBI: total number of reserved PEBs: 26
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 369/230
UBI: image sequence number:  -1587060655
UBI: background thread "ubi_bgt2d" started, PID 754
UBI device number 2, total 32 LEBs (4063232 bytes, 3.9 MiB), available 6 LEBs (761856 bytes, 744.0 KiB),UBI error: ubi_create_volume: cannot create volume 1, error -17
 LEB size 126976 bytes (124.0 KiB)
ubimkvol: error!: cannot UBI create volume
          error 17 (File exists)
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 2, volume 0, name "backup"
UBIFS: file system size:   1523712 bytes (1488 KiB, 1 MiB, 12 LEBs)
UBIFS: journal size:       888833 bytes (868 KiB, 0 MiB, 5 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  71968 bytes (70 KiB)
keyboard = 0
mount: mounting devpts on /dev/pts failed: Device or resource busy
/etc/init.d/rcS: line 90: /usr/etc/imod: not found
appauto=1
/usr/etc/app.sh not found!
keyboard = 0
Date&Time: Nov 15 2018 16:04:20
Revision: 48257
Enter 'help' for a list of commands (dsh)

add LD_LIBRARY_PATH
#

Аватара пользователя
fobos
Специалист
Сообщения: 1116
Зарегистрирован: 21 июн 2014, 18:15

Re: Окирпичился домофон dahua VTO2000a

Сообщение fobos » 31 янв 2022, 22:44

показывайте серийник, дам update.img, через tftp сделаете run up

nutone
Новичок
Сообщения: 9
Зарегистрирован: 07 янв 2022, 14:53

Re: Окирпичился домофон dahua VTO2000a

Сообщение nutone » 03 фев 2022, 10:11

Нет прав на личные сообщения. Подскажите, пожалуйста, безопасный способ сообщить серийник. Спасибо

nutone
Новичок
Сообщения: 9
Зарегистрирован: 07 янв 2022, 14:53

Re: Окирпичился домофон dahua VTO2000a

Сообщение nutone » 05 фев 2022, 10:05

сюда положил серийник, тут фото коробки устройства

nutone
Новичок
Сообщения: 9
Зарегистрирован: 07 янв 2022, 14:53

Re: Окирпичился домофон dahua VTO2000a

Сообщение nutone » 06 июн 2022, 18:05

fobos писал(а):
31 янв 2022, 22:44
показывайте серийник, дам update.img, через tftp сделаете run up
Видимо, не смогли посмотреть серийник с облака, продублирую текстом "5L0733APAZ86124"

Ответить

Вернуться в «Восстановление и настройка»