<?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 Re: Linux application debug with Layerscape SDK in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893854#M4152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Pavel!&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;I've already read this manual and tried all the things.&lt;/P&gt;&lt;P&gt;Since I didn't found apptrk application in target root filesystem, I tried to download AppTRK.elf file (located in CW_ARMv7\ARMv7\ARM_Linux\AppDebug\AppTRK) via TFTP to target system. But it failed to start due to missing libraries at target system. I don't have these libraries at my host PC and I don't know where to get them.&lt;/P&gt;&lt;P&gt;My question is how to add apptrk application to root filesystem at build time using Layerscape SDK (I'm using Ubuntu-based userland)? Do you really try to debug Linux application using Layerscape SDK 19.03 built as described in section 4.1.4 of the Layerscape SDK User Guide Rev.19.03?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Miloserdin Oleg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2019 15:19:47 GMT</pubDate>
    <dc:creator>miloserdin</dc:creator>
    <dc:date>2019-04-12T15:19:47Z</dc:date>
    <item>
      <title>Linux application debug with Layerscape SDK</title>
      <link>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893852#M4150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm working with LS1021A-TWR board. I installed Layerscape SDK 19.03 and booted the board from SD card using LSDK.&lt;/P&gt;&lt;P&gt;Please tell me how to debug Linux applications from CodeWarrior? I don't see AppTRK inside Linux root filesystem and also anywhere in Layerscape SDK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 10:08:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893852#M4150</guid>
      <dc:creator>miloserdin</dc:creator>
      <dc:date>2019-04-12T10:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Linux application debug with Layerscape SDK</title>
      <link>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893853#M4151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;See the Section &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;2.3.3 of the CW_ARMv7_Targeting_Manual.pdf file. This file is available in CodeWarrior folder:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;C:\Freescale\CW_ARMv7_v2019.01\CW_ARMv7\ARMv7\Help\PDF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: -35.4pt;"&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;This Section contains information about c&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;reation CodeWarrior Linux Application project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 35.4pt; text-indent: -35.4pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;See also the Chapter 7 in this file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:41:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893853#M4151</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2019-04-12T14:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Linux application debug with Layerscape SDK</title>
      <link>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893854#M4152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Pavel!&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;I've already read this manual and tried all the things.&lt;/P&gt;&lt;P&gt;Since I didn't found apptrk application in target root filesystem, I tried to download AppTRK.elf file (located in CW_ARMv7\ARMv7\ARM_Linux\AppDebug\AppTRK) via TFTP to target system. But it failed to start due to missing libraries at target system. I don't have these libraries at my host PC and I don't know where to get them.&lt;/P&gt;&lt;P&gt;My question is how to add apptrk application to root filesystem at build time using Layerscape SDK (I'm using Ubuntu-based userland)? Do you really try to debug Linux application using Layerscape SDK 19.03 built as described in section 4.1.4 of the Layerscape SDK User Guide Rev.19.03?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Miloserdin Oleg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 15:19:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893854#M4152</guid>
      <dc:creator>miloserdin</dc:creator>
      <dc:date>2019-04-12T15:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Linux application debug with Layerscape SDK</title>
      <link>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893855#M4153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #212121; background: white;"&gt;See below a detailed procedure for a standalone build of apptrk.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #212121;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;The following prerequisites are needed prior to build (and also on the target rootfs):&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;-libelf&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;-libuitl&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;-libthread_db&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;We proceed further with the build process as follows:&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;1) Download the arm tool-chain from:&lt;/SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A data-auth="NotApplicable" href="https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0in; background: white;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/" target="test_blank"&gt;https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #212121;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;export ARCH=arm&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;export CROSS=arm-linux-gnueabihf-&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;export CC=arm-linux-gnueabihf-gcc&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;&amp;nbsp;export PATH=$PATH:&amp;lt;path_to_the_toolchain&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;2) Compiling libelf:&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;git clone&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A data-auth="NotApplicable" href="https://github.com/WolfgangSt/libelf.git"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0in; background: white;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://github.com/WolfgangSt/libelf.git" target="test_blank"&gt;https://github.com/WolfgangSt/libelf.git&lt;/A&gt;&lt;SPAN style="color: #212121;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;cd libelf&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;edit config.h and set:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;#define HAVE_MMAP 0&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;edit Makefile and set&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;CC=CC = arm-linux-gnueabihf-gcc&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;edit lib/Makefile and set&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;CC = arm-linux-gnueabihf-gcc&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;LD = arm-linux-gnueabihf-ld&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;RANLIB = arm-linux-gnueabihf-ranlib&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;make&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; 3)&lt;SPAN style="background: white;"&gt; Install the libutil and thread_db armhf packages:&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;sudo apt-get install&amp;nbsp; libc6-armhf-cross&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;After installation, libraries will be found here:&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;&amp;nbsp;/usr/lib/arm-linux-gnueabihf/&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;|||. unpack apptrk.zip and change to the apptrk&amp;nbsp; folder and execute:&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;make clean&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;make C_INCLUDE_PATH=/&amp;lt;path_to_libelf&amp;gt;/lib/&amp;nbsp; LDFLAGS="-L/&amp;lt;path_to_libelf&amp;gt;/lib -L/usr/arm-linux-gnueabihf/lib/"&amp;nbsp; all&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; 4)&lt;SPAN style="background: white;"&gt; Check what are the dependencies of the elf:&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;In the apptrk folder where the elf file is generated, execute:&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;arm-linux-gnueabihf-readelf -d AppTRK_debug.elf&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;Output:&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;Dynamic section at offset 0x1cf00 contains 27 entries:&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;&amp;nbsp; Tag&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name/Value&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;&amp;nbsp;0x00000001 (NEEDED)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shared library: [libelf.so.0]&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;&amp;nbsp;0x00000001 (NEEDED)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shared library: [libutil.so.1]&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;&amp;nbsp;0x00000001 (NEEDED)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shared library: [libthread_db.so.1]&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;&amp;nbsp;0x00000001 (NEEDED)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shared library: [libc.so.6]&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;[...]&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;These files should be deployed on the root file system (if they are already there, the deployment should be skipped)&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; 5)&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;Deploy also the apptrk.elf file and launch it as per your need.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread is continued as a private discussion with the submitter, &lt;BR /&gt;NXP support is not following the thread anymore.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 01:06:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893855#M4153</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2019-04-16T01:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Linux application debug with Layerscape SDK</title>
      <link>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893856#M4154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Pavel for your answer!&lt;/P&gt;&lt;P&gt;As far as I understand, there isn't other way to add AppTRK to root filesystem built by Layerscape SDK 19.03, is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Miloserdin Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 07:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893856#M4154</guid>
      <dc:creator>miloserdin</dc:creator>
      <dc:date>2019-04-16T07:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Linux application debug with Layerscape SDK</title>
      <link>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893857#M4155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;You are right.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;There is not other way to add AppTRK to root filesystem built by Layerscape SDK 19.03.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread is continued as a private discussion with the submitter, &lt;BR /&gt;NXP support is not following the thread anymore.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2019 02:27:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893857#M4155</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2019-04-17T02:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Linux application debug with Layerscape SDK</title>
      <link>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893858#M4156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pavel, thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2019 08:07:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Linux-application-debug-with-Layerscape-SDK/m-p/893858#M4156</guid>
      <dc:creator>miloserdin</dc:creator>
      <dc:date>2019-04-17T08:07:05Z</dc:date>
    </item>
  </channel>
</rss>

