OK. This is the error: root@beaglebone:~# insmod hello.ko Error: could not insert module hello.ko: Invalid module format
And I checked the current version below: root@beaglebone:~# uname -r 3.8.13-bone79 Could you please tell me where I can get the kernel source which has the same version as my BBB board? On Friday, October 16, 2015 at 5:39:09 PM UTC-4, Przemek Klosowski wrote: > > > > On Fri, Oct 16, 2015 at 2:53 PM, Mian Tang <[email protected] > <javascript:>> wrote: > >> Hi, >> >> I connect my BBB to internet do update. When I use "uname -r" to check >> the version, it displays: 3.8.13-bone79. >> >> Now, I hope to compile a hello.ko module driver on PC and run it on the >> board. >> > You seem to have a test kernel module that you want to compile and insert > into a running kernel. Normally, you'd just 'make hello.ko' and 'insmod > hello.ko'. This wouldn't work if the kernel API used by the module was so > different that it wouldn't work with the header files used by your current > kernel (btw. for this to work, your system has to have kernel development > packages installed). > Try this and report if you encounter errors--it'll be much easier to help > if you say in detail what you did and what happened as a result. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
