Re: During Power On , the rockchip should run my code
Posted: 2024-06-15 7:23
Sir i am not concern about the code but the process i wanted to know because in the mention process i followed i am getting this
Stop Application ...
killall: rkipc: no process killed
killall: udhcpc: no process killed
rkipc exit
ls: /oem/usr/etc/init.d/S??*: No such file or directory
chmod: /root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi_demo_test: No such file or directory
/etc/init.d/S90face: line 8: /root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi_demo_test: not found
Started.
# ls -l /root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi
_demo_test
ls: /root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi_demo_test: No such file or directory
And my code is this
#!/bin/sh
case $1 in
start)
echo "Starting..."
RkLunch-stop.sh
chmod a+x /root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi_demo_test
/root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi_demo_test ./model/RetinaFace.rknn ./model/mobilefacenet.rknn /mnt/sdcard
echo "Started."
;;
stop)
echo "Stopping..."
echo "Stopped."
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
Stop Application ...
killall: rkipc: no process killed
killall: udhcpc: no process killed
rkipc exit
ls: /oem/usr/etc/init.d/S??*: No such file or directory
chmod: /root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi_demo_test: No such file or directory
/etc/init.d/S90face: line 8: /root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi_demo_test: not found
Started.
# ls -l /root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi
_demo_test
ls: /root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi_demo_test: No such file or directory
And my code is this
#!/bin/sh
case $1 in
start)
echo "Starting..."
RkLunch-stop.sh
chmod a+x /root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi_demo_test
/root/luckfox_retinaface_facenet_spi_demo/luckfox_retinaface_facenet_spi_demo_test ./model/RetinaFace.rknn ./model/mobilefacenet.rknn /mnt/sdcard
echo "Started."
;;
stop)
echo "Stopping..."
echo "Stopped."
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac