Монтирование YAFFS2 раздела NAND

Вопросы по восстановлению, настройке, апгрейду, прошивкам и т.п.
Ответить
kankan
Новичок
Сообщения: 21
Зарегистрирован: 19 фев 2016, 13:26

Монтирование YAFFS2 раздела NAND

Сообщение kankan » 20 дек 2023, 15:05

Друзья всем привет, давно не был на форуме. Но видимо пришло время, есть несколько вопросов.
Может есть у кого подобный опыт, или дайте пожалуйста стоящий совет или наводку. :facepalm:

Вопрос:
Как смонтировать образ из NAND чипа устройства, что бы можно было получить доступ к его файловой системе раздела rootfs?

Что делаю.
Виртуализирую NAND в Ubuntu повторяя геометрию чипа, заливаю имижд партиции в mtdX, монтирую yaffs2. При этом ошибок нет, конфликты отсутствую (или я их не вижу), но в примонтированной области нет данных.

Полный лог действий в Ubuntu

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

alex@vb:~$ sudo -i
[sudo] password for alex: 
root@vb:~# modprobe mtd
root@vb:~# modprobe mtdblock
root@vb:~# modprobe nandsim first_id_byte=0x98 second_id_byte=0xd1 third_id_byte=0x90 fourth_id_byte=0x15 parts=4,28,992
root@vb:~# dmesg|tail
[  382.818042] bits in OOB size: 6
[  382.818043] flash size with OOB: 135168 KiB
[  382.818044] page address bytes: 4
[  382.818045] sector address bytes: 2
[  382.818046] options: 0x8
[  382.818159] Scanning device for bad blocks
[  382.822012] Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
[  382.822016] 0x000000000000-0x000000080000 : "NAND simulator partition 0"
[  382.823490] 0x000000080000-0x000000400000 : "NAND simulator partition 1"
[  382.824834] 0x000000400000-0x000008000000 : "NAND simulator partition 2"
root@vb:~# mtdinfo --all
Count of MTD devices:           3
Present MTD devices:            mtd0, mtd1, mtd2
Sysfs interface supported:      yes

mtd0
Name:                           NAND simulator partition 0
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          4 (524288 bytes, 512.0 KiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:0
Bad blocks are allowed:         true
Device is writable:             true

mtd1
Name:                           NAND simulator partition 1
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          28 (3670016 bytes, 3.5 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:2
Bad blocks are allowed:         true
Device is writable:             true

mtd2
Name:                           NAND simulator partition 2
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          992 (130023424 bytes, 124.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:4
Bad blocks are allowed:         true
Device is writable:             true

root@vb:~# md5sum /mnt/Shared/rootfs.236569.bin
b0b237a4bd0c64cc96b42cbd55203e73  /mnt/Shared/rootfs.236569.bin
root@vb:~# md5sum /dev/mtd2
31918c728a551fbc637b0de7d09b6128  /dev/mtd2
root@vb:~# dd if=/mnt/Shared/rootfs.236569.bin of=/dev/mtd2
253952+0 records in
253952+0 records out
130023424 bytes (130 MB) copied, 9,55418 s, 13,6 MB/s
root@vb:~# md5sum /dev/mtd2
b0b237a4bd0c64cc96b42cbd55203e73  /dev/mtd2
root@vb:~# ls -al /mnt/image/
total 8
drwxr-xr-x 2 root root 4096 дек.  19 14:22 .
drwxr-xr-x 4 root root 4096 дек.  19 14:22 ..
root@vb:~# mount -t yaffs2 /dev/mtdblock2 /mnt/image/
root@vb:~# dmesg|tail
[  382.818159] Scanning device for bad blocks
[  382.822012] Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
[  382.822016] 0x000000000000-0x000000080000 : "NAND simulator partition 0"
[  382.823490] 0x000000080000-0x000000400000 : "NAND simulator partition 1"
[  382.824834] 0x000000400000-0x000008000000 : "NAND simulator partition 2"
[  392.926209] yaffs: dev is 32505858 name is "mtdblock2" rw
[  392.926211] yaffs: passed flags ""
[  392.926212] yaffs: yaffs: Attempting MTD mount of 31.2,"mtdblock2"
[  392.927773] yaffs: 0 blocks to be sorted...
[  392.928059] yaffs: yaffs_read_super: is_checkpointed 0
root@vb:~# ls -al /mnt/image/
total 8
drwxr-xr-x 1 root root 2048 дек.  20 15:25 .
drwxr-xr-x 4 root root 4096 дек.  19 14:22 ..
drwx------ 1 root root 2048 дек.  20 15:25 lost+found
root@vb:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        39G  8,8G   29G  24% /
udev            1,9G  4,0K  1,9G   1% /dev
tmpfs           781M  800K  780M   1% /run
none            5,0M     0  5,0M   0% /run/lock
none            2,0G  124K  2,0G   1% /run/shm
Shared          470G  371G  100G  79% /mnt/Shared
/dev/mtdblock2  124M  1,2M  123M   1% /mnt/image
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# 
root@vb:~# umount /mnt/image/
root@vb:~# rmmod nandsim
root@vb:~# dmesg|tail
[  382.822016] 0x000000000000-0x000000080000 : "NAND simulator partition 0"
[  382.823490] 0x000000080000-0x000000400000 : "NAND simulator partition 1"
[  382.824834] 0x000000400000-0x000008000000 : "NAND simulator partition 2"
[  392.926209] yaffs: dev is 32505858 name is "mtdblock2" rw
[  392.926211] yaffs: passed flags ""
[  392.926212] yaffs: yaffs: Attempting MTD mount of 31.2,"mtdblock2"
[  392.927773] yaffs: 0 blocks to be sorted...
[  392.928059] yaffs: yaffs_read_super: is_checkpointed 0
[  435.614602] yaffs: yaffs_put_super
[  435.614633] yaffs: yaffs_put_super done
root@vb:~# 
То есть раздел монтируется, но данных в нём почему-то нет

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

root@vb:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        39G  8,8G   29G  24% /
udev            1,9G  4,0K  1,9G   1% /dev
tmpfs           781M  800K  780M   1% /run
none            5,0M     0  5,0M   0% /run/lock
none            2,0G  124K  2,0G   1% /run/shm
Shared          470G  371G  100G  79% /mnt/Shared
/dev/mtdblock2  124M  1,2M  123M 1% /mnt/image
Ожидается гораздо больше использование
/dev/mtdblock2 124M 1,2M 123M 1% /mnt/image

Что имеется.
1. Скомпилированное ядро с yaffs2 для Ubuntu 12.04, всё скомпилировано без ошибок, работает, запускается.
2. Имеются дампы из NAND памяти устройства. Локально выгруженные через UBOOT, NAND вытирал, назад загружал образы партиций, записывал в NAND, всё работает.
uboot.bin
kernel
rootfs

3. Есть полный лог загрузки устройства, данные env, ну и всё что можно было глянуть в окружении uboot.

Полный лог загрузки устройства

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



System startup

Uncompress Ok!

U-Boot 2016.11 (Jul 06 2019 - 17:00:48 +0800)hi3516cv500

Relocation Offset is: 0f6e4000
Relocating to 8fee4000, new gd at 8fe83ef0, sp at 8fe83ed0
SPI Nor:  Boot Media isn't SPI Nor
NAND:  Check Flash Memory Controller v100 ... Found
SPI Nand ID Table Version 2.7
SPI Nand(cs 0) ID: 0xc2 0x12 Name:"MX35LF1GE4AB"
Block:128KB Page:2KB OOB:64B ECC:4bit/512
Chipsize:128 MiB
MMC:
In:    serial
Out:   serial
Err:   serial
Net:   eth0
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x80000, size 0x380000
 3670016 bytes read: OK
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-4.9.37
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3596937 Bytes = 3.4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.37 (dev@devnix01) (gcc version 6.3.0 (HC&C V100R002C00B035_20190218) ) #22 SMP Fri Jul 30 10:38:56 +07 2021
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Hisilicon HI3516CV500 DEMO Board
cmz zone is not set!
cma: Reserved 16 MiB at 0x87000000
Memory policy: Data cache writealloc
percpu: Embedded 13 pages/cpu @c6eca000 s21772 r8192 d23284 u53248
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: mem=128M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=yaffs2 rw mtdparts=hinand:512K(boot),3584K(kernel),124M(rootfs)
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)
Memory: 104660K/131072K available (5120K kernel code, 181K rwdata, 1284K rodata, 1024K init, 287K bss, 10028K reserved, 16384K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0600000   (6112 kB)
      .init : 0xc0800000 - 0xc0900000   (1024 kB)
      .data : 0xc0900000 - 0xc092d700   ( 182 kB)
       .bss : 0xc092f000 - 0xc0976fd8   ( 288 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 32.
NR_IRQS:16 nr_irqs:16 16
Gic dist init...
arm_arch_timer: Architected cp15 timer(s) running at 50.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns
Switching to timer-based delay loop, resolution 20ns
clocksource: hisp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=500000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80100000 - 0x80100058
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (200.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Serial: AMBA PL011 UART driver
120a0000.uart: ttyAMA0 at MMIO 0x120a0000 (irq = 21, base_baud = 0) is a PL011 rev2
console [ttyAMA0] enabled
uart-pl011 120a1000.uart: aliased and non-aliased serial devices found in device tree. Serial port enumeration may be unpredictable.
120a1000.uart: ttyAMA1 at MMIO 0x120a1000 (irq = 22, base_baud = 0) is a PL011 rev2
uart-pl011 120a2000.uart: aliased and non-aliased serial devices found in device tree. Serial port enumeration may be unpredictable.
120a2000.uart: ttyAMA2 at MMIO 0x120a2000 (irq = 23, base_baud = 0) is a PL011 rev2
uart-pl011 120a4000.uart: aliased and non-aliased serial devices found in device tree. Serial port enumeration may be unpredictable.
120a4000.uart: ttyAMA3 at MMIO 0x120a4000 (irq = 24, base_baud = 0) is a PL011 rev2
SCSI subsystem initialized
ssp-pl022 120c0000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 120c0000.spi: mapped registers from 0x120c0000 to c8840000
ssp-pl022 120c0000.spi: Failed to work in dma mode, work without dma!
ssp-pl022 120c1000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 120c1000.spi: mapped registers from 0x120c1000 to c8844000
ssp-pl022 120c1000.spi: Failed to work in dma mode, work without dma!
ssp-pl022 120c2000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 120c2000.spi: mapped registers from 0x120c2000 to c8846000
ssp-pl022 120c2000.spi: Failed to work in dma mode, work without dma!
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Linux video capture interface: v2.00
clocksource: Switched to clocksource hisp804
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 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.
workingset: timestamp_bits=30 max_order=15 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
pl061_gpio 120d0000.gpio_chip: PL061 GPIO chip @0x120d0000 registered
pl061_gpio 120d1000.gpio_chip: PL061 GPIO chip @0x120d1000 registered
pl061_gpio 120d2000.gpio_chip: PL061 GPIO chip @0x120d2000 registered
pl061_gpio 120d3000.gpio_chip: PL061 GPIO chip @0x120d3000 registered
pl061_gpio 120d4000.gpio_chip: PL061 GPIO chip @0x120d4000 registered
pl061_gpio 120d5000.gpio_chip: PL061 GPIO chip @0x120d5000 registered
pl061_gpio 120d6000.gpio_chip: PL061 GPIO chip @0x120d6000 registered
pl061_gpio 120d7000.gpio_chip: PL061 GPIO chip @0x120d7000 registered
pl061_gpio 120d8000.gpio_chip: PL061 GPIO chip @0x120d8000 registered
pl061_gpio 120d9000.gpio_chip: PL061 GPIO chip @0x120d9000 registered
pl061_gpio 120da000.gpio_chip: PL061 GPIO chip @0x120da000 registered
pl061_gpio 120db000.gpio_chip: PL061 GPIO chip @0x120db000 registered
brd: module loaded
hisi-sfc hisi_spi_nor.0: SPI Nor ID Table Version 1.2
hisi-sfc hisi_spi_nor.0: unrecognized Manufacturer ID
hisi-sfc hisi_spi_nor.0: spi nor register fail!
hisi-sfc: probe of hisi_spi_nor.0 failed with error -2
SPI Nand ID Table Version 2.7
SPI Nand(cs 0) ID: 0xc2 0x12
nand: device found, Manufacturer ID: 0xc2, Chip ID: 0x12
nand: Macronix MX35LF1GE4AB
nand: 128MiB, SLC, page size: 2048
Nand(Auto): OOB:64B
ECC:4bit/512 nand:  ECC provided by Flash Memory Controller
3 cmdlinepart partitions found on MTD device hinand
Creating 3 MTD partitions on "hinand":
0x000000000000-0x000000080000 : "boot"
0x000000080000-0x000000400000 : "kernel"
0x000000400000-0x000008000000 : "rootfs"
libphy: hisi_femac_mii_bus: probed
libphy: Fixed MDIO Bus: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Generic PHY 10011100.mdio:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=10011100.mdio:01, irq=-1)
phy_id=0x001cc816, phy_mode=rmii
hisi-femac 10010000.ethernet: using random MAC address 4a:d5:22:0e:30:6f
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
CSLIP: code copyright 1989 Regents of the University of California.
SLIP linefill/keepalive option.
xhci-hcd 100e0000.xhci_0: xHCI Host Controller
xhci-hcd 100e0000.xhci_0: new USB bus registered, assigned bus number 1
xhci-hcd 100e0000.xhci_0: hcc params 0x0220fe6c hci version 0x110 quirks 0x20010010
xhci-hcd 100e0000.xhci_0: irq 30, io mem 0x100e0000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: xHCI Host Controller
usb usb1: Manufacturer: Linux 4.9.37 xhci-hcd
usb usb1: SerialNumber: 100e0000.xhci_0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd 100e0000.xhci_0: xHCI Host Controller
xhci-hcd 100e0000.xhci_0: new USB bus registered, assigned bus number 2
usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: xHCI Host Controller
usb usb2: Manufacturer: Linux 4.9.37 xhci-hcd
usb usb2: SerialNumber: 100e0000.xhci_0
hub 2-0:1.0: USB hub found
hub 2-0:1.0: hub can't support USB3.0
usbcore: registered new interface driver uas
usbcore: registered new interface driver usb-storage
hibvt_rtc 12080000.rtc: rtc core: registered 12080000.rtc as rtc0
hibvt_rtc 12080000.rtc: RTC driver for hibvt enabled
i2c /dev entries driver
hibvt-i2c 120b0000.i2c: hibvt-i2c0@100000hz registered
hibvt-i2c 120b1000.i2c: hibvt-i2c1@100000hz registered
hibvt-i2c 120b2000.i2c: hibvt-i2c2@100000hz registered
hibvt-i2c 120b3000.i2c: hibvt-i2c3@100000hz registered
hibvt-i2c 120b5000.i2c: hibvt-i2c5@100000hz registered
hibvt-i2c 120b6000.i2c: hibvt-i2c6@100000hz registered
hibvt-i2c 120b7000.i2c: hibvt-i2c7@100000hz registered
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
usbcore: registered new interface driver ushc
himci: mmc host probe
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 10
NET: Registered protocol family 17
l2tp_core: L2TP core driver, V2.0
l2tp_ppp: PPPoL2TP kernel driver, V2.0
l2tp_ip: L2TP IP encapsulation support (L2TPv3)
l2tp_netlink: L2TP netlink interface
l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
Registering SWP/SWPB emulation handler
hibvt_rtc 12080000.rtc: setting system clock to 2023-11-22 04:41:58 UTC (1700628118)
uart-pl011 120a0000.uart: no DMA platform data
yaffs: dev is 32505858 name is "mtdblock2" rw
yaffs: passed flags ""
VFS: Mounted root (yaffs2 filesystem) on device 31:2.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)
[RCS]: /etc/init.d/S00devs
mknod: /dev/console: File exists
mknod: /dev/ttyAMA0: File exists
mknod: /dev/ttyAMA1: File exists
mknod: /dev/null: File exists
[RCS]: /etc/init.d/S01udev
udev[97]: starting version 167
[RCS]: /etc/init.d/S80network
      IP: 192.168.0.99
   BOOTP:
 GATEWAY: 192.168.0.1
 NETMASK: 255.255.255.0
HOSTNAME:
  NEIPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
TDEV: eth0
AUTOCONF:
umount: can't unmount /myapp/: Invalid argument

Please press Enter to activate this console. [run] Version: [1.2.6] Build Time: [Mar 31 2019 21:42:35]
[run] ix3000 start!
SS_SYSLOG_Task started!
SS_FLASH_ReadVipParam In------------- !
SS_FLASH_Rsys_config: loading out-of-tree module taints kernel.
eadVipParam: read uuid 5G13R0VPJ
==========chip: hi3516cv500==========lhhWHX9BEtroWCpulL1gyay
SS_FLASH_ReadVipParam File OK----!
SS_
==========sensor0: imx307==========
Load3516cv500_RtcModules: calledsensor:imx307
!
Module himedia: init ok
Hisilicon Media Memory Zone Manager
hi_osal 1.0 init success!
hi3516cv500_base: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
load sys.ko for Hi3516CV500...OK!
hibvt-i2c 120b3000.i2c: wait idle timeout, RIS: 0x10, SR: 0xa0000
hibvt-i2c 120b3000.i2c: wait idle timeout, RIS: 0x10, SR: 0xa0000
hibvt-i2c 120b3000.i2c: wait rx no empty timeout, RIS: 0x10, SR: 0xa0000
hibvt-i2c 120b3000.i2c: wait idle timeout, RIS: 0x10, SR: 0xa0000
hibvt-i2c 120b3000.i2c: wait idle timeout, RIS: 0x10, SR: 0xa0000
hibvt-i2c 120b3000.i2c: wait idle timeout, RIS: 0x10, SR: 0xa0000
atsha204a_init fail -- no atsha204a found !
hi_atsha_init failed
[io] func:0 lens:1 weigand:0
[io] <2019/07/13> io init success!
register dev
Hisilicon Watchdog Timer: 0.01 initialized. default_margin=60 sec (nodeamon= 1)
hiwtdg init ok. ver=Mar  6 2019, 18:30:10.
<<<memopen: success, s_s32MemDev=3
2023-11-22 04:42:03 <DEBUG > x1 SS_PUB_GetLinuxTime (23-11-22) (23-11-22 4:42:3)
2023-11-22 04:42:03 <DEBUG > Rtc time 23-11-22 4:42:3 1700628123
2023-11-22 04:42:03 <NOTICE> DEVICE POWER ON!
2023-11-22 04:42:03 <INFO  > EVENT:302:Device is starting!
2023-11-22 04:42:03 <NOTICE> MAIN VERSION[3.1.1.0.1.27.1] DS80107P Program Build time is Nov 30 2022 14:07:35
2023-11-22 04:42:03 <DEBUG > Device SearchID = 0x21D1(8657), byDeviceStyling = 0x0, byIrType = 0x1, eSensorCfg = 0x2E
2023-11-22 04:42:03 <DEBUG > DeviceCfg  -- cfg=1  port=1 type=21d1 sensor=2e, autoiris=0, HiSpeed=0, doom=0
2023-11-22 04:42:03 <INFO  > EVENT:000:Sensor TYPE is SENSOR_CMOS_1080P_IMX307
2023-11-22 04:42:03 <NOTICE> SS_FLASload tde.ko for Hi3516CV500...OK!
H_Init Start Read Param ------------- nLen = 207248 (fileSize: 207248)!
SS_FLASH_ReadVipParam In------------- !
SS_FLASH_ReadVload region.ko for Hi3516CV500...OK!
ipParam: read uuid 5G13R0VPJlhhWHX9BEtroWCpulL1gyay
SS_FLASH_ReadVipParam File OK----!
2023-11-22 04:42:03 <NOTICE> SS_FLASH_Init Read Param Ok    ------------- !
SS_FLASH_SetFixParam: ../../hi35xx-ipc-dvs/ss_flash.c, 2204
SS_FLASH_SetFixParam done!
SS_FLASH_CheckParam: ../../hi35xxload gdc.ko for Hi3516CV500...OK!
-ipc-dvs/ss_flash_check.c, 1991
start1 ip:ff16::300
2023-11-22 04:42:03 <NOTICE> xcfg_config_read
SS_Load3516cv500_Modules: called!
load vgs.ko for Hi3516CV500...OK!
load dis.ko for Hi3516CV500...OK!
load vi.ko for Hi3516CV500...OK !
ISP Mod init!
load vpss.ko for Hi3516CV500...OK!
load vo.ko for Hi3516CV500...OK!
load hifb.ko OK!
load rc.ko for Hi3516CV500...OK!
load venc.ko for Hi3516CV500...OK!
load chnl.ko for Hi3516CV500...OK!
load vedu.ko for Hi3516CV500...OK!
load h264e.ko for Hi3516CV500...OK!
load h265e.ko for Hi3516CV500...OK!
load jpege.ko for Hi3516CV500...OK!
load jpegd.ko ....OK!
load hi_vfmw.ko ....OK
load vdec.ko for Hi3516CV500...fail!
load ive.ko for Hi3516CV500...OK!
load nnie.ko for Hi3516CV500...OK!
load hi_piris.ko OK!!
load sensor_spi.ko for Hi3516CV500...OK !
load mipi_rx driver successful!
load mipi_tx driver successful!
 @@@@ NET_FAMILY= 0
2023-11-22 04:42:03 <DEBUG > SS_LOG_ReadFromDisk: Len=10252, nAlarmCount=5, nWritePos=5
2023-11-22 04:42:03 <NOuart-pl011 120a1000.uart: no DMA platform data
TICE> SS_NETTOOL_SetupNetwork Start......
2023-11-22 04:42:03 <NOTICE>IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
 SS_NETTOOL_SetupNetwork Stop...hisi-femac 10010000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
...
2023-11-22 04:42:03 <NOTICE> NetToolThread Start......
SS_NIPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
ETTOOL_INTERFACE_SET_HWADDR: ethuart-pl011 120a4000.uart: no DMA platform data
0 to 18:68:82:33:9C:19
2023-11-22 04:42:03 <INFO  > EVENT:000:Interface eth0 has MAC 18:68:82:33:9C:19
2023-11-22 04:42:03 <NOTICE> WatchEtherThread Start......
...........SS_HTTPS_StartInit..............
2023-11-22 04:42:03 <NOTICE> Start SS_NTP_Task(pid=3035624528) .......
2023-11-22 04:42:03 <DEBUG > SS_RS232_Init processing...
2023-11-22 04:42:03 <DEBUG > ifconfig_up_down(0)------start!
2023-11-22 04:42:03 <DEBUG > SS_COMM_Init(0) = 9600 8 1 n
SS_PAN_Init -- init()
2023-11-22 04:42:03 <DEBUG > SS_COMM_Init(1) = 9600 8 1 n
2023-11-22 04:42:03 <NOTICE> SS_VI_Init Start...
2023-11-22 04:42:03 <DEBUG > SS_NETTOOL_INTERFACE: eth0 is up, dhcp = 1, dhcpDNS = 1
SS_Hi35xx_ViStartVb: enViDevType=46!
2023-11-22 04:42:03 <DEBUG > AnvLib Make On Nov 30 2022 14:07:02
2023-11-22 04:42:03 <NOTICE> busybox-lib started: udhcpc -i eth0 -b -s /usr/share/udhcpc/default.script -O sipsrv
2023-11-22 04:42:03 <NOTICE> busybox-lib: udhcpc: started, v1.28.3
2023-11-22 04:42:03 <DEBUG > SS_RS232_SendData_Task = Running ...
[AnvLib] [SS_Hi3516cv500_ViSetMipiAttr 307] enWDRMode=0, enViDevType=46
vi mipi set lane_divide_mode(0) clock success!
vi enable mipi(0) clock success!
vi reset mipi(0) success!
vi enable sensor(0) clock success!
vi reset sensor(0) success!
vi set mipi(0) attr success!
vi unreset mipi(0) success!
vi unreset sensor(0) success!
SS_Hi3516cv500_ViStartIsp: nSensorType=46, nWidth=1920, nHeight=1080, nWdrMode=1(0)
[AnbLib] Start Dev 0 Success!
Hi3516cv500_VI_StartPipe: ViPipe=0 success!
vi start pipe(0) chn(0) success!
vi awd register isp(0) success!
vi mem init isp(0) success!
---ViStartISP: f32FrameRate = 30.000000, s32X = 0, s32Y = 0, u32Width = 1920, u32Height = 1080, nWdrMode=0
vi set pub attr isp(0) success!
linear mode
2023-11-22 04:42:03 <NOTICE> busybox-lib: udhcpc: sending discover
==============================================================
===Sony imx307 sensor 1080P30fps(MIPI) init success!=====
==============================================================
vi init isp(0) success!
vi start isp(0) success!
Hi3516cv500_ISP_Run: IspDev=0
SS_Hi3516cv500_ViStartVpss: nWidth=1920, nHeight=1080, bRotate=0
vi start vpss grp(0) chn(0) success!
vi start vpss grp(0) chn(3) success!
vi start vpss grp(0) chn(2) success!
vi(0) pipe(0) bind vpss grp(0)
SensorLib Make On Nov 30 2022 14:07:19(bDvs = 0 bIR = 1 nVideoNum = 1 bNTSC = 0)
IMX327 bIR = 1, g_Ntsc = 0, gDeviceStyling = 0, nMode = 1080
sensor_set_vi_ldc: ViPipe=0, enable=1, ratio=30
IMX327_IROptimizerThread started!
sensor_set_brightness: 0 115
sensor_set_hue: 0 128
sensor_set_contr: 0 128
sensor_set_sat: 0 128
sensor_set_sharpen: 0 128
sensor_set_autoawb: ViPipe=0, awb_mode=0
2023-11-22 04:42:03 <DEBUG > sensor_set_gamma: 0 128 5
2023-11-22 04:42:03 <DEBUG > sensor_set_filter_ctrl(0): fd = 6, 1
switch to night!
sensor_set_antifog: ViPipe=0, enable=1
sensor_set_vi_ldc: ViPipe=0, enable=1, ratio=30
sensor_set_rotate: ViPipe=0, mirror=0, flip=0
2023-11-22 04:42:03 <ERROR > HI_MPI_VPSS_SetChnAttr Chn:1 bMirror/bFlip err:0xa0078003
sensor_set_rotate: ViPipe=0, mirror=0, flip=0
2023-11-22 04:42:03 <ERROR > HI_MPI_VPSS_SetChnAttr Chn:1 bMirror/bFlip err:0xa0078003
set VCT_IRCFMODE = 2
sensor_set_sat: 0 128
sensor_set_dci: ViPipe=0, enable=0
2023-11-22 04:42:03 <WARN  > mm = 0 (0)mask handle = 16777215 16777215 16777215 16777215
2023-11-22 04:42:03 <NOTICE> SS_VI_Init Finish...
2023-11-22 04:42:03 <NOTICE> SS_AI_Init ..........audio type 3, chNum 1
SS_AENC_StartChn: nAencChn = 0, nEncType = 3, nSampleRate = 8000, nAiDev = 0, nAiChn = 0
2023-11-22 04:42:03 <NOTICE> SS_AI_Init ..........ok
2023-11-22 04:42:03 <NOTICE> SS_AENC_Init ..........
2023-11-22 04:42:03 <DEBUG > ===========!!!!!!!!@@@@@@@##random: ix3000: uninitialized urandom read (256 bytes read)
##### SS_Hi3516cv500_AencStartChn: gU32DeltaTS = 20, nAencType = 3
2023-11-22 04:42:03 <NOTICE> SS_AENC_Init ..........ok
2023-11-22 04:42:03 <NOTICE> SS_ADEC_Init ..........
2023-11-22 04:42:03 <NOTICE> Start SS_AENC_GetStream_Task(pid = 2958193744) ....(0 0 0)
2023-11-22 04:42:03 <NOTICE> SS_ADEC_Init ..........ok
2023-11-22 04:42:03 <DEBUG > SS_Hi3516cv500_AoStartDev: AoDevId = 0, nSampleRate = 8000, nPlatformType = 1, nAudioType = 3
2023-11-22 04:42:03 <NOTICE> Start SS_ADEC_Task(pid=2932368464) .......
2023-11-22 04:42:03 <DEBUG > SS_Hi3516cv500_AoSetOutputVol: reduce output volume from 12 to 22
2023-11-22 04:42:03 <NOTICE> SS_AO_Init: nAudioType = 3, nSampleRate = 8000, AudioOutPtNumPerFrm = 160, AudioOutFrameSize = 160
[AnvLib] [SS_Hi3516cv500_VencStart 352] nCh:0 nMinEnc:0 nViFrmRate:25
[AnvLib]: nMinEnc=0, EncType:1, nBitflowType:1, dwBitrate:2048
2023-11-22 04:42:03 <NOTICE> SS_AO_Init ..........ok
[AnvLib] [SS_Hi3516cv500_VencStart 352] nCh:0 nMinEnc:1 nViFrmRate:25
[AnvLib]: nMinEnc=1, EncType:1, nBitflowType:0, dwBitrate:348
2023-11-22 04:42:03 <NOTICE> SS_VENC_Init Start...
2023-11-22 04:42:03 <DEBUG > max ------------------------ 1555200, 1555200
2023-11-22 04:42:03 <NOTICE> SS_VENC_InitEncoder(0, 0), viDev = 0, viChn = 0, VeChn = 0, VeGroup = 0, vencChnStatus = 0, vencGroupStatus = 0
2023-11-22 04:42:03 <NOTICE> SS_VENC_InitEncoder(0, 1), viDev = 0, viChn = 0, VeChn = 1, VeGroup = 1, vencChnStatus = 0, vencGroupStatus = 0
[AnvLib] [SS_Hi3516cv500_VencStart 352] nCh:0 nMinEnc:2 nViFrmRate:25
2023-11-22 04:42:03 <NOTICE> SS_VENC_InitEncoder(0, 2), viDev = 0, viChn = 0, VeChn = 2, VeGroup = 2, vencChnStatus = 0, vencGroupStatus = 0
2023-11-22 04:42:03 <NOTICE> SS_VENC_Init End...
executeDbRequest: CREATE TABLE IF NOT EXISTS keys (id INTEGER PRIMARY KEY, value INTEGER)
2023-11-22 04:42:03 <NOTICE> Start SS_ALARMIN_Task(2865296464) .......
2023-11-22 04:42:03 <DEBUG > Start SS_PPPOE_Task(pid=2873685072) .......
2023-11-22 04:42:03 <NOTICE> Start SS_GetMotionResult_Task(2856907856) .......
SS_OSD_Init: SS_Create_Osd nCh=0, nEnc=0, osdType=0, bShow=1
2023-11-22 04:42:03 <DEBUG > fix_osd_pos(0, 0, 0): x=0, y=0, width=736(269), height=32(17)
#####SS_Hi3516cv500_RegionCreate(0, 0): enType=0, u32Layer=0
SS_ALARMOUT_SendPulseTask thread started!
2023-11-22 04:42:03 <ERROR > SS_ALARMOUT_NC311LoadCode: unable to open file /etc/nc311.dat, No such file or directory(2)!
SS_OSD_Init: SS_Create_Osd nCh=0, nEnc=0, osdType=1, bShow=0
2023-11-22 04:42:03 <DEBUG > fix_osd_pos(0, 0, 1): x=0, y=544, width=0(0), height=32(17)
SS_OSD_Init: SS_Create_Osd nCh=0, nEnc=1, osdType=0, bShow=1
#####SS_Hi3516cv500_RegionCreate(0, 1): enType=0, u32Layer=0
SS_OSD_Init: SS_Create_Osd nCh=0, nEnc=1, osdType=1, bShow=0
SS_OSD_Init: SS_Create_Osd nCh=0, nEnc=2, osdType=0, bShow=1
#####SS_Hi3516cv500_RegionCreate(0, 2): enType=0, u32Layer=0
SS_OSD_Init: SS_Create_Osd nCh=0, nEnc=2, osdType=1, bShow=0
2023-11-22 04:42:03 <DEBUG > Start SS_UPNP_Task(pid=2823251024) .......
SS_SMTP_Init: initializing SMTP client...!
2023-11-22 04:42:03 <INFO  > EVENT:000:UPnP: miniupnp_main task started
2023-11-22 04:42:03 <ERROR > UPnP: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
Error parsing address/mask (or interface name) : eth0
2023-11-22 04:42:03 <ERROR > miniUpnpAddLanAddr:592: errcode=-1. parselanaddr call failed: can't parse "eth0" as valid lan address

2023-11-22 04:42:03 <ERROR > init:680: previous function call returned errcode=-1.
2023-11-22 04:42:03 <ERROR > miniupnp_main:896: previous function call returned errcode=-1.
2023-11-22 04:42:03 <INFO  > EVENT:000:UPnP: miniupnp_main task stopped
2023-11-22 04:42:03 <DEBUG > Start SS_DDNS_Task(pid=2806473808) .......
SS_HTTPEVENT_Task started
himfs lib Make On Nov 30 2022 14:07:16
2023-11-22 04:42:03 <DEBUG > HiMFS_Init ---- start
HiPREC_InitModule: g_prerecord_time=5, g_prerecord_bufsize=2097152
HiMFS_SetRecordPackTime == 300
2023-11-22 04:42:03 <DEBUG > HiMFS_Init ---- end(4)
2023-11-22 04:42:03 <DEBUG > SS_SHOOT_Init --------------
2023-11-22 04:42:03 <DEBUG > @@@@@@@@ SS_ONVIF_INIT -------------------
2023-11-22 04:42:03 <DEBUG > Start HiDEV_DiskMonitorThread(158)  --------------
SS_PUB_InitSDCard called!
onvif discovery Make On Nov 30 2022 14:08:13
Start gs_probe(pid=158).......
2023-11-22 04:42:03 <NOTICE> SSSNet_Init IPV4 Start....
2023-11-22 04:42:03 <NOTICE> Modify System KeepAlive Start....
2023-11-22 04:42:03 <NOTICE> Start WebServerProcess(pid=2695320656) .......
###SS_AENC_GetStampInternel: __HiBitSelect=0, pPTS=746, pPTSLast=726
..byHttpsWebFlag=0...
websInitSessionId: 53C4016C9eE47811
websOrandom: fast init done
penServer IPV4 in,Make On Nov 30 2022 14:07:26
...nHttpsWebFlag=0..
===socketOpenConnection(0, 0x9fe15c20): sock = 39, host = (null), port = 80===
webs: Listening for HTTP requests at address 192.168.0.99
webs: onvif works through a web server listener on port 80
2023-11-22 04:42:03 <NOTICE> Modify System KeepAlive End....
net lib Make On Nov 30 2022 14:07:07
===InitStream(0): nPoolCount1=1012, nPoolCount2=198
2023-11-22 04:42:03 <NOTICE> SSSNet_Init IPV4 Finish....
2023-11-22 04:42:03 <NOTICE> SSSNet_Start Start....
2023-11-22 04:42:03 <NOTICE> TaskUdpListen Start.....
2023-11-22 04:42:03 <NOTICE> MulticastListen Start(2668815440).....
2023-11-22 04:42:03 <DEBUG > SS_Sock_Bind_Interface bind 42 to eth0 ok
2023-11-22 04:42:03 <NOTICE> TaskMulticastPreview Start(0)(pid=2660426832).....
2023-11-22 04:42:03 <NOTICE> TaskTcpListen Start(158).....
2023-11-22 04:42:03 <NOTICE> TaskUdpListenFind Start(2643649616).....
2023-11-22 04:42:03 <NOTICE> TaskTalkSend Start(2635261008).....
2023-11-22 04:42:03 <NOTICE> TaskTalkRecv Start(2626872400).....
2023-11-22 04:42:03 <NOTICE> ****** TaskConnCenter thread(,6000),pid = 2618483792
[io] set_ircut_ctrl == 1
sensor_set_sat: 0 128
[io] set_irled_ctrl == 0
2023-11-22 04:42:03 <DEBUG > InfraredLampSwitch 0
switch to day!
2023-11-22 04:42:03 <DEBUG > sensor_set_filter_ctrl(0): fd = 6, 0
2023-11-22 04:42:03 <NOTICE> busybox-lib: udhcpc: sending discover
[io] set_ircut_ctrl == 0
sensor_set_sat: 0 0
[io] set_irled_ctrl == 1
2023-11-22 04:42:03 <DEBUG > InfraredLampSwitch 1
2023-11-22 04:42:03 <DEBUG > sensor_set_filter_ctrl(0): fd = 6, 1
switch to night!
###SS_VENC_GetStampInternel: __HiBitSelect=0, pPTS=906, pPTSLast=866
2023-11-22 04:42:03 <NOTICE> SS_VENC_GetStream_Task(0) nCh = 0 nEnc = 0 nVEncChn = 0, pid=2890462288
2023-11-22 04:42:03 <NOTICE> SS_VENC_GetStream_Task(1) nCh = 0 nEnc = 1 nVEncChn = 1, pid=2882073680
send onvif  hello msg start...
[io] set_ircut_ctrl == 1
sensor_set_sat: 0 128
[io] set_irled_ctrl == 0
2023-11-22 04:42:03 <DEBUG > InfraredLampSwitch 0
2023-11-22 04:42:03 <NOTICE> SS_PUB_StartWatchDog 47 30
Retry SIP calls worker thread started!
DTMF worker thread started!
2023-11-22 04:42:03 <NOTICE> SS_MEMFILE_RmMemDisk enter
2023-11-22 04:42:03 <NOTICE> SS_MEMFILE_RmMemDisk finish
2023-11-22 04:42:03 <DEBUG > SS_MEMPIC: memfile info = 25165824 23907532 1258292
2023-11-22 04:42:03 <DEBUG > SS_MEMREC: memfile info = 6291456 6291456 0, maxnum = 6
2023-11-22 04:42:03 <ERROR > ipdsGetAddrInfo:359: errcode=-1. getaddrinfo call failed: No address associated with hostname: name="time.nist.gov"; service="123"
2023-11-22 04:42:03 <ERROR > ipdsResolvePeer:163: previous function call returned errcode=-1.
2023-11-22 04:42:03 <ERROR > ipdsGetPeerFamily:713: previous function call returned errcode=-1.
2023-11-22 04:42:03 <ERROR > ipdsSocketConnectUdp:782: previous function call returned errcode=-1.
2023-11-22 04:42:03 <ERROR > ntp_open_socket:156: previous function call returned errcode=-1.
socket err(-1): Hostname:time.nist.gov!
2023-11-22 04:42:03 <ERROR > Unable to sync time with ntp server time.nist.gov, timezone 21
2023-11-22 04:42:03 <NOTICE> SS_MEMFILE_MkMemDisk finish
2023-11-22 04:42:03 <NOTICE> busybox-lib: udhcpc: sending discover
=========RTSPlib version is Nov 30 2022 14:07:17
RTSPLib Make On Nov 30 2022 14:07:17
startRtspServer rtspPort=554, bUserAuth=1, bPassive=1, mtu=1460, maxChn=1
startRtspServer begin line = 4670
 RTSP setAvInfor === nCh=0, bMin=0, videoCodec=1, audioCodec=3
 RTSP setAvInfor === nCh=0, bMin=1, videoCodec=1, audioCodec=3
SS_PUB_EnableVideoStream: nCh = 0, bMin = 0
2023-11-22 04:42:03 <NOTICE> Start SS_PUB_StartRTSPTask(pid =2831639632) .......
2023-11-22 04:42:03 <DEBUG > startRtspServer LINE:4672
2023-11-22 04:42:03 <DEBUG > set rtsp attr AudioType :3 audioSampRate:8000 video:1
2023-11-22 04:42:03 <DEBUG > set rtsp attr AudioType :3 audioSampRate:8000 video:1
2023-11-22 04:42:03 <ERROR > GetOneVideoFrame check NetPacket error: nPakcetNo = 0 (12453 > 1555200), (0 > 0), (1 11), nRet = 0, nGetPos = 0(0)
2023-11-22 04:42:03 <DEBUG > SS_LOG_WriteToDisk: count=6
SS_RSYSLOG config changed: bEnable=0, bySockType=0, :514
2023-11-22 04:42:03 <ERROR > GetOneVideoFrame check NetPacket error: nPakcetNo = 0 (12453 > 1555200), (0 > 0), (1 11), nRet = 0, nGetPos = 0(0)
!!!init_extradata: channel 0, stream 0, count 2
SS_PUB_DisableVideoStream: nCh = 0, bMin = 0
SS_PUB_EnableVideoStream: nCh = 0, bMin = 1
2023-11-22 04:42:03 <ERROR >not support io cmd(0x71)
 GetOneVideoFrame check NetPacket error: nPakcetNo = 0 (12 > 1555200), (0 > 0), (1 0), nRet = 0, nGetPos = 0(0)
2023-11-22 04:42:03 <INFO  > EVENT:000:start video stream(0, 1)--------(0)(0)
2023-11-22 04:42:03 <DEBUG > Start Email task(pid=158) .......
2023-11-22 04:42:03 <DEBUG > Start SS_FTP_Task(pid=158) .......
2023-11-22 04:42:03 <DEBUG > Start SS_FTP_Task(pid=158) .......
2023-11-22 04:42:03 <INFO  > EVENT:000:Start TimerRecord(pid=2747753552)
2023-11-22 04:42:03 <NOTICE> [989 - SS_NAS_Task]: Start SS_NAS_Task(pid=2772919376) .......
2023-11-22 04:42:03 <ERROR > insmod: unable to open file /komod/hmac.ko
2023-11-22 04:42:03 <ERROR > insmod: unable to open file /komod/md4.ko
2023-11-22 04:42:03 <ERROR > insmod: unable to open file /komod/des_generic.ko
2023-11-22 04:42:03 <INFO  > EVENT:000:Start SS_RECMEM_Task(pid=2756142160)
!!!init_extradata: channel 0, stream 1, count 1
SS_PUB_DisableVideoStream: nCh = 0, bMin = 1
********* CreatRtspServer begin  socket=0 port=554
********* CreatRtspServer result  socket=48 port=554
********* CreatRtspServer begin  socket=0 port=554
********* CreatRtspServer success port=554
2023-11-22 04:42:10 <DEBUG > creat rtsp server socket 30
 RTSP setAvInfor === nCh=0, bMin=0, videoCodec=1, audioCodec=3
 RTSP setAvInfor === nCh=0, bMin=1, videoCodec=1, audioCodec=3
2023-11-22 04:42:10 <DEBUG > set rtsp attr AudioType :3 audioSampRate:8000 video:1
2023-11-22 04:42:10 <DEBUG > set rtsp attr AudioType :3 audioSampRate:8000 video:1
rtsp_unicast_multicast nRtspSever=0,bMutlicast=1,szMulticastIP=231.0.0.222,nMainVideoPort=5010,nMainAudioPort=5012,nViceVideoPort=5020,nViceAudioPort=5022,nRes=0
rtsp_unicast_multicast begin line = 4847
rtsp_unicast_multicast end line = 4864
2023-11-22 04:42:10 <NOTICE> Start RTSP doEventLoop
2023-11-22 04:42:10 <INFO  > EVENT:000:stop video stream(0, 1)-----
2023-11-22 04:42:12 <NOTICE> busybox-lib: udhcpc: dhcp eth0 failed. set default ip: 192.168.0.99
send onvif  hello msg end...
START MDNS, Host name: DS80107P186882339c19.local, Service name: DS80107P SIP Door Station - 186882339C19
 MDNS started.
 ip4 - 1
 ip6 - 1
 service registered.
sensor_set_autoawb: ViPipe=0, awb_mode=0
sensor_set_sharpen_init: 0
hibvt-i2c 120b3000.i2c: wait idle abort!, RIS: 0x611
2023-11-22 04:42:13 <ERROR > Write ADC error!
>>>>>>>>>> Found ADC - MS1100 i[io] set_irled_ctrl == 1
n address 0x90
2023-11-22 04:42:13 <DEBUG > GetNightDayByADC: current ADC value 32343.
2023-11-22 04:42:13 <INFO  > EVENT:000:AutoIRcut_Task to Night ----------
2023-11-22 04:42:13 <DEBUG > InfraredLampSwitch 1
sensor_set_sat: 0 0
2023-11-22 04:42:13 <DEBUG > sensor_set_filter_ctrl(0): fd = 6, 0
switch to day!
sensor_set_antiflicker: enable=0, u8Frequency=50
2023-11-22 04:42:14 <DEBUG > SS_Sock_Bind_Interface bind 54 to eth0 ok
[io] set_ircut_ctrl == 0
2023-11-22 04:42:14 <DEBUG > Start SS_SHOOT_ALARM_Task(0)(pid=2728875088)(bufSize = 0).......
IMX327 switch to Night timeout = 5000 ms
2023-11-22 04:42:24 <DEBUG > GetNightDayByADC: current ADC value 2014.
2023-11-22 04:42:30 <DEBUG > GetNightDayByADC: current ADC value 2014.
2023-11-22 04:42:32 <NOTICE> busybox-lib: udhcpc: sending discover
2023-11-22 04:42:35 <DEBUG > GetNightDayByADC: current ADC value 2015.
2023-11-22 04:42:35 <NOTICE> busybox-lib: udhcpc: sending discover
2023-11-22 04:42:38 <NOTICE> busybox-lib: udhcpc: sending discover
2023-11-22 04:42:40 <DEBUG > GetNightDayByADC: current ADC value 2008.
2023-11-22 04:42:41 <NOTICE> busybox-lib: udhcpc: dhcp eth0 failed. set default ip: 192.168.0.99
route: SIOCADDRT: File exists
2023-11-22 04:42:41 <NOTICE> busybox-lib: udhcpc: execute: 473: command error: /sbin/route add default gw 192.168.0.1 metric 2 eth0
2023-11-22 04:42:45 <DEBUG > GetNightDayByADC: current ADC value 2014.
2023-11-22 04:42:50 <DEBUG > GetNightDayByADC: current ADC value 2015.
random: crng init done
socket err(-1): Hostname:time.nist.gov!
2023-11-22 04:42:53 <ERROR > ipdsGetAddrInfo:359: errcode=-1. getaddrinfo call failed: No address associated with hostname: name="time.nist.gov"; service="123"
2023-11-22 04:42:53 <ERROR > ipdsResolvePeer:163: previous function call returned errcode=-1.
2023-11-22 04:42:53 <ERROR > ipdsGetPeerFamily:713: previous function call returned errcode=-1.
2023-11-22 04:42:53 <ERROR > ipdsSocketConnectUdp:782: previous function call returned errcode=-1.
2023-11-22 04:42:53 <ERROR > ntp_open_socket:156: previous function call returned errcode=-1.
2023-11-22 04:42:53 <ERROR > Unable to sync time with ntp server time.nist.gov, timezone 21
2023-11-22 04:42:55 <DEBUG > GetNightDayByADC: current ADC value 2016.
2023-11-22 04:43:00 <DEBUG > GetNightDayByADC: current ADC value 2016.
2023-11-22 04:43:02 <NOTICE> busybox-lib: udhcpc: sending discover
2023-11-22 04:43:03 <ERROR > interface name eth0 get dhcp addr failed
2023-11-22 04:43:05 <DEBUG > GetNightDayByADC: current ADC value 2017.
2023-11-22 04:43:05 <NOTICE> busybox-lib: udhcpc: sending discover
2023-11-22 04:43:06 <ERROR > interface eth0 get dhcp addr fail! ipAddr:192.168.0.99; submask:255.255.255.0; gateway:192.168.0.1
2023-11-22 04:43:06 <INFO  > EVENT:000:UPnP: miniupnp_main task started
2023-11-22 04:43:06 <INFO  > EVENT:000:UPnP: Starting UPnP-IGD with external interface eth0
2023-11-22 04:43:06 <NOTICE> UPnP: HTTP listening on port 5555
2023-11-22 04:43:06 <NOTICE> UPnP: HTTP IPv6 address given to control points : [fe80::1a68:82ff:fe33:9c19]
2023-11-22 04:43:08 <NOTICE> busybox-lib: udhcpc: sending discover
2023-11-22 04:43:10 <DEBUG > GetNightDayByADC: current ADC value 2015.
2023-11-22 04:43:11 <NOTICE> busybox-lib: udhcpc: dhcp eth0 failed. set default ip: 192.168.0.99
route: SIOCADDRT: File exists
2023-11-22 04:43:11 <NOTICE> busybox-lib: udhcpc: execute: 473: command error: /sbin/route add default gw 192.168.0.1 metric 2 eth0

переменные окружения и метрики NAND

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

hisilicon #
hisilicon #
hisilicon # printenv
arch=arm
baudrate=115200
board=hi3516cv500
board_name=hi3516cv500
bootargs=mem=128M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=yaffs2 rw mtdparts=hinand:512K(boot),3584K(kernel),124M(rootfs)
bootcmd=nand read 0x82000000 0x80000 0x380000;bootm 0x82000000
bootdelay=2
cpu=armv7
ethact=eth0
ethaddr=c6:23:e6:ac:d5:82
fileaddr=82000000
filesize=56d8340
gatewayip=192.168.55.1
ipaddr=192.168.0.125
netmask=255.255.255.0
serverip=192.168.0.136
soc=hi3516cv500
stderr=serial
stdin=serial
stdout=serial
vendor=hisilicon
verify=n

Environment size: 577/131068 bytes
hisilicon # nand info

Device 0: nand0, sector size 128 KiB
  Page size       2048 b
  OOB size          64 b
  Erase size    131072 b
  subpagesize     2048 b
  options     0x40000400
  bbt options 0x    8000
hisilicon # nand bad

Device 0 bad blocks:
hisilicon # bdinfo
arch_number = 0x00001F40
boot_params = 0x827FFF00
DRAM bank   = 0x00000000
-> start    = 0x80000000
-> size     = 0x10000000
eth0name    = eth0
ethaddr     = c6:23:e6:ac:d5:82
current eth = eth0
ip_addr     = 192.168.0.125
baudrate    = 115200 bps
TLB addr    = 0x8FFF0000
relocaddr   = 0x8FEE4000
reloc off   = 0x0F6E4000
irq_sp      = 0x8FE83EE0
sp start    = 0x8FE83ED0
Early malloc usage: 70 / 2000
hisilicon #

M - 16.
Специалист
Сообщения: 215
Зарегистрирован: 18 июн 2014, 19:08
Откуда: Сибирь
Контактная информация:

Re: Монтирование YAFFS2 раздела NAND

Сообщение M - 16. » 20 дек 2023, 17:25

Попробуйте в телеграме ещё спросить, там много специалистов.
https://t.me/openipc_software

Ответить

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