hey guys,
so i am trying to compile a usb serial module for the mirabox, and i am trying to load it but i get:
could not insert module pl2303.ko: Invalid module format
the way i did the compiling was:
copied ../linux-3.14.29/arch/arm/configs/mvebu_defconfig from a 3.14 kernel, put it into the sources of the 3.2.36 kernel which is installed nowadays and then added support for the serial usb:
export PATH="/home/katmai/kernel-dev/Marvell_toolchain_201201/armv7-marvell-linux-gnueabi-softfp_i686/bin:$PATH"
#make ARCH=arm CROSS_COMPILE=arm-marvell-linux-gnueabi- mvebu_defconfig
added the serial usb support before compiling the image and the modules
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_PL2303=m
then i compiled the image and modules:
make ARCH=arm CROSS_COMPILE=arm-marvell-linux-gnueabi- zImage
make ARCH=arm CROSS_COMPILE=arm-marvell-linux-gnueabi- modules
afterwards i loaded the module onto the mirabox but i got the error mentioned:
pl2303: version magic '3.2.36 mod_unload ARMv5 p2v8 ' should be '3.2.36 mod_unload ARMv7 '
[email protected]:~# insmod pl2303.ko
Error: could not insert module pl2303.ko: Invalid module format
can someone point me to what am i doing wrong please?