Skip to content

/usr/sbin/anyka_ipc.sh: line 120: anyka_ipc: not found #1

Open

Description

@BoyInTheSun

When power on, the IPC doesn't work.
So I delete production_test.ini to see logs, and I found this in ipc_700101_000008.2.log:

/usr/sbin/anyka_ipc.sh: line 120: anyka_ipc: not found

That is curious! Maybe the firmware has some problems?
My firmware: C2L-Q/Y-A(WiFi和4G版本)v3.6.74(WIFI)
Download from: https://doc.juancloud.com/docs/download/tools

BTW, there's a tool to update firmware IPCamSuite, but I don't bulid a correct firmware.

Thank you!

Activity

  1. BoyInTheSun commented on Jul 21, 2024

    @BoyInTheSun
    Author

    anyka_ipc.sh in my firmware:

    #! /bin/sh
    ### BEGIN INIT INFO
    # File:				camera.sh	
    # Provides:         camera service 
    # Required-Start:   $
    # Required-Stop:
    # Default-Start:     
    # Default-Stop:
    # Short-Description:web service
    # Author:			gao_wangsheng
    # Email: 			gao_wangsheng@anyka.oa
    # Date:				2012-8-8
    ### END INIT INFO
    
    MODE=$1
    PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin
    usage()
    {
    	echo "Usage: $0 start|stop)"
    	exit 3
    }
    
    stop()
    {
    	echo "we don't stop ipc service......"
    }
    
    start ()
    {
    	echo "start ipc service......"
    	DEBUG_INI_PATH="/mnt/tf/debug.ini"
    	PDTEST_INI_PATH="/mnt/tf/production_test.ini"
    	MOUNT_DIR=/mnt/tf
    	MMC_DEV=/dev/mmcblk0
    	MMC_FS=/dev/mmcblk0p1
    	insmod /usr/modules/akmci.ko
    	LOG_REDIRECT=0
    	umask 077
    	ulimit -s 1024
    	echo 3 > /proc/sys/vm/drop_caches
    	insmod /usr/modules/ak_gpio_module.ko 
    	usleep 300000
    	if [ -e $MMC_DEV ];then
    		echo "exist mmcblk0"
    		if [ -e $MMC_FS ];then
    			echo "exist mmcblk0p1"
    			mkdir $MOUNT_DIR
    			mount $MMC_FS $MOUNT_DIR
    		fi
    	fi
    
    	if [ -f "$DEBUG_INI_PATH" ];then
    
    		if [ -e $MOUNT_DIR/anyka_ipc_nostrip ];then
    			if [ ! -e $MOUNT_DIR/do_not_debug.ini ];then
    				mount --bind $MOUNT_DIR/anyka_ipc_nostrip /usr/bin/anyka_ipc
    				ulimit -c unlimited
    				ulimit -a
    				echo "/mnt/tf/core/%e_%t.core" > /proc/sys/kernel/core_pattern
    			fi
    		fi
    
    		if [ -f "$PDTEST_INI_PATH" ];then
    			echo "production test mode, no redirect log"
    		else
    			LOG_REDIRECT=1
    		fi
    
    	fi
    
    	pid=`pgrep anyka_ipc`
        if [ "$pid" = "" ]
        then
    		if [ $LOG_REDIRECT == 1 ];then
    			REBOOTTIMES=1;
    			if [ -f "$MOUNT_DIR/.reboot" ];then
    				REBOOTTIMES=`cat "$MOUNT_DIR/.reboot"`;let REBOOTTIMES+=1;
    			fi
    
    			echo "$REBOOTTIMES" > "$MOUNT_DIR/.reboot";
    			cat /proc/kmsg >> $MOUNT_DIR/kmsg.$REBOOTTIMES.log & 2>&1
    
    			CURTIME=`date +%y%m%d_%H%M%S`
    			LOG_FILE=ipc_$CURTIME.$REBOOTTIMES.log
    			echo $LOG_FILE
    			/usr/bin/anyka_ipc >> "$MOUNT_DIR/$LOG_FILE" 2>&1
    		else
    			/usr/bin/anyka_ipc
    		fi
    		sync
    		echo "anyka_ipc exit"
    	fi
    	touch /etc/jffs2/error_reboot
    }
    
    restart ()
    {
    	echo "restart ipc service......"
    	stop
    	start
    }
    
    #
    # main:
    #
    
    case "$MODE" in
    	start)
    		start
    		;;
    	stop)
    		stop
    		;;
    	restart)
    		restart
    		;;
    	*)
    		usage
    		;;
    esac
    exit 0
    
    
  2. memusrodcar2 commented on Jan 12, 2026

    @memusrodcar2

    When power on, the IPC doesn't work. So I delete production_test.ini to see logs, and I found this in ipc_700101_000008.2.log:

    /usr/sbin/anyka_ipc.sh: line 120: anyka_ipc: not found
    

    That is curious! Maybe the firmware has some problems? My firmware: C2L-Q/Y-A(WiFi和4G版本)v3.6.74(WIFI) Download from: https://doc.juancloud.com/docs/download/tools

    BTW, there's a tool to update firmware IPCamSuite, but I don't bulid a correct firmware.

    Thank you!

    Apparently, for the binary he's giving us to work, we need a dump of the original firmware because we have to extract the following libraries:

    libXSDK_Rtsp.so (The most important one for video).

    libXSDK_Onvif.so (So it appears on NVR recorders).

    libapp_ats.so and libapp_its.so (So the binary doesn't throw a runtime error).

    Since our camera (I have four like yours) doesn't include that library, anyka_ipc can't call the libraries and crashes. I extracted anyka_ipc from this repository, and the drivers for the AltoBeamWiFi and the sensor are included.

    What I need to move forward is a complete dump of SmartWares, but I can't find it anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions