WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: kernel module for GPIOs on apu2 board  (Read 2807 times)

Offline mikesters

  • Newbie
  • *
  • Posts: 6
kernel module for GPIOs on apu2 board
« 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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: kernel module for GPIOs on apu2 board
« Reply #1 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?

Offline mikesters

  • Newbie
  • *
  • Posts: 6
Re: kernel module for GPIOs on apu2 board
« Reply #2 on: June 30, 2016, 05:15:35 AM »
this was done on Voyage Linux 4.1.6

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: kernel module for GPIOs on apu2 board
« Reply #3 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.
The only barriers that can stop you are the ones you create yourself.

Offline mikesters

  • Newbie
  • *
  • Posts: 6
Re: kernel module for GPIOs on apu2 board
« Reply #4 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.

Offline CarstenSp

  • Newbie
  • *
  • Posts: 1
Re: kernel module for GPIOs on apu2 board
« Reply #5 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.