Re: [beagleboard] Re: problem with creating a kernel module program for angstrom os

2014-03-08 Thread Brandon I
Just a regular kernel type makefile. For examlpe, here's mine for a file phyaccess.c BEAGLEBONE_PROJ=/systems/Projects/beaglebone/workspace/Beaglebone MDIO_ROOT=$(BEAGLEBONE_PROJ)/local/MDIODriver #

Re: [beagleboard] Re: problem with creating a kernel module program for angstrom os

2014-03-08 Thread Brandon I
Missed first line on that copy paste. Should be KERNELDIR := /usr/src/kernel On Sat, Mar 8, 2014 at 1:21 AM, Brandon I brandon.ir...@gmail.com wrote: Just a regular kernel type makefile. For examlpe, here's mine for a file phyaccess.c

Re: [beagleboard] Re: problem with creating a kernel module program for angstrom os

2014-03-08 Thread siva kumar
hai, thank u!! but my folder structure from my board looks like *root@beaglebone:/usr/src# ls* *backfire linux-3.8.13* *root@beaglebone:/usr/src# cd linux-3.8.13/* *root@beaglebone:/usr/src/linux-3.8.13# ls* *include* *root@beaglebone:/usr/src/linux-3.8.13/include# ls* *asm asm-generic drm

Re: [beagleboard] Re: problem with creating a kernel module program for angstrom os

2014-03-08 Thread Brandon I
Did you install the kernel-dev package? On Saturday, March 8, 2014, siva kumar boopathisivaku...@gmail.com wrote: hai, thank u!! but my folder structure from my board looks like *root@beaglebone:/usr/src# ls* *backfire linux-3.8.13* *root@beaglebone:/usr/src# cd linux-3.8.13/*

[beagleboard] Re: problem with creating a kernel module program for angstrom os

2014-03-07 Thread Brandon I
dmesg will give you more details. This usually means you compiled the kernel modules against a different build of the kernel. So, the kernel source you used didn't match what was on the beaglebone. You can install the kernel-headers and kernel-dev packages and build directly on the

[beagleboard] Re: problem with creating a kernel module program for angstrom os

2014-03-07 Thread siva kumar
thanks for your reply brandon I its hard for me to update kernel-source for my bbb. when i execute the command it always says root@beaglebone:~# opkg install kernel-headers Package kernel-headers (3.8.13-r23a.22) installed in root is up to date. when i look inside the

[beagleboard] Re: problem with creating a kernel module program for angstrom os

2014-03-07 Thread siva kumar
thanks for your reply yes , u r right i compiled the module against arm-angstrom-linux-gnueabi-gcc but my angstrom os comes with Linaro gcc root@beaglebone:~# opkg list_installed | grep gcc *gcc - linaro-4.7-r9.2* gcc-symlinks - linaro-4.7-r9.2 libgcc-s-dev - linaro-4.7-r9.0 libgcc1 -