← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: ASUS K52J

 

2010/6/28 Albert Vilella <avilella@xxxxxxxxx>:
> this is great. how do I compile it? do I need a 2.6.34+ kernel? I get
> this error by doing:
> sudo make default
> make -C /lib/modules/2.6.32-22-generic/build
> M=/home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8
> modules
> make[1]: Entering directory `/usr/src/linux-headers-2.6.32-22-generic'
>  CC [M]  /home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8/acpi_call.o
> /home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8/acpi_call.c:
> In function ‘acpi_proc_write’:
> /home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8/acpi_call.c:58:
> error: implicit declaration of function ‘copy_from_user’
> make[2]: *** [/home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8/acpi_call.o]
> Error 1
> make[1]: *** [_module_/home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8]
> Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-22-generic'
> make: *** [default] Error 2


Ok, I fixed the module so that it compiles on 2.6.32-22 (the current
official Ubuntu Lucid kernel). Get the latest from
http://github.com/mkottman/acpi_call or
git://github.com/mkottman/acpi_call.git



Follow ups

References