<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 How to run executable after bootup automatically in linux</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587344#M88833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I am using poky build toolchain for imx6ulevk board. Using kernel version 3.14.38 and poky version 1.8. I am able to run the application manually after bootup with command ./Executable. But the application needs to be ran after bootup automatically. Is there any way to do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 06:10:09 GMT</pubDate>
    <dc:creator>chandraevolute</dc:creator>
    <dc:date>2016-08-10T06:10:09Z</dc:date>
    <item>
      <title>How to run executable after bootup automatically in linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587344#M88833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I am using poky build toolchain for imx6ulevk board. Using kernel version 3.14.38 and poky version 1.8. I am able to run the application manually after bootup with command ./Executable. But the application needs to be ran after bootup automatically. Is there any way to do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 06:10:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587344#M88833</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2016-08-10T06:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to run executable after bootup automatically in linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587345#M88834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure! The simplest way to do that is to add this command in /etc/rc.local script, so that it will be executed automatically during startup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, you can add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cd /usr/bin (where you put your application file)&lt;/P&gt;&lt;P&gt;./your_application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want it running in background, you can use ./your_application &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Danwei Luo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:57:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587345#M88834</guid>
      <dc:creator>danwei_luo</dc:creator>
      <dc:date>2016-08-10T08:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to run executable after bootup automatically in linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587346#M88835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add the application into some startup script like /etc/rc.local.&lt;/P&gt;&lt;P&gt;However you need to make sure that all required services of the system are already running at the time the application starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 09:34:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587346#M88835</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2016-08-10T09:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to run executable after bootup automatically in linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587347#M88836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I put the application in /usr/bin as i develop application outside the build. I want it to be a part of my image build. So when I do bitbake core-image-base my application should compile generate executable and sit in /usr/bin and&amp;nbsp; I will write the start up script as you suggested. Do i need to add a layer for that?? &lt;/P&gt;&lt;P&gt;I need one more help also where to get the &lt;SPAN style="color: #242729; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; background-color: #eff0f1;"&gt;set_image_autologin() function??&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 09:57:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587347#M88836</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2016-08-10T09:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to run executable after bootup automatically in linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587348#M88837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay!&lt;/P&gt;&lt;P&gt;If you are just testing your application on the board, then actually there are a lot of methods to put your application to /usr/bin. For example, if you are using SD card as file system, then you can cp the application to /usr/bin. If you are using eMMC, then maybe you can try scp, or unpack rootfs.tar.gz, cp your application to /usr/bin, repack it to rootfs.tar.gz, and then use mfgtools to download it to eMMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you are providing your application to your customers, then the answer is yes. To create a new layer in Yocto, you can refer to &lt;A href="http://www.yoctoproject.org/docs/2.1/dev-manual/dev-manual.html#understanding-and-creating-layers" title="http://www.yoctoproject.org/docs/2.1/dev-manual/dev-manual.html#understanding-and-creating-layers"&gt;Yocto Project Development Manual&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For auto-login function, you can refer to &lt;A href="https://community.nxp.com/message/371640"&gt;Reg: Auto-Login and run a script Automatically&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Danwei Luo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 03:00:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587348#M88837</guid>
      <dc:creator>danwei_luo</dc:creator>
      <dc:date>2016-08-15T03:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to run executable after bootup automatically in linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587349#M88838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi when I am trying to run the application in background after rebooting the application is running twice what may be the issue??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2018 05:23:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-run-executable-after-bootup-automatically-in-linux/m-p/587349#M88838</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2018-12-05T05:23:14Z</dc:date>
    </item>
  </channel>
</rss>

