Closed arguser closed 3 months ago
I've build the firmware locally, didn't change anything. Posting entire dmesg
to extend information.
[root@atomcam:~]# dmesg
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.14__isvp_swan_1.0__ (root@0af00a90f577) (gcc version 4.7.4 (Buildroot 2016.02) ) #2 PREEMPT Tue May 16 22:24:12 UTC 2023
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 RESET ERROR PC:A97D5518
[ 0.000000] CPU0 revision is: 00d00100 (Ingenic Xburst)
[ 0.000000] FPU revision is: 00b70000
[ 0.000000] cgu_get_rate, parent = 1392000000, rate = 0, m = 0, n = 0, reg val = 0x081000ff
[ 0.000000] cgu_get_rate, parent = 1392000000, rate = 0, m = 0, n = 0, reg val = 0x081000ff
[ 0.000000] CCLK:1392MHz L2CLK:696Mhz H0CLK:200MHz H2CLK:200Mhz PCLK:100Mhz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 004f7000 @ 00010000 (usable)
[ 0.000000] memory: 000c9000 @ 00507000 (usable after init)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 05000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x04ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x04ffffff]
[ 0.000000] On node 0 totalpages: 20480
[ 0.000000] free_area_init_node: node 0, pgdat 80503350, node_mem_map 81000000
[ 0.000000] Normal zone: 160 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 20480 pages, LIFO batch:3
[ 0.000000] Primary instruction cache 32kB, 8-way, VIPT, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 8-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] pls check processor_id[0x00d00100],sc_jz not support!
[ 0.000000] MIPS secondary cache 128kB, 8-way, linesize 32 bytes.
[ 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 off. Total pages: 20320
[ 0.000000] Kernel command line: console=ttyS1,115200n8 mem=80M@0x0 rmem=48M@0x5000000 rdinit=/init mtdparts=jz_sfc:256K(boot),1984K(kernel),3904K(rootfs),3904K(app),1984K(kback),3904K(aback),384K(cfg),64K(para)
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 73392k/81920k available (3891k kernel code, 8528k reserved, 1189k data, 804k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:358
[ 0.000000] clockevents_config_and_register success.
[ 0.000014] Calibrating delay loop... 1391.00 BogoMIPS (lpj=6955008)
[ 0.087832] pid_max: default: 32768 minimum: 301
[ 0.092689] Mount-cache hash table entries: 512
[ 0.097606] Initializing cgroup subsys debug
[ 0.101862] Initializing cgroup subsys freezer
[ 0.107293] devtmpfs: initialized
[ 0.111433] regulator-dummy: no parameters
[ 0.115678] NET: Registered protocol family 16
[ 0.129553] bio: create slab <bio-0> at 0
[ 0.135002] jz-dma jz-dma: JZ SoC DMA initialized
[ 0.139985] usbcore: registered new interface driver usbfs
[ 0.145516] usbcore: registered new interface driver hub
[ 0.150958] usbcore: registered new device driver usb
[ 0.156142] (null): set:249 hold:250 dev=100000000 h=500 l=500
[ 0.162233] media: Linux media interface: v0.10
[ 0.166794] Linux video capture interface: v2.00
[ 0.171594] Advanced Linux Sound Architecture Driver Initialized.
[ 0.178907] Switching to clocksource jz_clocksource
[ 0.183971] cfg80211: Calling CRDA to update world regulatory domain
[ 0.190896] dwc2 otg probe start
[ 0.190920] jz-dwc2 jz-dwc2: cgu clk gate get error
[ 0.195826] DWC IN OTG MODE
[ 0.199235] dwc2 dwc2: Keep PHY ON
[ 0.202598] dwc2 dwc2: Using Buffer DMA mode
[ 0.206946] dwc2 dwc2: Core Release: 3.00a
[ 0.211108] dwc2 dwc2: DesignWare USB2.0 High-Speed Host Controller
[ 0.217455] dwc2 dwc2: new USB bus registered, assigned bus number 1
[ 0.224598] hub 1-0:1.0: USB hub found
[ 0.228329] hub 1-0:1.0: 1 port detected
[ 0.232380] dwc2 dwc2: DWC2 Host Initialized
[ 0.236865] dwc2 dwc2: enter dwc2_gadget_plug_change:2589: plugin = 1 pullup_on = 0 suspend = 0
[ 0.245670] dwc2 otg probe success
[ 0.245800] NET: Registered protocol family 2
[ 0.250526] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.257596] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.263989] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.270448] TCP: reno registered
[ 0.273676] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.279622] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.286154] NET: Registered protocol family 1
[ 0.311104] dwc2 dwc2: ID PIN CHANGED!
[ 0.672866] freq_udelay_jiffys[0].max_num = 10
[ 0.677366] cpufreq udelay loops_per_jiffy
[ 0.681707] 12000 59956 59956
[ 0.684994] 24000 119913 119913
[ 0.688417] 60000 299784 299784
[ 0.691861] 120000 599569 599569
[ 0.695473] 200000 999282 999282
[ 0.698924] 300000 1498924 1498924
[ 0.702632] 600000 2997848 2997848
[ 0.706351] 792000 3957159 3957159
[ 0.710049] 1008000 5036385 5036385
[ 0.713853] 1200000 5995696 5995696
[ 0.721720] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.727754] jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
[ 0.733488] msgmni has been set to 143
[ 0.738159] io scheduler noop registered
[ 0.742082] io scheduler cfq registered (default)
[ 0.748632] jz-uart.1: ttyS1 at MMIO 0x10031000 (irq = 58) is a uart1
[ 0.756235] console [ttyS1] enabled, bootconsole disabled
[ 0.770411] brd: module loaded
[ 0.775320] loop: module loaded
[ 0.779051] zram: Created 2 device(s) ...
[ 0.783267] logger: created 256K log 'log_main'
[ 0.788473] jz TCU driver register completed
[ 0.793167] the id code = 5e4018, the flash name is ZB25VQ128
[ 0.799157] JZ SFC Controller for SFC channel 0 driver register
[ 0.805305] 8 cmdlinepart partitions found on MTD device jz_sfc
[ 0.811413] Creating 8 MTD partitions on "jz_sfc":
[ 0.816376] 0x000000000000-0x000000040000 : "boot"
[ 0.821783] 0x000000040000-0x000000230000 : "kernel"
[ 0.827402] 0x000000230000-0x000000600000 : "rootfs"
[ 0.832959] 0x000000600000-0x0000009d0000 : "app"
[ 0.838292] 0x0000009d0000-0x000000bc0000 : "kback"
[ 0.843746] 0x000000bc0000-0x000000f90000 : "aback"
[ 0.849292] 0x000000f90000-0x000000ff0000 : "cfg"
[ 0.854641] 0x000000ff0000-0x000001000000 : "para"
[ 0.860002] SPI NOR MTD LOAD OK
[ 0.863285] tun: Universal TUN/TAP device driver, 1.6
[ 0.868535] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 0.875307] wait stable.[289][cgu_msc0]
[ 0.879275] jzmmc_v1.2 jzmmc_v1.2.0: vmmc regulator missing
[ 0.885287] jzmmc_v1.2 jzmmc_v1.2.0: register success!
[ 0.890642] jzmmc_v1.2 jzmmc_v1.2.1: vmmc regulator missing
[ 0.896437] jzmmc_v1.2 jzmmc_v1.2.0: card inserted, state=0
[ 0.902424] jzmmc_v1.2 jzmmc_v1.2.1: register success!
[ 0.911590] TCP: cubic registered
[ 0.915087] NET: Registered protocol family 17
[ 0.920338] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 0.927527] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.934123] ALSA device list:
[ 0.937188] #0: Loopback 1
[ 0.940150] #2: Loopback 2
[ 0.945480] Freeing unused kernel memory: 804K (80507000 - 805d0000)
[ 1.163809] mmc0: new high speed SDHC card at address aaaa
[ 1.169710] mmcblk0: mmc0:aaaa SU08G 7.40 GiB
[ 1.175929] mmcblk0: p1
[ 3.939722] EXT4-fs (loop0): mounting ext2 file system using the ext4 subsystem
[ 3.951551] EXT4-fs (loop0): mounted filesystem without journal. Opts: (null)
[ 11.873807] jzmmc_v1.2 jzmmc_v1.2.0: timeout 500ms op:25 w sz:9728 state:2 STAT:0x1E000580 DMALEN:0x00001600 blks:7/19 clk:enable clk_gate:enable
[ 25.434586] Adding 131068k swap on /media/mmc/swap. Priority:-1 extents:2 across:264476k SS
[ 26.122908] EXT4-fs (loop1): mounting ext2 file system using the ext4 subsystem
[ 26.131718] EXT4-fs (loop1): mounted filesystem without journal. Opts: (null)
[ 27.106829] __init
[ 27.163715] mmc1: new SDIO card at address 0001
[ 27.359381] [atbm_log]:SVN_VER=2081,DPLL_CLOCK=24,BUILD_TIME=[===== =====]
[ 27.373856] [atbm_log]:----drvier RATEPOLCIY=OLD
[ 27.379259] [atbm_log]:Probe called
[ 27.382909] [atbm_log]:atbm_sdio_probe:v12
[ 27.387434] [atbm_log]:Allocated hw_priv @ 821bad80
[ 27.392640] [atbm_log]:[BH] register.
[ 27.396878] [atbm_log]:atbmwifi INIT_WORK enable
[ 27.401698] [atbm_log]:atbmwifi INIT_WORK enable
[ 27.406796] [atbm_log]:atbm_before_load_firmware++
[ 27.411830] [atbm_log]:atbm_before_load_firmware:0xab0016c = [34800000]
[ 27.418897] [atbm_log]:atbm_sdio_rx_thread
[ 27.423279] [atbm_log]:atbm_before_load_firmware:0xab0016c = [34800000]
[ 27.430400] [atbm_log]:atbm_before_load_firmware:do not set config to smu
[ 27.443807] [atbm_log]:rx timeout
[ 27.541378] [atbm_log]:atbm_before_load_firmware:read [0x16100074]=[0],ret(0)
[ 27.548932] [atbm_log]:atbm_before_load_firmware:write [0x16100074]=[1],ret(0)
[ 27.656627] [atbm_log]:atbm_start_load_firmware++
[ 27.661480] [atbm_log]:used firmware.h=
[ 27.665626] [atbm_log]:START DOWNLOAD ICCM=========
[ 27.670670] [atbm_log]:atbm_load_firmware_generic: addr 10000: len 22000
[ 27.721964] [atbm_log]:START DOWNLOAD DCCM=========
[ 27.727187] [atbm_log]:atbm_load_firmware_generic: addr 800000: len 9000
[ 27.745288] [atbm_log]:atbm_after_load_firmware++
[ 27.763864] [atbm_log]:firmwareCap f5ad
[ 27.767830] [atbm_log]:firmwareCap2 51a4
[ 27.771866] [atbm_log]:wsm_caps.firmwareCap 51a4f5ad
[ 27.776835] [atbm_log]:apollo wifi WSM init done.
[ 27.776835] Input buffers: 42 x 1728 bytes
[ 27.776835] Hardware: 7.1280
[ 27.776835] WSM firmware [=MODEM=RF=Ares_AX 2GHZ Jan 13 2022 15:25:33NOTXConfrim], ver: 13625, build: 2824, api: 1060, cap: 0x51A4F5AD Config[30008] expection 900b80c, ep0 cmd addr 901d3f8 NumOfStations[8] NumOfInterfaces[3]
[ 27.810601] [atbm_log]:EFUSE(8) [0]
[ 27.814476] [atbm_log]:EFUSE(I) [1]
[ 27.818433] [atbm_log]:EFUSE(B) [0]
[ 27.822200] [atbm_log]:CAPABILITIES_ATBM_PRIVATE_IE [0]
[ 27.828042] [atbm_log]:CAPABILITIES_NVR_IPC [1]
[ 27.833889] [atbm_log]:CAPABILITIES_NO_CONFIRM [1]
[ 27.839727] [atbm_log]:CAPABILITIES_SDIO_PATCH [0]
[ 27.845568] [atbm_log]:CAPABILITIES_NO_BACKOFF [1]
[ 27.851404] [atbm_log]:CAPABILITIES_CFO [0]
[ 27.857244] [atbm_log]:CAPABILITIES_AGC [1]
[ 27.863078] [atbm_log]:CAPABILITIES_TXCAL [1]
[ 27.868920] [atbm_log]:CAPABILITIES_MONITOR [0]
[ 27.874768] [atbm_log]:CAPABILITIES_CUSTOM [1]
[ 27.880604] [atbm_log]:CAPABILITIES_SMARTCONFIG [0]
[ 27.886442] [atbm_log]:CAPABILITIES_ETF [1]
[ 27.892282] [atbm_log]:CAPABILITIES_LMAC_RATECTL [1]
[ 27.898118] [atbm_log]:CAPABILITIES_LMAC_TPC [1]
[ 27.903964] [atbm_log]:CAPABILITIES_LMAC_TEMPC [1]
[ 27.909793] [atbm_log]:CAPABILITIES_CTS_BUG [0]
[ 27.915633] [atbm_log]:CAPABILITIES_USB_RECOVERY_BUG [0]
[ 27.921464] [atbm_log]:CAPABILITIES_USE_IPC [0]
[ 27.927305] [atbm_log]:CAPABILITIES_OUTER_PA [0]
[ 27.933137] [atbm_log]:CAPABILITIES_POWER_CONSUMPTION [1]
[ 27.938974] [atbm_log]:CAPABILITIES_RSSI_DECIDE_TXPOWER [0]
[ 27.944815] [atbm_log]:CAPABILITIES_RTS_LONG_DURATION [1]
[ 27.950654] [atbm_log]:CAPABILITIES_TX_CFO_PPM_CORRECTION[1]
[ 27.956500] [atbm_log]:CAPABILITIES_SHARE_CRYSTAL [0]
[ 27.962240] [atbm_log]:CAPABILITIES_HW_CHECKSUM [0]
[ 27.968077] [atbm_log]:CAPABILITIES_SINGLE_CHANNEL_MULRX [0]
[ 27.973924] [atbm_log]:CAPABILITIES_CFO_DCXO_CORRECTION [1]
[ 27.979755] [atbm_log]:EX_CAPABILITIES_TWO_CHIP_ONE_SOC [0]
[ 27.985333] [atbm_log]:EX_CAPABILITIES_MANUAL_SET_AC [0][atbm_log]:EX_CAPABILITIES_LMAC_BW_CONTROL [1]
[ 27.995035] [atbm_log]:EX_CAPABILITIES_SUPPORT_TWO_ANTENNA [0][atbm_log]:EX_CAPABILITIES_ENABLE_STA_REMAIN_ON_CHANNEL [1]
[ 28.006369] [atbm_log]:EX_CAPABILITIES_ENABLE_PS [0][atbm_log]:EX_CAPABILITIES_TX_REQUEST_FIFO_LINK [0]
[ 28.016787] [atbm_log]:CONFIG_PRODUCT_TEST_USE_FEATURE_ID [1]
[ 28.022894] [atbm_log]:CONFIG_PRODUCT_TEST_USE_GOLDEN_LED [1]
[ 28.037841] [atbm_log]:set_block_size=256
[ 28.041973] [atbm_log]:mdelay wait wsm_startup_done !!
[ 28.047599] [atbm_log]:atbm_sdio_tx_thread
[ 28.052173] [atbm_log]:wsm_generic_confirm:status(2)
[ 28.057561] [atbm_log]:<WARNING> wsm_write_mib fail !!! mibId=4132
[ 28.064364] [atbm_log]:apollo wifi : can't open /data/.mac.info
[ 28.070789] [atbm_log]:efuse data is [0x1,0x3b,0x1d,0x1d,0x0,0x9,0x0,0x0,0xa4:0xef:0x15:0x60:0x67:0x18]
[ 28.080754] [atbm_log]:param:delta_gain1:-1 delta_gain2:-1 delta_gain3:-1 dcxo:-1
[ 28.080754] b_delta_gain1:10 b_delta_gain2:12 b_delta_gain3:15
[ 28.080754] gn_delta_gain1:10 gn_delta_gain2:8 gn_delta_gain3:12
[ 28.098079] [atbm_log]:cmd: set_txpwr_and_dcxo,-1,-1,-1,-1,10,12,15,10,8,12
[ 28.106147] [atbm_log]:0,b_1M_2M=0
[ 28.109656] [atbm_log]:1,b_5_5M_11M=0
[ 28.113429] [atbm_log]:2,g_6M_n_6_5M=0
[ 28.117560] [atbm_log]:3,g_9M=0
[ 28.120798] [atbm_log]:4,g_12M_n_13M=0
[ 28.124837] [atbm_log]:5,g_18M_n_19_5M=0
[ 28.128885] [atbm_log]:6,g_24M_n_26M=0
[ 28.132750] [atbm_log]:7,g_36M_n_39M=0
[ 28.136877] [atbm_log]:8,g_48M_n_52M=0
[ 28.140744] [atbm_log]:9,g_54M_n_58_5M=0
[ 28.144981] [atbm_log]:10,n_65M=2
[ 28.148700] [atbm_log]:get chip id [14][0][0]
[ 28.153288] [atbm_log]:current chiptype 6032(i)
[ 28.158715] [atbm_log]:enable sg
[ 28.199243] [atbm_log]:is registered as 'ALTOBEAM'
[ 28.211700] [atbm_log]:[atbm_wtd]:set wtd_probe = 1
[ 28.424085] [atbm_log]:mmc1 has been attached
[ 29.444565] [atbm_log]:[atbm_module_printk_mask_store]:LOG_ERR=OFF LOG_WARN=ON LOG_LMAC=ON LOG_SCAN=OFF
[ 29.444565]
[ 29.456126] [atbm_log]:option_pos(ON LOG_LMAC=ON LOG_SCAN=OFF
[ 29.456126] ),val_pos(OFF LOG_WARN=ON LOG_LMAC=ON LOG_SCAN=OFF
[ 29.456126] )
[ 29.470015] [atbm_log]:[LOG_ERR=ON]--->[LOG_ERR=OFF]
[ 29.475305] [atbm_log]:[LOG_WARN=ON]--->[LOG_WARN=ON]
[ 29.480522] [atbm_log]:[LOG_LMAC=ON]--->[LOG_LMAC=ON]
[ 29.485922] [atbm_log]:[LOG_SCAN=ON]--->[LOG_SCAN=OFF]
[ 29.491227] [atbm_log]:atbm_module_printk_mask_store end 1
[ 31.602092] [atbm_log]:wlan0:free authen bss ++
[ 31.643801] [atbm_log]:authen:(28:ee:52:b7:f4:bb),ssid(netscape)
[ 31.670916] [atbm_log]:wlan0: authenticated
[ 31.677303] [atbm_log]:wlan0:free authen bss ++
[ 31.715642] [atbm_log]:wlan0:free authen bss --
[ 31.726517] [atbm_log]:wlan0: associated
[ 31.732992] [atbm_log]:[28:ee:52:b7:f4:bb]:20M channel
[ 31.744033] [atbm_log]:ieee80211_process_addba_request:mac[28:ee:52:b7:f4:bb],tid[5]
[ 35.344261] [atbm_log]:ieee80211_process_addba_request:mac[28:ee:52:b7:f4:bb],tid[0]
[ 35.666883] <WIFI> rx ampdu ++
[ 42.326506] v4l2loopback driver version 0.12.5 loaded
[ 42.886317] @@@@ tx-isp-probe ok(version H20211020a-noeprint), compiler date=Oct 20 2021 @@@@@
[ 42.989940] jz_codec_register: probe() successful!
[ 43.002216] cgu_set_rate, parent = 1392000000, rate = 2048000, n = 10875, reg val = 0x01002a7b
[ 43.002230] cgu_enable,cgu_i2s_spk reg val = 0x21002a7b
[ 43.002251] cgu_set_rate, parent = 1392000000, rate = 2048000, n = 10875, reg val = 0x01002a7b
[ 43.002259] cgu_enable,cgu_i2s_mic reg val = 0x21002a7b
[ 43.404093] dma dma0chan24: Channel 24 have been requested.(phy id 7,type 0x06 desc a49e4000)
[ 43.413194] dma dma0chan25: Channel 25 have been requested.(phy id 6,type 0x06 desc a330d000)
[ 43.422684] dma dma0chan26: Channel 26 have been requested.(phy id 5,type 0x04 desc a330c000)
[ 43.508921] jz_pwm_probe[212] d_name = tcu_chn0
[ 43.521651] The version of PWM driver is H20180309a
[ 43.544147] request pwm channel 0 successfully
[ 43.554426] pwm-jz pwm-jz: jz_pwm_probe register ok !
[ 46.096054] name : i2c0 nr : 0
[ 46.183963] i2c i2c-0: i2c_jz_irq 441, I2C transfer error, ABORT interrupt
[ 46.191085] i2c i2c-0: --I2C txabrt:
[ 46.195237] i2c i2c-0: --I2C TXABRT[0]=I2C_TXABRT_ABRT_7B_ADDR_NOACK
[ 46.201849] error: sensor_read,285 ret = -5
[ 46.206521] sensor_read: addr=0x3107 value = 0x0
[ 46.211371] err sensor read addr = 0x3107, value = 0x0
[ 46.304299] sensor_read: addr=0xf0 value = 0x20
[ 46.309558] sensor_read: addr=0xf1 value = 0x53
[ 46.314597] info: success sensor find : gc2053
[ 46.319247] misc sinfo_release
[ 46.348660] probe ok ------->gc2053
[ 46.424326] -----gc2053_detect: 961 ret = 0, v = 0x20
[ 46.424819] -----gc2053_detect: 967 ret = 0, v = 0x53
[ 46.424828] gc2053 chip found @ 0x37 (i2c0) version H20210728a
[ 46.641742] gc2053 stream on
[ 46.704962] codec_codec_ctl: set sample rate...
[ 46.705268] codec_codec_ctl: set device...
[ 47.163827] codec_set_device: set device: MIC...
[ 47.171388] codec_codec_ctl: set repaly channel...
[ 47.171409] codec_codec_ctl: set sample rate...
[ 47.171574] codec_codec_ctl: set device...
[ 47.403895] codec_set_device: set device: speaker...
[ 47.414812] SPEAKER CTL MODE0 !
[ 51.529748] do_page_fault() #2: sending SIGSEGV to webrtc_work for invalid write access to
[ 51.529748] 6f012ff4 (epc == 7784e3bc, ra == 7784e400)
[ 51.613813] gc2053 stream off
[ 51.785203] codec_codec_ctl: set CODEC_TURN_OFF...
[ 51.986933] codec_codec_ctl: set CODEC_TURN_OFF...
You should comment out lines 36 and after in overlay_rootfs/scripts/atom_init.sh and local build. You can ssh with no reset by WDT. To see what is happening in iCamera_app, try executing lines 36 and after in order on the shell. You can then change the iCamera_app redirect to /media/mmc/app.log to log to the SD-Card.
Hello! Are you doing this on the "Personal Cam"?
@emanuelcima Sí loco 🧉
@mnakada I've collected the logs for iCamera_app. Commenting the lines resulted on yellow led -> yellow led, not being able to ssh into the device.
===========welcome to iCamera_app===========
[Build date] Apr 13 2023 (16:12:56)
[msg:109]log: msg_queue_create() ok MsgId:65538
[sdevice_can_work_set_callback]dbg: set ok! have 1 cb
[msg:538]log: [msg_queue_TUTK_report_module_init]msg_queue_create() ok MsgId:98307
init_log_module() ok
[sdevice_can_work_set_callback]dbg: set ok! have 2 cb
[exec-iCame:151]: msgSndId:0
[exec-iCame:166]: msgRcvId:32769
[exec-iCame,0495](no.300000) cmd:[/system/bin/sysMonitor.sh &]
[threadpool,0142](init_job_node) jobNodeNumMin:30 jobNodeNumMax:45
[timer,150]dbg: init complete.
[debug.c,0190]debug_init() dbgId:0
watchdog_init() ok TimerId:1
[1m<Reading> /configs/.product_config [0m
[product_config.c,0260][PRODUCT] [PRODUCT_TYPE ] [camera]
[product_config.c,0260][PRODUCT] [PRODUCT_MODEL] [TELEAR_CamPan]
[product_config.c,0260][PRODUCT] [BOARD_TEST ] [FFFF]
[product_config.c,0260][PRODUCT] [FACTORY_TEST ] [0000]
[product_config.c,0260][PRODUCT] [HARDWARE_VER ] [P02A0000]
[product_config.c,0260][PRODUCT] [KEY ] [REDACTED]
[product_config.c,0260][PRODUCT] [KEY_CHECKSUM ] [00004011]
[product_config.c,0260][PRODUCT] [CONFIG_INFO ] [REDACTED|||0000]
[product_config.c,0269][PRODUCT] [macAddr ] [REDACTED]
[1m<Reading> /configs/app.ver [0m
[product_config.c,0303][PRODUCT] [appver ] [3.17.0.47]
[1m<Reading> /configs/.user_config [0m
[user_config.c,0484][USERSET] [indicator ] [1]
[user_config.c,0484][USERSET] [nightVision ] [3]
[user_config.c,0484][USERSET] [bitRate ] [120]
[user_config.c,0484][USERSET] [res ] [1]
[user_config.c,0484][USERSET] [fps ] [20]
[user_config.c,0484][USERSET] [horSwitch ] [2]
[user_config.c,0484][USERSET] [verSwitch ] [2]
[user_config.c,0484][USERSET] [osdSwitch ] [1]
[user_config.c,0484][USERSET] [logSd ] [1]
[user_config.c,0484][USERSET] [logUdisk ] [1]
[user_config.c,0484][USERSET] [telntSwitch ] [2]
[user_config.c,0484][USERSET] [recordType ] [1]
[user_config.c,0484][USERSET] [MASwitch ] [2]
[user_config.c,0484][USERSET] [MALevel ] [5]
[user_config.c,0484][USERSET] [AASwitch ] [2]
[user_config.c,0484][USERSET] [AALevel ] [5]
[user_config.c,0484][USERSET] [SASwitch ] [2]
[user_config.c,0484][USERSET] [CASwitch ] [2]
[user_config.c,0484][USERSET] [TBStart ] [0]
[user_config.c,0484][USERSET] [TBDuration ] [1440]
[user_config.c,0484][USERSET] [drawBoxSwitch] [1]
[user_config.c,0484][USERSET] [timezone ] [-3]
[user_config.c,0484][USERSET] [MMALevel ] [128]
[user_config.c,0484][USERSET] [AMALevel ] [128]
[user_config.c,0484][USERSET] [MAT ] [0]
[user_config.c,0484][USERSET] [AST ] [1]
[user_config.c,0484][USERSET] [motionTrack ] [2]
[user_config.c,0484][USERSET] [motionCruisin] [2]
[user_config.c,0484][USERSET] [AASX ] [25]
[watchdog]dbg: watchdog_snd_msg_feed [time:1684287127]
[user_config.c,0484][USERSET] [AASY ] [25]
[user_config.c,0484][USERSET] [AALX ] [50]
[user_config.c,0484][USERSET] [AALY ] [50]
[user_config.c,0484][USERSET] [motionback ] [1]
[user_config.c,0484][USERSET] [slide_x ] [18000]
[user_config.c,0484][USERSET] [slide_y ] [9000]
[user_config.c,0484][USERSET] [preset_x ] [0]
[user_config.c,0484][USERSET] [preset_y ] [0]
[user_config.c,0484][USERSET] [ubootflag ] [0]
[user_config.c,0484][USERSET] [exposureModel] [0]
[user_config.c,0484][USERSET] [limit_max_x ] [0]
[user_config.c,0484][USERSET] [limit_min_x ] [0]
[user_config.c,0484][USERSET] [limit_max_y ] [0]
[user_config.c,0484][USERSET] [limit_min_y ] [0]
[user_config.c,0484][USERSET] [motor_limit ] [0]
[user_config.c,0484][USERSET] [resoluselect ] [1]
[user_config.c,0484][USERSET] [low_bitrate ] [30]
[user_config.c,0484][USERSET] [watermark_flag] [0]
[user_config.c,0484][USERSET] [speaker_vol ] [50]
[user_config.c,0484][USERSET] [pir_alaram ] [1]
[user_config.c,0484][USERSET] [nightLight ] [1]
[user_config.c,0484][USERSET] [sdeviceExist ] [0]
[user_config.c,0484][USERSET] [recordNum ] [0]
[user_config.c,0484][USERSET] [recordSize ] [0]
[user_config.c,0484][USERSET] [dongleLight ] [1]
[user_config.c,0484][USERSET] [alarmDate ] [255]
[user_config.c,0484][USERSET] [alarmInterval] [300]
[user_config.c,0484][USERSET] [sdevAction ] [1]
[user_config.c,0484][USERSET] [voiceSwitch ] [2]
[user_config.c,0484][USERSET] [voiceScene ] [1]
[user_config.c,0484][USERSET] [autoBitrate ] [2]
[user_config.c,0484][USERSET] [cloudSwitch ] [1]
[user_config.c,0484][USERSET] [night_cut_thr] [1]
[user_config.c,0484][USERSET] [motor_speed ] [4]
[user_config.c,0484][USERSET] [TrackSwitch ] [1]
[user_config.c,0484][USERSET] [PeopertySwitch] [1]
[user_config.c,0484][USERSET] [PetsSwitch ] [0]
[user_config.c,0484][USERSET] [TotalSwitch ] [1]
[user_config.c,0484][USERSET] [secondtimezone] [-10800]
[user_config.c,0484][USERSET] [kvsModelType ] [0]
[user_config.c,0484][USERSET] [AlarmVideoType] [0]
[user_config.c,0484][USERSET] [AlarmRecordTime] [12]
[user_config.c,0370][USERNET] [ssid ] [REDACTED]
[user_config.c,0375][USERNET] [password ] [REDACTED]
[user_config.c,0379][USERNET] [wifiType ] [5]
[user_config.c,0384][USERNET] [p2pid ] []
[user_config.c,0389][USERNET] [r_encr ] [REDACTED]
[user_config.c,0393][USERNET] [bindOk ] [1]
[sdk,0306]----------------------------------------
[sdk,0307] WELCOME TO LOCALSDK ('_)')
[sdk,0308]----------------------------------------
[sdk,0309] platform: ingenict31x
[sdk,0313] version : 1.1.26.40
[sdk,0314] update : Jul 12 2022 (13:54:08)
[sdk,0315]----------------------------------------
[sdk,0205]dbg: Pin(48) Lvl(0) Dir(out)
[sdk,0205]dbg: Pin(47) Lvl(1) Dir(out)
[sdk,0205]dbg: Pin(53) Lvl(0) Dir(out)
[sdk,0205]dbg: Pin(52) Lvl(0) Dir(out)
[sdk,0205]dbg: Pin(14) Lvl(0) Dir(out)
[sdk,0205]dbg: Pin(38) Lvl(1) Dir(out)
[sdk,0205]dbg: Pin(7) Lvl(1) Dir(in)
[sdk,0205]dbg: Pin(50) Lvl(0) Dir(in)
[sdk,0345]dbg: Platform Thread Create OK! ('_)')
motorport_open failed
[local_sdk_motor_init]err: sdk_motor_init Fail!
[sdk,0479]dbg: (local_sdk_set_major_error_callback) Doing...
[sdk,0225][1.1.26.40]
init_local_sdk,2092:[init_local_sdk] localsdk version:26
init_local_sdk,2099:[init_local_sdk] localsdk version:0
[sdk,0265]dbg: Platform Thread Start...
[sdk,1673]##### sensor type: gc2053 #####
[sdk,0164]dbg:(softlight_set_sensor) find sensor:gc2053 ok!
[exec-iCame,0468](no.100000) cmd:[insmod /system/driver/sensor_gc2053_t31.ko data_interface=1]
[exec-iCame,0471](no.100000) msgque ret:[0]
[sdk,0817]##### sensor fps: 20 #####
[sdk,0823]##### sensor MaxDGain: 64, AeComp: 128, sensor HiLightDepress: 2 #####
[sdk,0525]dbg:(local_sdk_video_osd_set_font_bitmap) bitmap addr:[0x56b860]
[sdk,1787]dbg:(local_sdk_video_create) apiChn:0, grp:0
[sdk,1807]dbg: Enc_thread(chn0) create OK! ('_)')
[sdk,1893]dbg:(local_sdk_video_set_parameters) apiChn:0, grp:0
[sdk,0638]dbg:(local_sdk_video_osd_set_parameters) osd set params chn:0, grp:0
[sdk,0385]dbg: layer[0] is [Enable]...
[sdk,0385]dbg: layer[1] is [Enable]...
[sdk,0385]dbg: layer[2] is [Enable]...
[sdk,0385]dbg: layer[3] is [Enable]...
[sdk,0385]dbg: layer[4] is [Disable]...
[sdk,0385]dbg: layer[6] is [Disable]...
[sdk,0740]dbg:(local_sdk_video_osd_set_parameters) set to paramsok, chn0, grp0
[sdk,0112]dbg: Set Video Enc Callback Doing... (chn:0)
[sdk,2117]dbg:(local_sdk_video_start) apiChn:0 grp:0
[sdk,0917]dbg:(sample_framesource_init) apiChn0, fsChn:0
[sdk,2138]dbg: IMP_Encoder_CreateGroup(0) ok!
[sdk,3358]dbg: Encoder apiChn0, encChn:0 Thread Start...
[sdk,2154]dbg:(local_sdk_video_start) apiChn:0, encChn:0, grp:0
[sdk,2171]dbg:(local_sdk_video_start) apiChn:0, jpegChn:4, grp:0
[sdk,2345]dbg: chn[0] grp[0] malloc timestampDataSize:97920! scalNum:1, scalDen:1
[sdk,2402]dbg: chn[0] grp[0] layer[0] layerHander[0] create OK...
[sdk,2378]dbg: chn[0] grp[0] malloc logoDataSize:32400! scalNum:1, scalDen:1
[sdk,2402]dbg: chn[0] grp[0] layer[1] layerHander[1] create OK...
[sdk,2402]dbg: chn[0] grp[0] layer[2] layerHander[2] create OK...
[sdk,2395]dbg: chn[0] grp[0] malloc logoDataSize:183600! scalNum:1, scalDen:1
[sdk,2402]dbg: chn[0] grp[0] layer[3] layerHander[3] create OK...
[sdk,2567]dbg:(sample_osd_init) groupState set to initok, chn0, grp0
[sdk,2272]dbg: IMP_System_Bind(chn0) [FS]--bind->[OSD] OK!
[sdk,2272]dbg: IMP_System_Bind(chn0) [OSD]--bind->[ENC] OK!
[sdk,2344]dbg:(local_sdk_video_run) apiChn:0, encChn:0, grp:0
[sdk,2362]dbg: start fsChn0, chn0...
[sdk,2390]dbg: start encChn0, chn0...
[sdk,1787]dbg:(local_sdk_video_create) apiChn:1, grp:1
[sdk,1794]dbg: Yuv_thread(chn1) create OK! ('_)')
[sdk,1807]dbg: Enc_thread(chn1) create OK! ('_)')
[sdk,1893]dbg:(local_sdk_video_set_parameters) apiChn:1, grp:1
[sdk,1912]dbg:(local_sdk_video_set_parameters) apiChn:1, grp:1, enable scaler
[sdk,0638]dbg:(local_sdk_video_osd_set_parameters) osd set params chn:1, grp:1
[sdk,0385]dbg: layer[0] is [Enable]...
[sdk,0385]dbg: layer[1] is [Enable]...
[sdk,0385]dbg: layer[2] is [Enable]...
[sdk,0385]dbg: layer[3] is [Enable]...
[sdk,0385]dbg: layer[4] is [Disable]...
[sdk,0385]dbg: layer[6] is [Disable]...
[sdk,0740]dbg:(local_sdk_video_osd_set_parameters) set to paramsok, chn1, grp1
[sdk,0112]dbg: Set Video Enc Callback Doing... (chn:1)
[sdk,0411]dbg: Set algo_register Callback Doing...
[sdk,2117]dbg:(local_sdk_video_start) apiChn:1 grp:1
[sdk,0917]dbg:(sample_framesource_init) apiChn1, fsChn:1
[sdk,2138]dbg: IMP_Encoder_CreateGroup(1) ok!
[sdk,3263]dbg: YUV apiChn1 fsChn:1 Thread Start...
[sdk,3358]dbg: Encoder apiChn1, encChn:1 Thread Start...
[sdk,2154]dbg:(local_sdk_video_start) apiChn:1, encChn:1, grp:1
[sdk,2171]dbg:(local_sdk_video_start) apiChn:1, jpegChn:5, grp:1
[sdk,2345]dbg: chn[1] grp[1] malloc timestampDataSize:10880! scalNum:3, scalDen:1
[sdk,2402]dbg: chn[1] grp[1] layer[0] layerHander[4] create OK...
[sdk,2378]dbg: chn[1] grp[1] malloc logoDataSize:3600! scalNum:3, scalDen:1
[sdk,2402]dbg: chn[1] grp[1] layer[1] layerHander[5] create OK...
[sdk,2402]dbg: chn[1] grp[1] layer[2] layerHander[6] create OK...
[sdk,2395]dbg: chn[1] grp[1] malloc logoDataSize:20400! scalNum:3, scalDen:1
[sdk,2402]dbg: chn[1] grp[1] layer[3] layerHander[7] create OK...
[sdk,2567]dbg:(sample_osd_init) groupState set to initok, chn1, grp1
[IVS-PERSONDET]dbg: IMP_IVS_CreateGroup(0) ret:0!
[sdk,2231]dbg: ivs enable channel:1
[sdk,2272]dbg: IMP_System_Bind(chn1) [FS]--bind->[IVS] OK!
[sdk,2272]dbg: IMP_System_Bind(chn1) [IVS]--bind->[OSD] OK!
[sdk,2272]dbg: IMP_System_Bind(chn1) [OSD]--bind->[ENC] OK!
[sdk,2344]dbg:(local_sdk_video_run) apiChn:1, encChn:1, grp:1
[sdk,2362]dbg: start fsChn1, chn1...
[sdk,2376]dbg: start yuvChn1, chn1...
[sdk,2390]dbg: start encChn1, chn1...
[sdk,1787]dbg:(local_sdk_video_create) apiChn:2, grp:2
[sdk,1794]dbg: Yuv_thread(chn2) create OK! ('_)')
[sdk,1893]dbg:(local_sdk_video_set_parameters) apiChn:2, grp:2
[sdk,1912]dbg:(local_sdk_video_set_parameters) apiChn:2, grp:2, enable scaler
[sdk,2199]dbg:(local_sdk_video_start) apiChn:2, encChn:0, grp:2
[sdk,0917]dbg:(sample_framesource_init) apiChn2, fsChn:2
[sdk,2211]dbg: sample_framesource_init(2) ok! (yuv only)
[sdk,0237]dbg: audio init ok!
[sdk,0389]dbg: a (chn0) opus_encoder_init ok!
[sdk,0447]dbg: Audio Thread(chn0) create OK! ('_)')
[sdk,0451]dbg: a chn:0 create ok!
[sdk,0532]dbg: a chn:0 set para ok!
[sdk,0177]dbg: Set Audio Enc Callback Doing... (chn:0)
[sdk,3263]dbg: YUV apiChn2 fsChn:2 Thread Start...
[sdk,1263]dbg: Audio Thread(chn0) Start...
[sdk,0697]dbg: a chn:0 start ok!
[sdk,0753]dbg: a (chn0) pcm stream run...
[sdk,0760]dbg: a (chn0) enc stream run...
[sdk,0451]dbg: a chn:1 create ok!
[sdk,0532]dbg: a chn:1 set para ok!
[sdk,0177]dbg: Set Audio Enc Callback Doing... (chn:1)
[sdk,0623]dbg: a chn:1 start ok!
[sdk,0760]dbg: a (chn1) enc stream run...
[sdk,0269]dbg: (local_sdk_speaker_set_parameters) sampleRate :8000
[sdk,0270]dbg: (local_sdk_speaker_set_parameters) trackType :1
[sdk,0271]dbg: (local_sdk_speaker_set_parameters) gain :28
[sdk,0272]dbg: (local_sdk_speaker_set_parameters) volume :68
[sdk,0273]dbg: (local_sdk_speaker_set_parameters) pcmBufSize :640
[sdk,0274]dbg: (local_sdk_speaker_set_parameters) cacheSec :1
[sdk,0275]dbg: (local_sdk_speaker_set_parameters) paMode :0
[sdk,0276]dbg: (local_sdk_speaker_set_parameters) paAutoDisable:0
[sdk,0420]opus decode init ok
[sdk,1226]dbg: (sdkspeaker_play_monitor_task) thread work...
[sdk,1275]dbg: (sdkspeaker_play_monitor_task) thread break out...
[sdk,0834]dbg: IMP_AI_SetChnParam
[sdk,0844]dbg: IMP_AI_EnableChn
warn: shm_init,53shm init already
[sdk,0854]dbg: IMP_AI_SetGain
[sdk,0877]dbg: IMP_AI_SetVol:87
[sdk,0948]dbg: IMP_AI_EnableNs:3
[sdk,0953]err: IMP_AI_EnableNs fail:-1
[sdk,1276]dbg: sdkaudio_do_run fail
warn: shm_init,53shm init already
[sdk,0490]dbg: speaker volume: 68
[sdk,0515]dbg: speaker gain: 28
[sdk,0543]log: local_sdk_speaker_start set speaker ap mode 0 ok...
[exec-iCame,0468](no.100000) cmd:[cp /system/local/cacert.pem /tmp/cacert.pem]
[exec-iCame,0471](no.100000) msgque ret:[0]
[init.c,0878]copy cacery file success !
[exec-iCame,0428](no.100000) cmd:[echo "# HUALAI DNS #" > /etc/resolv.conf]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0468](no.100000) cmd:[/sbin/ifconfig wlan0 down]
[exec-iCame,0471](no.100000) msgque ret:[0]
[exec-iCame,0468](no.100000) cmd:[ifconfig wlan0 hw ether E4:AA:EC:A6:82:51]
[exec-iCame,0471](no.100000) msgque ret:[0]
[exec-iCame,0468](no.100000) cmd:[/system/bin/restart_wlan0.sh]
[exec-iCame,0471](no.100000) msgque ret:[0]
[netServ.c,0260]dbg: Set net_state Callback Doing...
[init.c,0967]wifi sta mode....
[init.c,0593]dhcp doing...
[exec-iCame,0428](no.100000) cmd:[killall wpa_supplicant]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[killall udhcpc]
[netServ.c,0685]##dbg## (netserv_mode_switch_station) func return...
[timezone.c,0478]filePath:[/configs/.timezone_config]
[exec-iCame,0428](no.100001) cmd:[echo "UTC+3:00:00" > /etc/TZ]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[killall udhcpd]
[exec-iCame,0437](no.100001) msgque ret:[0]
[sdk,0145]dbg: Set Video YUV Callback Doing... (chn:1)
[SDK-ALARM]dbg: [algo:2] Thread Create OK! ('_)')
[user_config.c,0539]paracfg_set_user_config_item(13, 2) param value equal!
[videoalarmfunc.c,0106]set apartType:0, startX:25, longX:50, startY:25, longY:50[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [0]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [1]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [2]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [3]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [4]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [5]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [6]
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_START
[32;40;1mINFO(iaac): iaac version:4_7_2-2.0.0-0x20000002-bd3f4e8-Tue Jun 30 14:37:01 2020 +0800,-tseries, built: Jun 30 2020-14:39:31
[0m[sdk,0834]dbg: IMP_AI_SetChnParam
[sdk,0844]dbg: IMP_AI_EnableChn
[sdk,0854]dbg: IMP_AI_SetGain
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[killall hostapd]
chn_num = 5
IVS Version:1.0.5 built: Aug 4 2021 15:37:30
[sdk,0877]dbg: IMP_AI_SetVol:87
[sdk,0948]dbg: IMP_AI_EnableNs:3
[1;32;40mINFO(person_tracker): person_tracker version:0.0.11(00000001) built:20210804-1537(4.7.2 simd)[0m
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[killall telnetd]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0468](no.100000) cmd:[sh /system/bin/restart_wlan0.sh]
[exec-iCame,0471](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[ifconfig wlan0 0.0.0.0]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[echo "# HUALAI DNS #" > /etc/resolv.conf]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[cp -f /root/etc_default/wpa_supplicant.conf /tmp/]
[1;32;40mINFO(jzdl): jzdl version:1.3.0(00010300_d1f070f) built:20210401-1910(4.7.2 simd)[0m
[exec-iCame,0437](no.100000) msgque ret:[0]
[build_wpa_config_file]log: finding [ap_scan=1] in wpa config, cnt:[0]
[build_wpa_config_file]log: finding [ap_scan=1] in wpa config, cnt:[1]
[exec-iCame,0468](no.100000) cmd:[wpa_supplicant -f/tmp/wpa.log -D nl80211 -i wlan0 -c /tmp/wpa_supplicant.conf -B]
[sdk,0209]dbg: Set Video PCM Callback Doing... (chn:0)
[user_config.c,0539]paracfg_set_user_config_item(18, 2) param value equal!
[user_config.c,0539]paracfg_set_user_config_item(17, 2) param value equal!
[user_config.c,0539]paracfg_set_user_config_item(15, 2) param value equal!
[SDK-ALARM]dbg: algo[2] init success, start... version:1.2.43
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_INIT_OK
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_SETTING
0.00motion_set_algo_persondet_config alarm_switch 1, run_state 0
**************************[debug_lihx]************************** .sample_ivs_algo_start
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_RESULT
[handle_video.c,0111]dbg: ##### localsdk alarm switch on, byid:0 #####
skip local_sdk_usb_power_off
skip local_sdk_usb_power_on
[sdk,0378]dbg: Set night_state Callback Doing...
[handle_video.c,0368][night_mode_init]dbg: USER_SWITCH_AUTO ...
[sdk,0225]<>===================< IRcut on >==================<>
[exec-iCame,0471](no.100000) msgque ret:[0]
[sdk,0260]<>===================< IRcut off >=================<>
[sdk,0757](local_sdk_auto_night_light) stateFlag:1, LastState:0
[sdk,0145]dbg: Set Video YUV Callback Doing... (chn:2)
[sdk,0241]dbg: Set setup_keydown Callback Doing...
[sdk,0273]dbg: Set reset_keydown Callback Doing...
[sdevice_can_work_set_callback]dbg: set ok! have 3 cb
# mp4 version is jz-20200423a#
[sdevice_can_work_set_callback]dbg: set ok! have 4 cb
[exec-iCame,0428](no.100000) cmd:[cp /usr/www /tmp/ -fr ]
[exec-iCame,0437](no.100000) msgque ret:[0]
[timelapsefunc.c,0275](time_lapse_boa_init) boa timer add ok, tmpId:4
[sdk,0337]dbg: Set Device Monitor Callback Doing...
[sdk,0337]dbg: Set Device Monitor Callback Doing...
[sdk,0337]dbg: Set Device Monitor Callback Doing...
[SDK-ALARM]dbg: Set alarm_state Callback Doing...
[msg:141]log: msg_queue_create() ok MsgId:131076
[msg:150]log: msg_queue_create() ok MsgId:163845
[sd_sync_time.c,0162](sd_sync_time_init) in...
[sdevice_can_work_set_callback]dbg: set ok! have 5 cb
[cameraworkstate.c,0309][camera_work_state_init]dbg: init ok!
[motor.c,0823]set_cruisin_state:2
[motor.c,0708]motor_move_latest_positision:1 apartAlarmSwitch:0 motionAlarmSwitch2[SDK-ALARM]dbg: Set alarm_state Callback Doing...
[nas.c,2260]samba service init in...
[sdevice_can_work_set_callback]dbg: set ok! have 6 cb
webrtc_ctrl_init g_dataChannelId:229383! g_cleanChannelId:196614
webrtc_ctrl_handler start!
[init.c,0757]code_test!!!
webrtc_ctrl_handler start!
[sdk,0839][sdkdevice.c]dbg: g_mmcMonitorState: [NOCARD]=>[JUDGE]
in: (night_mode_change_callback) state:[2]
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_SETTING
0.00motion_set_algo_persondet_config alarm_switch 0, run_state 1
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_IDEL get_algo_result_handle
[handle_video.c,0121]dbg: ##### localsdk alarm switch off, byid:1 #####
out: (night_mode_change_callback) state:[2]
in: (night_mode_change_callback) state:[1]
out: (night_mode_change_callback) state:[1]
>>> sdkgpio_irled_off <<<
[sdk,0991](modify_default_irlight_duty) Switch:1, LastSta:1, dutyDest:0, dutyReal:0
[sdk,1025](modify_expand_irlight_duty) Switch:1, LastSta:1, dutyDest:0, dutyReal:0
[sdk,0260]<>===================< IRcut off >=================<>
can not find file!
[exec-iCame,0428](no.100000) cmd:[wpa_cli -p /var/run/wpa_supplicant -i wlan0 STATUS | grep wpa_state]
[exec-iCame,0433](no.100000) msgque ret:[wpa_state=COMPLETED]
[netServ.c,1308]dbg: wifi connect...
[exec-iCame,0428](no.100000) cmd:[wpa_cli blacklist clear]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0468](no.100000) cmd:[udhcpc -i wlan0 -H Telear-Cam -p /var/run/udhcpc.pid -b &]
[exec-iCame,0471](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[wpa_cli -p /var/run/wpa_supplicant -i wlan0 STATUS | grep ip_address]
[exec-iCame,0433](no.100000) msgque ret:[ip_addresss=192.168.1.133]
[netServ.c,1256]dbg: wifi dhcp ok...
[exec-iCame,0428](no.100000) cmd:[echo "nameserver 114.114.114.114" >> /etc/resolv.conf]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[echo "nameserver 114.114.115.115" >> /etc/resolv.conf]
[exec-iCame,0437](no.100000) msgque ret:[0]
[init.c,0598]Current network dhcp ok...
[netServ.c,1586]dbg: gateway: 192.168.1.1
[netServ.c,1587]dbg: ip addr: 192.168.1.133
[netServ.c,1593]@@@ localsdk wifi STA mode ok @@@
[init.c,0645]Current network connect ok...
[dongle.c,0171]send_dongle_process_net_status: 1
[hlntp.c,0160](ntp_worker_handler)time_zone:[-10800]
[hlntp.c,0203](ntp_worker_handler)ntp ip :216.218.192.202
[sdk,0867][sdkdevice.c]dbg: mmc Insert...
[sdk,0880][sdkdevice.c]dbg: g_mmcMonitorState: [JUDGE]=>[HAVECARD]
[mmc.c,0018] *** [mmc_insert_worker] ***
[msg:493]log: (msg_queue_send_motor_done_msg_to_p2p) doing...
[mmc.c,0025][mmc_insert_worker]dbg: initTime:1, reason is:1
[sdevice.c,0551]sdevice open handler...
[hlntp.c,0203](ntp_worker_handler)ntp ip :216.218.192.202
[hlntp.c,0286](ntp_worker_handler)<______ _ __NTP Set SysTime To 1684287133__ _ ______>
[hlntp.c,0106]Start ntp sync time!
[cloud_commom.c,0370]dbg: (hlcloud_init) hl_cloud_info.domain: device-api.smarthome.personal.com.ar
[cloud_commom.c,0371]dbg: (hlcloud_init) hl_cloud_info.cacert: /tmp/cacert.pem
[cloud_commom.c,0372]dbg: (hlcloud_init) hl_cloud_info.port : 443
{"app_name":"getwebrtcinfo","firmware_version":"3.17.0.47","hardware_version":"0.0.0.0","device_id":"REDACTED","device_model":"TELEAR_CamPan","device_type":"CardCamera","request_id":"REDACTED16842871331684287133","timestamp":1684287133000,"data":{}}
[curl_post.c,0513]--2--url:[https://device-api.smarthome.personal.com.ar:443/webrtc/v1/auth/get]
[curl_post.c,0523]--2--snd:[{"app_name":"getwebrtcinfo","firmware_version":"3.17.0.47","hardware_version":"0.0.0.0","device_id":"REDACTED","device_model":"TELEAR_CamPan","device_type":"CardCamera","request_id":"REDACTED16842871331684287133","timestamp":1684287133000,"data":{}}]
headerAppKey H-AppKey:360a7068374548a2853526f5e0231ad2
H-DeviceToken:rxjhw59IY/mL/LAe
1684287133000
3632c354e3624617bb131ba0c38956e9
@arguser Would you mind sharing the bootloader for your camera? I have the Wyze Cam Pan V3, and am looking for the similar model bootloader to work with our project also.
You can do dd if=/dev/mtd0 of=/mnt/media/mtd0.bin
thank you
I made a mistake. Please add 'exit 0' before chroot in line 29 of overlay_rootfs/etc/init.d/S38atomcam.
--- a/overlay_rootfs/etc/init.d/S38atomcam
+++ b/overlay_rootfs/etc/init.d/S38atomcam
@@ -26,6 +26,7 @@ case "$1" in
touch /tmp/resolv.conf
insmod /lib/modules/3.10.14__isvp_swan_1.0__/extra/v4l2loopback.ko video_=0,1,2
+ exit 0
chroot /atom /tmp/system/bin/atom_init.sh
renice -10 `pidof iCamera_app`
count=0
@gtxaspec Wouldn't be a problem to upload the bootloader in a repo? My intention is to put together a project similar to wz_mini_hacks
and atomcam_tools
but for this specific vendor. I would put the bootloader there.
@mnakada Got it, thanks!
So after the mentioned changes, I've access the camera via ssh and proceeded with a chroot /atom
and then running the content of atom_init.sh
. After running assis
the camera becomes unresponsive.
[root@atomcam:~]# /system/bin/ver-comp
===========welcome to ver-comp tool=========
[ver-comp]dbg: appver: 3.17.0.47
[ver-comp]dbg: rootver: 3.17.0.0
[ver-comp]exec cmd: cp -rf /system/bin/app.ver /configs/
[root@atomcam:~]# /system/bin/assis
===========welcome to assis process=========
[Build date] Apr 13 2023 (16:12:56)
[root@atomcam:~]# [threadpool,0142](init_job_node) jobNodeNumMin:6 jobNodeNumMax:9
[exec-assis:151]: msgSndId:0
[exec-assis:166]: msgRcvId:32769
dbg: turn on watchdog success!
[watchdog.c|assis,0050](assis_wdg_init) OK!
hlcloud_init,89:[assis] hl_cloud_info.domain: device-api.smarthome.personal.com.ar
hlcloud_init,90:[assis] hl_cloud_info.cacert: /tmp/cacert.pem
hlcloud_init,91:[assis] hl_cloud_info.port : 443
hlcloud_init,124:hlcloud initialized success
@arguser
Maybe iCamera_app is down with segmentation fault.
[ 51.529748] do_page_fault() #2: sending SIGSEGV to webrtc_work for invalid write access to
[ 51.529748] 6f012ff4 (epc == 7784e3bc, ra == 7784e400)
I think you need to copy /atom/system/bin/iCamera_app onto your PC and see what causes the Exception. However, I don't think this epc or ra address is .text, so it may be difficult to parse.
@mnakada I'll try what you suggest. Bear in mind that in my previous comment I have not yet executed iCamera_app
only assis
.
This is the result of skipping both assis
, hl_client
and running only iCamera_app
[root@atomcam:~]# LD_PRELOAD=/tmp/system/lib/modules/libcallback.so /system/bin/iCamera_app
===========welcome to iCamera_app===========
[Build date] Apr 13 2023 (16:12:56)
[msg:109]log: msg_queue_create() ok MsgId:0
[sdevice_can_work_set_callback]dbg: set ok! have 1 cb
[msg:538]log: [msg_queue_TUTK_report_module_init]msg_queue_create() ok MsgId:32769
init_log_module() ok
[sdevice_can_work_set_callback]dbg: set ok! have 2 cb
[exec-iCame:151]: msgSndId:65538
[exec-iCame:166]: msgRcvId:98307
[exec-iCame,0495](no.300000) cmd:[/system/bin/sysMonitor.sh &]
[threadpool,0142](init_job_node) jobNodeNumMin:30 jobNodeNumMax:45
[timer,150]dbg: init complete.
[debug.c,0190]debug_init() dbgId:0
watchdog_init() ok TimerId:1
<Reading> /configs/.product_config
[product_config.c,0260][PRODUCT] [PRODUCT_TYPE ] [camera]
[product_config.c,0260][PRODUCT] [PRODUCT_MODEL] [TELEAR_CamPan]
[product_config.c,0260][PRODUCT] [BOARD_TEST ] [FFFF]
[product_config.c,0260][PRODUCT] [FACTORY_TEST ] [0000]
[product_config.c,0260][PRODUCT] [HARDWARE_VER ] [P02A0000]
[product_config.c,0260][PRODUCT] [KEY ] [sRToz0b4Ftum8s/HUaEQvOHpODqxLJL3CQ1a+HuPWN7uRDhAarJSyJpLz0yB09LXsPf2bf3Wchsugty9eoWTALLq2f8v5H31yVLlJHDLG2FefoKPyD4VBBvQUk6K/01Hfaqm5+lzeu3ooBKqOWMyVXSsCztPZWI74MJxVvM9joc=AQAB]
[product_config.c,0260][PRODUCT] [KEY_CHECKSUM ] [00004011]
[product_config.c,0260][PRODUCT] [CONFIG_INFO ] [E4AAECA68251|||0000]
[product_config.c,0269][PRODUCT] [macAddr ] [E4AAECA68251]
<Reading> /configs/app.ver
[product_config.c,0303][PRODUCT] [appver ] [3.17.0.47]
<Reading> /configs/.user_config
[user_config.c,0484][USERSET] [indicator ] [1]
[user_config.c,0484][USERSET] [nightVision ] [3]
[user_config.c,0484][USERSET] [bitRate ] [120]
[user_config.c,0484][USERSET] [res ] [1]
[user_config.c,0484][USERSET] [fps ] [20]
[user_config.c,0484][USERSET] [horSwitch ] [2]
[user_config.c,0484][USERSET] [verSwitch ] [2]
[user_config.c,0484][USERSET] [osdSwitch ] [1]
[user_config.c,0484][USERSET] [logSd ] [1]
[watchdog]dbg: watchdog_snd_msg_feed [time:1684337382]
[user_config.c,0484][USERSET] [logUdisk ] [1]
[user_config.c,0484][USERSET] [telntSwitch ] [2]
[user_config.c,0484][USERSET] [recordType ] [1]
[user_config.c,0484][USERSET] [MASwitch ] [2]
[user_config.c,0484][USERSET] [MALevel ] [5]
[user_config.c,0484][USERSET] [AASwitch ] [2]
[user_config.c,0484][USERSET] [AALevel ] [5]
[user_config.c,0484][USERSET] [SASwitch ] [2]
[user_config.c,0484][USERSET] [CASwitch ] [2]
[user_config.c,0484][USERSET] [TBStart ] [0]
[user_config.c,0484][USERSET] [TBDuration ] [1440]
[user_config.c,0484][USERSET] [drawBoxSwitch] [1]
[user_config.c,0484][USERSET] [timezone ] [-3]
[user_config.c,0484][USERSET] [MMALevel ] [128]
[user_config.c,0484][USERSET] [AMALevel ] [128]
[user_config.c,0484][USERSET] [MAT ] [0]
[user_config.c,0484][USERSET] [AST ] [1]
[user_config.c,0484][USERSET] [motionTrack ] [2]
[user_config.c,0484][USERSET] [motionCruisin] [2]
[user_config.c,0484][USERSET] [AASX ] [25]
[user_config.c,0484][USERSET] [AASY ] [25]
[user_config.c,0484][USERSET] [AALX ] [50]
[user_config.c,0484][USERSET] [AALY ] [50]
[user_config.c,0484][USERSET] [motionback ] [1]
[user_config.c,0484][USERSET] [slide_x ] [18000]
[user_config.c,0484][USERSET] [slide_y ] [9000]
[user_config.c,0484][USERSET] [preset_x ] [0]
[user_config.c,0484][USERSET] [preset_y ] [0]
[user_config.c,0484][USERSET] [ubootflag ] [0]
[user_config.c,0484][USERSET] [exposureModel] [0]
[user_config.c,0484][USERSET] [limit_max_x ] [0]
[user_config.c,0484][USERSET] [limit_min_x ] [0]
[user_config.c,0484][USERSET] [limit_max_y ] [0]
[user_config.c,0484][USERSET] [limit_min_y ] [0]
[user_config.c,0484][USERSET] [motor_limit ] [0]
[user_config.c,0484][USERSET] [resoluselect ] [1]
[user_config.c,0484][USERSET] [low_bitrate ] [30]
[user_config.c,0484][USERSET] [watermark_flag] [0]
[user_config.c,0484][USERSET] [speaker_vol ] [50]
[user_config.c,0484][USERSET] [pir_alaram ] [1]
[user_config.c,0484][USERSET] [nightLight ] [1]
[user_config.c,0484][USERSET] [sdeviceExist ] [0]
[user_config.c,0484][USERSET] [recordNum ] [0]
[user_config.c,0484][USERSET] [recordSize ] [0]
[user_config.c,0484][USERSET] [dongleLight ] [1]
[user_config.c,0484][USERSET] [alarmDate ] [255]
[user_config.c,0484][USERSET] [alarmInterval] [300]
[user_config.c,0484][USERSET] [sdevAction ] [1]
[user_config.c,0484][USERSET] [voiceSwitch ] [2]
[user_config.c,0484][USERSET] [voiceScene ] [1]
[user_config.c,0484][USERSET] [autoBitrate ] [2]
[user_config.c,0484][USERSET] [cloudSwitch ] [1]
[user_config.c,0484][USERSET] [night_cut_thr] [1]
[user_config.c,0484][USERSET] [motor_speed ] [4]
[user_config.c,0484][USERSET] [TrackSwitch ] [1]
[user_config.c,0484][USERSET] [PeopertySwitch] [1]
[user_config.c,0484][USERSET] [PetsSwitch ] [0]
[user_config.c,0484][USERSET] [TotalSwitch ] [1]
[user_config.c,0484][USERSET] [secondtimezone] [-10800]
[user_config.c,0484][USERSET] [kvsModelType ] [0]
[user_config.c,0484][USERSET] [AlarmVideoType] [0]
[user_config.c,0484][USERSET] [AlarmRecordTime] [12]
[user_config.c,0370][USERNET] [ssid ] [netscape]
[user_config.c,0375][USERNET] [password ] [wHzkkM16f2V2JQ6R]
[user_config.c,0379][USERNET] [wifiType ] [5]
[user_config.c,0384][USERNET] [p2pid ] []
[user_config.c,0389][USERNET] [r_encr ] [rxjhw59IY/mL/LAe]
[user_config.c,0393][USERNET] [bindOk ] [1]
[sdk,0306]----------------------------------------
[sdk,0307] WELCOME TO LOCALSDK ('_)')
[sdk,0308]----------------------------------------
[sdk,0309] platform: ingenict31x
[sdk,0313] version : 1.1.26.40
[sdk,0314] update : Jul 12 2022 (13:54:08)
[sdk,0315]----------------------------------------
[sdk,0205]dbg: Pin(48) Lvl(0) Dir(out)
[sdk,0205]dbg: Pin(47) Lvl(1) Dir(out)
[sdk,0205]dbg: Pin(53) Lvl(0) Dir(out)
[sdk,0205]dbg: Pin(52) Lvl(0) Dir(out)
[sdk,0205]dbg: Pin(14) Lvl(0) Dir(out)
[sdk,0205]dbg: Pin(38) Lvl(1) Dir(out)
[sdk,0205]dbg: Pin(7) Lvl(1) Dir(in)
[sdk,0205]dbg: Pin(50) Lvl(0) Dir(in)
[sdk,0345]dbg: Platform Thread Create OK! ('_)')
motorport_open failed
[local_sdk_motor_init]err: sdk_motor_init Fail!
[sdk,0479]dbg: (local_sdk_set_major_error_callback) Doing...
[sdk,0225][1.1.26.40]
init_local_sdk,2092:[init_local_sdk] localsdk version:26
init_local_sdk,2099:[init_local_sdk] localsdk version:0
[sdk,0265]dbg: Platform Thread Start...
[sdk,1673]##### sensor type: gc2053 #####
[sdk,0164]dbg:(softlight_set_sensor) find sensor:gc2053 ok!
[exec-iCame,0468](no.100000) cmd:[insmod /system/driver/sensor_gc2053_t31.ko data_interface=1]
[watchdog]dbg: watchdog_snd_msg_feed [time:1684337412]
[watchdog]dbg: watchdog_snd_msg_feed [time:1684337442]
Camera presents yellow led but still responsive.
I've continued with experimentation. Having iCamera_app
running, I've connected two more shells and executed assis
and hl_client
respectively, this ended up triggering the segmentation fault.
iCamera_app
output after running assis
:
[exec-iCame,0471](no.100000) msgque ret:[0]
---- FPGA board is ready ----
Board UID : 30AB6E51
Board HW ID : 72000460
Board rev. : 5DE5A975
Board date : 20190326
-----------------------------
[sdk,0817]##### sensor fps: 20 #####
[sdk,0823]##### sensor MaxDGain: 64, AeComp: 128, sensor HiLightDepress: 2 #####
[sdk,0525]dbg:(local_sdk_video_osd_set_font_bitmap) bitmap addr:[0x56b860]
[sdk,1787]dbg:(local_sdk_video_create) apiChn:0, grp:0
[sdk,1807]dbg: Enc_thread(chn0) create OK! ('_)')
[sdk,1893]dbg:(local_sdk_video_set_parameters) apiChn:0, grp:0
[sdk,0638]dbg:(local_sdk_video_osd_set_parameters) osd set params chn:0, grp:0
[sdk,0385]dbg: layer[0] is [Enable]...
[sdk,0385]dbg: layer[1] is [Enable]...
[sdk,0385]dbg: layer[2] is [Enable]...
[sdk,0385]dbg: layer[3] is [Enable]...
[sdk,0385]dbg: layer[4] is [Disable]...
[sdk,0385]dbg: layer[6] is [Disable]...
[sdk,0740]dbg:(local_sdk_video_osd_set_parameters) set to paramsok, chn0, grp0
local_sdk_video_set_encode_frame_callback streamChId=0, callback=0x406320
enc func injection save video_encode_cb=0x406320
[sdk,0112]dbg: Set Video Enc Callback Doing... (chn:0)
[sdk,2117]dbg:(local_sdk_video_start) apiChn:0 grp:0
[sdk,0917]dbg:(sample_framesource_init) apiChn0, fsChn:0
[sdk,2138]dbg: IMP_Encoder_CreateGroup(0) ok!
[sdk,3358]dbg: Encoder apiChn0, encChn:0 Thread Start...
[sdk,2154]dbg:(local_sdk_video_start) apiChn:0, encChn:0, grp:0
[sdk,2171]dbg:(local_sdk_video_start) apiChn:0, jpegChn:4, grp:0
[sdk,2345]dbg: chn[0] grp[0] malloc timestampDataSize:97920! scalNum:1, scalDen:1
[sdk,2402]dbg: chn[0] grp[0] layer[0] layerHander[0] create OK...
[sdk,2378]dbg: chn[0] grp[0] malloc logoDataSize:32400! scalNum:1, scalDen:1
[sdk,2402]dbg: chn[0] grp[0] layer[1] layerHander[1] create OK...
[sdk,2402]dbg: chn[0] grp[0] layer[2] layerHander[2] create OK...
[sdk,2395]dbg: chn[0] grp[0] malloc logoDataSize:183600! scalNum:1, scalDen:1
[sdk,2402]dbg: chn[0] grp[0] layer[3] layerHander[3] create OK...
[sdk,2567]dbg:(sample_osd_init) groupState set to initok, chn0, grp0
[sdk,2272]dbg: IMP_System_Bind(chn0) [FS]--bind->[OSD] OK!
[sdk,2272]dbg: IMP_System_Bind(chn0) [OSD]--bind->[ENC] OK!
[sdk,2344]dbg:(local_sdk_video_run) apiChn:0, encChn:0, grp:0
[sdk,2362]dbg: start fsChn0, chn0...
[sdk,2390]dbg: start encChn0, chn0...
pRCParam->pMaxPictureSize[AL_SLICE_I]=1920000, pCodecEncode->m_SrcBufPoolConfig.zBufSize * 8 / 1.2=720000
[sdk,1787]dbg:(local_sdk_video_create) apiChn:1, grp:1
[sdk,1794]dbg: Yuv_thread(chn1) create OK! ('_)')
[sdk,1807]dbg: Enc_thread(chn1) create OK! ('_)')
[sdk,1893]dbg:(local_sdk_video_set_parameters) apiChn:1, grp:1
[sdk,1912]dbg:(local_sdk_video_set_parameters) apiChn:1, grp:1, enable scaler
[sdk,0638]dbg:(local_sdk_video_osd_set_parameters) osd set params chn:1, grp:1
[sdk,0385]dbg: layer[0] is [Enable]...
[sdk,0385]dbg: layer[1] is [Enable]...
[sdk,0385]dbg: layer[2] is [Enable]...
[sdk,0385]dbg: layer[3] is [Enable]...
[sdk,0385]dbg: layer[4] is [Disable]...
[sdk,0385]dbg: layer[6] is [Disable]...
[sdk,0740]dbg:(local_sdk_video_osd_set_parameters) set to paramsok, chn1, grp1
local_sdk_video_set_encode_frame_callback streamChId=1, callback=0x406300
enc func injection save video_encode_cb=0x406300
[sdk,3358]dbg: Encoder apiChn1, encChn:0 Thread Start...
[sdk,3263]dbg: YUV apiChn1 fsChn:1 Thread Start...
[sdk,0112]dbg: Set Video Enc Callback Doing... (chn:1)
[sdk,0411]dbg: Set algo_register Callback Doing...
[sdk,2117]dbg:(local_sdk_video_start) apiChn:1 grp:1
[sdk,0917]dbg:(sample_framesource_init) apiChn1, fsChn:1
[sdk,2138]dbg: IMP_Encoder_CreateGroup(1) ok!
[sdk,2154]dbg:(local_sdk_video_start) apiChn:1, encChn:1, grp:1
[sdk,2171]dbg:(local_sdk_video_start) apiChn:1, jpegChn:5, grp:1
[sdk,2345]dbg: chn[1] grp[1] malloc timestampDataSize:10880! scalNum:3, scalDen:1
[sdk,2402]dbg: chn[1] grp[1] layer[0] layerHander[4] create OK...
[sdk,2378]dbg: chn[1] grp[1] malloc logoDataSize:3600! scalNum:3, scalDen:1
[sdk,2402]dbg: chn[1] grp[1] layer[1] layerHander[5] create OK...
[sdk,2402]dbg: chn[1] grp[1] layer[2] layerHander[6] create OK...
[sdk,2395]dbg: chn[1] grp[1] malloc logoDataSize:20400! scalNum:3, scalDen:1
[sdk,2402]dbg: chn[1] grp[1] layer[3] layerHander[7] create OK...
[sdk,2567]dbg:(sample_osd_init) groupState set to initok, chn1, grp1
[IVS-PERSONDET]dbg: IMP_IVS_CreateGroup(0) ret:0!
[sdk,2231]dbg: ivs enable channel:1
[sdk,2272]dbg: IMP_System_Bind(chn1) [FS]--bind->[IVS] OK!
[sdk,2272]dbg: IMP_System_Bind(chn1) [IVS]--bind->[OSD] OK!
[sdk,2272]dbg: IMP_System_Bind(chn1) [OSD]--bind->[ENC] OK!
[sdk,2344]dbg:(local_sdk_video_run) apiChn:1, encChn:1, grp:1
[sdk,2362]dbg: start fsChn1, chn1...
[sdk,2376]dbg: start yuvChn1, chn1...
[sdk,2390]dbg: start encChn1, chn1...
pRCParam->pMaxPictureSize[AL_SLICE_I]=640000, pCodecEncode->m_SrcBufPoolConfig.zBufSize * 8 / 1.2=240000
[sdk,1787]dbg:(local_sdk_video_create) apiChn:2, grp:2
[sdk,1794]dbg: Yuv_thread(chn2) create OK! ('_)')
[sdk,1893]dbg:(local_sdk_video_set_parameters) apiChn:2, grp:2
[sdk,1912]dbg:(local_sdk_video_set_parameters) apiChn:2, grp:2, enable scaler
[sdk,2199]dbg:(local_sdk_video_start) apiChn:2, encChn:0, grp:2
[sdk,0917]dbg:(sample_framesource_init) apiChn2, fsChn:2
[sdk,3263]dbg: YUV apiChn2 fsChn:2 Thread Start...
[sdk,2211]dbg: sample_framesource_init(2) ok! (yuv only)
[sdk,0237]dbg: audio init ok!
[sdk,0389]dbg: a (chn0) opus_encoder_init ok!
[sdk,0447]dbg: Audio Thread(chn0) create OK! ('_)')
[sdk,0451]dbg: a chn:0 create ok!
[sdk,0532]dbg: a chn:0 set para ok!
[sdk,0177]dbg: Set Audio Enc Callback Doing... (chn:0)
[sdk,1263]dbg: Audio Thread(chn0) Start...
[sdk,0697]dbg: a chn:0 start ok!
[sdk,0753]dbg: a (chn0) pcm stream run...
[sdk,0760]dbg: a (chn0) enc stream run...
[sdk,0451]dbg: a chn:1 create ok!
[sdk,0532]dbg: a chn:1 set para ok!
[sdk,0177]dbg: Set Audio Enc Callback Doing... (chn:1)
[sdk,0623]dbg: a chn:1 start ok!
[sdk,0760]dbg: a (chn1) enc stream run...
[sdk,0269]dbg: (local_sdk_speaker_set_parameters) sampleRate :8000
[sdk,0270]dbg: (local_sdk_speaker_set_parameters) trackType :1
[sdk,0834]dbg: IMP_AI_SetChnParam
[sdk,0844]dbg: IMP_AI_EnableChn
warn: shm_init,53shm init already
[sdk,0854]dbg: IMP_AI_SetGain
[sdk,0271]dbg: (local_sdk_speaker_set_parameters) gain :28
[sdk,0272]dbg: (local_sdk_speaker_set_parameters) volume :68
[sdk,0273]dbg: (local_sdk_speaker_set_parameters) pcmBufSize :640
[sdk,0274]dbg: (local_sdk_speaker_set_parameters) cacheSec :1
[sdk,0275]dbg: (local_sdk_speaker_set_parameters) paMode :0
[sdk,0276]dbg: (local_sdk_speaker_set_parameters) paAutoDisable:0
[sdk,0420]opus decode init ok
[sdk,1226]dbg: (sdkspeaker_play_monitor_task) thread work...
[sdk,1275]dbg: (sdkspeaker_play_monitor_task) thread break out...
[sdk,0877]dbg: IMP_AI_SetVol:87
[sdk,0948]dbg: IMP_AI_EnableNs:3
[sdk,0953]err: IMP_AI_EnableNs fail:-1
[sdk,1276]dbg: sdkaudio_do_run fail
warn: shm_init,53shm init already
[sdk,0490]dbg: speaker volume: 68
[sdk,0515]dbg: speaker gain: 28
[sdk,0543]log: local_sdk_speaker_start set speaker ap mode 0 ok...
[exec-iCame,0468](no.100000) cmd:[cp /system/local/cacert.pem /tmp/cacert.pem]
[exec-iCame,0471](no.100000) msgque ret:[256]
[init.c,0868]cmd:cp /system/local/cacert.pem /tmp/cacert.pem error
[sdk,0834]dbg: IMP_AI_SetChnParam
[sdk,0844]dbg: IMP_AI_EnableChn
[sdk,0854]dbg: IMP_AI_SetGain
[sdk,0877]dbg: IMP_AI_SetVol:87
[sdk,0948]dbg: IMP_AI_EnableNs:3
[exec-iCame,0428](no.100000) cmd:[echo "# HUALAI DNS #" > /etc/resolv.conf]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0468](no.100000) cmd:[/sbin/ifconfig wlan0 down]
[exec-iCame,0471](no.100000) msgque ret:[0]
[exec-iCame,0468](no.100000) cmd:[ifconfig wlan0 hw ether E4:AA:EC:A6:82:51]
[exec-iCame,0471](no.100000) msgque ret:[0]
[exec-iCame,0468](no.100000) cmd:[/system/bin/restart_wlan0.sh]
[exec-iCame,0471](no.100000) msgque ret:[0]
[netServ.c,0260]dbg: Set net_state Callback Doing...
[init.c,0967]wifi sta mode....
[init.c,0968]ssid: netscape
[init.c,0969]passwd: wHzkkM16f2V2JQ6R
[init.c,0593]dhcp doing...
[exec-iCame,0428](no.100000) cmd:[killall wpa_supplicant]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[killall udhcpc]
[netServ.c,0685]##dbg## (netserv_mode_switch_station) func return...
[timezone.c,0478]filePath:[/configs/.timezone_config]
[exec-iCame,0428](no.100001) cmd:[echo "UTC+3:00:00" > /etc/TZ]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[killall udhcpd]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[killall hostapd]
[exec-iCame,0437](no.100001) msgque ret:[0]
[sdk,0145]dbg: Set Video YUV Callback Doing... (chn:1)
[SDK-ALARM]dbg: [algo:2] Thread Create OK! ('_)')
[user_config.c,0539]paracfg_set_user_config_item(13, 2) param value equal!
[videoalarmfunc.c,0106]set apartType:0, startX:25, longX:50, startY:25, longY:50[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [0]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [1]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [2]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [3]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [4]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [5]
[alarmhandle.c,1708](alarm_multiple_period) multiple period old change:[255] [6]
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_START
INFO(iaac): iaac version:4_7_2-2.0.0-0x20000002-bd3f4e8-Tue Jun 30 14:37:01 2020 +0800,-tseries, built: Jun 30 2020-14:39:31
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[killall telnetd]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0468](no.100000) cmd:[sh /system/bin/restart_wlan0.sh]
[exec-iCame,0471](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[ifconfig wlan0 0.0.0.0]
chn_num = 5
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[echo "# HUALAI DNS #" > /etc/resolv.conf]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[cp -f /root/etc_default/wpa_supplicant.conf /tmp/]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0468](no.100000) cmd:[wpa_supplicant -f/tmp/wpa.log -D nl80211 -i wlan0 -c /tmp/wpa_supplicant.conf -B]
[exec-iCame,0471](no.100000) msgque ret:[0]
IVS Version:1.0.5 built: Aug 4 2021 15:37:30
INFO(person_tracker): person_tracker version:0.0.11(00000001) built:20210804-1537(4.7.2 simd)
local_sdk_audio_set_pcm_frame_callback streamChId=0, callback=0x410ad0
enc func injection save audio_pcm_cb=0x410ad0
[sdk,0209]dbg: Set Video PCM Callback Doing... (chn:0)
[user_config.c,0539]paracfg_set_user_config_item(18, 2) param value equal!
[user_config.c,0539]paracfg_set_user_config_item(17, 2) param value equal!
[user_config.c,0539]paracfg_set_user_config_item(15, 2) param value equal!
INFO(jzdl): jzdl version:1.3.0(00010300_d1f070f) built:20210401-1910(4.7.2 simd)
can not find file!
[exec-iCame,0428](no.100000) cmd:[wpa_cli -p /var/run/wpa_supplicant -i wlan0 STATUS | grep wpa_state]
[exec-iCame,0433](no.100000) msgque ret:[]
[netServ.c,1304]war:
[SDK-ALARM]dbg: algo[2] init success, start... version:1.2.43
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_INIT_OK
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_SETTING
0.00motion_set_algo_persondet_config alarm_switch 1, run_state 0
**************************[debug_lihx]************************** .sample_ivs_algo_start
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_RESULT
[handle_video.c,0111]dbg: ##### localsdk alarm switch on, byid:0 #####
skip local_sdk_usb_power_off
skip local_sdk_usb_power_on
can not find file!
[exec-iCame,0428](no.100000) cmd:[wpa_cli -p /var/run/wpa_supplicant -i wlan0 STATUS | grep wpa_state]
[exec-iCame,0433](no.100000) msgque ret:[wpa_state=COMPLETED]
[netServ.c,1308]dbg: wifi connect...
[exec-iCame,0428](no.100000) cmd:[wpa_cli blacklist clear]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0468](no.100000) cmd:[udhcpc -i wlan0 -H Telear-Cam -p /var/run/udhcpc.pid -b &]
[exec-iCame,0471](no.100000) msgque ret:[0]
[sdk,0378]dbg: Set night_state Callback Doing...
[handle_video.c,0368][night_mode_init]dbg: USER_SWITCH_AUTO ...
[sdk,0225]<>===================< IRcut on >==================<>
[sdk,0260]<>===================< IRcut off >=================<>
[exec-iCame,0428](no.100000) cmd:[wpa_cli -p /var/run/wpa_supplicant -i wlan0 STATUS | grep ip_address]
[exec-iCame,0433](no.100000) msgque ret:[0]
[netServ.c,1252]war: 0
[sdk,0757](local_sdk_auto_night_light) stateFlag:1, LastState:0
[sdk,0145]dbg: Set Video YUV Callback Doing... (chn:2)
[sdk,0241]dbg: Set setup_keydown Callback Doing...
[sdk,0273]dbg: Set reset_keydown Callback Doing...
in: (night_mode_change_callback) state:[2]
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_SETTING
0.00motion_set_algo_persondet_config alarm_switch 0, run_state 1
[SDK-ALARM]dbg: algo[2] state goto: THREAD_STATE_IDEL get_algo_result_handle
[sdevice_can_work_set_callback]dbg: set ok! have 3 cb
[handle_video.c,0121]dbg: ##### localsdk alarm switch off, byid:1 #####
out: (night_mode_change_callback) state:[2]
in: (night_mode_change_callback) state:[1]
out: (night_mode_change_callback) state:[1]
>>> sdkgpio_irled_off <<<
[sdk,0991](modify_default_irlight_duty) Switch:1, LastSta:1, dutyDest:0, dutyReal:0
[sdk,1025](modify_expand_irlight_duty) Switch:1, LastSta:1, dutyDest:0, dutyReal:0
[sdk,0260]<>===================< IRcut off >=================<>
# mp4 version is jz-20200423a#
[sdevice_can_work_set_callback]dbg: set ok! have 4 cb
[exec-iCame,0428](no.100000) cmd:[cp /usr/www /tmp/ -fr ]
[exec-iCame,0437](no.100000) msgque ret:[0]
[timelapsefunc.c,0275](time_lapse_boa_init) boa timer add ok, tmpId:4
[sdk,0337]dbg: Set Device Monitor Callback Doing...
[sdk,0337]dbg: Set Device Monitor Callback Doing...
[sdk,0337]dbg: Set Device Monitor Callback Doing...
[SDK-ALARM]dbg: Set alarm_state Callback Doing...
[msg:141]log: msg_queue_create() ok MsgId:131076
[sdk,0839][sdkdevice.c]dbg: g_mmcMonitorState: [NOCARD]=>[JUDGE]
[exec-iCame,0428](no.100000) cmd:[wpa_cli -p /var/run/wpa_supplicant -i wlan0 STATUS | grep ip_address]
[exec-iCame,0433](no.100000) msgque ret:[]
[netServ.c,1252]war:
[msg:150]log: msg_queue_create() ok MsgId:163845
[sd_sync_time.c,0162](sd_sync_time_init) in...
[sdevice_can_work_set_callback]dbg: set ok! have 5 cb
[cameraworkstate.c,0309][camera_work_state_init]dbg: init ok!
[motor.c,0823]set_cruisin_state:2
[motor.c,0708]motor_move_latest_positision:1 apartAlarmSwitch:0 motionAlarmSwitch2[SDK-ALARM]dbg: Set alarm_state Callback Doing...
[nas.c,2260]samba service init in...
[sdevice_can_work_set_callback]dbg: set ok! have 6 cb
webrtc_ctrl_init g_dataChannelId:229383! g_cleanChannelId:196614
webrtc_ctrl_handler start!
webrtc_ctrl_handler start!
[init.c,0757]code_test!!!
[exec-iCame,0428](no.100000) cmd:[wpa_cli -p /var/run/wpa_supplicant -i wlan0 STATUS | grep ip_address]
[exec-iCame,0433](no.100000) msgque ret:[ip_addresss=192.168.1.133]
[netServ.c,1256]dbg: wifi dhcp ok...
[exec-iCame,0428](no.100000) cmd:[echo "nameserver 114.114.114.114" >> /etc/resolv.conf]
[exec-iCame,0437](no.100000) msgque ret:[0]
[exec-iCame,0428](no.100000) cmd:[echo "nameserver 114.114.115.115" >> /etc/resolv.conf]
[exec-iCame,0437](no.100000) msgque ret:[0]
[init.c,0598]Current network dhcp ok...
[netServ.c,1586]dbg: gateway: 192.168.1.1
[netServ.c,1587]dbg: ip addr: 192.168.1.133
[netServ.c,1593]@@@ localsdk wifi STA mode ok @@@
[init.c,0645]Current network connect ok...
[dongle.c,0171]send_dongle_process_net_status: 1
[hlntp.c,0160](ntp_worker_handler)time_zone:[-10800]
[hlntp.c,0203](ntp_worker_handler)ntp ip :66.220.9.122
{"app_name":"getwebrtcinfo","firmware_version":"3.17.0.47","hardware_version":"0.0.0.0","device_id":"E4AAECA68251","device_model":"TELEAR_CamPan","device_type":"CardCamera","request_id":"e4aaeca6825116843379151684337915","timestamp":1684337915000,"data":{}}
[curl_post.c,0513]--2--url:[https://:0/webrtc/v1/auth/get]
[curl_post.c,0523]--2--snd:[{"app_name":"getwebrtcinfo","firmware_version":"3.17.0.47","hardware_version":"0.0.0.0","device_id":"E4AAECA68251","device_model":"TELEAR_CamPan","device_type":"CardCamera","request_id":"e4aaeca6825116843379151684337915","timestamp":1684337915000,"data":{}}]
headerAppKey H-AppKey:360a7068374548a2853526f5e0231ad2
H-DeviceToken:rxjhw59IY/mL/LAe
1684337915000
3632c354e3624617bb131ba0c38956e9
[hlntp.c,0203](ntp_worker_handler)ntp ip :66.220.9.122
Segmentation fault
assis
output:
[root@atomcam:~]# /system/bin/assis
===========welcome to assis process=========
[Build date] Apr 13 2023 (16:12:56)
[root@atomcam:~]# [threadpool,0142](init_job_node) jobNodeNumMin:6 jobNodeNumMax:9
[exec-assis:151]: msgSndId:65538
[exec-assis:166]: msgRcvId:98307
[exec-assis,0302](no.300000) system ret:[0]
dbg: turn on watchdog success!
[watchdog.c|assis,0050](assis_wdg_init) OK!
[threadpool,0084]warring: threadName:[exec-shell-pool]
[threadpool,0084]warring: threadName:[exet-shell]
[threadpool,0084]warring: threadName:[exet-shell]
[threadpool,0084]warring: threadName:[log-serv]
[threadpool,0084]warring: threadName:[exet-shell]
[threadpool,0088]warring: (malloc_job_node) used jobNode more than 5
hlcloud_init,89:[assis] hl_cloud_info.domain: device-api.smarthome.personal.com.ar
hlcloud_init,90:[assis] hl_cloud_info.cacert: /tmp/cacert.pem
hlcloud_init,91:[assis] hl_cloud_info.port : 443
hlcloud_init,124:hlcloud initialized success
[exec-assis,0302](no.300000) system ret:[0]
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
[assis]WDG_CMD_FEED_DOG!!!!
insmod: can't insert '/system/driver/sensor_gc2053_t31.ko': File exists
[exec-assis:263]: (no.100000) popen ret:[]
[threadpool,0084]warring: threadName:[exec-shell-pool]
[threadpool,0084]warring: threadName:[exet-shell]
[threadpool,0084]warring: threadName:[exet-shell]
[threadpool,0084]warring: threadName:[log-serv]
[threadpool,0084]warring: threadName:[rcv-msg]
[threadpool,0088]warring: (malloc_job_node) used jobNode more than 5
[exec-assis:263]: (no.100000) popen ret:[]
[threadpool,0084]warring: threadName:[exec-shell-pool]
[threadpool,0084]warring: threadName:[exet-shell]
[threadpool,0084]warring: threadName:[log-serv]
[threadpool,0084]warring: threadName:[exet-shell]
[threadpool,0084]warring: threadName:[rcv-msg]
[threadpool,0088]warring: (malloc_job_node) used jobNode more than 5
[exec-assis:263]: (no.100000) popen ret:[]
[threadpool,0084]warring: threadName:[exec-shell-pool]
[threadpool,0084]warring: threadName:[exet-shell]
[threadpool,0084]warring: threadName:[log-serv]
[threadpool,0084]warring: threadName:[exet-shell]
[threadpool,0084]warring: threadName:[rcv-msg]
[threadpool,0088]warring: (malloc_job_node) used jobNode more than 5
[exec-assis:263]: (no.100001) popen ret:[]
killall: hostapd: no process killed
killall: udhcpd: no process killed
[exec-assis:263]: (no.100000) popen ret:[]
[exec-assis:263]: (no.100000) popen ret:[]
[exec-assis:263]: (no.100000) popen ret:[]
[exec-assis:263]: (no.100000) popen ret:[]
killall: telnetd: no process killed
[exec-assis:263]: (no.100000) popen ret:[]
[exec-assis:263]: (no.100000) popen ret:[]
[exec-assis:263]: (no.100000) popen ret:[wpa_state=COMPLETED
]
[exec-assis:263]: (no.100000) popen ret:[wpa_state=COMPLETED
ip_addresss=192.168.1.133
]
[exec-assis:263]: (no.100000) popen ret:[wpa_state=COMPLETED
]
[exec-assis:263]: (no.100000) popen ret:[ip_addresss=192.168.1.133
]
[exec-assis:263]: (no.100000) popen ret:[]
[exec-assis:263]: (no.100000) popen ret:[ip_addresss=192.168.1.133
]
[exec-assis:263]: (no.100000) popen ret:[]
[exec-assis:263]: (no.100000) popen ret:[]
[exec-assis:263]: (no.100000) popen ret:[ip_addresss=192.168.1.133
]
[/system/bin/sysMonitor.sh]completed\n
[log_upload.h,1154]rcv signal SIGUSR1, main process shutdown!
[log_upload.h,1157]main process shutdown handler...
[exec-assis,0428](no.200000) cmd:[rm -rf /tmp/log.txt]
[exec-assis:263]: (no.200000) popen ret:[]
[exec-assis,0437](no.200000) msgque ret:[0]
[exec-assis,0428](no.200000) cmd:[echo "" >> /tmp/log.txt;echo "##### dmesg #####" >> /tmp/log.txt]
[exec-assis:263]: (no.200000) popen ret:[]
[exec-assis,0437](no.200000) msgque ret:[0]
[exec-assis,0428](no.200000) cmd:[dmesg | tail -n 100 >> /tmp/log.txt]
[exec-assis:263]: (no.200000) popen ret:[]
[exec-assis,0437](no.200000) msgque ret:[0]
[curl_post.c,0192]url:[https://device-api.smarthome.personal.com.ar:443/device/v1/log_url/get]
[curl_post.c,0202]snd:[{"request_id":"mainabnormaluploadlog16843379170","mac":"","enr":"","product_model":"","product_type":"","hardware_ver":"","firmware_ver":"","log_file_list":[{"file_suffix":"txt"}],"sc":"4183bb75195b479c9bbd1bb90fc63306","sv":"6b9b2adc34f344ea95d498632dac0e0c","ts":1684337917000}]
[curlpost:286]dbg: (curl_post) rcv:[{"response_id":"mainabnormaluploadlog16843379170","ts":1684337919678,"code":"1001","msg":"The mac field is required.","data":{}}]
json:{{"response_id":"mainabnormaluploadlog16843379170","ts":1684337919678,"code":"1001","msg":"The mac field is required.","data":{}}}
[log_upload.h,0106]code error 1001
[log_upload.h,0234][log]err: cloud_recv_buffer fail
[log_upload.h,0255][log_uploadNotify]: end !!!!!
[/system/bin/sysMonitor.sh]completed\n
[log_upload.h,1154]rcv signal SIGUSR1, main process shutdown!
[log_upload.h,1157]main process shutdown handler...
[exec-assis,0428](no.200000) cmd:[rm -rf /tmp/log.txt]
[exec-assis:263]: (no.200000) popen ret:[]
[exec-assis,0437](no.200000) msgque ret:[0]
[exec-assis,0428](no.200000) cmd:[echo "" >> /tmp/log.txt;echo "##### dmesg #####" >> /tmp/log.txt]
[exec-assis:263]: (no.200000) popen ret:[]
[exec-assis,0437](no.200000) msgque ret:[0]
[exec-assis,0428](no.200000) cmd:[dmesg | tail -n 100 >> /tmp/log.txt]
[exec-assis:263]: (no.200000) popen ret:[]
[exec-assis,0437](no.200000) msgque ret:[0]
[curl_post.c,0192]url:[https://device-api.smarthome.personal.com.ar:443/device/v1/log_url/get]
[curl_post.c,0202]snd:[{"request_id":"mainabnormaluploadlog16843379210","mac":"","enr":"","product_model":"","product_type":"","hardware_ver":"","firmware_ver":"","log_file_list":[{"file_suffix":"txt"}],"sc":"4183bb75195b479c9bbd1bb90fc63306","sv":"6b9b2adc34f344ea95d498632dac0e0c","ts":1684337921000}]
[curlpost:286]dbg: (curl_post) rcv:[{"response_id":"mainabnormaluploadlog16843379210","ts":1684337923955,"code":"1001","msg":"The mac field is required.","data":{}}]
json:{{"response_id":"mainabnormaluploadlog16843379210","ts":1684337923955,"code":"1001","msg":"The mac field is required.","data":{}}}
[log_upload.h,0106]code error 1001
[log_upload.h,0234][log]err: cloud_recv_buffer fail
[log_upload.h,0255][log_uploadNotify]: end !!!!!
I've found a file/system/init/app_init.sh
which is similar to atom_init.sh
and made the camera work almost normally. After this I was able to connect to RTSP but without Video feed. (This is without loading the callback lib)
rtspserver.log
content:
VIDIOC_STREAMOFF: Bad file descriptor
VIDIOC_REQBUFS: Bad file descriptor
VIDIOC_STREAMOFF: Bad file descriptor
VIDIOC_REQBUFS: Bad file descriptor
Loading the the callback lib, it crashes but I can get a glimpse of the video stream trough the website.
@arguser ,
# strings /dev/mtd0 |grep bootargs
bootargs=console=ttyS1,115200n8 mem=80M@0x0 rmem=48M@0x5000000 init=/linuxrc rootfstype=squashfs root=/dev/mtdblock2 rw mtdparts=jz_sfc:256K(boot),1984K(kernel),3904K(rootfs),3904K(app),1984K(kback),3904K(aback),384K(cfg),64K(para)
2. Could you share /system/init/app_init.sh?
Maybe there is a diff somewhere.
Hello @mnakada
Bootargs are:
bootargs=console=ttyS1,115200n8 mem=80M@0x0 rmem=48M@0x5000000 init=/linuxrc rootfstype=squashfs root=/dev/mtdblock2 rw mtdparts=jz_sfc:256K(boot),1984K(kernel),3904K(rootfs),3904K(app),1984K(kback),3904K(aback),384K(cfg),64K(para)
/system/init/app_init.sh
content:
[root@atomcam:~]# cat /system/init/app_init.sh
#!/bin/sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp
insmod /system/driver/tx-isp-t31.ko isp_clk=100000000
insmod /system/driver/exfat.ko
insmod /system/driver/audio.ko spk_gpio=-1 alc_mode=0 mic_gain=0
insmod /system/driver/avpu.ko
insmod /system/driver/sinfo.ko
insmod /system/driver/sample_pwm_core.ko
insmod /system/driver/sample_pwm_hal.ko
insmod /system/driver/mmc_detect_test.ko
insmod /system/driver/speaker_ctl.ko
devmem 0x10011110 32 0x6e094800
#清掉对PB04的驱动能力设置(最低驱动能力)
#devmem 0x10011138 32 0x300
#设置PB04的驱动能力
/system/bin/gpiotool b 4 2ma
# Insert wifi driver...
while [ ! -f /sys/bus/mmc/devices/mmc1\:*/mmc1\:*\:1/vendor ]; do
sleep 0.1
done
WifiVendorId=`cat /sys/bus/mmc/devices/mmc1\:*/mmc1\:*\:1/vendor`
if [[ "0x024c" == $WifiVendorId ]]; then
echo "#############[vendor: $WifiVendorId] rtl8189ftv wifi ##########"
insmod /system/driver/rtl8189ftv.ko
elif [[ "0x007a" == $WifiVendorId ]]; then
echo "#############[vendor: $WifiVendorId] atbm603x wifi ############"
cp /usr/share/atbm603x_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp /usr/share/atbm603x_conf/set_rate_power.txt /tmp
insmod /system/driver/atbm603x_wifi_sdio.ko
sleep 0.1
if [[ ! -f /sys/module/atbm603x_wifi_sdio/parameters/fw_ver ]]; then
sync
echo 3 > /proc/sys/vm/drop_caches
echo "\n\n\n\n\n------------------$Success------------------\n\n\n"
cp /usr/share/atbm603x_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp /usr/share/atbm603x_conf/set_rate_power.txt /tmp
insmod /system/driver/atbm603x_wifi_sdio.ko
fi
elif [[ "0x5653" == $WifiVendorId ]]; then
echo "#############[vendor: $WifiVendorId] ssv6x5x wifi #############"
insmod /system/driver/ssv6x5x.ko stacfgpath=/system/driver/ssv6x5x-wifi.cfg
elif [[ "0x424c" == $WifiVendorId ]]; then
echo "#############[vendor: $WifiVendorId] bl_fdrv wifi #############"
insmod /system/driver/bl_fdrv.ko
else
echo "#############[vendor: $WifiVendorId] unknown wifi #############"
fi
mkdir /tmp/app
touch /tmp/resolv.conf
#flash_eraseall /dev/mtd0
/system/bin/ver-comp
/system/bin/assis &
/system/init/factory.sh &
/system/bin/factorycheck
#/system/bin/usbCheck
#/system/bin/assis &
if [ -f /tmp/factory ]; then
exit
fi
insmod /system/driver/sample_motor.ko vstep_offset=0 hmaxstep=2130 vmaxstep=1600 #由于单板工装需要进行对电机管脚进行操作所以从这里进行加载驱动
/system/bin/hl_client &
/system/bin/iCamera_app &
#/system/bin/dongle_app &
#echo 47 > /sys/class/gpio/export
#echo 48 > /sys/class/gpio/export
#echo out > /sys/class/gpio/gpio47/direction
#echo out > /sys/class/gpio/gpio48/direction
#echo 0 > /sys/class/gpio/gpio47/value
#echo 0 > /sys/class/gpio/gpio48/value
#采集音频测试程序
#mount -t vfat /dev/mmcblk0p1 /media/mmc/
#sleep 1
#cp /media/mmc/sample-Ai /tmp
#sync
#cd /media/mmc/
#rm ai_record.pcm
#cd /tmp
#./sample-Ai
#sleep 1
#cp /tmp/ai_record.pcm /media/mmc/
#sync
#umount /media/mmc
#echo 1 > /sys/class/gpio/gpio47/value
#echo 1 > /sys/class/gpio/gpio48/value
If there is a difference, it is possible that sample_motor.ko is not loaded. Could you share /configs/.product_config?
Sure
[root@atomcam:~]# cat /configs/.product_config
[XIAOMI]
CONFIG_INFO=E4AAECA68251|||0000
[TYPE]
PRODUCT_MODEL=TELEAR_CamPan
PRODUCT_TYPE=camera
[HUALAI]
FACTORY_TEST=0000
BOARD_TEST=FFFF
KEY_CHECKSUM=00004011
HARDWARE_VER=P02A0000
AGING_TIME=275
KEY=sRToz0b4Ftum8s/HUaEQvOHpODqxLJL3CQ1a+HuPWN7uRDhAarJSyJpLz0yB09LXsPf2bf3Wchsugty9eoWTALLq2f8v5H31yVLlJHDLG2FefoKPyD4VBBvQUk6K/01Hfaqm5+lzeu3ooBKqOWMyVXSsCztPZWI74MJxVvM9joc=AQAB
[TUYA]
CONFIG_INFO_UUID=775CAJRKH3LLUZFX111A
Try adding the following to line 27 of /scripts/atom_init.sh.
[ "TELEAR_CamPan" = "$PRODUCT_MODEL" ] && insmod /system/driver/sample_motor.ko vstep_offset=0 hmaxstep=2130 vmaxstep=1600
@mnakada No change in behavior, I'm going to extend this comment with any findings.
Having LD_PRELOAD=/tmp/system/lib/modules/libcallback.so
on line 41 of atom_init.sh
making the camera crash.
@gtxaspec I've pushed the requested bootloader to https://github.com/escapingnetwork/campanario/tree/TELEAR_CamPan/bootloader any help you can provide with this particular case is appreciated.
Add the following before line 41 of /scripts/atom_init.sh and restart.
lsmod >> /media/mmc/lsmod.log
Please take /media/mmc/lsmod.log after restart.
In the case of AtomCamSwing, it is as follows.
sample_motor 13188 0 - Live 0xc0697000 (O)
speaker_ctl 3040 0 - Live 0xc068c000 (O)
sample_pwm_hal 3784 0 - Live 0xc0685000 (O)
sample_pwm_core 2856 1 - Live 0xc067e000 (O)
sinfo 16620 0 - Live 0xc0673000 (O)
avpu 14329 0 - Live 0xc0663000 (O)
audio 73342 0 - Live 0xc0643000 (O)
tx_isp_t31 986515 0 - Live 0xc050d000 (O)
v4l2loopback 22369 0 - Live 0xc03e7000 (O)
atbm603x_wifi_sdio 817278 0 - Live 0xc0301000 (O)
mmc_detect_test 616 0 - Live 0xc01e8000 (O)
On it, you mean lsmod >> /media/mmc/lsmod.log &
?
We don't need background execution.
sample_motor 13188 0 - Live 0xc05b7000 (O)
speaker_ctl 3040 0 - Live 0xc05ac000 (O)
sample_pwm_hal 3784 0 - Live 0xc05a5000 (O)
sample_pwm_core 2856 1 - Live 0xc059e000 (O)
sinfo 16620 0 - Live 0xc0593000 (O)
avpu 14329 0 - Live 0xc0583000 (O)
audio 73342 0 - Live 0xc0563000 (O)
tx_isp_t31 986761 0 - Live 0xc042d000 (O)
v4l2loopback 22369 0 - Live 0xc0307000 (O)
atbm603x_wifi_sdio 817278 0 - Live 0xc0221000 (O)
mmc_detect_test 616 0 - Live 0xc0108000 (O)
No problem. Now we still have to follow where the Exception is occurring.
Only the following LOAD address is different, so this area looks suspicious, but I don't know.
tx_isp_t31 986761 0 - Live 0xc042d000 (O)
Now we still have to follow where the Exception is occurring.
Any suggestion on the best way to capture this information?
Only the following LOAD address is different, so this area looks suspicious, but I don't know.
Somewhere to look at?
Really appreciate all your help @mnakada !
First add 'exit 0' to line 29 of /etc/init.d/S38atomcam so that atom_init.sh is not executed.
Modify line 39 of /scripts/atom_init.sh as follows.
LD_TRACE_LOADED_OBJECTS=1 LD_PRELOAD=/tmp/system/lib/modules/libcallback.so /system/bin/iCamera_app &
Execute the following and share the results.
# chroot /atom /tmp/system/bin/atom_init.sh
I think there is an unresolved reference during dynamic link.
This is what I get:
/tmp/system/lib/modules/libcallback.so => /tmp/system/lib/modules/libcallback.so (0x77d48000)
libpthread.so.0 => /lib/libpthread.so.0 (0x77d23000)
libm.so.0 => /lib/libm.so.0 (0x77d08000)
libdl.so.0 => /lib/libdl.so.0 (0x77cf5000)
librt.so.0 => /lib/librt.so.0 (0x77ce2000)
libcrypto.so.1.1 => /thirdlib/libcrypto.so.1.1 (0x77a83000)
libssl.so.1.1 => /thirdlib/libssl.so.1.1 (0x779f3000)
libcurl.so.4 => /system/lib/libcurl.so.4 (0x7797c000)
libfftw3.so.3 => /thirdlib/libfftw3.so.3 (0x77871000)
libdsm.so.3 => /system/lib/libdsm.so.3 (0x77852000)
libtasn1.so.6 => /system/lib/libtasn1.so.6 (0x77830000)
liblocalzbar.so => /lib/liblocalzbar.so (0x777f5000)
libmp4rw.so => /system/lib/libmp4rw.so (0x777e3000)
libhevc2mp4.so => /system/lib/libhevc2mp4.so (0x7771a000)
libsmp-main.so => /system/lib/libsmp-main.so (0x77705000)
libdeephumanpet.so => /system/lib/libdeephumanpet.so (0x776f4000)
libjson-c.so.4 => /system/lib/libjson-c.so.4 (0x776d6000)
liblocalsdk.so => /system/lib/liblocalsdk.so (0x776a4000)
liblocalsdk_motor.so => /system/lib/liblocalsdk_motor.so (0x77691000)
libimp.so => /system/lib/libimp.so (0x7758f000)
libalog.so => /system/lib/libalog.so (0x77578000)
libaudioProcess.so => /system/lib/libaudioProcess.so (0x774e3000)
libsysutils.so => /lib/libsysutils.so (0x774cd000)
libstdc++.so.6 => /lib/libstdc++.so.6 (0x773cc000)
libt20_pusher.so => /thirdlib/libt20_pusher.so (0x7733c000)
libopus.so.0 => /system/lib/libopus.so.0 (0x772d1000)
libfdk-aac.so.2 => /system/lib/libfdk-aac.so.2 (0x772c0000)
libjzdl.so => /lib/libjzdl.so (0x77240000)
libiaac.so => /system/lib/libiaac.so (0x7721e000)
libperson_tracker_inf.so => /system/lib/libperson_tracker_inf.so (0x77104000)
libc.so.0 => /lib/libc.so.0 (0x77044000)
libtinyalsa.so.2 => /tmp/system/lib/modules//libtinyalsa.so.2 (0x77025000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x77d67000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x76feb000)
Just guessing: Without running iCamera_app
and performing a reboot (via website) the camera doesn't return to the previous state. Couldn't be that a health monitor is rebooting the camera which renders it not functional?
dmesg
output running with libcallback
and shortly after without it.
[ 656.221329] -----gc2053_detect: 961 ret = 0, v = 0x20
[ 656.221738] -----gc2053_detect: 967 ret = 0, v = 0x53
[ 656.221747] gc2053 chip found @ 0x37 (i2c0) version H20210728a
[ 656.440359] gc2053 stream on
[ 656.518571] codec_codec_ctl: set sample rate...
[ 656.518877] codec_codec_ctl: set device...
[ 656.971161] codec_set_device: set device: MIC...
[ 656.983560] codec_codec_ctl: set repaly channel...
[ 656.983582] codec_codec_ctl: set sample rate...
[ 656.984514] codec_codec_ctl: set device...
[ 657.221282] codec_set_device: set device: speaker...
[ 657.227678] SPEAKER CTL MODE0 !
[ 660.890809] [motor_speed1086] speed:900, level:15
[ 660.904926] motor_ops_reset966
[ 660.913547] printk [yuan] else
[ 663.763542] motor_ops_goback
**[ 665.915131] do_page_fault() #2: sending SIGSEGV to webrtc_work for invalid write access to <----? WITH LIBCALLBACK
[ 665.915131] 7058eff4 (epc == 775ca3bc, ra == 775ca400)
[ 666.021683] gc2053 stream off
[ 666.197530] codec_codec_ctl: set CODEC_TURN_OFF...
[ 666.404645] codec_codec_ctl: set CODEC_TURN_OFF...**
[ 734.091143] name : i2c0 nr : 0
[ 734.176314] i2c i2c-0: i2c_jz_irq 441, I2C transfer error, ABORT interrupt
[ 734.183508] i2c i2c-0: --I2C txabrt:
[ 734.187645] i2c i2c-0: --I2C TXABRT[0]=I2C_TXABRT_ABRT_7B_ADDR_NOACK
[ 734.194321] error: sensor_read,285 ret = -5
[ 734.198985] sensor_read: addr=0x3107 value = 0x0
[ 734.203847] err sensor read addr = 0x3107, value = 0x0
[ 734.296401] sensor_read: addr=0xf0 value = 0x20
[ 734.301725] sensor_read: addr=0xf1 value = 0x53
[ 734.306805] info: success sensor find : gc2053
[ 734.311518] misc sinfo_release
[ 734.326395] probe ok ------->gc2053
**[ 734.406307] -----gc2053_detect: 961 ret = 0, v = 0x20
[ 734.406805] -----gc2053_detect: 967 ret = 0, v = 0x53
[ 734.406815] gc2053 chip found @ 0x37 (i2c0) version H20210728a <------ WHITOUT LIBCALLBACK
[ 734.630372] gc2053 stream on**
[ 734.778678] codec_codec_ctl: set sample rate...
[ 734.778994] codec_codec_ctl: set device...
[ 735.235931] codec_set_device: set device: MIC...
[ 735.241883] codec_codec_ctl: set repaly channel...
[ 735.241903] codec_codec_ctl: set sample rate...
[ 735.242081] codec_codec_ctl: set device...
[ 735.476407] codec_set_device: set device: speaker...
[ 735.486839] SPEAKER CTL MODE0 !
[ 737.611777] [motor_speed1086] speed:900, level:15
[ 737.636619] motor_ops_reset966
[ 737.654100] printk [yuan] else
[ 740.283497] motor_ops_goback
[ 749.096095] jzmmc_v1.2 jzmmc_v1.2.0: enter jzmmc detect change cd-pin 0
[ 749.296100] jzmmc_v1.2 jzmmc_v1.2.0: enter jzmmc detect change cd-pin 1
[ 750.221022] FAT-fs (mmcblk0p1): error, fat_get_cluster: invalid cluster chain (i_pos 524319)
[ 750.231373] FAT-fs (mmcblk0p1): Filesystem has been set read-only
[ 750.240110] FAT-fs (mmcblk0p1): error, clusters badly computed (25 != 28)
[ 750.248436] FAT-fs (mmcblk0p1): error, fat_bmap_cluster: request beyond EOF (i_pos 524319)
[ 750.264482] FAT-fs (mmcblk0p1): error, clusters badly computed (26 != 29)
[ 750.278693] FAT-fs (mmcblk0p1): error, fat_bmap_cluster: request beyond EOF (i_pos 524319)
[ 755.497635] FAT-fs (mmcblk0p1): error, fat_get_cluster: invalid cluster chain (i_pos 524319)
[ 755.586510] FAT-fs (mmcblk0p1): error, clusters badly computed (25 != 30)
[ 755.645078] FAT-fs (mmcblk0p1): error, fat_bmap_cluster: request beyond EOF (i_pos 524319)
[ 758.983785] FAT-fs (mmcblk0p1): error, clusters badly computed (26 != 31)
[ 759.012270] FAT-fs (mmcblk0p1): error, fat_bmap_cluster: request beyond EOF (i_pos 524319)
[ 759.043220] FAT-fs (mmcblk0p1): error, clusters badly computed (27 != 32)
[ 759.076265] FAT-fs (mmcblk0p1): error, fat_bmap_cluster: request beyond EOF (i_pos 524319)
[ 759.445232] FAT-fs (mmcblk0p1): error, clusters badly computed (28 != 33)
[ 762.937051] FAT-fs (mmcblk0p1): error, clusters badly computed (29 != 34)
[ 774.985862] jzmmc_v1.2 jzmmc_v1.2.0: enter jzmmc detect change cd-pin 0
It's hard to analyze on atomcam since you don't have all the tools. You would have to copy iCamera_app and the so libraries you are referencing to your PC and try to follow them inside with objdump, Ghydra, etc.
@mnakada I understand, reverse engineering is quite too much for me now. I'll take a break from this and come back in a week, if I have any breakthrough I'll keep you posted.
I'm truly thankful for the time and help you provided, have a nice weekend.
Just in case I'm sharing here the firmware for this camera: https://github.com/escapingnetwork/campanario/tree/TELEAR_CamPan/Firmwares
Just in case I'm sharing here the firmware for this camera: https://github.com/escapingnetwork/campanario/tree/TELEAR_CamPan/Firmwares
buenazo, ojalá se encuentre la solución para poder usar por RTSP!
The original firmware for Telecam doesn't contain /thirdlib/libcurl.so, changing https://github.com/mnakada/atomcam_tools/blob/main/libcallback/curl.c#L57 to "/system/lib/libcurl.so.4.5.0" fixes the crashes, but iCamera_app doesn't open port 4000 and rtsp doesn't work.
My bad, port 4000 wasn't being open as I started atom_init from commandline and this line prevents the port to be open in that case. With the change in my previous comment TeleCam works with atom_tools.
Does that mean I can use it without a local vendor account?
I have yet to try if it can join WIFI just by scanning the QR and then loading atom tools, as AFAIK it's not possible to set the WIFI details via SD, but if you can do that you should be able to use the camera outside the app.
@federoitman suggested changes are on https://github.com/escapingnetwork/atomcam_tools
@emanuelcima @federoitman the wireless credentials are stored in plain text on /etc/wpa_supplicant.conf
there's something to do here probably.
I'm finding impossible to perform a software reboot as the camera becomes unresponsive, so far the only alternative is to unplug and plug again. Being able to reboot have quite some relevance since many options relay on rebooting the camera.
@federoitman suggested changes are on https://github.com/escapingnetwork/atomcam_tools
@emanuelcima @federoitman the wireless credentials are stored in plain text on
/etc/wpa_supplicant.conf
there's something to do here probably.I'm finding impossible to perform a software reboot as the camera becomes unresponsive, so far the only alternative is to unplug and plug again. Being able to reboot have quite some relevance since many options relay on rebooting the camera.
I think the camera is not totally unresponsive, in my case what I see is that something crashes the wifi connection, but local execution continues.
@arguser
Just want to let you know that just tried the "Campanario" firmware and worked perfectly, I'm able to access the web interface, playing around with configs to check if everything is working.
thanks @arguser @federoitman and @mnakada for your work!
@arguser do you see the pan and tilt section in the web interface? I have connected through SSH and the move function in /script folder work perfectly, but the whole section inside the web interface is not appearing.
@blo81 just pushed some changes that I believe would make it work. Check for v0.0.3 on https://github.com/escapingnetwork/atomcam_tools/releases and let me know!
I'm finding impossible to perform a software reboot as the camera becomes unresponsive, so far the only alternative is to unplug and plug again. Being able to reboot have quite some relevance since many options relay on rebooting the camera.
Looks like the issue is not rebooting itself but soft-boot, anything in mind? @mnakada @gtxaspec
are you trying the reboot in the atomcam tools chroot? you could also try to stop the relevant process and unmount whatever you need to prevent corruption, and then crash the kernel via echo "c" >/proc/sys/kernel/sysrq
to force a reboot
@gtxaspec any reboot operation seems to hang the device, could actually be when it boots again.
Atomcam Swing sold by a local vendor, probably have a custom firmware. I've loaded the SD with Atomcam tools, it boots and I can access it via SSH and then after 10/15 seconds it reboots and doesn't boot again (yellow led).
I've managed to request
dmesg
to see whats going on, if there are more useful ways to gather information please tell me. My only intention is to enable RTSP on the device.Thank you for your work @mnakada