Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
709 Views

Gpio driver example code for cyclone 5 not able to compile ...kernel headers missing

Hi all,  

I am trying to compile the gpio driver which comes with ds-5 examples .when i try to run the make file for it .it doesnt compile and says missing linux/init.h no such file .on googling i redirected make file to downloaded kernel source bt then it finds init.h bt gives errors in init.h itself .i am using linaro tool chain that comes with yocto source package to cross compile for cyclone v on my ubuntu host machine. Is there any source code and compiler version mismatch issue?? Plz help
0 Kudos
1 Reply
Highlighted
Valued Contributor III
7 Views

Folks ..we solved the problem finally.earlier i was using the linaro tool chain provided with yocto source package to cross compile the driver bt when i used cross compiler 

provided with the ds-5 design suite ,the driver module compiled correctly :) what i can conclude is that there was some version mismatch between kernel source header files and compiler as i can think of ..rest if anyone can give good explainations plz feel free to :)
0 Kudos