compiling network module - C++ or Other Android Development Languages

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?

Related

help building kernel modules

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?

[Q] Odys Xelio: usbserial.ko

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.

[Q] compiling problem with Dorimanx JB-Mali 7.5 kernel

Hi!
I am trying to compile Dorimanx-JB-Mali-7.5 kernel with several specific kernel config options.
At first, I could compile the original Dorimanx-JB-Mali-7.5 kernel.
But after activating several kernel config options, I met an error on Mali driver.
Here are what I want to activate.
CONFIG_PROFILING
CONFIG_FTRACE
CONFIG_ENABLE_DEFAULT_TRACERS
CONFIG_DEBUG_MUTEXES
CONFIG_DEBUG_KERNEL
CONFIG_PERF_EVENTS
And I met the error.
======================================================================================
arch/arm/kernel/built-in.o:io.c:function perf_callchain_kernel: error: undefined reference to 'walk_stackframe'
kernel/built-in.o:hw_breakpoint.c:function profile_tick: error: undefined reference to 'profile_pc'
======================================================================================
Is there anybody who can resolve this problem?
Help!
I hope to know the solution soon.
Daisy.

Weird Android Build Error; Undefined 'Compiler' symbol

Recently, I have been trying to build Lineage OS 16.0 for my smartphone (Nokia 8). I have created a device tree, vendor tree and downloaded the kernel sources. However everytime I try to build, at around 63% it gives weird compilation errors. Here is the error message. I am building with WSL 2 environment;
Code:
[ 5% 2042/39631] //art/dex2oat:libart-dex2oat clang++ art/dex2oat/linker/image_writer.operator_out.cc [arm]
In file included from /mnt/d/dev/android/android/lineage/out/soong/.intermediates/art/dex2oat/art_dex2oat_operator_srcs/gen/art/dex2oat/linker/image_writer.operator_out.cc:3:
In file included from art/dex2oat/linker/image_writer.h:40:
art/compiler/driver/compiler_driver.h:99:18: error: use of undeclared identifier 'Compiler'
Compiler::Kind compiler_kind,
^
art/compiler/driver/compiler_driver.h:145:3: error: unknown type name 'Compiler'
Compiler* GetCompiler() const {
^
art/compiler/driver/compiler_driver.h:348:3: error: use of undeclared identifier 'Compiler'
Compiler::Kind GetCompilerKind() {
^
art/compiler/driver/compiler_driver.h:471:19: error: use of undeclared identifier 'Compiler'
std::unique_ptr<Compiler> compiler_;
^
art/compiler/driver/compiler_driver.h:472:3: error: use of undeclared identifier 'Compiler'
Compiler::Kind compiler_kind_;
^
5 errors generated.
...
ninja: build stopped: subcommand failed.
10:22:23 ninja failed with: exit status 1
#### failed to build some targets (01:49:21 (hh:mm:ss)) ####
Looking at it, the compiler complains that the class 'Compiler' is not defined in the 'compiler_driver.h' file. However looking at this file, it includes the 'compiler.h' which contains the Compiler class. Has anyone ever experienced this error, and is there any way to fix it?

WifiManager::getCountryCode()

i'm trying to getCountryCode() on a WifiManager insance, i.e.
WifiManager wifiManager = (WifiManager) getSystemService (Context.WIFI_SERVICE);
wifiManager.getCountryCode();
Although I set compileSdkVersion to 29 the compiler cannot find getCountryCode().
error: cannot find symbol
wifiManager.getCountryCode();
^
symbol: method getCountryCode()
location: variable wifiManager of type WifiManager
This symbol should be accessible, as stated here
https://android.googlesource.com/pl...i/java/android/net/wifi/WifiManager.java#1723
Does anyone of you know, why the compiler cannot resolve getCountryCode()?
Btw: setCountryCode() can't be found either whereas getConnectionInfo() can be resolved and used.

Categories

Resources