I have finished it.
I used the Makefile like below:
obj-m := hello.o CC = gcc KERNEL_DIR := /myedison/edison-src/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17+gitAUTOINC+6ad20f049a_c03195ed6e-r0/linux-edison-standard-build PWD := $(shell pwd) all: make ARCH=x86 -C $(KERNEL_DIR) M=$(PWD) modules clean: rm *.o *.ko
But,I have a question:the Makefile in Eclipse has a line "CC = i586-poky-linux-gcc -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mstackrealign -fno-omit-frame-pointer --sysroot=$SDKTARGETSYSROOT'' and my Makefile just has "CC = gcc".What is the difference between the lines
The line that you have on Eclipse is a description of the architecture of the target (Edison). The one of your makefile is more generic. Have you tried it on the Edison to see how it behaves?
How did you get the KERNEL_DIR folders? building the Edison linux source?
I downloaded the edison src from the Intel's website and then build the compiling environment according to it.
Thanks, what image do you have on your edison? I can't get a module to load and it seem as though the compiled module is built for 3.10.17-yocto-standard, whilst my edison is running 3.10.17-poky-edison+ and as such the module can't be loaded. Do you have any ideas on how to resolve this problem?
I build a custom kernel.
Firstly, you should build the right environment.
Then,you should build the native SDK.
You can see more from edisonbsp_ug_331188007.pdf
Can I know which source code you are using inorder to make ,because I'm not finding the above mentioned directories which you have mentioned in the kernel directory .I'm using the yocto image iot-devkit-yp-poky-edison-20160606 and meta-intel-edison image using make.
Can I know much detailed explanation on the header files ,I mean where we should add and from where we are retrieving the info regarding this file
Thanks and Regards,