Hi3516cv300+imx290 платформа Seetong(Topsee)

Вопросы по восстановлению, настройке, апгрейду, прошивкам и т.п.
Ответить
nazaret777
Новичок
Сообщения: 6
Зарегистрирован: 24 янв 2021, 15:31

Hi3516cv300+imx290 платформа Seetong(Topsee)

Сообщение nazaret777 » 24 янв 2021, 19:05

Китайский модуль H38Q10, слетела прошивка на нескольких камерах , видимо из-за питания. Сняв дамп с 128L12835F с "живой" камеры удалось восстановить приборы, но получив клоны с одинаковым МАСом возникли проблемы при работе на одном коммутаторе. Несмотря на "зашифрованость" китайским производителем данного прибора,а именно явным отсутствием пинов Rx Tx удалось найти их и подключиться по UART.

Лог загрузки с printenv и help:

hi3516cv300 System startup

U-Boot 2010.06 (Jan 12 2017 - 12:38:16)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xc2 0x20 0x18
Block:64KB Chip:16MB Name:"MX25L128XX"
SPI Nor total size: 16MB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
hisilicon # printenv
bootargs=mem=58M console=ttyAMA0,115200 root=/dev/mtdblock3 noinitrd rootfstype=squashfs mtdparts=hi_sfc:256K(boot),2048K(kernel),512K(userdata),13056K(rootfs),512K(userdata_bk)
bootcmd=sf probe 0;sf read 0x81000000 0x40000 0x200000;bootm 0x81000000
bootdelay=1
baudrate=115200
ethaddr=00:00:23:34:45:66
ipaddr=192.168.1.10
serverip=192.168.1.2
netmask=255.255.255.0
bootfile="uImage"
stdin=serial
stdout=serial
stderr=serial
verify=n
ver=U-Boot 2010.06 (Jan 12 2017 - 12:38:16)

Environment size: 479/65532 bytes
hisilicon #

hisilicon # help
? - alias for 'help'
base - print or set address offset
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
cmp - memory compare
cp - memory copy
crc32 - checksum calculation
ddr - ddr training function
getinfo - print hardware information
go - start application at address 'addr'
help - print command description/usage
loadb - load binary file over serial line (kermit mode)
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
md - memory display
mii - MII utility commands
mm - memory modify (auto-incrementing address)
mtest - simple RAM read/write test
mw - memory write (fill)
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
saveenv - save environment variables to persistent storage
setenv - set environment variables
sf - SPI flash sub-system
tftp - tftp - download or upload image via network using TFTP protocol
version - print monitor version
hisilicon #

Подключиться по telnet не удаётся, неизвестен логин, пароль. Даже исходя из etc/passwd root:0.IQvJd8bXSWU:0:0::/root:/bin/sh , логин root и pass 123456 не проходят.

Вот дамп, слитый с "живой" камеры:
https://drive.google.com/file/d/1MI5AEr ... sp=sharing

В дампе нету явно прописанного MAC адреса. Подскажите пожалуйста, как сменить MAC в склонированных камерах ?
P.S. Удаление раздела 512K(userdata_bk) и перезагрузка ничего не дало, так же и с 512K(userdata).
Вложения
da0150bddaa6cd1e74dbfc6eb45bd19d.jpg

nazaret777
Новичок
Сообщения: 6
Зарегистрирован: 24 янв 2021, 15:31

Re: Hi3516cv300+imx290 платформа Seetong(Topsee)

Сообщение nazaret777 » 24 янв 2021, 20:52

Добавлю лог загрузки камеры:

hi3516cv300 System startup

U-Boot 2010.06 (Jan 12 2017 - 12:38:16)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xc2 0x20 0x18
Block:64KB Chip:16MB Name:"MX25L128XX"
SPI Nor total size: 16MB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
16384 KiB hi_fmc at 0:0 is now current device

## Booting kernel from Legacy Image at 81000000 ...
Image Name: Linux-3.18.20
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1838275 Bytes = 1.8 MiB
Load Address: 80008000
Entry Point: 80008000
Loading Kernel Image ... OK
OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpu
Linux version 3.18.20 (root@localhost.localdomain) (gcc version 4.9.4 20150629 ( prerelease) (Hisilicon_v500_20170104) ) #3 Sat Apr 1 15:13:57 HKT 2017
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
CPU: VIVT data cache, VIVT instruction cache
Machine model: Hisilicon Hi3516CV300 DEMO Board
Memory policy: Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 14732
Kernel command line: mem=58M console=ttyAMA0,115200 root=/dev/mtdblock3 noinitrd rootfstype=squashfs mtdparts=hi_sfc:256K(boot),2048K(kernel),512K(userdata),130 56K(rootfs),512K(userdata_bk)
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 53692K/59392K available (3497K kernel code, 169K rwdata, 952K rodata, 156K init, 245K bss, 5700K reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xffe00000 (2048 kB)
vmalloc : 0xc4000000 - 0xff000000 ( 944 MB)
lowmem : 0xc0000000 - 0xc3a00000 ( 58 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0460984 (4451 kB)
.init : 0xc0461000 - 0xc0488000 ( 156 kB)
.data : 0xc0488000 - 0xc04b27c0 ( 170 kB)
.bss : 0xc04b27c0 - 0xc04efcf8 ( 246 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:16 nr_irqs:16 16
VIC @c4000000: id 0x00641190, vendor 0x41
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655765682ns
Console: colour dummy device 80x30
Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656)
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
Setting up static identity map for 0x803567d8 - 0x80356830
devtmpfs: initialized
VFP support v0.3: not present
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Serial: AMBA PL011 UART driver
12100000.uart: ttyAMA0 at MMIO 0x12100000 (irq = 21, base_baud = 0) is a PL011 rev2
console [ttyAMA0] enabled
pl08xdmac 10030000.dma-controller: initialized 4 virtual memcpy channels
pl08xdmac 10030000.dma-controller: initialized 16 virtual slave channels
pl08xdmac 10030000.dma-controller: DMA: PL080 rev1 at 0x10030000 irq 30
SCSI subsystem initialized
ssp-pl022 12120000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 12120000.spi: mapped registers from 0x12120000 to c4070000
Switched to clocksource arm,sp804
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
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.
futex hash table entries: 256 (order: -1, 3072 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 104
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
pinctrl-single 12040000.pinmux: 66 pins at pa c40c6000 size 264
pinctrl-single 12040800.pinconf: 76 pins at pa c40c8800 size 304
pl061_gpio 12140000.gpio: PL061 GPIO chip @0x12140000 registered
pl061_gpio 12141000.gpio: PL061 GPIO chip @0x12141000 registered
pl061_gpio 12142000.gpio: PL061 GPIO chip @0x12142000 registered
pl061_gpio 12143000.gpio: PL061 GPIO chip @0x12143000 registered
pl061_gpio 12144000.gpio: PL061 GPIO chip @0x12144000 registered
pl061_gpio 12145000.gpio: PL061 GPIO chip @0x12145000 registered
pl061_gpio 12146000.gpio: PL061 GPIO chip @0x12146000 registered
pl061_gpio 12147000.gpio: PL061 GPIO chip @0x12147000 registered
pl061_gpio 12148000.gpio: PL061 GPIO chip @0x12148000 registered
of_dma_request_slave_channel: dma-names property of node '/soc/uart@12100000' mi ssing or empty
uart-pl011 12100000.uart: no DMA platform data
brd: module loaded
hisi-sfc hisi_spi_nor.0: all blocks is unlocked.
hisi-sfc hisi_spi_nor.0: mx25l12835f (16384 Kbytes)
5 cmdlinepart partitions found on MTD device hi_sfc
Creating 5 MTD partitions on "hi_sfc":
0x000000000000-0x000000040000 : "boot"
0x000000040000-0x000000240000 : "kernel"
0x000000240000-0x0000002c0000 : "userdata"
0x0000002c0000-0x000000f80000 : "rootfs"
0x000000f80000-0x000001000000 : "userdata_bk"
SPI Nand ID Table Version 2.2
Cannot found a valid SPI Nand Device
libphy: hisi_femac_mii_bus: probed
hisi-femac 10050000.ethernet: phy_id=0x02430c54, phy_addr=0, phy_mode=rmii
hisi-femac 10050000.ethernet: using random MAC address 82:79:52:b2:b5:fa
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).
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
hibvt-i2c 12110000.i2c: hibvt-i2c0@100000hz registered
hibvt-i2c 12112000.i2c: hibvt-i2c1@100000hz registered
TCP: cubic registered
NET: Registered protocol family 10
NET: Registered protocol family 17
VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
devtmpfs: mounted
Freeing unused kernel memory: 156K (c0461000 - c0488000)
random: init urandom read with 1 bits of entropy available

_ _ _ _ _ _ _ _ _ _ _ _
\ _ _ _ _ _ ___
/ /__/ \ |_/
/ __ / - _ ___
/ / / / / /
_ _ _ _/ / / \_/ \_ ______
___________\___\__________________

[RCS]: /etc/init.d/S00devs
mknod: /dev/console: File exists
mknod: /dev/ttyAMA0: File exists
mknod: /dev/null: File exists
[RCS]: /etc/init.d/S01udev
udev[49]: starting version 164
[RCS]: /etc/init.d/S80network
mmz_start: 0x83a00000, mmz_size: 57M
Module himedia: init ok
Hisilicon Media Memory Zone Manager
The module param setup_allocator is hisi
hi_osal 1.0 init success!
hi3516cv300_base: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
load sys.ko for Hi3516CV300...OK!
load region.ko for Hi3516CV300...OK!
load vgs.ko for Hi3516CV300...OK!
load viu.ko for Hi3516CV300...OK!
ISP Mod init!
load vpss.ko for Hi3516CV300...OK!
load rc.ko for Hi3516CV300...OK!
load venc.ko for Hi3516CV300...OK!
load chnl.ko for Hi3516CV300...OK!
load vedu.ko for Hi3516CV300...OK!
load h264e.ko for Hi3516CV300...OK!
load h265e.ko for Hi3516CV300...OK!
load jpege.ko for Hi3516CV300...OK!
load ive.ko for Hi3516CV300...OK!
load ai.ko for Hi3516CV300...OK!
load ao.ko for Hi3516CV300...OK!
load aenc.ko for Hi3516CV300...OK!
load adec.ko for Hi3516CV300...OK!
load acodec.ko for Hi3516CV300...OK!
insert audio
load hi_mipi driver successful!
==== Your input Sensor type is imx290 ====
allocated heap buffer 0xc7000000 of size 0xd00000
cmemk initialized
board ctl init success.
Hisilicon Watchdog Timer: 0.01 initialized. default_margin=30 sec (nodeamon= 1)
(none) login: jffs2: notice: (111) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
detected sensor type is 43
sys_daemon mount /dev/mtdblock2 success
sys_daemon disable console
sys_montor enter main loop...
encode_mon enter main loop...
tcp_mon start main loop...
jffs2: notice: (168) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[DRV_CTL_SET_ALARM_OUT_STATUS] arg:0
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
sys_daemon (108): /proc/108/oom_adj is deprecated, please use /proc/108/oom_scor e_adj instead.
hisi-femac 10050000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

nazaret777
Новичок
Сообщения: 6
Зарегистрирован: 24 янв 2021, 15:31

Re: Hi3516cv300+imx290 платформа Seetong(Topsee)

Сообщение nazaret777 » 29 янв 2021, 15:22

Удалось "сломать" и зайти в telnet !
login: root
pass: hdipc%No

Может кто-то подскажет как сменить MAC-адрес, серийный номер камеры ?

Вот что имеем:

IPNC login: root
Password:
Welcome to HiLinux.
None of nfsroot found in cmdline.
# cd ..
# ls
bin etc lib mnt proc share usr
boot home linuxrc nfsroot root sys var
dev init lost+found opt sbin tmp

nazaret777
Новичок
Сообщения: 6
Зарегистрирован: 24 янв 2021, 15:31

Re: Hi3516cv300+imx290 платформа Seetong(Topsee)

Сообщение nazaret777 » 02 май 2021, 02:12

Проблема с камерами разрешилась. После сбоя все камеры "стали" на адрес 10.10.10.х , х - адрес камеры в сети ранее установленный.

Ответить

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