Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12453 Discussions

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

Honored Contributor II

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
Honored Contributor II

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 if anyone can give good explainations plz feel free to :)