Re: Compilar módulo con DKMS
Buenas, Al final lo he hecho asi: apt-get install linux-headers-`uname -r` linux-source-4.9 cd /usr/src/ tar -xJf linux-source-4.9.tar.xz wget https://github.com/fetzerch/hp-n54l-drivers/raw/master/i2c-piix4.c cp i2c-piix4.c linux-source-4.9/drivers/i2c/busses/i2c-piix4.c cd linux-source-4.9/ cp /boot/config-`uname -r` .config cp ../linux-headers-`uname -r`/Module.symvers . make oldconfig make prepare make scripts make modules SUBDIRS=drivers/i2c/busses/ cp /lib/modules/4.9.0-4-amd64/kernel/drivers/i2c/busses/i2c-piix4.ko /lib/modules/4.9.0-4-amd64/kernel/drivers/i2c/busses/i2c-piix4.ko.bak cp drivers/i2c/busses/i2c-piix4.ko /lib/modules/4.9.0-4-amd64/kernel/drivers/i2c/busses/ depmod -a Un saludo. 2017-12-27 0:54 GMT+01:00 rv riveravaldez : > On Sat, Dec 23, 2017 at 12:58 PM, Josu Lazkano wrote: >> Buenos dias, >> >> Estoy intentando compilar este módulo para mi servidor: >> https://github.com/fetzerch/hp-n54l-drivers >> >> He seguido los pasos: >> >> # git clone git://github.com/fetzerch/hp-n54l-drivers.git >> # mv hp-n54l-drivers/ /usr/src/ >> # dkms add -m hp-n54l -v drivers/ >> >> Pero en este punto me falla: >> >> # dkms build -m hp-n54l -v drivers >> >> Kernel preparation unnecessary for this kernel. Skipping... >> >> Building module: >> cleaning build area...(bad exit status: 2) >> make -j2 KERNELRELEASE=4.9.0-4-amd64 KVER=4.9.0-4-amd64 >> src=/var/lib/dkms/hp-n54l/0.1.0/build...(bad exit status: 2) >> Error! Bad return status for module build on kernel: 4.9.0-4-amd64 (x86_64) >> Consult /var/lib/dkms/hp-n54l/drivers/build/make.log for more information. >> >> Aquí está el make.log: http://paste.debian.net/1002136/ > > ¿Esto es correcto? > > /var/lib/dkms/hp-n54l/0.1.0/build/Makefile: No existe el fichero o el > directorio > > Me refiero a si efectivamente existen o no el directorio y el fichero. > -- Josu Lazkano
Re: Compilar módulo con DKMS
On Sat, Dec 23, 2017 at 12:58 PM, Josu Lazkano wrote: > Buenos dias, > > Estoy intentando compilar este módulo para mi servidor: > https://github.com/fetzerch/hp-n54l-drivers > > He seguido los pasos: > > # git clone git://github.com/fetzerch/hp-n54l-drivers.git > # mv hp-n54l-drivers/ /usr/src/ > # dkms add -m hp-n54l -v drivers/ > > Pero en este punto me falla: > > # dkms build -m hp-n54l -v drivers > > Kernel preparation unnecessary for this kernel. Skipping... > > Building module: > cleaning build area...(bad exit status: 2) > make -j2 KERNELRELEASE=4.9.0-4-amd64 KVER=4.9.0-4-amd64 > src=/var/lib/dkms/hp-n54l/0.1.0/build...(bad exit status: 2) > Error! Bad return status for module build on kernel: 4.9.0-4-amd64 (x86_64) > Consult /var/lib/dkms/hp-n54l/drivers/build/make.log for more information. > > Aquí está el make.log: http://paste.debian.net/1002136/ ¿Esto es correcto? /var/lib/dkms/hp-n54l/0.1.0/build/Makefile: No existe el fichero o el directorio Me refiero a si efectivamente existen o no el directorio y el fichero.
Compilar módulo con DKMS
Buenos dias, Estoy intentando compilar este módulo para mi servidor: https://github.com/fetzerch/hp-n54l-drivers He seguido los pasos: # git clone git://github.com/fetzerch/hp-n54l-drivers.git # mv hp-n54l-drivers/ /usr/src/ # dkms add -m hp-n54l -v drivers/ Pero en este punto me falla: # dkms build -m hp-n54l -v drivers Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area...(bad exit status: 2) make -j2 KERNELRELEASE=4.9.0-4-amd64 KVER=4.9.0-4-amd64 src=/var/lib/dkms/hp-n54l/0.1.0/build...(bad exit status: 2) Error! Bad return status for module build on kernel: 4.9.0-4-amd64 (x86_64) Consult /var/lib/dkms/hp-n54l/drivers/build/make.log for more information. Aquí está el make.log: http://paste.debian.net/1002136/ ¿Alguien me puede ayudar? Estoy un poco perdido con el dkms. Gracias y un saludo. -- Josu Lazkano