During Power On , the rockchip should run my code

  • Hello,

    To enable Luckfox Pico Pro Max to automatically run the program when it is turned on, you need to write a script to run the program and configure the script to be automatically executed when it is turned on. Reference tutorial: https://wiki.luckfox.com/Luckfox-Pico/L ... rst-script
  • thank you sir for your reply
    But sequence is like this,
    killall rkipc
    cd luckfox_demo
    chmod a+x luckfox_cam_view_lcd
    ./luckfox_cam_view_lcd ./image.jpg

    how to apply this command sequence
  • Hello,

    Detailed steps have been provided in the wiki, follow the steps to operate the interface. However, it should be noted that there is no need to use cd to enter a directory in the script. You can directly use the absolute path of the file. The script is roughly as follows, please make sure the file path is correct:

    Code: Select all

    #!/bin/sh
    
    case $1 in
            start)
                    killall rkipc
    		chmod a+x /root/luckfox_demo/luckyfox_cam_view_lcd
    		/root/luckfox_demo/luckfox_cam_view_lcd /root/luckfox_demo/image.jpg
            stop)
                    echo "stop"
                    ;;
            *)
                    exit 1
                    ;;
    esac
    
  • Thank you sir, i will try these and let you know
  • during power on, the rockchip should run this

    RkLunch-stop.sh
    # cd luckfox_retinaface_facenet_spi_demo
    # chmod a+x luckfox_retinaface_facenet_spi_demo_test
    # ./luckfox_retinaface_facenet_spi_demo_test ./model/RetinaFace.rknn ./model/mob
    ilefacenet.rknn /mnt/sdcard
  • Sir lease reply to my previous post
  • rajadey150@gmail.com wrote: 2024-06-14 8:52 Sir lease reply to my previous post
    Hello, for in-depth secondary development, please explore on your own. We have already provided a detailed solution, please refer to it for implementation.
  • sir if could share some proper link so that no problem is encounterd or the detailed steps to execute the link given previously was confusing like how to name it or store please help
  • Hello, the tutorial (https://wiki.luckfox.com/Luckfox-Pico/L ... rst-script) describes in detail how to write a script and implement automatic startup. You may need to study on your own how to write a script that meets your requirements.