Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: mikesters on June 30, 2016, 03:28:29 AM

Title: kernel module for GPIOs on apu2 board
Post by: mikesters on June 30, 2016, 03:28:29 AM
I need to compile a kernel module for TinyCore to access GPIOs on an apu2 board.
These are the source files http://pcengines.ch/file/apu3_gpios.tar.bz2 needed to compile.
I tried to do so, but after adding several missing extensions I still got an error in the end, even though it does compile fine on other Linux distributions.
Title: Re: kernel module for GPIOs on apu2 board
Post by: Juanito on June 30, 2016, 03:36:35 AM
It doesn't compile on x86 linux-4.2.9 - which kernel does it compile on without errors in other distros?
Title: Re: kernel module for GPIOs on apu2 board
Post by: mikesters on June 30, 2016, 05:15:35 AM
this was done on Voyage Linux 4.1.6
Title: Re: kernel module for GPIOs on apu2 board
Post by: curaga on June 30, 2016, 06:26:58 AM
You'll need to ask them to port it to the 4.2 kernel, or build a custom kernel where that works.
Title: Re: kernel module for GPIOs on apu2 board
Post by: mikesters on July 01, 2016, 03:22:22 AM
OK, will do so. It would also be fine for me having this module for an older TinyCore version.
Title: Re: kernel module for GPIOs on apu2 board
Post by: CarstenSp on July 05, 2016, 05:31:44 AM
i had a short look at the Kernel .config for the 7.x kernel
(see http://ftp.nluug.nl/os/Linux/distr/tinycorelinux/7.x/x86/release/src/kernel/config-4.2.9-tinycore)

It says: # CONFIG_GPIOLIB is not set

This means there is no GPIO support enabled in this kernel.
This must be enabled and the kernel rebuild to build a GPIO driver.