cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
254 Views
Registered: ‎09-30-2017

Petalinux 2018.3: Build kernel driver

Hello,

I have to build a  kernel driver. that will run under kernel build with petalinux 2018.3

The Makefile contains the line:

KERNELDIR ?= /Path/to/Kernel/Source

What is the path I should use ?

I did not find kernel source in my petalinux installation.

According to UG1144, I have to point to kernel source instead of using petalinux work-share source.

This is strange: I do not want to modify kernel source. Just insmod a kernel driver on runtime.

Thank you,

Zvika  

0 Kudos
1 Reply
Highlighted
Moderator
Moderator
225 Views
Registered: ‎12-04-2016

Re: Petalinux 2018.3: Build kernel driver

Hi zvika

You can build your driver as a module in petalinux to do this. Refer UG1144 on creating modules in petalinux

0 Kudos