Code: Select all
uname -a
Linux porteus 4.9.0-porteus #1 SMP PREEMPT Sat Dec 17 19:22:10 BRST 2016 x86_64 Intel(R) Celeron(R) CPU N2840 @ 2.16GHz GenuineIntel GNU/Linux
viewtopic.php?f=117&t=4628
I sucessfully compiled i2c-designware-core and i2c-designware-platdrv and now my touchpad is working under porteus 3.2.2.
The instructions for compiling these kernel modules.
==============================
I downloaded:
Source of the linux kernel stable 4.9.5:
Code: Select all
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.5.tar.xz
crippled_sources.xzm
Compile modules:
Code: Select all
tar -zxvf linux-4.9.5.tar.xz /mnt/sda1/borrar/
cd /mnt/sda1/borrar/linux-4.9.5/
cd drivers/i2c/busses/
mv Makefile 20170221Makefile
vi Makefile
make
vi Makefile
make
ls *.ko
insmod /mnt/sda1/borrar/linux-4.9.5/drivers/i2c/busses/i2c-designware-core.ko
insmod /mnt/sda1/borrar/linux-4.9.5/drivers/i2c/busses/i2c-designware-platdrv.ko
First time for compiling i2c-designware-core:
Code: Select all
obj-m := i2c-designware-core.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
Code: Select all
obj-m := i2c-designware-platdrv.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
Code: Select all
cd /mnt/sda1/porteus/rootcopy/
mkdir -p lib/modules/4.9.0-porteus
cd lib/modules/4.9.0-porteus/
cp /mnt/sda1/borrar/linux-4.9.5/drivers/i2c/busses/i2c-designware-core.ko ./
cp /mnt/sda1/borrar/linux-4.9.5/drivers/i2c/busses/i2c-designware-platdrv.ko ./
Cesar.-