<?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: about *.ko into SD card in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/about-ko-into-SD-card/m-p/849347#M4199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1,2 - you built your kernel module with different kernel version than is on your EVB. That's why you got the version magic error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. the kernel module is already loaded. You can use rmod command. In case that rmod is not present on your system, just move oal_cma.ko to different folder and reboot your EVB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, why you need the custom oal_cma.ko kernel module? It is not typical use case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2018 08:12:08 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2018-12-11T08:12:08Z</dc:date>
    <item>
      <title>about *.ko into SD card</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/about-ko-into-SD-card/m-p/849346#M4198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Dear expert,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have downloaded the linux source code BSP 17.0 and BSP 18.0 for S32V234, and I installed the VSDK version 1_1_0 and VSDK version 1_2_0. I disked the SD card and installed files into SD card, and it can work well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but when I compiled the *.ko driver&lt;/SPAN&gt;， &lt;SPAN&gt;there are following cases:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1, BSP 17.0 &lt;STRONG&gt;+&lt;/STRONG&gt; s32v234_sdk_1_1_0, I compiled the *.ko with Ubuntu 14.04,and these *.ko files are copied int to root folder of SD card, but when I run commond: insmod oal_cma.ko, the error is shown as following fig_1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&amp;nbsp; 32.908157] oal_cma: version magic ‘&lt;SPAN style="color: red;"&gt;4.1.26-rt29+g0df2715&lt;/SPAN&gt; SMP &lt;SPAN style="color: red; background: yellow;"&gt;preempt&lt;/SPAN&gt; mod_unload aarch64’ should be ‘4.14.34-rt27+g5b7d979 SMP mod_unload aarch64’&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Insmod Error&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;：&lt;SPAN&gt;could not insert module ./oal_cma.ko:&amp;nbsp; Invalid module format.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="fig_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63552i6BCA0D8A692726F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig_1.png" alt="fig_1.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2, BSP 18.0 &lt;STRONG&gt;+&lt;/STRONG&gt; s32v234_sdk_1_2_0, I compiled the *.ko with Ubuntu 14.04,and these *.ko files are copied int to root folder of SD card, but when I run commond: insmod oal_cma.ko, the error is shown as following fig_2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&amp;nbsp; 22.309899] oal_cma: version magic ‘4.14.34-rt27+g5b7d979 SMP &lt;SPAN style="color: red; background: yellow;"&gt;preempt&lt;/SPAN&gt; mod_unload aarch64’ should be ‘4.14.34-rt27+g5b7d979 SMP mod_unload aarch64’&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Insmod Error&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;：&lt;SPAN&gt;could not insert module ./oal_cma.ko:&amp;nbsp; Invalid module format.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="fig_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63584i54F24A859274F851/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig_2.png" alt="fig_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3, I use *.ko files which is included when s32v234_sdk_1_2_0 is installed, and these *.ko files are copied int to root folder of SD card, when I run commond: insmod oal_cma.ko, there is no error , only give the following hint:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Insmod: ERROR: could not insert module ./oal_cma.ko: File exists.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="fig_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63622iFBF023D04844713F/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig_3.png" alt="fig_3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you help me again? How can I solve the error of item 1 and item 2? And about item 3, in SD card ,where is the oal_cma.ko which is automatically loaded?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much for your kind help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 02:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/about-ko-into-SD-card/m-p/849346#M4198</guid>
      <dc:creator>zhaoyanling</dc:creator>
      <dc:date>2018-12-10T02:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: about *.ko into SD card</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/about-ko-into-SD-card/m-p/849347#M4199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1,2 - you built your kernel module with different kernel version than is on your EVB. That's why you got the version magic error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. the kernel module is already loaded. You can use rmod command. In case that rmod is not present on your system, just move oal_cma.ko to different folder and reboot your EVB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, why you need the custom oal_cma.ko kernel module? It is not typical use case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2018 08:12:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/about-ko-into-SD-card/m-p/849347#M4199</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-12-11T08:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: about *.ko into SD card</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/about-ko-into-SD-card/m-p/849348#M4200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jiri Kral,&lt;/P&gt;&lt;P&gt;Thanks very much for your reply.&lt;/P&gt;&lt;P&gt;My development board is s32v234&lt;STRONG&gt;_sbc&lt;/STRONG&gt;, &lt;STRONG&gt;not&lt;/STRONG&gt; s32v234&lt;STRONG&gt;_evb&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;1、How can I know the kernel version of my DEV board?&lt;/P&gt;&lt;P&gt;2、How can I change the kernel version of my DEV board?&lt;/P&gt;&lt;P&gt;By the way， in SD card , I install the Linux file system with Linux source BSP 18.0 for s32v234.And I debug the demos as the docunment &amp;lt;VisionSDK_UserGuide.pdf&amp;gt;, which shows the oal_cma.ko is needed， the details are shown as following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="doc_showing.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69103i6C28F88305FA6009/image-size/large?v=v2&amp;amp;px=999" role="button" title="doc_showing.bmp" alt="doc_showing.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2018 03:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/about-ko-into-SD-card/m-p/849348#M4200</guid>
      <dc:creator>zhaoyanling</dc:creator>
      <dc:date>2018-12-12T03:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: about *.ko into SD card</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/about-ko-into-SD-card/m-p/849349#M4201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;uname -r&lt;/STRONG&gt; command prints kernel version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best way how to get started with your EVB and linux is use linux OS image provided by VSDK. I'm not sure if you are using it - here is way how to setup your SD card:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-335023"&gt;https://community.nxp.com/docs/DOC-335023&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the OS image from VSDK - there are all required modules already loaded. You can list modules with &lt;STRONG&gt;lsmod&lt;/STRONG&gt; command. In VSDK OS image are modules stored in /s32v234 direcotory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2018 09:03:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/about-ko-into-SD-card/m-p/849349#M4201</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-12-12T09:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: about *.ko into SD card</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/about-ko-into-SD-card/m-p/849350#M4202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi Jiri Kral&lt;/SPAN&gt;，&lt;/P&gt;&lt;P&gt;I successfully prepared the SD card as the document:How to...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I&amp;nbsp; try to run ICC codes on SD card.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; After I compiled successfully and I got the following files:&lt;/SPAN&gt;&lt;SPAN style="color: red; background: yellow;"&gt;&lt;STRONG&gt;simple_icc_mod.ko, icc_sample, binary.img&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I did as document: &lt;STRONG&gt;&lt;EM&gt;M4_boot(Icc_demo)&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;. &lt;/EM&gt;But when I insert SD card into DEV board, and run:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00b050;"&gt;&lt;STRONG&gt;#./insert_module.sh&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;there are some errors, shown as the following, I don’t understand what’s the different between “SMP &lt;SPAN style="color: #c00000;"&gt;&lt;STRONG&gt;preempt&lt;/STRONG&gt;&lt;/SPAN&gt; mod_unloade” and “SMP mod_unload”? &amp;nbsp;and why is the simple_icc_mod.ko invalid module format? How can I fix the error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By the way, simple_icc_mod.ko is not included in &lt;STRONG&gt;VSDK OS image &lt;/STRONG&gt;automatically, so I have to insert it manually.And the kernel version of SD card is shown as following: 4.14.34-rt27+g5b7d979.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jiri.kral@nxp.com"&gt;jiri.kral@nxp.com&lt;/A&gt;‌@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2018 02:34:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/about-ko-into-SD-card/m-p/849350#M4202</guid>
      <dc:creator>zhaoyanling</dc:creator>
      <dc:date>2018-12-20T02:34:16Z</dc:date>
    </item>
  </channel>
</rss>

