U-Boot 2013.10.0-AK_V2.0.04 (Nov 14 2022 - 15:04:58) DRAM: 64 MiB 8 MiB Create flash partition table init OK! ANYKA SDHC/MMC4.0: 0 Load Env CRC OK! In: serial Out: serial Err: serial no hold the upgrade button down, button value is 1 Hit any key to stop autoboot: 0 SF: 1417200 bytes @ 0x31000 Read: OK ## Booting kernel from Legacy Image at 81808000 ... Image Name: Linux-3.4.35 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1417136 Bytes = 1.4 MiB Load Address: 81808000 Entry Point: 81808040 Verifying Checksum ... OK XIP Kernel Image ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Anyka Linux Kernel Version: 2.5.04 Booting Linux on physical CPU 0 Linux version 3.4.35 (zhoujiahui@szfirsvr) (gcc version 4.8.5 (anyka (gcc-4.8.5 + binutils-2.24 + ulcibc-0.9.33.2)(20170223)) ) #1 Mon Nov 14 15:03:51 CST 2022 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: Cloud39EV2_AK3918E80PIN_MNBD Memory policy: ECC disabled, Data cache writeback ANYKA CPU AK3918 (ID ) Built 1 zonelists in Zone order, mobility grouping on. Total pages: 10160 Kernel command line: console=ttySAK0,115200n8 root=/dev/mtdblock4 rootfstype=squashfs init=/sbin/init mem=64M memsize=64M PID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 40MB = 40MB total Memory: 36436k/36436k available, 4524k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) vmalloc : 0xc3000000 - 0xff000000 ( 960 MB) lowmem : 0xc0000000 - 0xc2800000 ( 40 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc03a2000 (3688 kB) .init : 0xc03a2000 - 0xc03bc000 ( 104 kB) .data : 0xc03bc000 - 0xc03e0cf8 ( 148 kB) .bss : 0xc03e0d1c - 0xc0401bc8 ( 132 kB) SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:95 sched_clock: 32 bits at 12MHz, resolution 83ns, wraps every 357913ms AK39 console driver initial console [ttySAK0] enabled Calibrating delay loop... 199.06 BogoMIPS (lpj=995328) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok Setting up static identity map for 0x81ad6520 - 0x81ad6578 devtmpfs: initialized NET: Registered protocol family 16 On-chip L2 memory initialized AK39 clocks: CPU 400MHz, MEM 200MHz, ASIC 100MHz Anyka platform share gpio locks initialize. bio: create slab at 0 usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb i2c-ak39 i2c-ak39: Unable to achieve desired frequency 384KHz. Lowest achievable 390KHz i2c-ak39 i2c-ak39: i2c-0: AK39 I2C adapter Linux video capture interface: v2.00 cfg80211: Calling CRDA to update world regulatory domain Switching to clocksource ak_timer5 cs NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP: reno registered UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. squashfs: version 4.0 (2009/01/31) Phillip Lougher exFAT: Version 1.2.9 jffs2: version 2.2. 2001-2006 Red Hat, Inc. msgmni has been set to 71 io scheduler noop registered io scheduler cfq registered (default) AK39xx uart driver init, (c) 2013 ANYKA ak39-uart.0: ttySAK0 at MMIO 0x20130000 (irq = 10) is a AK39 ion: failed to create debug files. brd: module loaded loop: module loaded ch422_init ch422_init HHHHHLLL check CH422 ch422_is_exist:0 aw9523b init aw9523b_init: add i2c device at 0x58 aw9523b aw9523b_probe() enter aw9523b_probe************************* aw9523b_write data=0xff, dummy=0xff aw9523b_write data=0xff, dummy=0xff aw9523b_write data=0x10, dummy=0xff aw9523b_write fail!! dummy!=data aw9523b_write data=0xff, dummy=0xff aw9523b_write data=0xff, dummy=0xff aw9523b_probe successed AK Motor Driver (c) 2013 ANYKA init the ak-motor device success. init the ak-motor device success. @@@ [akpcm_init]: enter @@@ @@@ [akpcm_probe]: enter @@@ akpcmL0->ak39_codec_probe enter... akpcm probe: mic on akpcm_probe: OK akisp_init Start to init Anyka SPI Flash... Start to init Anyka partition table... AK SPI Driver, (c) 2012 ANYKA akpi regs: SPICON:00000152, SPISTA:00000015, SPIINT:00000000. ak-spi ak-spi: master is unqueued, this is deprecated ak_spi setup the master. pre-scaler=2 (wanted 20Mhz, got 16Mhz) ak spiflash probe enter. pre-scaler=2 (wanted 20Mhz, got 16Mhz) ak_spi_setupxfer,con:00000252. akspi flash ID: 0x000b4017 ak-spiflash spi0.0: JY25YQ64 (8192 Kbytes) FHA:partition lib version: V1.1.06 FHA:spiflash init FHA:boot block num offset:427 FHA:Sflash_Get_Partition_Startpage g_boot_len:752 mtd_part[0]: name = KERNEL size = 0x180000 offset = 0x31000 mask_flags = 0x1 mtd_part[1]: name = MAC size = 0x1000 offset = 0x1b1000 mask_flags = 0x1 mtd_part[2]: name = ENV size = 0x1000 offset = 0x1b2000 mask_flags = 0x1 mtd_part[3]: name = A size = 0x100000 offset = 0x1b3000 mask_flags = 0x1 mtd_part[4]: name = B size = 0x480000 offset = 0x2b3000 mask_flags = 0x1 mtd_part[5]: name = C size = 0xaf000 offset = 0x733000 mask_flags = 0x1 Creating 6 MTD partitions on "spi0.0": 0x000000031000-0x0000001b1000 : "KERNEL" 0x0000001b1000-0x0000001b2000 : "MAC" 0x0000001b2000-0x0000001b3000 : "ENV" 0x0000001b3000-0x0000002b3000 : "A" 0x0000002b3000-0x000000733000 : "B" 0x000000733000-0x0000007e2000 : "C" Init AK SPI Flash finish. akspi master initialize success, use for DMA mode. AK39E_MAC Ethernet Driver, V1.1 input: akgpio-keys as /devices/platform/akgpio-keys/input/input0 AK MCI Driver (c) 2010 ANYKA akmci ak_mci: pdev->name:ak_mci request gpio irq ret = 0, irq=36 akmci ak_mci: Mci Interface driver.mmc0. using l2dma, sw IRQ. detect mode:GPIO detect. TCP: cubic registered NET: Registered protocol family 17 lib80211: common routines for IEEE802.11 drivers /home/zhoujiahui/nfs/anyka/anykav200/D011ap_20200511/kernel/drivers/rtc/hctosys.c: unable to open rtc device (rtc0) VFS: Mounted root (squashfs filesystem) readonly on device 31:4. devtmpfs: mounted Freeing init memory: 104K mmc0: host does not support reading read-only switch. assuming write-enable. mmc0: new SDHC card at address 0007 mmcblk0: mmc0:0007 SL16G 14.4 GiB mmcblk0: p1 mount all file system... start telnet...... starting mdev... ************************** Love Linux ! ! ! ************************** 200+0 records in 200+0 records out 102400 bytes (100.0KB) copied, 0.018913 seconds, 5.2MB/s aksensor_module_init id 4228 Booting custom applications welcome to file system [root@anyka ~]$ close white led, whiteLightNegatWHITE_LED store:0 iveFlag = 0 rmmod rtl8188fu rmmod: can't unload 'rtl8188fu':wifi_en store:1 unknown symbol in module, or unknown parameter rmmod: can't unload 'otg_hs': unknown symbol in module, or unknown parameter rmmod: can't unload 'rtl8188fu':wifi_en store:1 unknown symbol in module, or unknown parameter rmmod: can't unload 'otg_hs': unknown symbol in module, or unknown parameter uninstall rtl8188ftv ap driver wifi_en store:1 default log level=4 ----- ak_adec_demo ----- version: libmpi_adec V2.2.02 [parse_adec_type:145] audio decode type: aac open record file: /usr/share/audio_file/common/didi.aac OK [ak_ao_set_dac_volume:1112] set volume 6 [pcm_dac_set_volume:766] set DEV volume 5 ##--AudioFilter Version V1.13.09, type:11-- ## aslc setMileStone: (0, 0), (20000, 20000), (32767, 32700), ## times: 2, 1, 1300 ## aslc silence: level=0, smpcnt=800 ## sr:16000, ch:2, bitsPerSmp:16, maxLenin:0, jointCh:2 ## ASLC OPEN OK ena:1, lookAheadLen:32 [dac_set_aslc:388] aslc volume = 6 ## aslc setMileStone: (0, 0), (104, 33), (328, 2603), (3277, 32768), (32768, 32768), ## times: 6, 3, 300 ## ASLC SET OK, ena:1, lookAheadLen:96 [ak_ao_set_aslc_volume:1159] set aslc volume 6 [init_decode_input:154] decode type=4: AAC [init_decode_input:176] sample_rate=16000, channel_num=2, sample_bits=16 --AudioCodec Version V1.16.00_svn5418-- ## ChipIdval = ## CHIP OK ## warn: setting streamlen(20480) is less than default(32768) ## len_buf_in=20480, inbufminlen=6144, mType=4 _SD_AAC_Open cmmb_adts_flag = 0 ## AAC+ OPEN OK _SD_Decode_Open OK [ak_adec_open:578] audio decode output, m_ulSize=20480, m_ulDecDataSize=0 [ak_adec_open:581] m_SampleRate=16000, m_Channels=2, m_BitsPerSample=16 [ak_adec_open:583] decode buffer free size=20479 [ak_adec_request_stream:894] request 0x1e408 [ak_adec_request_stream:916] user status change to STATUS_RESERVED [write_pcm_thread:354] thread id: 450 --- write_pcm_thread start processing --- [write_pcm_thre@@@ [print_event_string:144]: event-1: open @@@ ad:374] sleep..., decode buffer remain=0 .[write_pcm_thread:376] wakeup... read to the end of file [ak_adec_notice_stream_end:835] called, decode free size=18551 [rea@@@ [print_event_string:150]: event-3: dac start @@@ d_record_file:109] read_record_file exit [wait_adec_play_finished:461] ao play status=2, user->status=2,--0x1e2a8 samplerate = 16000 channel = 1 bitrate = 0 sbrEnabled = 0 [ak_adec_get_frame:756] m_SampleRate=16000, m_Channels=2, m_BitsPerSample=16 [set_dac_param:202] dac ioctl set sample: 16000 ## aslc: len_in=2048, bpspl=16, ch=2, tmpwp=0, looklen=96, sz=608 [check_decode_finished:247] decode finished, remain is 0 [check_decode_finished:247] decode finished, remain is 0 [write_pcm_thread:374] sleep..., decode buffer remain=0 [wait_adec_play_finished:472] decode finished... [wait_adec_play_finished:488] play finished [ak_ao_set_play_status:1082] pcm_dac.da_data_size=0, threshold=4096 [ak_ao_set_play_status:1083] set ao play status to READDY [ak_adec_cancel_stream:985] ready to join write_pcm_thread [write_pcm_thread:376] wakeup... [write_pcm_thread:406] exit [ak_adec_cancel_stream:987] write_pcm_thread join OK --Leave AudioCodec Version V1.16.00_svn5418-- @@@ [playback_pause:1132]: wait playback completion ok @@@ @@@ [print_event_string:141]: event-0: none, general trigger @@@ @@@ [print_event_string:159]: event-6: dac stop @@@ ##--leave AudioFilter Version V1.13.09, type:11-- ## ASLC close ----- ak_adec_demo exit ----- creating FIFO in /tmp... init ptz driver (anyka) default log level=4 [get_motor_param:348] thread id: 451 [get_motor_param:359] angle2step steps: 4209 SSV6XXX HCI TX Task started. [get_motor_param:374] rg=0 [get_motor_param:384] MaxHit=369, steps:4209 [get_motor_param:388] Revised MaxHit=369 #######install 1 wifi_en#### SSV WLAN driver SSV6006C: Set new macaddr SSV WLAN driver SSV6006C: VIF of type 2 is added. wifi driver install OK default log level=4 ----- ak_adec_demo ----- version: libmpi_adec V2.2.02 [parse_adec_type:145] audio decode type: aac open record file: /usr/share/audio_file/us/connectting.aac OK [ak_ao_set_dac_volume:1112] set volume 6 [pcm_dac_set_volume:766] set DEV volume 5 ##--AudioFilter Version V1.13.09, type:11-- ## aslc setMileStone: (0, 0), (20000, 20000), (32767, 32700), ## times: 2, 1, 1300 ## aslc silence: level=0, smpcnt=800 ## sr:16000, ch:2, bitsPerSmp:16, maxLenin:0, jointCh:2 ## ASLC OPEN OK ena:1, lookAheadLen:32 [dac_set_aslc:388] aslc volume = 6 ## aslc setMileStone: (0, 0), (104, 33), (328, 2603), (3277, 32768), (32768, 32768), ## times: 6, 3, 300 ## ASLC SET OK, ena:1, lookAheadLen:96 [ak_ao_set_aslc_volume:1159] set aslc volume 6 [init_decode_input:154] decode type=4: AAC [init_decode_input:176] sample_rate=16000, channel_num=2, sample_bits=16 --AudioCodec Version V1.16.00_svn5418-- ## ChipIdval = ## CHIP OK ## warn: setting streamle@@@ [print_event_string:144]: event-1: open @@@ n(20480) is less than default(32768) ## len_buf_in=20480, inbufminlen=6144, mType=4 _SD_AAC_Open cmmb_adts_flag = 0 ## AAC+ OPEN OK _SD_Decode_Open OK [ak_adec_open:578] audio decode output, m_ulSize=20480, m_ulDecDataSize=0 [ak_adec_open:581] m_SampleRate=16000, m_Channels=2, m_BitsPerSample=16 [ak_adec_open:583] decode buffer free size=20479 [ak_adec_request_stream:894] @@@ [print_event_string:150]: event-3: dac start @@@ request 0x1e408 [ak_adec_request_stream:916] user status change to STATUS_RESERVED [write_pcm_thread:354] thread id: 505 --- write_pcm_thread start processing --- [write_pcm_thread:374] sleep..., decode buffer remain=0 .[write_pcm_thread:376] wakeup... samplerate = 16000 channel = 1 bitrate = 0 sbrEnabled = 0 [ak_adec_get_frame:756] m_SampleRate=16000, m_Channels=2, m_BitsPerSample=16 [set_dac_param:202] dac ioctl set sample: 16000 read to the end of file [ak_adec_notice_stream_end:835] called, decode free size=14249 [read_record_file:109] read_record_file exit [wait_adec_play_finished:461] ao play status=2, user->status=2,--0x1e2a8 ## aslc: len_in=128, bpspl=16, ch=2, tmpwp=0, looklen=96, sz=128 ## aslc: len_in=2048, bpspl=16, ch=2, tmpwp=32, looklen=96, sz=608 ## realloc 4864 [get_motor_param:348] thread id: 451 [get_motor_param:359] angle2step steps: 2161 [check_decode_finished:247] decode finished, remain is 0 [check_decode_finished:247] decode finished, remain is 0 [write_pcm_thread:374] sleep..., decode buffer remain=0 [wait_adec_play_finished:472] decode finished... [wait_adec_play_finished:488] play finished [ak_ao_set_play_status:1082] pcm_dac.da_data_size=0, threshold=4096 [ak_ao_set_play_status:1083] set ao play status to READDY [write_pcm_thread:376] wakeup... [write_pcm_thread:406] exit [ak_adec_cancel_stream:985] ready to join write_pcm_thread [ak_adec_cancel_stream:987] write_pcm_thread join OK --Leave AudioCodec Version V1.16.00_svn5418-- @@@ [playback_pause:1132]: wait playback completion ok @@@ @@@ [print_event_string:141]: event-0: none, general trigger @@@ @@@ [print_event_string:159]: event-6: dac stop @@@ ##--leave AudioFilter Version V1.13.09, type:11-- ## ASLC close ----- ak_adec_demo exit ----- connect wifi station...... reading wifi config from ini check security, curval: 3 [check security] ok, val: 3 security=3 ssid= password= /usr/sbin/station_connect.sh 3 [get_motor_param:374] rg=0 [get_motor_param:384] MaxHit=189, steps:2161 [get_motor_param:388] Revised MaxHit=189 P_WPA_SPC 502 root 0:00 wpa_supplicant -B -iwlan0 -Dwext -f /tmp/wpa_log -c /etc/jffs2/wpa_supplicant.conf Selected interface 'wlan0' OK OK OK OK P_WPA_SPC 502 root 0:00 wpa_supplicant -B -iwlan0 -Dwext -f /tmp/wpa_log -c /etc/jffs2/wpa_supplicant.conf OK OK OK /usr/sbin/station_connect.sh, return val:0 Stored values: 160 80 running as daemon now. awaiting commands in FIFO This thread is ready to be torn down! [motor_turn_thread:421] thread id: 535 [motor_turn_thread:421] thread id: 534 P_WPA_SPC 502 root 0:00 wpa_supplicant -B -iwlan0 -Dwext -f /tmp/wpa_log -c /etc/jffs2/wpa_supplicant.conf wpa_cli still connectting, info[0]: wpa_state=SCANNING P_WPA_SPC 502 root 0:00 wpa_supplicant -B -iwlan0 -Dwext -f /tmp/wpa_log -c /etc/jffs2/wpa_supplicant.conf wpa_cli still connectting, info[1]: wpa_state=ASSOCIATING SSV WLAN driver SSV6006C: Set key VIF 0 VIF type 2 STA 0 algorithm = 4, key->keyidx = 0, cmd = 0 SET KEY 0 SSV WLAN driver SSV6006C: Set key VIF 0 VIF type 2 STA -1 algorithm = 4, key->keyidx = 1, cmd = 0 SET KEY 0 P_WPA_SPC 502 root 0:00 wpa_supplicant -B -iwlan0 -Dwext -f /tmp/wpa_log -c /etc/jffs2/wpa_supplicant.conf [WiFi Station] wpa_state=COMPLETED, security=3 ssid= pswd= check ip and start using dynamic ip ... killall: udhcpc: no process killed udhcpc (v1.24.1) started Sending discover...AMPDU_TX_START 0. IEEE80211_AMPDU_RX_START 6. AMPDU_TX_OPERATIONAL 0. Sending select for 192.168.2.140... Lease of 192.168.2.140 obtained, lease time 86400 deleting routes route: SIOCDELRT: No such process add gw 192.168.2.1 adding dns 8.8.8.8 Add other dns addr nameserver 8.8.8.8 [WiFi Station] Connect OK wifi connect return val: 0 default log level=4 ----- ak_adec_demo ----- version: libmpi_adec V2.2.02 [parse_adec_type:145] audio decode type: aac open record file: /usr/share/audio_file/us/wifi_connected.aac OK [ak_ao_set_dac_volume:1112] set volume 6 [pcm_dac_set_volume:766] set DEV volume 5 ##--AudioFilter Version V1.13.09, type:11-- ## aslc setMileStone: (0, 0), (20000, 20000), (32767, 32700), ## times: 2, 1, 1300 ## aslc silence: level=0, smpcnt=800 ## sr:16000, ch:2, bitsPerSmp:16, maxLenin:0, jointCh:2 ## ASLC OPEN OK ena:1, lookAheadLen:32 [dac_set_aslc:388] aslc volume = 6 ## aslc setMileStone: (0, 0), (104, 33), (328, 2603), (3277, 32768), (32768, 32768), ## times: 6, 3, 300 ## ASLC SET OK, ena:1, lookAheadLen:96 [ak_ao_set_aslc_volume:1159] set aslc volume 6 [init_decode_input:154] decode type=4: AAC [init_decode_input:176] sample_rate=16000, channel_num=2, sample_bits=16 --AudioCodec Version V1.16.00_svn5418-- ## ChipIdval = ##@@@ [print_event_string:144]: event-1: open @@@ CHIP OK ## warn: setting streamlen(20480) is less than default(32768) ## len_buf_in=20480, inbufminlen=6144, mType=4 _SD_AAC_Open cmmb_adts_flag = 0 ## AAC+ OPEN OK _SD_Decode_Open OK [ak_adec_open:578] audio decode output, m_ulSize=20480, m_ulDecDataSize=0 [ak_adec_open:581] m_SampleRate=16000, m_Channels=2, m_BitsPerSample=16 [ak_adec_open:5@@@ [print_event_string:150]: event-3: dac start @@@ 83] decode buffer free size=20479 [ak_adec_request_stream:894] request 0x1e408 [ak_adec_request_stream:916] user status change to STATUS_RESERVED [write_pcm_thread:354] thread id: 590 --- write_pcm_thread start processing --- [write_pcm_thread:374] sleep..., decode buffer remain=0 .[write_pcm_thread:376] wakeup... samplerate = 16000 channel = 1 bitrate = 0 sbrEnabled = 0 [ak_adec_get_frame:756] m_SampleRate=16000, m_Channels=2, m_BitsPerSample=16 [set_dac_param:202] dac ioctl set sample: 16000 read to the end of file [ak_adec_notice_stream_end:835] called, decode free size=13288 [read_record_file:109] read_record_file exit [wait_adec_play_finished:461] ao play status=2, user->status=2,--0x1e2a8 ## aslc: len_in=128, bpspl=16, ch=2, tmpwp=0, looklen=96, sz=128 ## aslc: len_in=2048, bpspl=16, ch=2, tmpwp=32, looklen=96, sz=608 ## realloc 4864 [check_decode_finished:247] decode finished, remain is 0 [check_decode_finished:247] decode finished, remain is 0 [write_pcm_thread:374] sleep..., decode buffer remain=0 [wait_adec_play_finished:472] decode finished... [wait_adec_play_finished:488] play finished [ak_ao_set_play_status:1082] pcm_dac.da_data_size=0, threshold=4096 [ak_ao_set_play_status:1083] set ao play status to READDY [write_pcm_thread:376] wakeup... [write_pcm_thread:406] exit [ak_adec_cancel_stream:985] ready to join write_pcm_thread [ak_adec_cancel_stream:987] write_pcm_thread join OK --Leave AudioCodec Version V1.16.00_svn5418-- @@@ [playback_pause:1132]: wait playback completion ok @@@ @@@ [print_event_string:141]: event-0: none, general trigger @@@ @@@ [print_event_string:159]: event-6: dac stop @@@ ##--leave AudioFilter Version V1.13.09, type:11-- ## ASLC close ----- ak_adec_demo exit ----- wifi connected! ######start yunyi product test. /mnt/Factory/config.sh: line 12: /mnt/Factory/custom/vpn/vpn.sh: not found start net service...... default log level=4 [ak_vi_match_sensor:849] config_file: /etc/jffs2/ [isp.conf]version: 3V4_010601, sensor id: 0x1084, style id: 0 [isp.conf]modify time: 2023-1-6 09:58:22 [check_file:347] check isp cfg: /etc/jffs2/isp_gc1084.conf OK [match_all_config:204] /etc/jffs2/isp_gc1084.conf match ok [ak_vi_open:890] register device, dev type: 0 new device [vi_register_device:685] new dev=0x14008 ----- libakuio.so V3.1.01 ----- [libakuio][/dev/ion] kernel config reserve mem size: 25165824, 0x1800000 [libakuio]ION: alloc 25165824 bytes for process 604 [libakuio]ION: yield 5 for iad 0xb6fabb78, len: 25165824 --------------- pmem info --------------- PMEM_GET_TOTAL_SIZE: 25165824 bytes PMEM_GET_PHYS: 0x80000000 pmem.vaddr: 0xb5071000 --------------- info End --------------- ####akuio pmem init success### ispsdk_lib version:V3.1.00 --- AK_ISP_sdk_init g_fd=8 --- hight light: frame_rate=15 max_exp_time=1500 low_light_gain=24 low light: frame_rate=15 max_exp_time=1500 light_gain=24 hight light fps: 15 [isp_set_sensor_fps:1859] set sensor fps: 15 [set_fps:185] set fps:15 ok register vi device ok, dev_count=1 [ak_vi_open:900] register device OK, pdev: 0x14008 [vi_new_user:490] now user_flg=0, user_ref=1 sensor resolution height:720, width:12ak_camera_set_parm pcid:1 80. [load_def_awb_step:205] getak_camera_set_parm pcid:1, ch2w:640, ch2h:480 awb_attr ok, auto_awb_step:30 hight light: frame_rate=15 max_exp_time=1500 low_light_gain=24 low light: frame_rate=15 max_exp_time=1500 light_gain=24 hialalgc1084_set_fps_async: 1500 gc1084_cmos_updata_exp_time: 1500 ght light fps: 15 [change_fps_pthread:714] thread id: 610 [isp_set_sensor_fps:1859] set sensor fps: 15 [set_fps:185] set fps:15 ok init CROP succeedded! reset to CROP[1280, 720] [ak_rtsp_vi_init:197] start capture ... [malloc_capture_buffers:115] ion_mem: 0xb53f5000, temp: 0x80384000 [malloc_capture_buffers:122] n_buffers: 0, start: 0xb53f5000, length: 2306048 [malloc_capture_buffers:122] n_buffers: 1, start: 0xb5628000, length: 2306048 [malloc_capture_buffers:122] n_buffers: 2, start: 0xb585b000, length: 2306048 [malloc_capture_buffers:122] n_buffers: 3, start: 0xb5a8e000, length: 2306048 [malloc_capture_buffers:128] set buffer size: 2306048 ok [isp_vi_capture_on:719] stream on, drop first 4 frames gc1084_cmos_updata_exp_time: 1350 vi init ok [00:00:00.015|debug2| Thread ] Created Thread(ID: 1, Nick: _buffer_aenc). [00:00:00.016|debug2| Thread ] Created Thread(ID: 2, Nick: _buffer_venc). [00:00:00.018|debug2| Thread ] Created Thread(ID: 3, Nick: _buffer_venc). [00:00:00.020|debug2| Thread ] Created Thread(ID: 4, Nick: tosser). [00:00:00.021| info| tosser ] Add Sink Named "rtsp_server". [00:00:00.021| info| tosser ] Add Sink Named "http_server". [00:00:00.024|debug2| Thread ] Enter Thread(ID: 1, Nick: _buffer_aenc). [ak_rb_init:37] init rb_size=16384 ring buffer OK [00:00:00.027|debug2| Thread ] Enter Thread(ID: 2, Nick: _buffer_venc). [ak_venc_open:1833] init enc_grp=1, enc_mode=0 [00:00:00.030|debug2| Thread ] Enter Thread(ID: 3, Nick: _buffer_venc). [ak_venc_open:1833] init enc_grp=2, enc_mode=0 [ak_ai_set_aec:1860] switch AEC from 0 to 1 [00:00:00.033|debug2| Thread ] Enter Thread(ID: 4, Nick: tosser). [00:00:00.033| info| tosser ] Enter Listener( Port = 554 ). [pcm_set_source:220] set ai source to MIC [ak_ai_set_frame_interval:1579] audio frame_size=640 [set_h264_encode_param:374] main profile H.264 params: w=640, h=480, qpMin=20, qpMax=51,bps=204800, gop=50, fps=25 --VIDAK39--Enc AK39 Encoder Lib V1.10.07-- [set_h264_encode_param:374] main profile --AudioCodec Version V1.16.00_svn5418-- ## ChipIdval = ## CHIP OK H.264 params: w=1280, h=720, qpMin=20, qpMax=51,bps=2048000, gop=50, fps=25 --VIDAK39--Enc AK39 Encoder Lib V1.10.07-- *********************************************** * RTSP LINK * *********************************************** * MAIN CHANNEL : rtsp://192.168.2.140:554/vs0 * SUB CHANNEL : rtsp://192.168.2.140:554/vs1 *********************************************** *********************************************** * Muhammed Kalkan * *********************************************** * Repo : https://github.com/MuhammedKalkan *********************************************** init rtsp, ret: 0 ## G711 encode open, type=17 ak_aenc_open OK @@@ [print_event_string:144]: event-1: open @@@ [pcm_set_aec_agc:267] cur_aec_switch=1, prepare_flag=1 [photosensitive_switch_th_ex:324] Thread start, id: 615 prev_state=-1, ir_val=1 [set_channel_rc:550] CBR video mode: 80 [pcm_set_aec_agc:273] *** enable AEC *** [pcm_set_aec_agc:281] *** enable NR&AGC *** [set_chan@@@ [print_event_string:144]: event-1: open @@@ nel_rc:550] CBR video mode: 80 @@@ [try_open_aec:753]: dac not ready, open with nr only @@@ now set to night @@@ [open_aec:654]: aec=0, nr=1, agc=1 @@@ @@@ [open_aec_lib:615]: AEC open success, version:Echo Version V1.2.04 @@@ @@@ [print_event_string:147]: event-2: adc start @@@ [set_encode_br_mode:509] set chn 0 br: CBR, 2 [set_encode_br_mode:509] set chn 0 br: CBR, 2 [ak_venc_open:1913] allocating type=2, enc_mode=1, enc_handle: 0x4d708 [ak_venc_request_stream:2544] user's id=0, req_ref=1, grp_type=2, enc_mode=1 [ak_venc_request_stream:2546] vi_handle=0x14098, enc_handle=0x4d708 [ak_venc_request_stream:2555] encode_frames=25, record.fps=25, capture_frames=15 [ak_venc_request_stream:2569] new_handle=0x14200, grp_type=2, enc_mode=2, req_grp_nr=1 [ak_venc_request_stream:2576] init thread list [ak_venc_open:1913] allocating type=1, enc_mode=1, enc_handle: 0x4d540 [ak_venc_request_stream:2544] user's id=0, req_ref=1, grp_type=1, enc_mode=1 [ak_venc_request_stream:2546] vi_handle=0x14098, enc_handle=0x4d540 [ak_venc_request_stream:2555] encode_frames=25, record.fps=25, capture_frames=15 [ak_venc_request_stream:2569] new_handle=0x48488, grp_type=1, enc_mode=2, req_grp_nr=2 [ak_venc_request_streamIR_LED store:1 :2576] init thread list [capture_pcm_thread:1052] thread id: 617 [capture_pcm_thread:1062] sleep... [capture_thread:1416] start to capture, thread id: 618 [start_service_work:1771] create capture_thread, tid=3033351376 [capture_thread:1421] capture thread sleep... [capture_pcm_thread:1064] wakup... [encode_thread:1678] start to encode, thread id: 619 [capture_thread:1416] start to capture, thread id: 620 [start_service_work:1771] create capture_thread, tid=3032941776 [start_service_work:1775] create encode_thread, tid=3033146576 [capture_thread:1421] capture thread sleep... [capture_thread:1424] capture thread wakeup... [capture_encode_frame:1363] cap_run=1, req_grp_nr=2 [isp_vi_get_frame:842] capture on --> real get frame time=431 [ak_vi_get_frame:1373] get frame failed [start_service_work:1783] service start [encode_thread:1678] start to encode, thread id: 621 [start_service_work:1775] create encode_thread, tid=3032736976 [capture_thread:1424] capture thread wakeup... [capture_encode_frame:1363] cap_run=1, req_grp_nr=2 [isp_vi_get_frame:842] capture on --> real get frame tigpio-ircut_a store:0 me=441 [ak_vi_get_frame:1373] get frame failed [isp_vi_get_frame:842] capture on --> real get frame time=444 [ak_vi_get_frame:1373] get frame failed [ak_venc_request_stream:2583] grp_type=1, request OK, enc_mode=2 [start_service_work:1783] service start [ak_venc_request_stream:2583] grp_type=2, request OK, enc_mode=2 [smooth_ts:1201] init smooth_index=597 [smooth_ts:1201] init smooth_index=597 [isp_switch:152] switching isp mode -> night [isp.conf]version: 3V4_010601, sensor id: 0x1084, style id: 0 [isp.conf]moalalgc1084_set_fps_async: 2250 dify time: 2023-1-6 09:58:22 [cgc1084_cmos_updata_exp_time: 2250 heck_file:347] check isp cfg: /etc/jffs2/isp_gc1084.conf OK hight light: frame_rate=10 max_exp_time=2250 low_light_gain=10 low light: frame_rate=10 max_exp_time=2250 light_gain=10 hight light fps: 10 [isp_set_sensor_fps:1859] set sensor fps: 10 [set_fps:185] set fps:10 ok hight light: frame_rate=10 max_exp_time=2250 low_light_gain=10 low light: frame_rate=10 max_exp_time=2250 light_gain=10 hight light fps: 10 [isp_set_sensor_fps:1859] set sensor fps: 10 [set_fps:185] set fps:10 ok [load_def_awb_step:205] get awb_attr ok, auto_awb_step:10 [ak_vi_get_frame:1373] get frame failed [ak_vi_get_frame:1373] get frame failed [read_pcm_data:971] we had dropped the first 360 ms audio data [mark_ts_to_data:908] *** we get the first audio, ts=40222, time=450 *** [reload_config_awb_step:225] get awb_attr ok, cur auto_awb_step:10, set to step:10 [get_v4l2_ptr:409] select timeout! [isp_vi_get_frame:825] get frame fail [ak_vi_get_frame:1373] get frame failed [check_sensor_fps_switch:932] *** sensor fps switch 15 to 10 *** [set_encode_fps:521] set 1 chnannel fps: 10 [set_encode_fps:521] set 2 chnannel fps: 10 [check_work_scene_changed:1451] current work scene=0, indoor [check_work_scene_changed:1451] current work scene=0, indoor [check_sensor_fps_switch:932] *** sensor fps switch 15 to 10 *** [set_encode_fps:521] set 1 chnannel fps: 10 [set_encode_fps:521] set 2 chnannel fps: 10 AMPDU_TX_STOP 0. [00:00:15.207| warn| ] "akae_h264utils.c:60" Condition ( "len > sizeof(_SHORT_START_CODE)" ) Failed. [00:00:15.235| warn| ] "akae_h264utils.c:60" Condition ( "len > sizeof(_SHORT_START_CODE)" ) Failed. gc1084_cmos_updata_exp_time: 1350 [check_work_scene_changed:1451] current work scene=1, outdoor [check_work_scene_changed:1451] current work scene=1, outdoor gc1084_cmos_updata_exp_time: 1125 gc1084_cmos_updata_exp_time: 900 gc1084_cmos_updata_exp_time: 1350 gc1084_cmos_updata_exp_time: 2025 gc1084_cmos_updata_exp_time: 2250 [check_work_scene_changed:1451] current work scene=0, indoor [check_work_scene_changed:1451] current work scene=0, indoor [00:00:40.531| warn| ] "akae_h264utils.c:60" Condition ( "len > sizeof(_SHORT_START_CODE)" ) Failed. [00:00:40.571| warn| ] "akae_h264utils.c:60" Condition ( "len > sizeof(_SHORT_START_CODE)" ) Failed. AMPDU_TX_START 0. AMPDU_TX_OPERATIONAL 0. [00:01:31.232| warn| ] "akae_h264utils.c:60" Condition ( "len > sizeof(_SHORT_START_CODE)" ) Failed. [00:01:31.259| warn| ] "akae_h264utils.c:60" Condition ( "len > sizeof(_SHORT_START_CODE)" ) Failed. AMPDU_TX_STOP 0. AMPDU_TX_START 0. AMPDU_TX_OPERATIONAL 0. umount: /dev/mmcblk0p1 busy - remounted read-only umount: /dev/mtdblock5 busy - remounted read-only umount: tmpfs busy - remounted reaNread-only umount: can't remount tmpfs read-only umount: can't remount tmpfs read-only umount: devtmpfs busy - remounted read-only swapoff: applet not found The system is going down NOW! AMPDU_TX_STOP 0. Sent SIGTERM to all processes SSV WLAN driver SSV6006C: Set key VIF 0 VIF type 2 STA 0 algorithm = 4, key->keyidx = 0, cmd = 1 Clear key 0 VIF 1, STA 1 SET KEY 0 SSV WLAN driver SSV6006C: Set key VIF 0 VIF type 2 STA -1 algorithm = 4, key->keyidx = 1, cmd = 1 Clear key 1 VIF 1, STA 0 SET KEY 0 SSV WLAN driver SSV6006C: Removing interface . PS=0 *********************************** * prog: rtsp, signal 15 caught *********************************** unhandled page fault (15) at: 0x000000010: /lib/libc.so.0(__libc_select+0x80)[0xb68bf3f4][backtrace:125] backstrace (2 deep)1: /lib/libc.so.0(__default_rt_sa_restorer+0)[0xb68bc41c]2: /lib/libc.so.0(__uClibc_main+0x27c)[0xb68fbd54][00:01:39.983|debug2| Thread ] Sync Terminate Thread(ID: 1, Nick: _buffer_aenc). @@@ [capture_pause:787]: wait capture completion ok @@@ @@@ [print_event_string:162]: event-7: aec stop @@@ @@@ [close_aec:718]: AEC: 6240 frames, total: 4287(ms), 687(us) per frame @@@ @@@ [print_event_string:144]: event-1: open @@@ @@@ [try_open_aec:753]: dac not ready, open with nr only @@@ @@@ [open_aec:654]: aec=0, nr=1, agc=1 @@@ @@@ [open_aec_lib:615]: AEC open success, version:Echo Version V1.2.04 @@@ @@@ [print_event_string:156]: event-5: adc stop @@@ @@@ [close_aec:718]: AEC: 0 frames, total: 0(ms), 0(us) per frame @@@ @@@ [try_open_aec:753]: dac not ready, open with nr only @@@ @@@ [open_aec:654]: aec=0, nr=1, agc=1 @@@ @@@ [open_aec_lib:615]: AEC open success, version:Echo Version V1.2.04 @@@ [pcm_adc_close:794] join capture pcm thread... [capture_pcm_thread:1086] ### thread id: 617 exit ### [pcm_adc_close:796] capture pcm thread join OK [00:01:40.111|debug2| Thread ] Leave Thread(ID: 1, Nick: _buffer_aenc). [00:01:40.112|debug2| Thread ] Sync Terminate Thread(ID: 1, Nick: _buffer_aenc) Finished. [00:01:40.118|debug2| Thread ] Sync Terminate Thread(ID: 2, Nick: _buffer_venc). [ak_venc_cancel_stream:2771] enter grp_type=1, id=0, steam handle=0x48488 [ak_venc_cancel_stream:2781] req_ref=0, user_map=0, enc_mode=2 [ak_venc_cancel_stream:2803] release stream resource ok [ak_venc_cancel_stream:2810] grp_type=1, leave... [ak_venc_close:2466] start close encode handle, grp_type=1 [encode_group_exit:766] VideoStream_Enc_Close OK [ak_venc_close:2480] enc_handle:0x4d540, type:1 exit OK, free handle [ak_venc_close:2489] enc_handle free OK [ak_venc_close:2492] close encode handle OK, grp_type=1 [00:01:40.158|debug2| Thread ] Leave Thread(ID: 2, Nick: _buffer_venc). [00:01:40.158|debug2| Thread ] Sync Terminate Thread(ID: 2, Nick: _buffer_venc) Finished. [00:01:40.168|debug2| Thread ] Sync Terminate Thread(ID: 3, Nick: _buffer_venc). [ak_venc_cancel_stream:2771] enter grp_type=2, id=0, steam handle=0x14200 [ak_venc_cancel_stream:2781] req_ref=0, user_map=0, enc_mode=2 [encode_thread_group_exit:828] join capture thread, tid=3033351376 [capture_encode_frame:1405] leave... [capture_thread:1431] ### thread id: 618 exit ### [encode_thread_group_exit:830] join capture thread OK [encode_thread_group_exit:836] join encode thread, tid=3033146576 [isp_vi_get_frame:842] capture on --> real get frame time=100319 [ak_vi_get_frame:1373] get frame failed [encode_thread:1689] ### thread id: 619 exit ### [encode_thread_group_exit:838] join encode thread OK [venc_release_useless_frames:807] all useless frames were released [ak_venc_cancel_stream:2803] release stream resource ok [ak_venc_cancel_stream:2810] grp_type=2, leave... [ak_venc_close:2466] start close encode handle, grp_type=2 [encode_group_exit:766] VideoStream_Enc_Close OK [capture_encode_frame:1405] leave... [capture_thread:1421] capture thread sleep... [ak_venc_close:2480] enc_handle:0x4d708, type:2 exit OK, free handle [ak_venc_close:2489] enc_handle free OK [ak_venc_close:2492] close encode handle OK, grp_type=2 [00:01:40.310|debug2| Thread ] Leave Thread(ID: 3, Nick: _buffer_venc). [00:01:40.311|debug2| Thread ] Sync Terminate Thread(ID: 3, Nick: _buffer_venc) Finished. [00:01:40.314|debug2| Thread ] Sync Terminate Thread(ID: 4, Nick: tosser). Sent SIGKILL to all processes Requesting system reboot Restarting system. Restarting Linux version 3.4.35 (zhoujiahui@szfirsvr) (gcc version 4.8.5 (anyka (gcc-4.8.5 + binutils-2.24 + ulcibc-0.9.33.2)(20170223)) ) #1 Mon Nov 14 15:03:51 CST 2022