<?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のトピックRe: How does Yocto support rsyslog/tcpdump/nmap services</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-does-Yocto-support-rsyslog-tcpdump-nmap-services/m-p/1060971#M156011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jackjiang"&gt;jackjiang&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to add the tool support to your Yocto build. 'tcpdump'&amp;nbsp; or 'nmap' like Networking tools generally does not reside in the yocto builds for NXP. I think it is quite logical to not keep those tools, as those are required only for network related debugging, and those increase the footprint of the image considerably.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, you first check whether the networking layer is added to your build. It is the most basic requirement for both the tools:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $&amp;gt; bitbake-layers show-recipes tcpdump&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this should appear, if the layer is already added.&lt;BR /&gt;=================================================================&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;Summary: There were 3 WARNING messages shown.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;=== Matching recipes: ===&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;tcpdump:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp; meta-networking&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=================================================================&lt;/P&gt;&lt;P&gt;If you do not find the above, then your journey is a bit longer. In that case you will have to download the layer from openembedded and include it to your Yocto build:&lt;/P&gt;&lt;P&gt;For that follow the below steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Visit the Openembedded Layer Index page, and go to "Recipes" tab:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://layers.openembedded.org/layerindex/branch/master/recipes/"&gt;https://layers.openembedded.org/layerindex/branch/master/recipes/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Here, search for the intended tool [e.g. "&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;tcpdump&lt;/STRONG&gt;&lt;/SPAN&gt;"]. The list of layer(s) containing it will appear.&lt;BR /&gt;[NOTE: A list of layers, on which this layer is dependent, will appear within a box at right side of the screen.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Click on the intended layer hyperlink. It will show the details of the layer including the Git repo URL,&lt;BR /&gt;web subdirectory URL etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Get the layer from the above URL, and place it at some local path. Let the layer name be "&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;meta-mylayer&lt;/STRONG&gt;&lt;/SPAN&gt;".&lt;BR /&gt;Ensure to download the layers in the dependency list also following the same procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Now issue the following command to add the layer to the present build:&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $&amp;gt; bitbake-layers add-layer path/to/meta-mylayer/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NOTE:&amp;nbsp; 1. Ensure that the environment is set-up before the above command is issued.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Ensure that the present directory should be "build_dir", before issuing the above command.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In the same way add the downloaded layers in the depndency list also.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok. Now you have overcome the first hurdle. Now, you have to actually include the tools you require:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be accomplished by simply adding the below line to the end of &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;build_dir/conf/local.conf&lt;/STRONG&gt;&lt;/SPAN&gt; file:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMAGE_INSTALL_append = " tcpdump"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMAGE_INSTALL_append = " nmap"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[NOTE: Do notice the space before the application name (e.g.&amp;nbsp;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;" tcpdump"&lt;/STRONG&gt;&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;" nmap"&lt;/STRONG&gt;&lt;/SPAN&gt;).]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now it is all set. Build the image with bitbake, and the image will conatin "&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;tcpdump&lt;/STRONG&gt;&lt;/SPAN&gt;" and "&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;nmap&lt;/STRONG&gt;&lt;/SPAN&gt;"!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dibyajyoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jun 2020 19:59:45 GMT</pubDate>
    <dc:creator>dibyajyoti</dc:creator>
    <dc:date>2020-06-18T19:59:45Z</dc:date>
    <item>
      <title>How does Yocto support rsyslog/tcpdump/nmap services</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-does-Yocto-support-rsyslog-tcpdump-nmap-services/m-p/1060970#M156010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;We have deployed Yocto based on I.MX 6ull, we need to use rsyslog/tcpdump/ Nmap tool, but we can't find them after executing bitbake linux-imx -c menuconfig, please tell me how I can use them. Thanks a lot.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2020 02:46:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-does-Yocto-support-rsyslog-tcpdump-nmap-services/m-p/1060970#M156010</guid>
      <dc:creator>jackjiang</dc:creator>
      <dc:date>2020-06-18T02:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: How does Yocto support rsyslog/tcpdump/nmap services</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-does-Yocto-support-rsyslog-tcpdump-nmap-services/m-p/1060971#M156011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jackjiang"&gt;jackjiang&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to add the tool support to your Yocto build. 'tcpdump'&amp;nbsp; or 'nmap' like Networking tools generally does not reside in the yocto builds for NXP. I think it is quite logical to not keep those tools, as those are required only for network related debugging, and those increase the footprint of the image considerably.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, you first check whether the networking layer is added to your build. It is the most basic requirement for both the tools:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $&amp;gt; bitbake-layers show-recipes tcpdump&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this should appear, if the layer is already added.&lt;BR /&gt;=================================================================&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;Summary: There were 3 WARNING messages shown.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;=== Matching recipes: ===&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;tcpdump:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp; meta-networking&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=================================================================&lt;/P&gt;&lt;P&gt;If you do not find the above, then your journey is a bit longer. In that case you will have to download the layer from openembedded and include it to your Yocto build:&lt;/P&gt;&lt;P&gt;For that follow the below steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Visit the Openembedded Layer Index page, and go to "Recipes" tab:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://layers.openembedded.org/layerindex/branch/master/recipes/"&gt;https://layers.openembedded.org/layerindex/branch/master/recipes/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Here, search for the intended tool [e.g. "&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;tcpdump&lt;/STRONG&gt;&lt;/SPAN&gt;"]. The list of layer(s) containing it will appear.&lt;BR /&gt;[NOTE: A list of layers, on which this layer is dependent, will appear within a box at right side of the screen.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Click on the intended layer hyperlink. It will show the details of the layer including the Git repo URL,&lt;BR /&gt;web subdirectory URL etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Get the layer from the above URL, and place it at some local path. Let the layer name be "&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;meta-mylayer&lt;/STRONG&gt;&lt;/SPAN&gt;".&lt;BR /&gt;Ensure to download the layers in the dependency list also following the same procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Now issue the following command to add the layer to the present build:&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $&amp;gt; bitbake-layers add-layer path/to/meta-mylayer/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NOTE:&amp;nbsp; 1. Ensure that the environment is set-up before the above command is issued.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Ensure that the present directory should be "build_dir", before issuing the above command.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In the same way add the downloaded layers in the depndency list also.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok. Now you have overcome the first hurdle. Now, you have to actually include the tools you require:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be accomplished by simply adding the below line to the end of &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;build_dir/conf/local.conf&lt;/STRONG&gt;&lt;/SPAN&gt; file:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMAGE_INSTALL_append = " tcpdump"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMAGE_INSTALL_append = " nmap"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[NOTE: Do notice the space before the application name (e.g.&amp;nbsp;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;" tcpdump"&lt;/STRONG&gt;&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;" nmap"&lt;/STRONG&gt;&lt;/SPAN&gt;).]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now it is all set. Build the image with bitbake, and the image will conatin "&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;tcpdump&lt;/STRONG&gt;&lt;/SPAN&gt;" and "&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;nmap&lt;/STRONG&gt;&lt;/SPAN&gt;"!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dibyajyoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2020 19:59:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-does-Yocto-support-rsyslog-tcpdump-nmap-services/m-p/1060971#M156011</guid>
      <dc:creator>dibyajyoti</dc:creator>
      <dc:date>2020-06-18T19:59:45Z</dc:date>
    </item>
  </channel>
</rss>

