Community
cancel
Showing results for 
Search instead for 
Did you mean: 
lemel
New Contributor I
1,563 Views

HELP!!! Can't insmod my own driver!like arm,without yocto.

I want to insmod a pcie driver,I use cross-compiler way (like arm).First I get the kernel source same as my galileo kernel version. then ,I write Makefile,finally,I make,I can get a sgdma_gen1x4.ko file.move this file to board, insmod pcie.ko but not success.

error info:

sgdma_gen1x4:Unknown symbol handler_altera_device_probe (err 0)

sgdma_gen1x4: Unknown symbol handler_altera_device_deinit (err 0

unknown symbol in module or invalid parameter

how can I do to solve this problems,THANKS!

Tags (1)
0 Kudos
8 Replies
lemel
New Contributor I
102 Views

sorry,the err info is:

[ 33.120971] sgdma_gen1x4: Unknown symbol mcount (err 0)

insmod: can't insert 'sgdma_gen1x4.ko': unknown symbol in module, or unknown par

ameter

idata
Community Manager
102 Views

Hi Emel,

 

 

Thanks for your interest in the Intel Galileo Platform.

 

 

Thanks for the information provided. We have found this information that can help you with the error you are getting, please take a look at this link: http://stackoverflow.com/questions/33718358/insmod-unknown-symbol-in-module insmod: Unknown symbol in module, and let us know if that helps.

 

 

Also, we would like to suggest you this other link: http://www.thegeekstuff.com/2013/07/write-linux-kernel-module/ How to Write Your Own Linux Kernel Module with a Simple Example, there you can find instructions regarding to include modules to the Linux Kernel.

 

 

Hope the information above helps, let us know if you have any questions.

 

 

Regards,

 

-Yermi

 

lemel
New Contributor I
102 Views

hi Yermi,

Thanks for your response,

Now ,I use yocto create bzImage/ext/grub/...,likes thesse https://github.com/AjanthaB/Building-a-Yocto-image-for-Galileo-Gen-2-bord GitHub - AjanthaB/Building-a-Yocto-image-for-Galileo-Gen-2-bord: Building a Yocto image for Galileo Gen 2 bord. And ins…

I want use this way to write my own driver https://software.intel.com/en-us/node/611867 Developing a Kernel Driver Without Building it into the Gateway Operating System | Intel® Software ,I can get bzImage/ext/grub/... successfully,but when I boot sd on galileo,the problem comes out ,there are messy code .I don't know why.

lemel
New Contributor I
102 Views

I solve my problem,

FTinetti
Honored Contributor I
102 Views

Hi Emel

Emel wrote:

I solve my problem,

Did you? Is it what you shared at ?

TIA,

Fernando.

idata
Community Manager
102 Views

Hi Emel,

 

 

We're happy that you were able to solve your issue. We would like to know if you can share your solution with the community, it will help other users that could have similar issues.

 

 

Regards,

 

-Yermi

 

lemel
New Contributor I
102 Views

yes,I summarize that,share it for other guys

lemel
New Contributor I
102 Views

It's here , please @me if something incorrect

Reply