Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • opperpanterJune 24, 2011 2:48 PM PDT   
    copy_to_user() error when compiling open source AMT driver

    Hello,

     

    I downloaded the Linux AMT drivers from http://software.intel.com/en-us/articles/download-the-latest-intel-amt-open-source-drivers/#comment-61036

    The article by Jeffrey Rott.

     

    I tried to compile (make) on Debian Squeeze (2.6.32-amd64), but this fails:

     

    root@NAS2:/home/qst/mei7/mei-7.1.20# make

    cd src && make

    make[1]: Entering directory `/home/qst/mei7/mei-7.1.20/src'

    make -C /lib/modules/`uname -r`/build M=`pwd` modules

    make[2]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'

    CC [M] /home/qst/mei7/mei-7.1.20/src/iorw.o

    /home/qst/mei7/mei-7.1.20/src/iorw.c: In function âamthi_readâ:

    /home/qst/mei7/mei-7.1.20/src/iorw.c:368: error: implicit declaration of funcn âcopy_to_userâ

    make[5]: *** [/home/qst/mei7/mei-7.1.20/src/iorw.o] Error 1

    make[4]: *** [_module_/home/qst/mei7/mei-7.1.20/src] Error 2

    make[3]: *** [sub-make] Error 2

    make[2]: *** [all] Error 2

    make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'

    make[1]: *** [all] Error 2

    make[1]: Leaving directory `/home/qst/mei7/mei-7.1.20/src'

    make: *** [all] Error 2

    root@NAS2:/home/qst/mei7/mei-7.1.20# ls

    COPYING Makefile README src

     

    Since I am new to linux, it might be something simple.

     

    What do I need to change to fix this. Is this some compiler setting? Some kernel flag or come missing kernel library/header?

     

    The README doesn't have info about requirements, so I am not sure whether my kernel version is approprioate.

     

    Thanks!

     




    opperpanterJune 24, 2011 4:56 PM PDT
    Rate
     
    copy_to_user() error when compiling open source AMT driver

    Most google results told me to include a header file: 
    #include <asm/uaccess.h>
    This didn't work.
    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:
    That version of the file is newer than the one in the download offered by Intel.
    One of the differences is addition of:
    #include <linux/uaccess.h>
    Now it compiles!


    Judy Hartley (Intel)June 24, 2011 5:00 PM PDT
    Rate
     
    copy_to_user() error when compiling open source AMT driver

    Hi opperpanter,
       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.

    Thanks,
    Judy

Forum jump:  

Intel Software Network Forums Statistics

17,025 users have contributed to 48,317 threads and 172,754 posts to date.

In the past 24 hours, we have 9 new thread(s) 56 new posts(s), and 52 new user(s).

In the past 3 days, the most popular thread for everyone has been How to manage rounding by IVF ?? The most posts were made to Most likely, the issue is that The post with the most views is Optimalization of sine function\'s taylor expansion

Please welcome our newest member redfruit83


For more complete information about compiler optimizations, see our Optimization Notice.