<?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>topic Change root parameters in recipe in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Change-root-parameters-in-recipe/m-p/485248#M77479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;It's my first post and i'm new with Yocto project.&lt;/P&gt;&lt;P&gt;So, I have some trouble and I hope that somebody can help me ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I would like to change &lt;EM&gt;root&lt;/EM&gt; group in order to use an usb camera. (root need to be in plugdev group). Some examples are available &lt;A href="http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#ref-classes-extrausers"&gt;here&lt;/A&gt;​ and i have used them to write my recipe :&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUMMARY = "Add root user to plugdev group"&lt;/P&gt;&lt;P&gt;DESCRIPTION = "This recipe add root user to plugdev group (for&amp;nbsp; camera support)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inherit extrausers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; # Add root user to plugdev group&lt;/P&gt;&lt;P&gt;EXTRA_USERS_PARAMS = "\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usermod -a -G plugdev root; \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no error during the build but, on the target root is not in plugdev group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Have a good day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Nicolas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 13:18:16 GMT</pubDate>
    <dc:creator>nicolassalmin</dc:creator>
    <dc:date>2016-01-12T13:18:16Z</dc:date>
    <item>
      <title>Change root parameters in recipe</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Change-root-parameters-in-recipe/m-p/485248#M77479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;It's my first post and i'm new with Yocto project.&lt;/P&gt;&lt;P&gt;So, I have some trouble and I hope that somebody can help me ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I would like to change &lt;EM&gt;root&lt;/EM&gt; group in order to use an usb camera. (root need to be in plugdev group). Some examples are available &lt;A href="http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#ref-classes-extrausers"&gt;here&lt;/A&gt;​ and i have used them to write my recipe :&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUMMARY = "Add root user to plugdev group"&lt;/P&gt;&lt;P&gt;DESCRIPTION = "This recipe add root user to plugdev group (for&amp;nbsp; camera support)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inherit extrausers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; # Add root user to plugdev group&lt;/P&gt;&lt;P&gt;EXTRA_USERS_PARAMS = "\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usermod -a -G plugdev root; \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no error during the build but, on the target root is not in plugdev group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Have a good day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Nicolas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Change-root-parameters-in-recipe/m-p/485248#M77479</guid>
      <dc:creator>nicolassalmin</dc:creator>
      <dc:date>2016-01-12T13:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change root parameters in recipe</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Change-root-parameters-in-recipe/m-p/485249#M77480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nicolas SALMIN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried either adding these to the image recipe itself or to the local.conf file (using INHERIT += "extrausers" instead of just inherit in lowercase)? I think the problem might be that these settings work on a global or image level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know of your findings!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 18:53:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Change-root-parameters-in-recipe/m-p/485249#M77480</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2016-01-12T18:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change root parameters in recipe</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Change-root-parameters-in-recipe/m-p/485250#M77481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gusarambula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all your advice it's works ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For information i have changed root user group/home directory by &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;adding these to the image recipe as you told. It works also with a bash script in init directory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks again !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 09:45:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Change-root-parameters-in-recipe/m-p/485250#M77481</guid>
      <dc:creator>nicolassalmin</dc:creator>
      <dc:date>2016-01-14T09:45:10Z</dc:date>
    </item>
  </channel>
</rss>

