The point being, I was recently testing SCTP support on the Openmoko, and I used the same technique to get the kernel module to compile. But then, it kept failing with this error:
insmod: error inserting './sctp.ko': -1 Invalid module formatThe problem was that even though my kernel sources did match the one running, the /usr/src/linux/Makefile's EXTRAVERSION parameter was not filled in (typically, with the git commit hash). The kernel then refused to load the module, because of a version mismatch.
The good news is that SCTP seems to work: I got these fine examples to work directly. You'll need to install libsctp-dev to get the necessary include files. The SCTP module is also compiled by default now :)
So, just in case you get this error as well, think about this!



