Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started 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.
-
It doesn't compile on x86 linux-4.2.9 - which kernel does it compile on without errors in other distros?
-
this was done on Voyage Linux 4.1.6
-
You'll need to ask them to port it to the 4.2 kernel, or build a custom kernel where that works.
-
OK, will do so. It would also be fine for me having this module for an older TinyCore version.
-
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.