cctv

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cctv [2023/12/17 12:25] – [Camera cpu hi3518ev100 + sensor ov9712_i2c + nor] admincctv [2024/04/29 16:01] (current) – [CCTV видеонаблюдение] admin
Line 1: Line 1:
 ====== CCTV видеонаблюдение ====== ====== CCTV видеонаблюдение ======
 +  * scrypted - https://www.scrypted.app/
   * frigate - free cctv ai object https://www.youtube.com/watch?v=iO584g5c0DY    * frigate - free cctv ai object https://www.youtube.com/watch?v=iO584g5c0DY 
   * Hacking Reolink reverse engineering , gdb, hydra   https://www.thirtythreeforty.net/posts/2020/05/hacking-reolink-cameras-for-fun-and-profit/   * Hacking Reolink reverse engineering , gdb, hydra   https://www.thirtythreeforty.net/posts/2020/05/hacking-reolink-cameras-for-fun-and-profit/
Line 20: Line 21:
 ===== NVR ===== ===== NVR =====
   * регистратор за 1000 руб https://www.youtube.com/watch?v=9TI1gHuVNDs   * регистратор за 1000 руб https://www.youtube.com/watch?v=9TI1gHuVNDs
 +  * https://aliexpress.ru/item/1005004980955042.html?sku_id=12000037370195486&spm=a2g2w.productlist.search_results.10.782e1d73qO3gzx
  
 ===== Camera cpu hi3518ev100 + sensor ov9712_i2c + nor ===== ===== Camera cpu hi3518ev100 + sensor ov9712_i2c + nor =====
-https://github.com/OpenIPC [[https://github.com/openipc/wiki|WIKI]] https://themactep.com/tools/firmware-partitions-calculation \\ + 
-[[https://felipe.astroza.cl/hacking-hi3815-based-ip-camera/|прошивка]]  [[https://forum.videon.spb.ru/viewtopic.php?f=24&t=7550&sid=98f79c0ff61cf1f757af41cc187adec9&start=24|get root]]\\+<WRAP left box 30%> 
 +|{{:cctv:pasted:20231219-235603.jpeg?200 |}}|{{:cctv:pasted:20231219-235613.webp?200|}}| 
 +</WRAP> 
 +<WRAP clear/> 
 + 
 + 
 + 
 +++++Restore original Firmware| 
 +<code bash> 
 + 
 +#C-kermit for windows 
 +# cat /proc/mtd 
 +#dev:    size   erasesize  name 
 +#mtd0: 00080000 00010000 "boot" 
 +#mtd1: 00280000 00010000 "kernel" 
 +#mtd2: 00d00000 00010000 "rootfs" 
 + 
 +#0x0 0x80000 
 +#0x80000  0x280000 
 +#0x300000 0xD00000 
 + 
 +# BOOT 
 +mw.b 0x82000000 0xff 0x80000 
 +loady 0x82000000 115200 
 +sf probe 0;  
 +sf erase 0x0 0x80000; sf write 0x82000000 0x0 0x80000 
 + 
 +#KERNEL 
 +#0x80000 0x280000 
 +mw.b 0x82000000 0xff 0x280000 
 +loady 0x82000000 115200 
 +sf probe 0;  
 +sf erase 0x80000 0x280000; sf write 0x82000000 0x80000 0x280000 
 + 
 +#ROOTFS 
 +#0x300000 0xD00000 
 +mw.b 0x82000000 0xff 0xD00000 
 +loady 0x82000000 115200 
 +sf probe 0;  
 +sf erase 0x300000 0xD00000; sf write 0x82000000 0x300000 0xD00000 
 + 
 + 
 +</code> 
 +++++ 
 + 
 +++++IPCtool info/reginfo| 
 +<code bash> 
 +# ./ipctool 
 +Error: unexpected value for SOI == 0x9711 
 +--- 
 +chip: 
 +  vendor: HiSilicon 
 +  model: 3518EV100 
 +board: 
 +  possible-IR-cut-GPIO: 3,18,24,26,34,35,39,42,46,80,81 
 +ethernet: 
 +  mac: "00:e0:f8:01:9e:65" 
 +  u-mdio-phyaddr:
 +  phy-id: 0xffffffff 
 +  d-mdio-phyaddr:
 +  phy-mode: mii 
 +rom: 
 +- type: nor 
 +  block: 64K 
 +  partitions: 
 +    - name: boot 
 +      size: 0x80000 
 +      sha1: 68273b72 
 +      contains: 
 +        - name: uboot-env 
 +          offset: 0x40000 
 +    - name: kernel 
 +      size: 0x280000 
 +      sha1: 6aae77e9 
 +    - name: rootfs 
 +      size: 0xd00000 
 +      path: /,jffs2 
 +      sha1: 3140c4b0 
 +  size: 16M 
 +  addr-mode: 3-byte 
 +ram: 
 +  total: 64M 
 +  media: 20M 
 +firmware: 
 +  u-boot: "2010.06 (Mar 18 2014 - 03:42:32)" 
 +  kernel: "3.0.8 (Tue Mar 18 03:54:42 HKT 2014)" 
 +  toolchain: gcc version 4.4.1 (Hisilicon_v100(gcc4.4-290+uclibc_0.9.32.1+eabi+linuxpthread)) 
 +  libc: uClibc 0.9.32.1 
 +  sdk: "Hi3518_MPP_V1.0.8.1  (Mar 18 2014, 11:53:10)" 
 +  main-app: /mnt/mtd/ipc/ipc_server 
 +sensors: 
 +- vendor: OmniVision 
 +  model: OV9712 
 +  control: 
 +    bus: 0 
 +    type: i2c 
 +    addr: 0x60 
 +  data: 
 +    type: DC 
 +  clock: 24MHz 
 + 
 + 
 + 
 +# ./ipctool reginfo 
 +muxctrl_reg0 0x200f0000 0x1 GPIO1_0 [SHUTTER_TRIG] 
 +muxctrl_reg1 0x200f0004 0x1 GPIO1_1 [SDIO_CCLK_OUT] 
 +muxctrl_reg2 0x200f0008 0x1 GPIO1_2 [SENSOR_CLK] 
 +muxctrl_reg3 0x200f000c 0 [GPIO1_4] SPI0_SCLK 
 +muxctrl_reg4 0x200f0010 0 [GPIO1_5] SPI0_SDO 
 +muxctrl_reg5 0x200f0014 0 [GPIO1_6] SPI0_SDI 
 +muxctrl_reg6 0x200f0018 0x1 GPIO2_0 [I2C_SDA] 
 +muxctrl_reg7 0x200f001c 0x1 GPIO2_1 [I2C_SCL] 
 +muxctrl_reg8 0x200f0020 0 [GPIO2_2] UART1_RTSN 
 +muxctrl_reg9 0x200f0024 0x1 GPIO2_3 [UART1_RXD] 
 +muxctrl_reg10 0x200f0028 0x1 GPIO2_4 [UART1_CTSN] 
 +muxctrl_reg11 0x200f002c 0x1 GPIO2_5 [UART1_TXD] 
 +muxctrl_reg12 0x200f0030 0 [GPIO3_0] MII_CRS VOU1120_DATA10 
 +muxctrl_reg13 0x200f0034 0 [GPIO3_1] MII_COL VOU1120_DATA9 
 +muxctrl_reg14 0x200f0038 0 [GPIO4_3] MII_RXD3 VOU1120_DATA15 
 +muxctrl_reg15 0x200f003c 0 [GPIO4_2] MII_RXD2 VOU1120_DATA11 
 +muxctrl_reg16 0x200f0040 0x1 GPIO4_1 [MII_RXD1] VOU1120_DATA8 
 +muxctrl_reg17 0x200f0044 0x1 GPIO4_0 [MII_RXD0] VOU1120_DATA12 
 +muxctrl_reg18 0x200f0048 0 [GPIO4_7] MII_TXD3 VOU1120_DATA3 
 +muxctrl_reg19 0x200f004c 0 [GPIO4_6] MII_TXD2 VOU1120_DATA13 
 +muxctrl_reg20 0x200f0050 0x1 GPIO4_5 [MII_TXD1] VOU1120_DATA0 
 +muxctrl_reg21 0x200f0054 0x1 GPIO4_4 [MII_TXD0] VOU1120_DATA4 
 +muxctrl_reg22 0x200f0058 0 [GPIO3_2] MII_RXCK VOU1120_CLK 
 +muxctrl_reg23 0x200f005c 0x3 GPIO3_3 MII_TXCK VOU1120_DATA7 [RMII_CLK] 
 +muxctrl_reg24 0x200f0060 0x1 GPIO3_4 [MII_RXDV] VOU1120_DATA1 
 +muxctrl_reg25 0x200f0064 0x1 GPIO3_5 [MII_TXEN] VOU1120_DATA5 
 +muxctrl_reg26 0x200f0068 0x1 GPIO2_6 [MII_TXER] 
 +muxctrl_reg27 0x200f006c 0x1 GPIO2_7 [MII_RXER] 
 +muxctrl_reg28 0x200f0070 0x1 GPIO1_3 [EPHY_CLK] VOU1120_DATA2 
 +muxctrl_reg29 0x200f0074 0x1 GPIO3_6 [MDCK] VOU1120_DATA6 BOOT_SEL 
 +muxctrl_reg30 0x200f0078 0x1 GPIO3_7 [MDIO] VOU1120_DATA14 
 +muxctrl_reg31 0x200f007c 0x1 GPIO1_7 [FLASH_TRIG] 
 +muxctrl_reg32 0x200f0080 0x1 GPIO6_0 [SDIO_CARD_DETECT] 
 +muxctrl_reg33 0x200f0084 0x1 GPIO6_1 [SDIO_CARD_POWER_EN] 
 +muxctrl_reg34 0x200f0088 0x1 GPIO6_2 [SDIO_CWPR] 
 +muxctrl_reg35 0x200f008c 0x1 GPIO6_3 [SDIO_CCMD] 
 +muxctrl_reg36 0x200f0090 0x1 GPIO6_4 [SDIO_CDATA0] CLK_TEST_OUT0 CLK_TEST_OUT1 CLK_TEST_OUT2 CLK_TEST_OUT3 
 +muxctrl_reg37 0x200f0094 0x1 PLL_TEST_OUT0 [SDIO_CDATA1] GPIO6_5 PLL_TEST_OUT1 PLL_TEST_OUT2 PLL_TEST_OUT3 RTC_TEST_CLK 
 +muxctrl_reg38 0x200f0098 0x1 GPIO6_6 [SDIO_CDATA2] 
 +muxctrl_reg39 0x200f009c 0x1 GPIO6_7 [SDIO_CDATA3] 
 +muxctrl_reg40 0x200f00a0 0 [SFC_DIO] GPIO7_0 
 +muxctrl_reg41 0x200f00a4 0 [SFC_WP_IO2] GPIO7_1 
 +muxctrl_reg42 0x200f00a8 0 [SFC_CLK] GPIO7_2 SFC_ADDR_MODE 
 +muxctrl_reg43 0x200f00ac 0 [SFC_DOI] GPIO7_3 
 +muxctrl_reg44 0x200f00b0 0 [SFC_HOLD_IO3] GPIO7_4 
 +muxctrl_reg45 0x200f00b4 0x1 GPIO5_0 [USB_OVRCUR] 
 +muxctrl_reg46 0x200f00b8 0 [GPIO5_1] USB_PWREN 
 +muxctrl_reg47 0x200f00bc 0 [GPIO5_2] PWM_OUT0 
 +muxctrl_reg48 0x200f00c0 0 [GPIO5_3] PWM_OUT1 
 +muxctrl_reg49 0x200f00c4 0x1 IR_IN [GPIO7_5] 
 +muxctrl_reg50 0x200f00c8 0x1 reserved [GPIO9_0] 
 +muxctrl_reg51 0x200f00cc 0x1 reserved [GPIO9_1] 
 +muxctrl_reg52 0x200f00d0 0x1 reserved [GPIO9_2] 
 +muxctrl_reg53 0x200f00d4 0x1 reserved [GPIO9_3] 
 +muxctrl_reg54 0x200f00d8 0x1 reserved [GPIO9_4] 
 +muxctrl_reg55 0x200f00dc 0x1 reserved [GPIO9_5] 
 +muxctrl_reg56 0x200f00e0 0x1 reserved [GPIO9_6] 
 +muxctrl_reg57 0x200f00e4 0x1 reserved [GPIO9_7] 
 +muxctrl_reg58 0x200f0108 0 [GPIO7_6] UART2_RXD 
 +muxctrl_reg59 0x200f010c 0 [GPIO7_7] UART2_TXD 
 +muxctrl_reg60 0x200f0110 0 [GPIO5_4] SPI1_SCLK 
 +muxctrl_reg61 0x200f0114 0 [GPIO5_5] SPI1_SDO 
 +muxctrl_reg62 0x200f0118 0 [GPIO5_6] SPI1_SDI 
 +muxctrl_reg63 0x200f011c 0 [GPIO5_7] SPI1_CSN 
 +muxctrl_reg64 0x200f0120 0 [GPIO0_0] JTAG_TRSTN TEMPER_DQ 
 +muxctrl_reg65 0x200f0124 0 [GPIO0_1] JTAG_TCK TEMPER_DQ 
 +muxctrl_reg66 0x200f0128 0 [GPIO0_2] JTAG_TMS TEMPER_DQ 
 +muxctrl_reg67 0x200f012c 0 [GPIO0_3] JTAG_TDO TEMPER_DQ 
 +muxctrl_reg68 0x200f0130 0 [GPIO0_4] JTAG_TDI TEMPER_DQ 
 +muxctrl_reg69 0x200f0134 0x1 SVB_PWM [GPIO0_5] TEMPER_DQ 
 +muxctrl_reg70 0x200f0138 0 [GPIO0_6] SVB_PWM TEMPER_DQ 
 +muxctrl_reg71 0x200f013c 0x1 SYS_RSTN_OUT [GPIO0_7] TEMPER_DQ 
 +muxctrl_reg72 0x200f0140 0 [VIU_CLK] GPIO11_6 
 +muxctrl_reg73 0x200f0144 0 [VIU_VS] GPIO11_5 
 +muxctrl_reg74 0x200f0148 0 [VIU_HS] GPIO11_4 
 +muxctrl_reg75 0x200f014c 0 [VIU_DAT11] GPIO11_3 
 +muxctrl_reg76 0x200f0150 0 [VIU_DAT10] GPIO11_2 
 +muxctrl_reg77 0x200f0154 0 [VIU_DAT9] GPIO11_1 
 +muxctrl_reg78 0x200f0158 0 [VIU_DAT8] GPIO11_0 
 +muxctrl_reg79 0x200f015c 0 [VIU_DAT7] GPIO10_7 
 +muxctrl_reg80 0x200f0160 0 [VIU_DAT6] GPIO10_6 
 +muxctrl_reg81 0x200f0164 0 [VIU_DAT5] GPIO10_5 
 +muxctrl_reg82 0x200f0168 0 [VIU_DAT4] GPIO10_4 
 +muxctrl_reg83 0x200f016c 0 [VIU_DAT3] GPIO10_3 
 +muxctrl_reg84 0x200f0170 0 [VIU_DAT2] GPIO10_2 
 +muxctrl_reg85 0x200f0174 0x1 VIU_DAT1 [GPIO10_1] 
 +muxctrl_reg86 0x200f0178 0x1 VIU_DAT0 [GPIO10_0] 
 +</code> 
 +++++ 
 + 
 +==== Camera OpenIPC ==== 
 + 
 + 
 +https://github.com/OpenIPC [[https://github.com/openipc/wiki|WIKI]] [[https://www.silicondevice.com/file.upload/images/Gid1327Pdf_Hi3518E.pdf|pdf]] https://themactep.com/tools/firmware-partitions-calculation \\ 
 +[[https://felipe.astroza.cl/hacking-hi3815-based-ip-camera/|прошивка]]  [[https://forum.videon.spb.ru/viewtopic.php?f=24&t=7550&sid=98f79c0ff61cf1f757af41cc187adec9&start=24|get root]]  [[https://gahcep.github.io/blog/2012/07/24/u-boot-mii/|Uboot MII]]  [[https://mixatronik.ru/videonablyudenie/openipc/zapusk-openipc-na-kamere-hiwatch-ds-i122|example firmware ]]\\
 ++++ Info/Printenv uboot | ++++ Info/Printenv uboot |
 <code BASH> <code BASH>
Line 438: Line 638:
 pGLCfg->szUID = HZD-023351-DBEFA pGLCfg->szUID = HZD-023351-DBEFA
 login dev failed! handle[0]=0 login dev failed! handle[0]=0
 +
 +</code>
 +++++
 +
 +
 +++++ Ipctool|
 +<code>
 +root@ipcam1:/mnt/mmcblk0p1/ipc# ./ipctool
 +mdio busy
 +mdio busy
 +Error: unexpected value for SOI == 0x9711
 +---
 +chip:
 +  vendor: HiSilicon
 +  model: 3518EV100
 +board:
 +  vendor: OpenIPC
 +  version: 2.3.12.15
 +ethernet:
 +  u-mdio-phyaddr: 0
 +  phy-id: 0x00000000
 +  d-mdio-phyaddr: 0
 +  phy-mode: mii
 +rom:
 +- type: nor
 +  block: 64K
 +  partitions:
 +    - name: boot
 +      size: 0x40000
 +      sha1: 42f2bad9
 +    - name: env
 +      size: 0x10000
 +      sha1: e14d8313
 +      contains:
 +        - name: uboot-env
 +          offset: 0x0
 +    - name: kernel
 +      size: 0x300000
 +      sha1: c6e96ceb
 +    - name: rootfs
 +      size: 0xa00000
 +      path: /,squashfs
 +      sha1: cdbf09f2
 +    - name: rootfs_data
 +      size: 0x2b0000
 +      path: /overlay,jffs2,rw
 +  size: 16M
 +  addr-mode: 3-byte
 +ram:
 +  total: 64M
 +  media: 32M
 +firmware:
 +  u-boot: "2010.06 (Nov 14 2022 - 19:25:39)"
 +  kernel: "3.0.8 (Fri Dec 15 16:15:50 UTC 2023)"
 +  toolchain: buildroot-gcc-12.2.0
 +  sdk: "Hi3518_MPP_V1.0.B.0  (Nov 19 2015, 16:37:04)"
 +sensors:
 +- vendor: OmniVision
 +  model: OV9712
 +  control:
 +    bus: 0
 +    type: i2c
 +    addr: 0x60
 +  data:
 +    type: DC
 +  clock: 24MHz
  
 </code> </code>
 ++++ ++++
  • cctv.1702815912.txt.gz
  • Last modified: 2023/12/17 12:25
  • by admin