ant-thomas / zsgx1hacks

Hacks for ZS-GX1 IP Camera and various Goke GK7102 based IP Cameras
365 stars 102 forks source link

NO RTSP #117

Open suppnet opened 5 years ago

suppnet commented 5 years ago

I have this CloudCam IP (GOKE 7102S BOARD 20170515 based) camera but no RTSP is listening before or after hack:

netstat -nl

Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:9008 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:23 0.0.0.0:
LISTEN
tcp 0 0 0.0.0.0:5050 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:7101 0.0.0.0:
LISTEN
tcp 0 0 0.0.0.0:7103 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:8001 0.0.0.0:
LISTEN
tcp 0 0 0.0.0.0:3201 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:843 0.0.0.0:
LISTEN
tcp 0 0 0.0.0.0:6670 0.0.0.0: LISTEN
udp 0 0 0.0.0.0:7998 0.0.0.0:

udp 0 0 0.0.0.0:8001 0.0.0.0:
udp 0 0 0.0.0.0:8002 0.0.0.0:

udp 0 0 0.0.0.0:8888 0.0.0.0:
udp 0 0 0.0.0.0:9999 0.0.0.0:

cat /proc/cpuinfo

Processor : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 597.60 Features : swp half fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7

Hardware : Goke IPC Board Revision : 0000 Serial : 0000000000000000

dmesg | more

[ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Linux version 3.4.43-gk (root@localhost.localdomain) (gcc version 4.6.1 (crosstool-NG 1.18.0) ) #71 PREEMPT Fri Nov 10 15:20:07 CST 2017 [ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d [ 0.000000] CPU: VIPT aliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: Goke IPC Board [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] AHB: 0x90000000 0xf2000000 -- 0x1000000 [ 0.000000] APB: 0xa0000000 0xf3000000 -- 0x1000000 [ 0.000000] PPM: 0xc0000000 0xc0000000 -- 0x200000 [ 0.000000] BSB: 0xc2600000 0xf5000000 -- 0x100000 [ 0.000000] DSP: 0xc2700000 0xf6000000 -- 0x18f0000 [ 0.000000] USR: 0xc3ff0000 0xfe000000 -- 0x10000 [ 0.000000] hal version = 20160913 [ 0.000000] On node 0 totalpages: 9216 [ 0.000000] free_area_init_node: node 0, pgdat 8045b31c, node_mem_map 80493000 [ 0.000000] Normal zone: 72 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 9144 pages, LIFO batch:1 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 9144 [ 0.000000] Kernel command line: console=ttySGK0,115200 mem=36M rootfstype=squashfs root=/dev/mtdblock2 init=linuxrc mtdparts=gk_flash:320K(U),1664K(K),1152K(R),2560K(A),-(H) [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Memory: 36MB = 36MB total [ 0.000000] Memory: 31776k/31776k available, 5088k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] DMA : 0xff600000 - 0xffe00000 ( 8 MB) [ 0.000000] vmalloc : 0x82800000 - 0xff000000 (1992 MB) [ 0.000000] lowmem : 0x80000000 - 0x82400000 ( 36 MB) [ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB) [ 0.000000] .text : 0x80008000 - 0x80412000 (4136 kB) [ 0.000000] .init : 0x80412000 - 0x80433000 ( 132 kB) [ 0.000000] .data : 0x80434000 - 0x8045bbe0 ( 159 kB) [ 0.000000] .bss : 0x8045bc04 - 0x8048e1b8 ( 202 kB) [ 0.000000] NR_IRQS:128 [ 0.000000] >> gk init irq vic1... [ 0.000000] >> gk init irq vic2... [ 0.000000] gk init vic... [ 0.000000] mach gk init timer... [ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] console [ttySGK0] enabled [ 0.020000] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032) [ 0.080000] pid_max: default: 32768 minimum: 301 [ 0.080000] Mount-cache hash table entries: 512 [ 0.090000] CPU: Testing write buffer coherency: ok [ 0.100000] Setting up static identity map for 0xc0544288 - 0xc05442c0 [ 0.110000] NET: Registered protocol family 16 [ 0.120000] init timer... [ 0.120000] Init HW timer for DSP communication [ 0.120000] init gpio... [ 0.130000] ################################### [ 0.130000] [BOOT VERSION] GK7102 rb-sc1045-v2.0 v2.0 [ 0.140000] [NET INT_CLK] Internal PHY clock [ 0.140000] [GPIO]############################# [ 0.150000] [GPIO] gpio map get from uboot [ 0.150000] [GPIO CFG] gpio count = 53 [ 0.160000] [GPIO CFG] intphy count = 3 [ 0.160000] [GPIO CFG] extphy count = 3 [ 0.170000] [GPIO CFG] IR LED CTL (12) [ 0.170000] [GPIO CFG] IR CUT1 (44) [ 0.170000] [GPIO CFG] IR CUT2 (39) [ 0.180000] [GPIO CFG] SENSOR Reset (27) [ 0.180000] [GPIO CFG] PHY Reset (53) [ 0.190000] [GPIO CFG] PHY Speed Led (54) [ 0.190000] [GPIO CFG] SPI0 EN (53) [ 0.200000] [GPIO CFG] SPI1 EN (53) [ 0.200000] [GPIO CFG] USB HOST (53) [ 0.210000] [GPIO CFG] SD Detect (55) [ 0.210000] [GPIO CFG] SD Power (55) [ 0.210000] [GPIO]############################# [ 0.220000] gpiochip_add: registered GPIOs 0 to 63 on device: gk-gpio0 [ 0.230000] create proc dir [ 0.230000] gk register devices 10 [ 0.240000] gk register I2C [ 0.250000] bio: create slab at 0 [ 0.260000] spi spi.0: gk SPI Controller 0 created [ 0.260000] spi spi.0: master is unqueued, this is deprecated [ 0.270000] spi spi.1: gk SPI Controller 1 created [ 0.270000] spi spi.1: master is unqueued, this is deprecated [ 0.280000] usbcore: registered new interface driver usbfs [ 0.290000] usbcore: registered new interface driver hub [ 0.290000] usbcore: registered new device driver usb [ 0.300000] i2c regbase: 0xf3003000 [ 0.300000] i2c i2c.0: i2c irq:registers 9 [ 0.310000] i2c i2c.0: GK I2C[0] adapter[i2c-0] probed! [ 0.310000] i2c regbase: 0xf3004000 [ 0.320000] i2c i2c.1: i2c irq:registers 58 [ 0.320000] i2c i2c.1: GK I2C[1] adapter[i2c-1] probed! [ 0.340000] cfg80211: Calling CRDA to update world regulatory domain [ 0.340000] FS-Cache: Loaded [ 0.350000] CacheFiles: Loaded [ 0.360000] gk-sd gk-sd.0: Slot0 req_size=0x00010000, segs=16, seg_size=0x00010000 [ 0.390000] gk-sd gk-sd.0: GK SD/MMC[0] has 1 slots @ 50181818Hz, [0x09e130b0:0x00000000] [ 0.400000] NET: Registered protocol family 2 [ 0.400000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.410000] TCP established hash table entries: 2048 (order: 2, 16384 bytes) [ 0.420000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 0.430000] TCP: Hash tables configured (established 2048 bind 2048) [ 0.430000] TCP: reno registered [ 0.440000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.440000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.450000] NET: Registered protocol family 1 [ 0.460000] RPC: Registered named UNIX socket transport module. [ 0.460000] RPC: Registered udp transport module. [ 0.470000] RPC: Registered tcp transport module. [ 0.480000] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.480000] mdma init... [ 0.490000] mdma request irq: 54 [ 0.500000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.500000] NFS: Registering the id_resolver key type [ 0.510000] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc. [ 0.520000] msgmni has been set to 62 [ 0.530000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 0.540000] io scheduler noop registered [ 0.540000] io scheduler deadline registered [ 0.550000] io scheduler cfq registered (default) [ 0.550000] Serial: gk_uart driver [ 0.550000] serial_gk_probe: entry [ 0.550000] uart.0: ttySGK0 at MMIO 0xa0005000 (irq = 31) is a gkuart [ 0.560000] serial_gk_probe: succeed! [ 0.560000] serial_gk_probe: entry [ 0.560000] uart.1: ttySGK1 at MMIO 0xa001f000 (irq = 15) is a gkuart [ 0.570000] serial_gk_probe: succeed! [ 0.570000] serial_gk_probe: entry [ 0.570000] uart.2: ttySGK2 at MMIO 0xa001e000 (irq = 27) is a gkuart [ 0.580000] serial_gk_probe: succeed! [ 0.590000] brd: module loaded [ 0.590000] loop: module loaded [ 0.600000] adc initialized (10:11) [ 0.600000] speed_mod is 0 [ 0.610000] USE 1X mode read and 1X mode write [ 0.610000] gk_flash gk_flash.0: XM25QH64 (8192 Kbytes) [ 0.620000] 5 cmdlinepart partitions found on MTD device gk_flash [ 0.620000] Creating 5 MTD partitions on "gk_flash": [ 0.630000] 0x000000000000-0x000000050000 : "U" [ 0.640000] 0x000000050000-0x0000001f0000 : "K" [ 0.640000] 0x0000001f0000-0x000000310000 : "R" [ 0.650000] 0x000000310000-0x000000590000 : "A" [ 0.660000] 0x000000590000-0x000000800000 : "H" [ 0.660000] slram: not enough parameters. [ 0.670000] GKETH_init [ 0.670000] [GKETH_drv_probe] eth_base = 0xf200e000 [ 0.680000] mii id = 0 [ 0.680000] ###### PHY Reset.1.0.2 [ 0.800000] mdiobus_register: PHY[0] whose id 0x00000000 [ 0.800000] goke MII Bus: probed [ 0.810000] gk-eth gk-eth.0: MAC Address[02:11:22:a3:a0:00]. [ 0.820000] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host) [ 0.820000] musb phy Begin initial sequence ... [ 1.130000] gk musb init end... [ 1.140000] dma_controller_create_non_init ok [ 1.140000] musb-hdrc: ConfigData=0x03 (UTMI-16, SoftConn) [ 1.140000] musb-hdrc: MHDRC RTL version 2.0 [ 1.140000] musb-hdrc musb-hdrc: MUSB HDRC host driver [ 1.150000] musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1 [ 1.160000] hub 1-0:1.0: USB hub found [ 1.160000] hub 1-0:1.0: 1 port detected [ 1.170000] musb-hdrc musb-hdrc: USB Host mode controller at f0006000 using DMA, IRQ 26 [ 1.170000] platform add gk musb... [ 1.180000] mousedev: PS/2 mouse device common for all mice [ 1.190000] input: GKInput as /devices/virtual/input/input0 [ 1.190000] evbug: Connected device: input0 (GKInput at gk/input0) [ 1.190000] Protocol NEC[0] [ 1.200000] ir request irq: 62 [ 1.200000] IR Host Controller probed! [ 1.200000] gk rtc init... [ 1.210000] rtc base: 0xf2080000 [ 1.210000] os read tm: t=0 [ 1.210000] gk-rtc: dev (254:0) [ 1.210000] gk-rtc gk-rtc: rtc core: registered gk-rtc as rtc0 [ 1.220000] i2c /dev entries driver [ 1.220000] gk_wdt_v1_00: GK Watchdog Timer, (c) 2014 Goke Microelectronics

[ 1.240000] [gk_wdt_probe]: probe mapped wdt_base=f3006000 [ 1.250000] watchdog inactive, reset disabled, irq disabled [ 1.250000] IPv4 over IPv4 tunneling driver [ 1.260000] gre: GRE over IPv4 demultiplexor driver [ 1.260000] ip_gre: GRE over IPv4 tunneling driver [ 1.270000] TCP: cubic registered [ 1.280000] Initializing XFRM netlink socket [ 1.280000] NET: Registered protocol family 10 [ 1.290000] IPv6 over IPv4 tunneling driver [ 1.300000] NET: Registered protocol family 17 [ 1.300000] NET: Registered protocol family 15 [ 1.310000] Registering the dns_resolver key type [ 1.310000] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 [ 1.320000] os read tm: t=0 [ 1.330000] gk-rtc gk-rtc: setting system clock to 1970-01-01 00:00:00 UTC (0) [ 1.340000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2. [ 1.350000] Freeing init memory: 132K [ 1.620000] usb 1-1: new high-speed USB device number 2 using musb-hdrc [ 5.250000] gpio_dev init suc [ 5.370000] exFAT: Version 1.2.9 [ 6.120000] hal: module license 'Proprietary' taints kernel. [ 6.130000] Disabling lock debugging due to kernel taint [ 6.170000] crypto initialized (10:11) Media driver version (gcc version 4.6.1 (crosstool-NG 1.18.0) (uClibc)) v2.0.0 #svn r11887 Thu Apr 27 14:04:15 CST 2017 [ 6.470000] request_irq...24 ok-- video_sync [ 6.470000] request_irq...59 ok-- video_frame_last_pixel [ 6.480000] request_irq...61 ok-- video_frame [ 6.480000] Init software HR timer for DSP communication [ 6.730000] sensor board reset... [ 6.990000] detect:gc1034 at 0x42 [ 7.000000] gc1034 i2c read 0x000000f0 is 0x00000010 [ 7.000000] gc1034 i2c read 0x000000f1 is 0x00000034 [ 7.010000] =================================================== [ 7.020000] ================find:gc1034 at 0x42================ [ 7.020000] =================================================== [ 8.530000] usbcore: registered new interface driver rtl8188fu [ 10.240000] ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 10.290000] net eth0: ###### GKETH_start_hw [ 10.290000] net eth0: ###### GKETH_phy_start_aneg... [ 10.300000] ADDRCONF(NETDEV_UP): eth0: link is not ready [ 10.900000] initlializing ptz... [ 10.900000] [ 10.900000] Parameters of PTZ driver: [ 10.910000] test_max_pos = 0 [ 10.910000] max_pps = 1000 [ 10.910000] pulse interval: 100/1000 = 0 [ 10.920000] xchg_dir = 2 [ 10.920000] hspd_slfck = 60 [ 10.920000] vspd_slfck = 40 [ 10.930000] hspd_normal = 0 [ 10.930000] vspd_normal = 0 [ 10.930000] hspd_reloc = 30 [ 10.940000] vspd_reloc = 10 [ 10.940000] spd_zoom = 3 [ 10.940000] hmotor_upbound = 420 [ 10.940000] vmotor_upbound = 105 [ 10.950000] zmotor_upbound = 130 [ 10.950000] no_selfck = 0 [ 10.960000] other_flags = 288 [ 10.960000] hmotor_center = 215 [ 10.960000] vmotor_center = 50 [ 10.970000] other_flags: [ 10.970000] 0x0001 --- Return to center when power on [ 10.970000] 0x0002 --- Z-Motor only [ 10.970000] 0x0004 --- No self-check [ 10.970000] 0x0008 --- Ignore position [ 10.970000] 0x0010 --- Respect spd_slfck [ 10.970000] 0x0020 --- No posotion-switch detection [ 10.980000] motor pins: 46,47,42,43,40,41,37,38 [ 10.980000] orig position: <215, 50, 0> [ 10.990000] GK710X gpio ptz(goke timer) device driver[2018.12.14] initialized. [ 13.830000] net eth0: ###### GKETH_phy_stop [ 13.840000] net eth0: ###### GKETH_start_hw [ 13.850000] net eth0: ###### GKETH_phy_start_aneg... [ 13.860000] device eth0 entered promiscuous mode [ 13.860000] ADDRCONF(NETDEV_UP): eth0: link is not ready [ 14.560000] =================================================== [ 14.560000] =====gc1034 drv create at 20170801 ver:20170210==== [ 14.570000] =================================================== [ 14.580000] [sensor_get_dev_id 276]find sensor id: 00001034 [ 14.590000] sensor board reset... [ 15.900000] sensor board reset... [ 16.190000] win_height:0 win_width:0 [ 16.200000] win_height:0 win_width:0 [ 21.130000] net eth0: ###### GKETH_phy_stop [ 25.040000] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 35.190000] wlan0: no IPv6 routers present [ 103.000000] net eth0: ###### GKETH_start_hw [ 103.030000] net eth0: ###### GKETH_phy_start_aneg... [ 103.030000] ADDRCONF(NETDEV_UP): eth0: link is not ready

lsmod

Tainted: P  

gkptz_gpio 17916 0 - Live 0x7f1c2000 (O) 8188fu 932958 0 - Live 0x7f0ae000 (O) gc1034_ex 12387 0 - Live 0x7f0a7000 (O) sensor 155912 1 gc1034_ex, Live 0x7f07d000 (PO) audio 8700 4 - Live 0x7f077000 (PO) media 259569 7 sensor, Live 0x7f02f000 (PO) hw_crypto 1948 1 media, Live 0x7f02b000 (PO) hal 31555 1 media, Live 0x7f01f000 (PO) exfat 88974 0 - Live 0x7f004000 (O) gio 1587 1 - Live 0x7f000000 (O)

regards,

paus56 commented 5 years ago

about the solution to the problem, read there: http://4pda.ru/forum/index.php?s=&showtopic=928641&view=findpost&p=78958710