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.
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!
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.
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.
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.