UPGRADE YOUR BROWSER
We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!
07-31-2017 12:00 PM
how do I set the petalinux 2017.2, and my apps. so it auto lunch my apps after Linux finish the boot process.
08-01-2017 01:11 PM
One way is to create an init.d script. That's a nice clean option.
- Make a new petalinux application
- Create an init.d script (bash script that can take an argument of "start", "stop", "restart")
- In your application's recipe, add:
inherit update-rc.d INITSCRIPT_NAME = "name_of_your_initscript" INITSCRIPT_PARAMS = "defaults 90"
And in your do_install() function, add:
install -d ${D}{sysconfdir}/init.d install -m 0755 ${S}/name_of_your_initscript ${D}${sysconfdir}/init.d/name_of_your_initscript
Inside your init.d script, you can use start-stop-daemon to background a task, save PID files, etc.
08-01-2017 01:18 AM
it is explained in the reference guide
08-01-2017 01:11 PM
One way is to create an init.d script. That's a nice clean option.
- Make a new petalinux application
- Create an init.d script (bash script that can take an argument of "start", "stop", "restart")
- In your application's recipe, add:
inherit update-rc.d INITSCRIPT_NAME = "name_of_your_initscript" INITSCRIPT_PARAMS = "defaults 90"
And in your do_install() function, add:
install -d ${D}{sysconfdir}/init.d install -m 0755 ${S}/name_of_your_initscript ${D}${sysconfdir}/init.d/name_of_your_initscript
Inside your init.d script, you can use start-stop-daemon to background a task, save PID files, etc.