<?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 copy_to_user() error when compiling open source AMT driver in Intel® Business Client Software Development</title>
    <link>https://community.intel.com/t5/Intel-Business-Client-Software/copy-to-user-error-when-compiling-open-source-AMT-driver/m-p/799334#M672</link>
    <description>Most google results told me to include a header file:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;#include &lt;ASM&gt;&lt;/ASM&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;This didn't work.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Since the MEI/AMT driver will be part of kernel 3.0 (2.6.40), I tried to look up the source code for that:&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;A href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/staging/mei/iorw.c;h=697a2773d7cdde47f535488f592a463e1dd0e93a;hb=8eb73c6c2675f708283822bd058ad1e416836ba2"&gt;http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/staging/mei/iorw.c;h=697a2773d7cdde47f535488f592a463e1dd0e93a;hb=8eb73c6c2675f708283822bd058ad1e416836ba2&lt;/A&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;That version of the file is newer than the one in the download offered by Intel.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;One of the differences is addition of:&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#include &lt;LINUX&gt;&lt;/LINUX&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Now it compiles!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 24 Jun 2011 23:56:09 GMT</pubDate>
    <dc:creator>opperpanter</dc:creator>
    <dc:date>2011-06-24T23:56:09Z</dc:date>
    <item>
      <title>copy_to_user() error when compiling open source AMT driver</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/copy-to-user-error-when-compiling-open-source-AMT-driver/m-p/799333#M671</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I downloaded the Linux AMT drivers from &lt;A href="http://software.intel.com/en-us/articles/download-the-latest-intel-amt-open-source-drivers/#comment-61036" target="_blank"&gt;http://software.intel.com/en-us/articles/download-the-latest-intel-amt-open-source-drivers/#comment-61036&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The article by Jeffrey Rott.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to compile (make) on Debian Squeeze (2.6.32-amd64), but this fails:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@NAS2:/home/qst/mei7/mei-7.1.20# make&lt;/P&gt;&lt;P&gt;cd src &amp;amp;&amp;amp; make&lt;/P&gt;&lt;P&gt;make[1]: Entering directory `/home/qst/mei7/mei-7.1.20/src'&lt;/P&gt;&lt;P&gt;make -C /lib/modules/`uname -r`/build M=`pwd` modules&lt;/P&gt;&lt;P&gt;make[2]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'&lt;/P&gt;&lt;P&gt;  CC &lt;M&gt;  /home/qst/mei7/mei-7.1.20/src/iorw.o&lt;/M&gt;&lt;/P&gt;&lt;P&gt;/home/qst/mei7/mei-7.1.20/src/iorw.c: In function amthi_read:&lt;/P&gt;&lt;P&gt;/home/qst/mei7/mei-7.1.20/src/iorw.c:368: error: implicit declaration of funcn copy_to_user&lt;/P&gt;&lt;P&gt;make[5]: *** [/home/qst/mei7/mei-7.1.20/src/iorw.o] Error 1&lt;/P&gt;&lt;P&gt;make[4]: *** [_module_/home/qst/mei7/mei-7.1.20/src] Error 2&lt;/P&gt;&lt;P&gt;make[3]: *** [sub-make] Error 2&lt;/P&gt;&lt;P&gt;make[2]: *** [all] Error 2&lt;/P&gt;&lt;P&gt;make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'&lt;/P&gt;&lt;P&gt;make[1]: *** [all] Error 2&lt;/P&gt;&lt;P&gt;make[1]: Leaving directory `/home/qst/mei7/mei-7.1.20/src'&lt;/P&gt;&lt;P&gt;make: *** [all] Error 2&lt;/P&gt;&lt;P&gt;root@NAS2:/home/qst/mei7/mei-7.1.20# ls&lt;/P&gt;&lt;P&gt;COPYING  Makefile  README  src&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I am new to linux, it might be something simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to change to fix this. Is this some compiler setting? Some kernel flag or come missing kernel library/header?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The README doesn't have info about requirements, so I am not sure whether my kernel version is approprioate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Jun 2011 21:48:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/copy-to-user-error-when-compiling-open-source-AMT-driver/m-p/799333#M671</guid>
      <dc:creator>opperpanter</dc:creator>
      <dc:date>2011-06-24T21:48:30Z</dc:date>
    </item>
    <item>
      <title>copy_to_user() error when compiling open source AMT driver</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/copy-to-user-error-when-compiling-open-source-AMT-driver/m-p/799334#M672</link>
      <description>Most google results told me to include a header file:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;#include &lt;ASM&gt;&lt;/ASM&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;This didn't work.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Since the MEI/AMT driver will be part of kernel 3.0 (2.6.40), I tried to look up the source code for that:&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;A href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/staging/mei/iorw.c;h=697a2773d7cdde47f535488f592a463e1dd0e93a;hb=8eb73c6c2675f708283822bd058ad1e416836ba2"&gt;http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/staging/mei/iorw.c;h=697a2773d7cdde47f535488f592a463e1dd0e93a;hb=8eb73c6c2675f708283822bd058ad1e416836ba2&lt;/A&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;That version of the file is newer than the one in the download offered by Intel.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;One of the differences is addition of:&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#include &lt;LINUX&gt;&lt;/LINUX&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Now it compiles!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Jun 2011 23:56:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/copy-to-user-error-when-compiling-open-source-AMT-driver/m-p/799334#M672</guid>
      <dc:creator>opperpanter</dc:creator>
      <dc:date>2011-06-24T23:56:09Z</dc:date>
    </item>
    <item>
      <title>copy_to_user() error when compiling open source AMT driver</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/copy-to-user-error-when-compiling-open-source-AMT-driver/m-p/799335#M673</link>
      <description>Hi opperpanter,&lt;BR /&gt; I'm glad you got it figured out and I'm also glad that you posted here so other developers will be able to see the solution.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Judy</description>
      <pubDate>Sat, 25 Jun 2011 00:00:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/copy-to-user-error-when-compiling-open-source-AMT-driver/m-p/799335#M673</guid>
      <dc:creator>Judy_H_Intel</dc:creator>
      <dc:date>2011-06-25T00:00:33Z</dc:date>
    </item>
  </channel>
</rss>

