<?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 to cross compile kernel driver on iMX6S ?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-cross-compile-kernel-driver-on-iMX6S/m-p/1053015#M154939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/toanjunifer@gmail.com"&gt;toanjunifer@gmail.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to give a compiled kernel path in the &lt;STRONG&gt;"KERNEL"&lt;/STRONG&gt; variable in your Makefile.&lt;/P&gt;&lt;P&gt;Do you have the yocto setup for i.MX6S EVK? If so then you need to give this path in your &lt;EM&gt;&lt;STRONG&gt;{yocto_build_dir}/tmp/work/imx6slevk-poky-linux-gnueabi/linux-imx/4.9.88-r0/build &lt;/STRONG&gt;&lt;/EM&gt;to&amp;nbsp;&lt;STRONG&gt;KERNEL&lt;/STRONG&gt; variable in Makefile. Then after try to compile your module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know in case of any concerns.&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shivani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Jul 2020 17:53:03 GMT</pubDate>
    <dc:creator>shivanipatel</dc:creator>
    <dc:date>2020-07-18T17:53:03Z</dc:date>
    <item>
      <title>How to cross compile kernel driver on iMX6S ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-cross-compile-kernel-driver-on-iMX6S/m-p/1053014#M154938</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 using iMX6S-EVK with kernel version 4.9.88. I'm writing some simple kernel driver. I also download kernel linux 4.9.88. But when I compile, I got this error:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ERROR: Kernel configuration is invalid.&lt;BR /&gt; include/generated/autoconf.h or include/config/auto.conf are missing.&lt;BR /&gt; Run 'make oldconfig &amp;amp;&amp;amp; make prepare' on kernel src to fix it.&lt;BR /&gt; WARNING: Symbol version dump ./Module.symvers&lt;BR /&gt; is missing; modules will have no dependencies and modversions.&lt;/P&gt;&lt;P&gt;CC [M] /home/user1/Desktop/exploringBB/extras/kernel/gpio_test/gpio_test.o&lt;BR /&gt;In file included from &amp;lt;command-line&amp;gt;:0:0:&lt;BR /&gt;././include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory&lt;BR /&gt;compilation terminated.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is my Makefile:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;KERNEL ?= /home/user1/Desktop/linux&lt;BR /&gt;ARCH ?= arm&lt;BR /&gt;CROSS_COMPILE ?= arm-linux-gnueabihf-&lt;BR /&gt;obj-m+=hello.o&lt;/P&gt;&lt;P&gt;all:&lt;BR /&gt; make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) M=$(PWD) modules&lt;BR /&gt;clean:&lt;BR /&gt; make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) M=$(PWD) clean&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I execute this command to build:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Did I missing something ? What should I do now ?&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;Toan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 05:09:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-cross-compile-kernel-driver-on-iMX6S/m-p/1053014#M154938</guid>
      <dc:creator>toanjunifer</dc:creator>
      <dc:date>2020-07-16T05:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to cross compile kernel driver on iMX6S ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-cross-compile-kernel-driver-on-iMX6S/m-p/1053015#M154939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/toanjunifer@gmail.com"&gt;toanjunifer@gmail.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to give a compiled kernel path in the &lt;STRONG&gt;"KERNEL"&lt;/STRONG&gt; variable in your Makefile.&lt;/P&gt;&lt;P&gt;Do you have the yocto setup for i.MX6S EVK? If so then you need to give this path in your &lt;EM&gt;&lt;STRONG&gt;{yocto_build_dir}/tmp/work/imx6slevk-poky-linux-gnueabi/linux-imx/4.9.88-r0/build &lt;/STRONG&gt;&lt;/EM&gt;to&amp;nbsp;&lt;STRONG&gt;KERNEL&lt;/STRONG&gt; variable in Makefile. Then after try to compile your module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know in case of any concerns.&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shivani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2020 17:53:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-cross-compile-kernel-driver-on-iMX6S/m-p/1053015#M154939</guid>
      <dc:creator>shivanipatel</dc:creator>
      <dc:date>2020-07-18T17:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to cross compile kernel driver on iMX6S ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-cross-compile-kernel-driver-on-iMX6S/m-p/1053016#M154940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/shivanipatel"&gt;shivanipatel&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Sorry for late response. I also done it like your guide.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;Have a nice day !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 08:38:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-cross-compile-kernel-driver-on-iMX6S/m-p/1053016#M154940</guid>
      <dc:creator>toanjunifer</dc:creator>
      <dc:date>2020-07-31T08:38:57Z</dc:date>
    </item>
  </channel>
</rss>

