I have a cross-compiled Linux kernel, and it works fine on my Raspberry Pi 2. However, when I later compile modules on Raspberry Pi itself, error is reported.
After googling, the reason of this problem seems due to the cross-compiling which makes some tools located in linux/scripts/ are not suitable for arm architecture but X86.
I am not sure that whether it is necessary to compile modules on PC if the kernel is cross-compiled. If not, how could I transfer these tools to Pi?