New IT forum
26 June 2022, 06:08:27 pm *
Welcome, %1$s. Please login or register.

: GertDuino now in stock.
 
Pages: [1]

Author Topic: could not insert module pl2303.ko: Invalid module format  (Read 3624 times)

katmai

  • Newbie
  • *
  • Posts: 1
could not insert module pl2303.ko: Invalid module format
« on: 23 January 2015, 05:24:22 pm »

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:

Code: [Select]
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:

Code: [Select]
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

Code: [Select]
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_PL2303=m

then i compiled the image and modules:

Code: [Select]
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:

Code: [Select]
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?
Logged
Pages: [1]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!