<?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 LS1021A-IOT SDK and SD Card kernel version mismatch? in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1021A-IOT-SDK-and-SD-Card-kernel-version-mismatch/m-p/622198#M1895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to build an out-of-tree kernel module against the LS1021A-IOT SDK (specifically, "LS1021A-IoT Rev B Gateway Reference Design SDK Source ISO") and load it on my platform, the LS1021A-IOT.&amp;nbsp; This is not the Rev B board with Rev 2.0 silicon, i.e.,&lt;/P&gt;&lt;P&gt;&amp;gt;U-Boot SPL 2014.01Layerscape-SDK-V1.3+g50d6848 (Dec 01 2014 - 13:42:50)&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;BR /&gt;&amp;gt;U-Boot 2014.01Layerscape-SDK-V1.3+g50d6848 (Dec 01 2014 - 13:42:50)&lt;/P&gt;&lt;P&gt;&amp;gt;CPU:&amp;nbsp;&amp;nbsp; Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I built the module and tried to load it, which produced the following result:&lt;/P&gt;&lt;P&gt;&amp;gt;root@FSL:~/test# insmod ./test.ko&lt;BR /&gt;&amp;gt;[264884.711792] test: version magic '3.12.37-rt51+ls1 SMP mod_unload ARMv7 p2v8 ' should be '3.12.0+ SMP mod_unload ARMv7 p2v8 '&lt;BR /&gt;&amp;gt;insmod: ERROR: could not insert module ./test.ko: Invalid module format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the steps I used to generate the module:&lt;/P&gt;&lt;P&gt;1. Installed SDK according to START_HERE.html on ISO&lt;/P&gt;&lt;P&gt;2. Built fsl-image-flash according to same&lt;/P&gt;&lt;P&gt;3. Rebuilt kernel image according to same (no changes)&lt;/P&gt;&lt;P&gt;4. Installed standalone toolchain according to same&lt;/P&gt;&lt;P&gt;5. Built hostprogs:&lt;/P&gt;&lt;P&gt;&amp;gt;cd /opt/sdk/Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso/build_ls1021aiot_release/tmp/work/ls1021aiot-fsl-linux-gnueabi/linux-ls1/3.12-r0/sysroot-destdir/usr/src/kernel&lt;/P&gt;&lt;P&gt;&amp;gt;make ARCH=arm CROSS_COMPILE=/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux/usr/bin/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi- scripts&lt;/P&gt;&lt;P&gt;6. Built external module:&lt;/P&gt;&lt;P&gt;&amp;gt; cd ~/test&lt;/P&gt;&lt;P&gt;&amp;gt; make -C /opt/sdk/Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso/build_ls1021aiot_release/tmp/work/ls1021aiot-fsl-linux-gnueabi/linux-ls1/3.12-r0/sysroot-destdir/usr/src/kernel M=`pwd` modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module appears valid, but it will not load due to the version mismatch.&amp;nbsp;&amp;nbsp;Is there an SDK available which matches the original LS1021A-IOT?&amp;nbsp; The only&amp;nbsp;download I could find was the Rev B version listed above.&amp;nbsp; Some of the other QorIQ SDKs appear to have Cortex-A7 support, but it's not clear if they target this board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 00:25:48 GMT</pubDate>
    <dc:creator>justineno</dc:creator>
    <dc:date>2016-09-16T00:25:48Z</dc:date>
    <item>
      <title>LS1021A-IOT SDK and SD Card kernel version mismatch?</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-IOT-SDK-and-SD-Card-kernel-version-mismatch/m-p/622198#M1895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to build an out-of-tree kernel module against the LS1021A-IOT SDK (specifically, "LS1021A-IoT Rev B Gateway Reference Design SDK Source ISO") and load it on my platform, the LS1021A-IOT.&amp;nbsp; This is not the Rev B board with Rev 2.0 silicon, i.e.,&lt;/P&gt;&lt;P&gt;&amp;gt;U-Boot SPL 2014.01Layerscape-SDK-V1.3+g50d6848 (Dec 01 2014 - 13:42:50)&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;BR /&gt;&amp;gt;U-Boot 2014.01Layerscape-SDK-V1.3+g50d6848 (Dec 01 2014 - 13:42:50)&lt;/P&gt;&lt;P&gt;&amp;gt;CPU:&amp;nbsp;&amp;nbsp; Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I built the module and tried to load it, which produced the following result:&lt;/P&gt;&lt;P&gt;&amp;gt;root@FSL:~/test# insmod ./test.ko&lt;BR /&gt;&amp;gt;[264884.711792] test: version magic '3.12.37-rt51+ls1 SMP mod_unload ARMv7 p2v8 ' should be '3.12.0+ SMP mod_unload ARMv7 p2v8 '&lt;BR /&gt;&amp;gt;insmod: ERROR: could not insert module ./test.ko: Invalid module format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the steps I used to generate the module:&lt;/P&gt;&lt;P&gt;1. Installed SDK according to START_HERE.html on ISO&lt;/P&gt;&lt;P&gt;2. Built fsl-image-flash according to same&lt;/P&gt;&lt;P&gt;3. Rebuilt kernel image according to same (no changes)&lt;/P&gt;&lt;P&gt;4. Installed standalone toolchain according to same&lt;/P&gt;&lt;P&gt;5. Built hostprogs:&lt;/P&gt;&lt;P&gt;&amp;gt;cd /opt/sdk/Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso/build_ls1021aiot_release/tmp/work/ls1021aiot-fsl-linux-gnueabi/linux-ls1/3.12-r0/sysroot-destdir/usr/src/kernel&lt;/P&gt;&lt;P&gt;&amp;gt;make ARCH=arm CROSS_COMPILE=/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux/usr/bin/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi- scripts&lt;/P&gt;&lt;P&gt;6. Built external module:&lt;/P&gt;&lt;P&gt;&amp;gt; cd ~/test&lt;/P&gt;&lt;P&gt;&amp;gt; make -C /opt/sdk/Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso/build_ls1021aiot_release/tmp/work/ls1021aiot-fsl-linux-gnueabi/linux-ls1/3.12-r0/sysroot-destdir/usr/src/kernel M=`pwd` modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module appears valid, but it will not load due to the version mismatch.&amp;nbsp;&amp;nbsp;Is there an SDK available which matches the original LS1021A-IOT?&amp;nbsp; The only&amp;nbsp;download I could find was the Rev B version listed above.&amp;nbsp; Some of the other QorIQ SDKs appear to have Cortex-A7 support, but it's not clear if they target this board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 00:25:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-IOT-SDK-and-SD-Card-kernel-version-mismatch/m-p/622198#M1895</guid>
      <dc:creator>justineno</dc:creator>
      <dc:date>2016-09-16T00:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: LS1021A-IOT SDK and SD Card kernel version mismatch?</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-IOT-SDK-and-SD-Card-kernel-version-mismatch/m-p/622199#M1896</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;See the following page about toolchain installing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Ffreescale.sdlproducts.com%2FLiveContent%2Fcontent%2Fen-US%2FQorIQ_SDK%2FGUID-B7570271-9B1B-461A-A242-753FA06755C4" rel="nofollow" target="_blank"&gt;https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK/GUID-B7570271-9B1B-461A-A242-753FA06755C4&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Usually the following command sequence is used for test.c file compiling using toolchain:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;source /opt/fsl-networking/QorIQ-SDK-V1.8/environment-setup-cortexa7hf-vfp-neon-fsl-linux-gnueabi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Testing of the path from previous command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;echo $PATH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Similar message you should see:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux/usr/bin/arm-fsl-linux-gnueabi:/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux/usr/bin/arm-fsl-linux-gnueabi:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="2"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; Compile the test.c file:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;$CC test.c -o test.elf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Look at the following page about module compiling:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Ffreescale.sdlproducts.com%2FLiveContent%2Fcontent%2Fen-US%2FQorIQ_SDK%2FGUID-738EAE8F-745B-43C6-8BC6-54C59B8AB5F5" rel="nofollow" target="_blank"&gt;https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK/GUID-738EAE8F-745B-43C6-8BC6-54C59B8AB5F5&lt;/A&gt;&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: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 05:30:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-IOT-SDK-and-SD-Card-kernel-version-mismatch/m-p/622199#M1896</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2016-09-20T05:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: LS1021A-IOT SDK and SD Card kernel version mismatch?</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-IOT-SDK-and-SD-Card-kernel-version-mismatch/m-p/622200#M1897</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;&lt;/P&gt;&lt;P&gt;Thank you for the response, but it doesn't really address the question.&amp;nbsp; The fundamental issue is that the kernel version pre-installed on my SD card:&lt;/P&gt;&lt;P&gt;&amp;gt;root@FSL:~# uname -a&lt;BR /&gt;&amp;gt;Linux FSL &lt;STRONG&gt;3.12.0&lt;/STRONG&gt;+ #1 SMP Mon Dec 1 13:35:02 CST 2014 armv7l GNU/Linux&lt;/P&gt;&lt;P&gt;does not match with what's provided in the SDK:&lt;/P&gt;&lt;P&gt;&amp;gt;$ more Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso/meta-fsl-arm/recipes-kernel/linux/linux-ls1_3.12.bb&lt;BR /&gt;&amp;gt;...&lt;BR /&gt;&amp;gt;SRCREV = "&lt;STRONG&gt;aaa395f27e077f51c75c6aefc7bbec44732e9742&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;gt;...&lt;/P&gt;&lt;P&gt;&amp;gt;$ cd Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso/sources/git2/sw-stash.freescale.net.scm.dnnpi.ls1-linux.git&lt;/P&gt;&lt;P&gt;&amp;gt;$ git show aaa395f27e077f51c75c6aefc7bbec44732e9742:Makefile&lt;BR /&gt;&amp;gt;VERSION = 3&lt;BR /&gt;&amp;gt;PATCHLEVEL = 12&lt;BR /&gt;&amp;gt;SUBLEVEL = &lt;STRONG&gt;37&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hence, 3.12.0 vs 3.12.37.&amp;nbsp; &lt;/STRONG&gt;Therefore, any kernel module built using the SDK cannot be loaded onto the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, to assist others, I've found a workaround for my issue:&lt;/P&gt;&lt;P&gt;&amp;gt;$ more Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso/meta-fsl-arm/recipes-kernel/linux/linux-ls1.inc&lt;/P&gt;&lt;P&gt;&amp;gt;...&lt;/P&gt;&lt;P&gt;&amp;gt;SRC_URI = "git://sw-stash.freescale.net/scm/dnnpi/ls1-linux.git;branch=&lt;STRONG&gt;LS1-SDK-Rev2.0&lt;/STRONG&gt;;protocol=http"&lt;/P&gt;&lt;P&gt;&amp;gt;...&lt;/P&gt;&lt;P&gt;&amp;gt;$ cd Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso/sources/git2/sw-stash.freescale.net.scm.dnnpi.ls1-linux.git&lt;/P&gt;&lt;P&gt;&amp;gt;$ git branch -a&lt;BR /&gt;&amp;gt;&amp;nbsp; LS1-HSSI&lt;BR /&gt;&amp;gt;&amp;nbsp; LS1-IOT&lt;BR /&gt;&amp;gt;&amp;nbsp; LS1-SDK&lt;BR /&gt;&amp;gt;&amp;nbsp; LS1-SDK-Rev2.0&lt;BR /&gt;&amp;gt;&amp;nbsp; LS1-SDK1.5&lt;BR /&gt;&amp;gt;&amp;nbsp; ls1-dev&lt;BR /&gt;&amp;gt;&amp;nbsp; ls1-emu&lt;BR /&gt;&amp;gt;&amp;nbsp; ls1-emu-2.0&lt;BR /&gt;&amp;gt;&amp;nbsp; ls1-emu2.0-rebase&lt;BR /&gt;&amp;gt;* master&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the kernel recipe extracts the LS1-SDK-Rev2.0 branch, which contains kernel 3.12.37.&amp;nbsp; I explored the ls1-linux repository and found that at least the LS1-IOT and ls1-dev branches contain 3.12.0.&amp;nbsp; To build my module, I:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Checked out &lt;STRONG&gt;LS1-IOT&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Built the kernel&lt;/LI&gt;&lt;LI&gt;Built my out-of-tree module against the resulting kernel&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It is unlikely that the kernel resulting from (2) exactly matches what's on the SD card, but this was sufficient to build a compatible module which loads successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is frustrating that the provided SDK cannot reproduce the software shipping with this platform.&amp;nbsp; In fact, the accompanying documentation never mentions fsl-image-rds, though I suspect this is what's present on my system as it serves a web page claiming "Firmware Freescale-RDS - ARM Cortex A7 V4.24"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 19:54:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-IOT-SDK-and-SD-Card-kernel-version-mismatch/m-p/622200#M1897</guid>
      <dc:creator>justineno</dc:creator>
      <dc:date>2016-09-22T19:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: LS1021A-IOT SDK and SD Card kernel version mismatch?</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-IOT-SDK-and-SD-Card-kernel-version-mismatch/m-p/622201#M1898</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;It is correct solution. Recompile module using toolchain from the same core as using core.&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: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 03:38:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-IOT-SDK-and-SD-Card-kernel-version-mismatch/m-p/622201#M1898</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2016-09-23T03:38:46Z</dc:date>
    </item>
  </channel>
</rss>

