[Q] compiling problem with Dorimanx JB-Mali 7.5 kernel - Galaxy S II Q&A, Help & Troubleshooting

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.

Related

[Q] dhd.ko for bcm4329 (Huawei U8850)

Hi, all.
On my device Huawei Vision U8850 install WM-BN-BM-01 chip based on Broadcom BCM4329.
When i build custom kernel from this source https://github.com/GriefNorth/huawei_u8850_kernel_exp (with different name) Wi-Fi stops work.
And i build dhd.ko from this source https://github.com/GriefNorth/usi_bcm4329
Code:
export LINUXDIR=~/path_to_kernel_source/
make -j8 ARCH=arm CROSS_COMPILE=~/build/android-ndk/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
in out i have a kernel module named dhd.ko and put this in phone, but Wi-Fi still not work.
I know if i dont change the kernel name wi-fi will be work correctly. But I want dhd.ko works with custom name.
Please help me find curent source code for this Wi-Fi device. Or fix this source.
Thanks and sorry for my english.
P.S. I use drivers source code from kernel for the Dell Streak 7(used same Wi-Fi chipset) and when compilig kernel i have a some errors
Code:
drivers/net/wireless/bcm4329/dhd_sdio.c: In function 'dhdsdio_probe_malloc':
drivers/net/wireless/bcm4329/dhd_sdio.c:5142: error: 'addr_4329_bus_rxbuf' undeclared (first use in this function)
drivers/net/wireless/bcm4329/dhd_sdio.c:5142: error: (Each undeclared identifier is reported only once
drivers/net/wireless/bcm4329/dhd_sdio.c:5142: error: for each function it appears in.)
drivers/net/wireless/bcm4329/dhd_sdio.c:5142: error: 'BUS_RXBUF_LEN' undeclared (first use in this function)
drivers/net/wireless/bcm4329/dhd_sdio.c:5163: error: 'BUS_DATABUF_LEN' undeclared (first use in this function)
Anyone can help?
anyone?
anyone? help !
someone...?

[Q] Cross compiling Python module using Android gcc Long bit error

I am attempting to compile Python along with the modules "openssl pil zope2" for Android using the "Python-for-android" project (https://github.com/kivy/python-for-android).
However it is not successful and errors out with the below error:
Code:
Getting distribution for 'zope.security==3.7.4'.
In file included from
/home/zac/Documents/Projects/Apps/python-for-android/build/hostpython/Python-2.7.2/Include/Python.h:58:0,
from src/zope/security/_proxy.c:19:
/home/zac/Documents/Projects/Apps/python-for-android/build/hostpython/Python-2.7.2/Include/pyport.h:849:2:
error: #error "LONG_BIT definition appears wrong for platform (bad
gcc/glibc config?)."
[B]#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
config?)."[/B]
^
src/zope/security/_proxy.c: In function 'init_proxy':
src/zope/security/_proxy.c:1006:3: warning: dereferencing type-punned
pointer will break strict-aliasing rules [-Wstrict-aliasing]
Py_INCREF(&SecurityProxyType);
^
error: Setup script exited with error: command
'arm-linux-androideabi-gcc' failed with exit status 1
An error occurred when trying to install zope.security 3.7.4. Look
above this message for any errors that were output by easy_install.
While:
Installing test.
Getting distribution for 'zope.security==3.7.4'.
Error: Couldn't install: zope.security 3.7.4
What I am wondering is if anyone else has ever had a similar issue when trying to use the Android gcc, I have build zope.security just fine using the ARM gcc so it is not a platform issue but some bug/issue with the provided Android gcc in the NDK

Kernel Compilation Error

Hi all,
I've been compiling many kernels, but this error is bugging me. I'm compiling a custom kernel for grand 2, using linaro 4.9.2 and I get this error:
Code:
drivers/built-in.o:(.data+0xdbc8): undefined reference to `gpio_event_input_func'
make: *** [.tmp_vmlinux1] Error 1
How can I solve the above error, please help me. Here is my source code:
http://github.com/Ateekujjawal/android_kernel_samsung_ms013g/tree/master

[help] Anything defined in cpufreq.h is causing implicit declaration problems

Hi, I'm build cyanogenmod with CAF kernel LA.BR.1.1.3-05510-8x16.0 with small modifications. I'm running into a problem where any function defined in include/linux/cpufreq.h is causing implicit declaration warnings, which are treated as errors. I know I can use cc call-disable, but that is likely to cause errors later on. I have uploaded a log of building and the error, and the defconfig I'm using to build the kernel. http://1drv.ms/1QyaAXD Any help would be appreciated.
zowpow said:
Hi, I'm build cyanogenmod with CAF kernel LA.BR.1.1.3-05510-8x16.0 with small modifications. I'm running into a problem where any function defined in include/linux/cpufreq.h is causing implicit declaration warnings, which are treated as errors. I know I can use cc call-disable, but that is likely to cause errors later on. I have uploaded a log of building and the error, and the defconfig I'm using to build the kernel. http://1drv.ms/1QyaAXD Any help would be appreciated.
Click to expand...
Click to collapse
Hi,
I've been into same error;
It mostly happens when you try to compile 64 bit kernel for a device that is currently running 32 bit one.
I FIXED mine by by removing the '-Werror' related warnings. Go to the main Makefile in your kernel directory and search for 'werror' whatever the error is; remove the lines or use '#' before to comment it out.

Nethunter porting problem

Hello.
I have Samsung galaxy s8 Orero G950F.
I'm trying to port nethunter kernel for it.
I got the kernel source, toolchain64 and everything is ready to build the kernel, but here comes the problem
When i try to build the kernel with "make" command it says:
scripts/kconfig/conf --silentoldconfig Kconfig
Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined
drivers/net/wireless/bcmdhd4361/Kconfig:1:warning: ignoring unsupported characte' '
And more 200 warnings like this one.
What am i doing wrong?

Categories

Resources