Hi
I'm trying to compile usbserial.ko for the Odys Xelio (Allwinner A10 based Tablet). I'm usind this kernel sources: http://forum.xda-developers.com/showpost.php?p=25978796&postcount=121. According to a german android forum, these are the recommended sources.
I am able to compile usbserial.ko. The vermagic and the file signature are identical with the already existing modules.
Code:
vermagic: 3.0.8+ preempt mod_unload modversions ARMv7
file:
ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped
When I try to insmod the module i get this dmesg error:
Code:
<4>[22084.030000] usbserial: Unknown symbol usb_autopm_put_interface (err 0)
<4>[22084.050000] usbserial: Unknown symbol __stack_chk_guard (err 0)
<4>[22084.060000] usbserial: Unknown symbol kmem_cache_alloc_trace (err 0)
<4>[22084.080000] usbserial: Unknown symbol __stack_chk_fail (err 0)
<4>[22084.080000] usbserial: Unknown symbol __tracepoint_module_get (err 0)
<4>[22084.100000] usbserial: Unknown symbol usb_autopm_get_interface (err 0)
<4>[22084.110000] usbserial: Unknown symbol __gnu_mcount_nc (err 0)
(This errors show also up as warnings durring the module compilation)
After some research I tryed to compile usbcore.ko, but I do not know how to get this module. I tryed to select "Drivers -> USB -> USB Host" as module (M) in the kernel menuconfig. But this does not help.
Can anyone help me?
Is the missing usbcore.ko causing the error when loading usbserial.ko or is it a different problem? (The device has already USB OTG/Host features - I can connect a mouse or an USB stick)
What do I have to change in the kernel config so that I get usbcore.ko?
Thanks.
lfrst05 said:
<4>[22084.060000] usbserial: Unknown symbol kmem_cache_alloc_trace (err 0)
Click to expand...
Click to collapse
I get same error when I try to load cfg80211.ko module that I cross-compiled using compat-wireless-3.6.8-1
Code:
cfg80211: Unknown symbol kmem_cache_alloc_trace (err 0)
What do I have to do? Do I need to recompile kernel or is there a variable to set before make command to not use kmem_cache_alloc_trace function?
Android version:
4.1.2
CyanogenMod Version:
10-20121202-UNOFFICIAL-ac100
Kernel Version:
3.1.10+
[email protected] #1
Sun Dec 2 15:23:02 MSK 2012
GCC version:
arm-linux-androideabi-gcc (GCC) 4.6 20120106 (prerelease)
Copyright (C) 2011 Free Software Foundation, Inc.
Related
I found a tun.ko here: http://forum.xda-developers.com/showthread.php?t=741182
I tried to apply, but:
Code:
D:\x10\ftool>adb shell
$ su
su
# insmod /system/lib/modules/tun.ko
insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
#
Then I did dmesg:
Code:
.
.
.
<3>[ 5883.527575] tun: version magic '2.6.29-rel preempt mod_unload ARMv7 ' should be '2.6.29 preempt mod_unload ARMv6 '
So, I ssume the attached tun.ko is compiled for X10 mini(or x10) and not for X10 mini pro which has ARMv7 proc instead of ARMv6.
tun.ko should be built for Mini Pro.
Can anybody help where I can find the source of tun.ko and all the necessary source which I need for the compiling?
Any suggestion where to find desp. how to compile?
Hi, try this ... I compiled it for the X10 mini from eDream_2.0.A.0.504 sources. It's work for me (# insmod /system/lib/modules/tun.ko ), but OpenVPN restart my phone after this:
Code:
Thu Dec 9 15:20:22 2010 us=583828 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:1: remote-gateway (2.1.1)
Thu Dec 9 15:20:22 2010 us=586573 OPTIONS IMPORT: timers and/or timeouts modified
Thu Dec 9 15:20:22 2010 us=587870 OPTIONS IMPORT: --ifconfig/up options modified
Thu Dec 9 15:20:22 2010 us=588996 OPTIONS IMPORT: route options modified
Maybe you have better luck
P.S. I use OpenVPN installer and OpenVPN settings from Market.
How did you manage to compile it?
If i try it with the 2.1 source and the toolchain of the Android-Git repo it seams to build for ARMv7 which should be ARMv6. How to change that?
Can anyone help me out, Im trying to compile a kernel module following the kernel modules guide in the dev section, i can compile the modules fine but it gives me errors when i ty to insert them. The module is rt2870usb and i tried rt2x00usb from the kernel tree.
What am i missing??
Code:
[ 4248.480213] cfg80211: version magic '2.6.39.4-00005-g6039e71 preempt mod_unload ARMv7 ' should be '2.6.39.4-00005-g6039e71 SMP preempt mod_unload ARMv7 '
[ 4248.491727] cfg80211: Unknown symbol add_preempt_count (err 0)
[ 4248.496153] cfg80211: Unknown symbol sub_preempt_count (err 0)
[ 4248.498046] cfg80211: Unknown symbol kmalloc_caches (err 0)
From what you're showing, it appears you've built the module for a non-SMP kernel, thus the vermagic is different.
I have CONFIG_SMP = y in the .config file, what else would need to be done to specify a SMP kernel?
Hello,
I'm trying to connect the Trekstore Surftab breeze 7.0 with a FTDI USB-RS232 Converter.
So, this are the facts:
The tablet is rooted by default, has an Allwinner A13 CPU (sun5i), comes with android 4.0.4 and kernel 3.0.8+.
I thought about downloading the kernel sources, build the single modules usbserial.ko + ftdi_sio.ko and load them manually.
But something seems to be wrong in my solution. Because insmod tells me:
Code:
init_module 'usbserial.ko' failed (Exec format error)
.
I got the same error message loading the ftdi_sio.ko module.
I've done these steps:
First, I downloaded the sources from github (amery/linux-allwinner/tree/wip/lichee3-sunxi/import-sun5i).
Maybe this is the first mistake (wrong kernel sources? repository kernel source is 3.0.8)
Secondly, I downloaded CodeSourcery to compile the kernel for the sun5i architecture. I set the following system variables:
The PATH variable to the compiler binaries and the ARCH variable to "arm".
Via menuconfig I selected the system type: AllWinner SUN5I Platform. Hopefully this are all steps I need for preparation to build the module.
Last but not least I compiled and linked the usb serial sources by executing:
Code:
make M=drivers/usb/serial
from the kernel directory. This builds all modules in the directory, including usbserial.ko and ftdi_sio.ko.
Modinfo shows me:
Code:
filename: drivers/usb/serial/usbserial.ko
license: GPL
description: USB Serial Driver core
author: Greg Kroah-Hartman
srcversion: F0784B79C15C3FAAAF12C46
depends:
vermagic: 3.0.8 mod_unload modversions ARMv7
parm: vendor:User specified USB idVendor (ushort)
parm: product:User specified USB idProduct (ushort)
parm: debug:Debug enabled or not (bool)
Code:
filename: drivers/usb/serial/ftdi_sio.ko
license: GPL
description: USB FTDI Serial Converters Driver
author: Greg Kroah-Hartman <>, Bill Ryder <>, Kuba Ober <>, Andreas Mohr, Johan Hovold <>
srcversion: A3E1F08290F6997001373D4
alias: usb:v0483p3747d*dc*dsc*dp*ic*isc*ip*
alias: usb:v20B7p0713d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0403p9868d*dc*dsc*dp*ic*isc*ip*
.....
alias: usb:v0403pF60Bd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0403pF608d*dc*dsc*dp*ic*isc*ip*
depends: usbserial
vermagic: 3.0.8 mod_unload modversions ARMv7
parm: debug:Debug enabled or not (bool)
parm: vendor:User specified vendor ID (default=0x0403) (ushort)
parm: product:User specified product ID (ushort)
parm: ndi_latency_timer:NDI device latency timer override (int)
I copied both modules using adb push command and tried to insert the modules by using adb shell -> insmod...
But then I get the error described above:
Code:
init_module 'usbserial.ko' failed (Exec format error)
Same for the ftdi module driver.
With the help of dmesg I got:
Code:
usbserial: no symbol version for module_layout
Am I completly wrong in the way of building the drivers? Do I need other kernel sources? Or do I have to set a special symbol anywhere?
I would be pleased if anybody can give an advice.
Thanks in advance,
ssw
Were you able to resolve this?
Can you attach the usbserial.ko?
It's possible that the problem lies with the linux source version.
I'm currently at stock rom JB 4.1.2 with kernel 3.0.31-566833.
For my previous rom JB 4.1.1, I've used cifs module from:
http://forum.xda-developers.com/showthread.php?t=1697982&page=6
I want to compile cifs and nfs modules, so I've donwloaded: arm-eabi for linux 4.4.3 toolchain, kernel source from: opensouce.samsung.com (GT-I9300_JB_Opensource_Update6.zip).
Then I've configured CROSS_COMPILE, arch and extraversion -566833, configured kernel as written in README attached for kernel source.
After insmod I've got exec format error. It's compiled correctly, so either wrong modversion (modinfo shows correct version) or wrong source. But There's only info, its's 3.0.31 kernel, so I don't know how to check if I'm compiling from exact the same kernel tree, that stock JB 4.1.2 kernel.
What should I do to compile working modules?
http://forum.xda-developers.com/showthread.php?t=1697982&page=6
Code:
filename: /mnt/sdcard/Download/mod/../modules/md4.ko
description: MD4 Message Digest Algorithm
license: GPL
depends:
vermagic: 3.0.31-204919 SMP preempt mod_unload modversions ARMv7 p2v8
My module:
Code:
filename: /mnt/sdcard/Download/mod/md4.ko
description: MD4 Message Digest Algorithm
license: GPL
depends:
vermagic: 3.0.31-566833 SMP preempt mod_unload modversions ARMv7 p2v8
Version magic looks the same, but:
insmod: init_module 'md4.ko' failed (Exec format error)
I've got the same problem when trying to insmod my module. Did you find any solutions ? What does dmesg say after the insmod command ?
It show me an error about a wrong "module_layout" but even if I correct it , the problem stay
With the update of JB, the network module bcm4329 is switched to bcmdhd. Monitor mode works with bcm4329, so using bcmon, I compiled bcm4329 using my kernel source. When I try to load the module I get the following error (caught my dmesg).
bcm4329: Unknown symbol: wifi_get_mac_addr (err 0)
bcm4329: Unknown symbol: wifi_get_irq_number (err 0)
bcm4329: Unknown symbol: wifi_get_set_power(err 0)
I used the current config files before compiling the new module so it should load with no program.
Does anyone know what I can do to fix this issue?