con hardy ho compilato il modulo acer_acpi e non mi ha dato errori,la scheda si è accesa ed ho potuto utilizzare il wireless.
ho provato a compilare lo stesso modulo su jaunty ma mi da errore.
siccome non mi son mai dedicato alla compilazione perchè uso gnu/linux solo da un anno (eh già...),chiederei il vostro sempre prezioso aiuto.
un po di info:
ubuntu jaunty beta 64bit - atheros 5005g (vista come ar2413) - laptop fujitsu amilo 1650g (maledetto)
pablo@ubuntu:~$ uname -r
2.6.28-11-generic
questo è il contenuto della cartella del modulo
questo è quello che ho fattopablo@ubuntu:~$ ls acer_acpi*
acer_acpi.c acer_acpi.o Module.symvers wmi-acer.h wmi-acer.o
acer_acpi.ko ChangeLog NEWS wmi-acer.ko
acer_acpi.mod.c INSTALL README wmi-acer.mod.c
acer_acpi.mod.o Makefile wmi-acer.c wmi-acer.mod.o
questo è il makefilepablo@ubuntu:~$ cd acer_acpi*
pablo@ubuntu:~/acer_acpi-0.11.2$ make
make: Non c'è da fare nulla per «all»
pablo@ubuntu:~/acer_acpi-0.11.2$ sudo make install
[sudo] password for pablo:
mkdir -p /lib/modules/2.6.28-11-generic/extra
cp -v wmi-acer.ko acer_acpi.ko /lib/modules/2.6.28-11-generic/extra/
"wmi-acer.ko" -> "/lib/modules/2.6.28-11-generic/extra/wmi-acer.ko"
"acer_acpi.ko" -> "/lib/modules/2.6.28-11-generic/extra/acer_acpi.ko"
depmod 2.6.28-11-generic -a
pablo@ubuntu:~/acer_acpi-0.11.2$ sudo depmod -a
pablo@ubuntu:~/acer_acpi-0.11.2$ sudo modprobe acer_acpi
WARNING: Error inserting led_class (/lib/modules/2.6.28-11-generic/kernel/drivers/leds/led-class.ko): Invalid module format
FATAL: Error inserting acer_acpi (/lib/modules/2.6.28-11-generic/extra/acer_acpi.ko): Invalid module format
pablo@ubuntu:~/acer_acpi-0.11.2$
questo è l'install# change KERNELSRC to the location of your kernel build tree only if
# autodetection does not work
#KERNELSRC=/usr/src/linux
#KERNELSRC=/usr/src/kernel-source-2.4.21-acpi-i2c-lmsensors
KERNELSRC?=/lib/modules/`uname -r`/build
KERNELVERSION=$(shell awk -F" '/REL/ {print $$2}' $(shell grep -s -l REL $(KERNELSRC)/include/linux/version.h $(KERNELSRC)/include/linux/utsrelease.h))
KERNELMAJOR=$(shell echo $(KERNELVERSION)|head -c3)
KBUILD_BASENAME=
# next line is for kernel 2.6, if you integrate the driver in the kernel tree
# /usr/src/linux/drivers/acer_acpi - or something similar
# don't forget to add the following line to the parent dir's Makefile:
# (/usr/src/linux/drivers/Makefile)
# obj-m += acer_acpi/
obj-m += wmi-acer.o acer_acpi.o
#acer_acpi-objs := wmi-acer.o acer_acpi.o
CC=gcc
EXTRA_CFLAGS+=-c -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe
INCLUDE=-I$(KERNELSRC)/include
ifneq ($(KERNELMAJOR), 2.6)
exit:
endif
TARGET := wmi-acer.ko acer_acpi.ko
SOURCE := wmi-acer.c acer_acpi.c
all: $(TARGET)
exit:
@echo "No support for 2.4 series kernels"
help:
@echo Possible targets:
@echo -e all\\t- default target, builds kernel module
@echo -e install\\t- copies module binary to /lib/modules/$(KERNELVERSION)/extra/
@echo -e clean\\t- removes all binaries and temporary files
wmi-acer.ko: $(SOURCE)
$(MAKE) -C $(KERNELSRC) SUBDIRS=$(PWD) modules
wmi-acer.o: $(SOURCE)
$(CC) $(INCLUDE) $(CFLAGS) -DMODVERSIONS -DMODULE -D__KERNEL__ -o $(TARGET) $(SOURCE)
acer_acpi.ko: $(SOURCE)
$(MAKE) -C $(KERNELSRC) SUBDIRS=$(PWD) modules
acer_acpi.o: $(SOURCE)
$(CC) $(INCLUDE) $(CFLAGS) -DMODVERSIONS -DMODULE -D__KERNEL__ -o $(TARGET) $(SOURCE)
clean:
rm -f *~ *.o *.s *.ko *.mod.c .*.cmd Module.symvers
rm -rf .tmp_versions
load: $(TARGET)
insmod $(TARGET)
unload:
rmmod acer_acpi
install: $(TARGET)
mkdir -p ${DESTDIR}/lib/modules/$(KERNELVERSION)/extra
cp -v $(TARGET) ${DESTDIR}/lib/modules/$(KERNELVERSION)/extra/
depmod $(KERNELVERSION) -a
ringrazio tutti per qualsiasi aiuto o informazione.Installation
************
1. You need the kernel sources (or kernel headers for your kernel)
installed to compile the driver.
2. Your kernel needs loadable module support with version information for
modules enabled. Usage of procfs is highly recommended.
2.4 series kernels are not supported - you must use a 2.6 series kernel.
In most cases you can skip the next step, the Makefile tries to determine
the correct directory on its own. Change KERNELSRC _only_ if the
autodetection does not work for you. Otherwise proceed directly with step 4.
3. Before you compile the driver, change KERNELSRC in the makefile to your
path to the kernel build environment. If you are using a self compiled kernel,
point it to the root of your sources. If you are using a packaged kernel of
your distribution, install the package with kernel headers
(Debian:kernel-headers) and point KERNELSRC to where the headers and config
files are located. If you are using Debian, this
would be "/lib/modules//build".
4. Do:
make
5. Do:
make install
to install the kernel module. (You can use DESTDIR for repackaging).
If that step fails, try:
Copy the created files "wmi-acer.ko" and "acer_acpi.ko" to your kernel modules
path. For most distributions, this is usually:
"/lib/modules//kernel/drivers/char/".
Update module dependencies: depmod -a
6. Try loading the module with:
insmod/modprobe wmi-acer (only do this step of loading acer_acpi doesn't
load this module automatically).
insmod/modprobe acer_acpi
On most Acer systems with 2.6.23 or newer kernels, acer_acpi should be
automatically loaded.
If you don't see any error messages, check the README for usage information.

