cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
593 Views
Registered: ‎04-06-2018

compile module petalinux with external kernel error

I'm trying to run the dma driver from https://github.com/bperez77/xilinx_axidma

it has many files and includes , so I downloaded the same linux of my petalinux :

Linux peta64 4.14.0-xilinx #2 SMP PREEMPT Sun Feb 3 02:09:53 PST 2019 armv7l GNU/Linu

and the rebase is :

/home/maikon/Downloads/linux-xlnx-xlnx_rebase_v4.14_2018.2/

then when I configure the make file to point to the path above I get the error :

                           insmod: can't insert 'axidma.ko': invalid module format

but I did changed my petaLinux to use this rebase when I compile the Kernel and it worked, I can get to compile when I compile the kernel, but when I generate the kernel from PetaLinux, it asked to clean the compilation. So , I think somehow, when I compile Kernel using Peta is different than using make ... even pointing to the same base.

All I want is to be able to test a DMA driver ...

Best regards.

Tags (3)
0 Kudos
2 Replies
Highlighted
Voyager
Voyager
552 Views
Registered: ‎10-21-2015

Re: compile module petalinux with external kernel error

Hi

Petalinux2018.2 use https://github.com/Xilinx/linux-xlnx/tree/xilinx-v2018.2 as default

Check your kernel version of built petalinux using uname -r

Highlighted
Contributor
Contributor
540 Views
Registered: ‎04-06-2018

Re: compile module petalinux with external kernel error

thank you.

I will try it but I made to work following the developer steps :

https://github.com/bperez77/xilinx_axidma/issues/24

which is basically creating a module from petalinux-create -t modules -n simple, copying all file to the module folder,

and adding the files names to a .bb file. It worked well, now I am trying to compile the benchmark.

0 Kudos