[Q] Compile error, linaro 4.8, fsnotify.h - Android Q&A, Help & Troubleshooting

First time for me trying to compile kernel. Other stuff easy to compile, kernel is a pain.
Code:
odule.o
In file included from include/linux/security.h:26:0,
from init/main.c:32:
include/linux/fsnotify.h: In function 'fsnotify_perm':
include/linux/fsnotify.h:41:9: error: implicit declaration of function 'file_inode' [-Werror=implicit-function-declaration]
struct inode *inode = file_inode(file);
^
include/linux/fsnotify.h:41:24: warning: initialization makes pointer from integer without a cast [enabled by default]
error, forbidden warning: fsnotify.h:41
The source I'm using I was told compiled in 4.7, I would like to fix code so I can compile but I have no idea how to
Sent from my PG86100 using Tapatalk

Related

[Q] Error while compiling.

Hey guys! I am no coder, but know how to handle my way through compiling if i have the source... But this is one thing thats been failing for quite a while. I am trying to compile ParanoidAndroid for my LG P690 but I get this error:
target thumb C++: libaudiohw_legacy <= hardware/libhardware_legacy/audio/audio_hw_hal.cpp
Import includes file: /home/tushar/android/pm/out/target/product/p690/obj/SHARED_LIBRARIES/audio_policy.default_intermediates/import_includes
target thumb C++: libaudiopolicy_legacy <= hardware/libhardware_legacy/audio/AudioPolicyManagerBase.cpp
hardware/libhardware_legacy/audio/audio_hw_hal.cpp: In function 'int android_audio_legacy::adev_open_output_stream(audio_hw_device*, uint32_t, int*, uint32_t*, uint32_t*, audio_stream_out**)':
hardware/libhardware_legacy/audio/audio_hw_hal.cpp:464:73: error: no matching function for call to 'android_audio_legacy::AudioHardwareInterface:penOutputStream(uint32_t&, int*&, uint32_t*&, uint32_t*&, android::status_t*)'
hardware/libhardware_legacy/audio/audio_hw_hal.cpp:464:73: note: candidate is:
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:347:29: note: virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface:penOutputStream(uint32_t, audio_output_flags_t, int*, uint32_t*, uint32_t*, android::status_t*)
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:347:29: note: no known conversion for argument 2 from 'int*' to 'audio_output_flags_t'
make: *** [/home/tushar/android/pm/out/target/product/p690/obj/STATIC_LIBRARIES/libaudiohw_legacy_intermediates/audio_hw_hal.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Can anyone point me the exact problem? I have succesfully compiled once about a month ago, but the recent compiles always fail at this point. No change in the source during that time.
The location on github is: https://github.com/CyanogenMod/android_hardware_libhardware_legacy/blob/jellybean/audio/audio_hw_hal.cpp
link to your device config please
Bumpity bumpity..pls help me..!
dj2tusk said:
Bumpity bumpity..pls help me..!
Click to expand...
Click to collapse
If you don't want help then fair enough
Sent from my LG-P350 using xda app-developers app
antdking said:
If you don't want help then fair enough
Sent from my LG-P350 using xda app-developers app
Click to expand...
Click to collapse
I really want help, but your post wasn't there when i bumped it...must be some weird delay..
Sorry won't happen agian...I promise
But please help with this...still stuck after a fresh sync..
You asking for the tree right..?? Here:
https://github.com/lgics/cm_device_lge_p690/tree/jellybean
dj2tusk said:
I really want help, but your post wasn't there when i bumped it...must be some weird delay..
Sorry won't happen agian...I promise
But please help with this...still stuck after a fresh sync..
You asking for the tree right..?? Here:
https://github.com/lgics/cm_device_lge_p690/tree/jellybean
Click to expand...
Click to collapse
Audio has been a problem for p500 as well
Have a look at their commits on their github
lgics
Sorry I'm on phone
Sent from my LG-P350 using xda app-developers app
I did...even used p500 libaudio...but no success. The weird thing is that it compiled a few days back..but not now..
Hey antdking,
You see I am no coder, so what i ask might sound noobish or even irritating, hence I apologise.. but hey the problem still persists
What i understand from the above error is that, there seems to be a conflict in audio_hw_hal.cpp files found in:
Code:
hardware/libhardware_legacy/audio/audio_hw_hal.cpp
and
Code:
device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp
So what is the significance of having two of those..?
Also i just went and disabled the use of this one(#'d out the lines in Android.mk) :
Code:
hardware/libhardware_legacy/audio/audio_hw_hal.cpp
And the compiled continued.
Code:
target thumb C++: audio.primary.msm7x27 <= device/lge/msm7x27-common/libaudio/AudioHardware.cpp
target thumb C++: audio.primary.msm7x27 <= device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp
target thumb C++: audio_policy.default <= hardware/libhardware_legacy/audio/AudioPolicyManagerDefault.cpp
target StaticLib: libaudiopolicy_legacy (/host/android/cm10/out/target/product/p690/obj/STATIC_LIBRARIES/libaudiopolicy_legacy_intermediates/libaudiopolicy_legacy.a)
In file included from device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp:23:0:
system/core/include/system/audio.h:310:1: warning: 'typedef' was ignored in this declaration [enabled by default]
In file included from device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp:24:0:
hardware/libhardware/include/hardware/audio.h:145:16: warning: 'typedef' was ignored in this declaration [enabled by default]
In file included from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:33:0,
from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareBase.h:20,
from device/lge/msm7x27-common/libaudio/AudioHardware.h:27,
from device/lge/msm7x27-common/libaudio/AudioHardware.cpp:40:
hardware/libhardware/include/hardware/audio.h:145:16: warning: 'typedef' was ignored in this declaration [enabled by default]
device/lge/msm7x27-common/libaudio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/lge/msm7x27-common/libaudio/AudioHardware.h:328:18: warning: 'android_audio_legacy::AudioHardware::mTtyMode' will be initialized after [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.h:320:37: warning: 'android_audio_legacy::AudioHardware::AudioStreamOutMSM72xx* android_audio_legacy::AudioHardware::mOutput' [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:120:1: warning: when initialized here [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In function 'int android_audio_legacy::msm72xx_enable_postproc(bool)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:944:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:949:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:954:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:954:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1160:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1160:98: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1477:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1480:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:2218:10: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t {aka long int}' [-Wformat]
target thumb C++: copybit.msm7x27 <= hardware/qcom/display/libcopybit/software_converter.cpp
target thumb C++: copybit.msm7x27 <= hardware/qcom/display/libcopybit/copybit.cpp
This just kinda confuses me. Though the compile still ain't complete, hence I dont know if it worked or not. Any thoughts..?
dj2tusk said:
Hey antdking,
You see I am no coder, so what i ask might sound noobish or even irritating, hence I apologise.. but hey the problem still persists
What i understand from the above error is that, there seems to be a conflict in audio_hw_hal.cpp files found in:
Code:
hardware/libhardware_legacy/audio/audio_hw_hal.cpp
and
Code:
device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp
So what is the significance of having two of those..?
Also i just went and disabled the use of this one(#'d out the lines in Android.mk) :
Code:
hardware/libhardware_legacy/audio/audio_hw_hal.cpp
And the compiled continued.
Code:
target thumb C++: audio.primary.msm7x27 <= device/lge/msm7x27-common/libaudio/AudioHardware.cpp
target thumb C++: audio.primary.msm7x27 <= device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp
target thumb C++: audio_policy.default <= hardware/libhardware_legacy/audio/AudioPolicyManagerDefault.cpp
target StaticLib: libaudiopolicy_legacy (/host/android/cm10/out/target/product/p690/obj/STATIC_LIBRARIES/libaudiopolicy_legacy_intermediates/libaudiopolicy_legacy.a)
In file included from device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp:23:0:
system/core/include/system/audio.h:310:1: warning: 'typedef' was ignored in this declaration [enabled by default]
In file included from device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp:24:0:
hardware/libhardware/include/hardware/audio.h:145:16: warning: 'typedef' was ignored in this declaration [enabled by default]
In file included from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:33:0,
from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareBase.h:20,
from device/lge/msm7x27-common/libaudio/AudioHardware.h:27,
from device/lge/msm7x27-common/libaudio/AudioHardware.cpp:40:
hardware/libhardware/include/hardware/audio.h:145:16: warning: 'typedef' was ignored in this declaration [enabled by default]
device/lge/msm7x27-common/libaudio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/lge/msm7x27-common/libaudio/AudioHardware.h:328:18: warning: 'android_audio_legacy::AudioHardware::mTtyMode' will be initialized after [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.h:320:37: warning: 'android_audio_legacy::AudioHardware::AudioStreamOutMSM72xx* android_audio_legacy::AudioHardware::mOutput' [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:120:1: warning: when initialized here [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In function 'int android_audio_legacy::msm72xx_enable_postproc(bool)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:944:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:949:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:954:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:954:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1160:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1160:98: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1477:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1480:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:2218:10: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t {aka long int}' [-Wformat]
target thumb C++: copybit.msm7x27 <= hardware/qcom/display/libcopybit/software_converter.cpp
target thumb C++: copybit.msm7x27 <= hardware/qcom/display/libcopybit/copybit.cpp
This just kinda confuses me. Though the compile still ain't complete, hence I dont know if it worked or not. Any thoughts..?
Click to expand...
Click to collapse
Update the sources. I understand the folder is fixed now
Sent from my LG-P350 using xda app-developers app
antdking said:
Update the sources. I understand the folder is fixed now
Sent from my LG-P350 using xda app-developers app
Click to expand...
Click to collapse
Hey King..! Its fixed now. Its compiling. As you said, i just updated the sources, and viola it worked this time. Don't know what changed, though i did see a few updates to the compiler, Thanks a lot.
Now if you could just give me a few pointers to fix the camera. I'll be using your HAL and libs as a starting point, the ones you posted here:
http://forum.xda-developers.com/showpost.php?p=32760935&postcount=63
Thanx..!
dj2tusk said:
Hey King..! Its fixed now. Its compiling. As you said, i just updated the sources, and viola it worked this time. Don't know what changed, though i did see a few updates to the compiler, Thanks a lot.
Now if you could just give me a few pointers to fix the camera. I'll be using your HAL and libs as a starting point, the ones you posted here:
http://forum.xda-developers.com/showpost.php?p=32760935&postcount=63
Thanx..!
Click to expand...
Click to collapse
Either use camera source from pecanCM or camera source from lgics
They're both slightly different, and one of them will work
We found lgics didn't work for us
Sent from my LG-P350 using xda app-developers app
Sure, I'll see both the sources. But i have another compile error popping up. I defined the function just similar to one defined few lines above, but even if the compile completed, the screen won't wake on the phone.
Error:
Code:
CC drivers/video/msm/mddi_hitachi_hvga.o
CC drivers/video/output.o
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: note: each undeclared identifier is reported only once for each function it appears in
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_store_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:623:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_panel_poweroff':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:841:42: warning: initialization from incompatible pointer type [enabled by default]
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: At top level:
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:530:13: warning: 'hitachi_workaround' defined but not used [-Wunused-function]
cc1: warning: unrecognized command line option "-Wno-unitialised" [enabled by default]
make[5]: *** [drivers/video/msm/mddi_hitachi_hvga.o] Error 1
make[4]: *** [drivers/video/msm] Error 2
I am attaching the source file too. When I checked the diffs on github, i concluded that this file was kinda modded for the p500 family, and that may be the cause of the error. Whats your call on that..?
Thanx..!
PS: the sources are synced to date..
dj2tusk said:
Sure, I'll see both the sources. But i have another compile error popping up. I defined the function just similar to one defined few lines above, but even if the compile completed, the screen won't wake on the phone.
Error:
Code:
CC drivers/video/msm/mddi_hitachi_hvga.o
CC drivers/video/output.o
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: note: each undeclared identifier is reported only once for each function it appears in
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_store_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:623:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_panel_poweroff':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:841:42: warning: initialization from incompatible pointer type [enabled by default]
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: At top level:
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:530:13: warning: 'hitachi_workaround' defined but not used [-Wunused-function]
cc1: warning: unrecognized command line option "-Wno-unitialised" [enabled by default]
make[5]: *** [drivers/video/msm/mddi_hitachi_hvga.o] Error 1
make[4]: *** [drivers/video/msm] Error 2
I am attaching the source file too. When I checked the diffs on github, i concluded that this file was kinda modded for the p500 family, and that may be the cause of the error. Whats your call on that..?
Thanx..!
PS: the sources are synced to date..
Click to expand...
Click to collapse
P690 support for this kernel is experimental. Open up an issue on the kernel on github, I'll reply on that later, or rashed will fix it
Sent from my LG-P350 using xda app-developers app
Kangout the fixed hardware directory from the Cyangenmod sources
antdking said:
P690 support for this kernel is experimental. Open up an issue on the kernel on github, I'll reply on that later, or rashed will fix it
Sent from my LG-P350 using xda app-developers app
Click to expand...
Click to collapse
Hmm, but I am unable to raise issues on lgics. Seems to be an access problem.
@yajnab: How do you propose I do that, because I dont see any kernel related files in the hardware directory. Sorry I am kinda noobish to development.
Update
antdking said:
P690 support for this kernel is experimental. Open up an issue on the kernel on github, I'll reply on that later, or rashed will fix it
Sent from my LG-P350 using xda app-developers app
Click to expand...
Click to collapse
Hey King, I was unable to open an issue on github(reason unknown), but I PM'ed Rashed. This is his reply:
dj2tusk said:
Hello Rashed.
I had just a few days asked for your help regarding fixing the libaudio issue for p690. Well that issue was fixed, thanks to you and antdking. But now I am having trouble with display and the phone restarting when switching wifi. I asked antdking about this, and he told me about support for p690 being experimental on the kernel. He asked me to raise an issue on lgics github, but I am not able to open the issues tab. So here I am asking for your help (again..!) for fixing the kernel for p690.
Here is the error when compiling:
Code:
CC drivers/video/msm/mddi_hitachi_hvga.o
CC drivers/video/output.o
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: note: each undeclared identifier is reported only once for each function it appears in
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_store_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:623:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_panel_poweroff':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:841:42: warning: initialization from incompatible pointer type [enabled by default]
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: At top level:
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:530:13: warning: 'hitachi_workaround' defined but not used [-Wunused-function]
cc1: warning: unrecognized command line option "-Wno-unitialised" [enabled by default]
make[5]: *** [drivers/video/msm/mddi_hitachi_hvga.o] Error 1
make[4]: *** [drivers/video/msm] Error 2
Click to expand...
Click to collapse
The drivers for your screen are screwed up pretty badly. I could take a whack at it later, but not in the next few days. Trying to get CM10.1 right now.
But if you can find me some sort of ICS kernel for your screen I'll fix it in no time. See if you can find one of those.
Click to expand...
Click to collapse
So I got on to it, and found this source which works good for the screen:
https://github.com/rhg/lge-kernel-msm7x27/blob/android-msm-2.6.35/drivers/video/msm/mddi_hitachi_hvga.c
I flashed the rom on phone. Display worked good, but no audio and still reboots on wifi toggle. Here is a logcat including the whole boot process, and also instances of what happens when I play a song, and when toggling wifi.
Thanx
dj2tusk said:
Hey King, I was unable to open an issue on github(reason unknown), but I PM'ed Rashed. This is his reply:
So I got on to it, and found this source which works good for the screen:
https://github.com/rhg/lge-kernel-m...-2.6.35/drivers/video/msm/mddi_hitachi_hvga.c
I flashed the rom on phone. Display worked good, but no audio and still reboots on wifi toggle. Here is a logcat including the whole boot process, and also instances of what happens when I play a song, and when toggling wifi.
Thanx
Click to expand...
Click to collapse
Good about the display, shame about the audio. Not sure what is happening. That audio should be universal.
Wifi toggle the reboot? That's nasty. Maybe the Wifi drivers in kernel
Did you swap display driver into the lgics kernel, or just use the other kernel?
Sent from my LG-P350 using xda app-developers app
antdking said:
Good about the display, shame about the audio. Not sure what is happening. That audio should be universal.
Wifi toggle the reboot? That's nasty. Maybe the Wifi drivers in kernel
Did you swap display driver into the lgics kernel, or just use the other kernel?
Sent from my LG-P350 using xda app-developers app
Click to expand...
Click to collapse
I just used the display driver from the rhg's kernel. Other drivers are from lgics.

[Q&A, Noobs & Pros] The Build, Compile, Port help and guidance thread

Thought I'd start up a general thread where we can come to ask and answer general android building questions. I've been guilty myself of high jacking threads for questions and answering questions regarding porting, compiling, building, etc. Figured I'd try to start up a general thread for just that topic.
I'll start. Having some issues with external/jpeg.
Code:
external/jpeg/jddctmgr.c:350: error: undefined reference to 'jpeg_idct_islow'
external/jpeg/jddctmgr.c:340: error: undefined reference to 'jpeg_idct_ifast'
Have never seen that error before, I'm comparing it to other ROMs that I've built and the file is exactly the same. Not sure what else is linked to it.
@danjull Did you ever find the solution to this? How do you go about troubleshooting build errors (in general)? Do you usually look at what other files that file calls for or so you just kind of stumble through the while source looking for clues?
Sent from my Droid DNA using Tapatalk Pro
jamiethemorris said:
@danjull Did you ever find the solution to this? How do you go about troubleshooting build errors (in general)? Do you usually look at what other files that file calls for or so you just kind of stumble through the while source looking for clues?
Sent from my Droid DNA using Tapatalk Pro
Click to expand...
Click to collapse
I haven't yet.
It's a mix. Sometimes it's luck, sometimes it's clear enough so you can just follow the paths. I usually compare the problem source file to CM or another source I know works. Look at commits that happen after a known good build.
danjull said:
I haven't yet.
It's a mix. Sometimes it's luck, sometimes it's clear enough so you can just follow the paths. I usually compare the problem source file to CM or another source I know works. Look at commits that happen after a known good build.
Click to expand...
Click to collapse
Okay, cool. That's pretty much what I've been doing. I've also been doing diff -r between the cm11 source and the rom I'm building for folders that I think may be problematic and printing it to a file. So if you have the cm11 source locally you could try using that for external/jpeg or just external. I tried meld for this sort of thing too, but it didn't seem to be to helpful when it comes to entire directories.
Sent from my Droid DNA using Tapatalk Pro
isnt that gcc related as in the variable isnt defined as used?
figured i should post somewhere where i can find other devs(rather than the omni thread lol)
i got these errors today while building slimkat and after searching every line of code in the whole source, it was only reference once and that was the line that through the error
it makes it more difficult because this is the out/ folder so i really cant compare to CM11:
Code:
/home/zach/android.SlimKat/system/out/target/product/dlx/obj/GYP/shared_intermediates/blink/bindings/V8SVGAElement.cpp:71: error: undefined reference to 'WebCore::SVGAElement::svgTarget()'
/home/zach/android.SlimKat/system/out/target/product/dlx/obj/GYP/shared_intermediates/blink/bindings/V8SVGAElement.cpp:99: error: undefined reference to 'WebCore::SVGAElement::href()'
/home/zach/android.SlimKat/system/out/target/product/dlx/obj/GYP/shared_intermediates/blink/bindings/V8SVGAElement.cpp:85: error: undefined reference to 'WebCore::SVGAElement::externalResourcesRequired()'
/home/zach/android.SlimKat/system/out/target/product/dlx/obj/STATIC_LIBRARIES/third_party_WebKit_Source_core_webcore_derived_gyp_intermediates/SVGElementFactory.cpp:134: error: undefined reference to 'WebCore::SVGAElement::create(WebCore::QualifiedName const&, WebCore::Document*)'
i havent had any success with this
EDIT: nuketown 2025 population slimkat (da fuq did i just say?)
anyways resyncing the repos tonight, maybe it will be better to just start over
EDIT: nuking solves all problems
I'm trying to build tripndroid, I ran into a few other errors that I fixed already, but I'm hitting this now
Code:
In file included from frameworks/av/services/audioflinger/Tracks.cpp:32:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
In file included from frameworks/av/services/audioflinger/Effects.cpp:30:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
frameworks/av/services/audioflinger/Effects.cpp: In member function 'android::sp<android::AudioFlinger::EffectModule> android::AudioFlinger::EffectChain::getEffectFromIndex_l(int)':
frameworks/av/services/audioflinger/Effects.cpp:1343:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/Tracks.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/Effects.o] Error 1
In file included from frameworks/av/media/mediaserver/main_mediaserver.cpp:32:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/EXECUTABLES/mediaserver_intermediates/main_mediaserver.o] Error 1
In file included from frameworks/av/services/audioflinger/AudioFlinger.cpp:46:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
In file included from frameworks/av/services/audioflinger/AudioFlinger.cpp:46:0:
frameworks/av/services/audioflinger/AudioFlinger.h: In constructor 'android::AudioFlinger::AudioFlinger()':
frameworks/av/services/audioflinger/AudioFlinger.h:833:13: warning: 'android::AudioFlinger::mGlobalEffectEnableTime' will be initialized after [-Wreorder]
In file included from frameworks/av/services/audioflinger/AudioFlinger.cpp:46:0:
frameworks/av/services/audioflinger/AudioFlinger.h:779:31: warning: 'volatile bool android::AudioFlinger::mAllChainsLocked' [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.cpp:146:1: warning: when initialized here [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.cpp: In member function 'virtual android::sp<android::IDirectTrack> android::AudioFlinger::createDirectTrack(pid_t, uint32_t, audio_channel_mask_t, audio_io_handle_t, int*, android::IDirectTrackClient*, audio_stream_type_t, android::status_t*)':
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:9: error: 'AudioEventObserver' was not declared in this scope
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:29: error: 'obv' was not declared in this scope
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:48: error: expected type-specifier before 'AudioEventObserver'
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:48: error: expected '>' before 'AudioEventObserver'
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:48: error: expected '(' before 'AudioEventObserver'
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:68: error: expected primary-expression before '>' token
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:82: error: expected ')' before ';' token
frameworks/av/services/audioflinger/AudioFlinger.cpp:653:23: error: 'audio_stream_out_t' has no member named 'set_observer'
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioFlinger.o] Error 1
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
In file included from frameworks/av/services/audioflinger/AudioFlinger.h:440:0,
from frameworks/av/services/audioflinger/Threads.cpp:52:
frameworks/av/services/audioflinger/Threads.h: In constructor 'android::AudioFlinger::PlaybackThread::PlaybackThread(const android::sp<android::AudioFlinger>&, android::AudioFlinger::AudioStreamOut*, audio_io_handle_t, audio_devices_t, android::AudioFlinger::ThreadBase::type_t)':
frameworks/av/services/audioflinger/Threads.h:628:14: warning: 'android::AudioFlinger::PlaybackThread::mScreenState' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/Threads.h:564:26: warning: 'audio_output_flags_t android::AudioFlinger::PlaybackThread::mOutputFlags' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:1050:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h: In constructor 'android::AudioFlinger::DirectAudioTrack::DirectAudioTrack(const android::sp<android::AudioFlinger>&, int, android::AudioFlinger::AudioSessionDescriptor*, android::IDirectTrackClient*, audio_output_flags_t)':
frameworks/av/services/audioflinger/AudioFlinger.h:594:26: warning: 'android::AudioFlinger::DirectAudioTrack::mAudioFlinger' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:541:13: warning: 'int android::AudioFlinger::DirectAudioTrack::mOutput' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:541:13: warning: 'android::AudioFlinger::DirectAudioTrack::mOutput' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:540:33: warning: 'android::AudioFlinger::AudioSessionDescriptor* android::AudioFlinger::DirectAudioTrack::mOutputDesc' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:540:33: warning: 'android::AudioFlinger::DirectAudioTrack::mOutputDesc' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:539:29: warning: 'android::IDirectTrackClient* android::AudioFlinger::DirectAudioTrack::mClient' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:574:14: warning: 'android::AudioFlinger::DirectAudioTrack::mEffectConfigChanged' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:572:14: warning: 'bool android::AudioFlinger::DirectAudioTrack::mKillEffectsThread' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:572:14: warning: 'android::AudioFlinger::DirectAudioTrack::mKillEffectsThread' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:543:30: warning: 'audio_output_flags_t android::AudioFlinger::DirectAudioTrack::mFlag' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp: In member function 'virtual android::status_t android::AudioFlinger::DirectAudioTrack::start()':
frameworks/av/services/audioflinger/Threads.cpp:5565:30: error: 'audio_stream_out_t' has no member named 'start'
frameworks/av/services/audioflinger/Threads.cpp: In member function 'virtual void android::AudioFlinger::DirectAudioTrack::stop()':
frameworks/av/services/audioflinger/Threads.cpp:5577:26: error: 'audio_stream_out_t' has no member named 'stop'
frameworks/av/services/audioflinger/Threads.cpp: In member function 'virtual ssize_t android::AudioFlinger::DirectAudioTrack::write(const void*, size_t)':
frameworks/av/services/audioflinger/Threads.cpp:5593:26: error: 'audio_stream_out_t' has no member named 'is_buffer_available'
frameworks/av/services/audioflinger/Threads.cpp: In member function 'void android::AudioFlinger::DirectAudioTrack::allocateBufPool()':
frameworks/av/services/audioflinger/Threads.cpp:5667:26: error: 'audio_stream_out_t' has no member named 'get_buffer_info'
frameworks/av/services/audioflinger/Threads.cpp:5673:20: error: invalid use of incomplete type 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5666:12: error: forward declaration of 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5674:26: error: invalid use of incomplete type 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5666:12: error: forward declaration of 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5678:30: error: invalid use of incomplete type 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5666:12: error: forward declaration of 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
I don't even know where to start with that... This is the part it's complaining about in Audioflinger.h:
Code:
#ifdef QCOM_HARDWARE
// server side of the client's IAudioTrack
class DirectAudioTrack : public android::BnDirectTrack,
public AudioEventObserver
{
I think maybe it's missing an #include or something? I just don't understand why I'm getting all of these errors. I would assume anyone building the ROM would get the same ones?
jamiethemorris said:
I'm trying to build tripndroid, I ran into a few other errors that I fixed already, but I'm hitting this now
Code:
In file included from frameworks/av/services/audioflinger/Tracks.cpp:32:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
I think maybe it's missing an #include or something? I just don't understand why I'm getting all of these errors. I would assume anyone building the ROM would get the same ones?
Click to expand...
Click to collapse
What have java version are you using?
Sent from my HTC6435LVW using xda app-developers app
danjull said:
What have java version are you using?
Sent from my HTC6435LVW using xda app-developers app
Click to expand...
Click to collapse
I'll have to check when I get home. I'm pretty sure I'm using open jdk6 though.
Sent from my Droid DNA using Tapatalk Pro
---------- Post added at 07:23 PM ---------- Previous post was at 06:57 PM ----------
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b09)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01, mixed mode)
I'm giving up on tripndroid for now... I'm trying to build liquidsmooth now and I'm running into a kernel error. I couldn't see what it was because it happened too far back when it stopped. So I tried to build the kernel individually using linaro 4.8 and it stopped in the same place so I'm pretty sure it's the same error:
Code:
drivers/video/msm/mdp.c: In function 'mdp_hist_lut_write_off':
drivers/video/msm/mdp.c:400:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
error, forbidden warning: mdp.c:400
I think it has to do with linaro because I didn't have any problems building ProBam today with the same kernel... I also tried building the ProBam kernel by itself and it gave me the same error.
EDIT: Well, I used crpalmer's kernel instead and it built perfectly fine... Not the perfect solution though.
Liquid won't flash. No idea why. It just reboots instantly as soon as it starts flashing.
Sent from my iPad using Tapatalk
jamiethemorris said:
I'm giving up on tripndroid for now... I'm trying to build liquidsmooth now and I'm running into a kernel error. I couldn't see what it was because it happened too far back when it stopped. So I tried to build the kernel individually using linaro 4.8 and it stopped in the same place so I'm pretty sure it's the same error:
Code:
drivers/video/msm/mdp.c: In function 'mdp_hist_lut_write_off':
drivers/video/msm/mdp.c:400:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
error, forbidden warning: mdp.c:400
I think it has to do with linaro because I didn't have any problems building ProBam today with the same kernel... I also tried building the ProBam kernel by itself and it gave me the same error.
EDIT: Well, I used crpalmer's kernel instead and it built perfectly fine... Not the perfect solution though.
Click to expand...
Click to collapse
Search for 1024 in the kernel defconfig that is used. There is an config named something with FRAME that sets the size to warn on. You can change it to 2048 to fix the build.
---------- Post added at 06:13 AM ---------- Previous post was at 06:10 AM ----------
jamiethemorris said:
I'm giving up on tripndroid for now... I'm trying to build liquidsmooth now and I'm running into a kernel error. I couldn't see what it was because it happened too far back when it stopped. So I tried to build the kernel individually using linaro 4.8 and it stopped in the same place so I'm pretty sure it's the same error:
Code:
drivers/video/msm/mdp.c: In function 'mdp_hist_lut_write_off':
drivers/video/msm/mdp.c:400:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
error, forbidden warning: mdp.c:400
I think it has to do with linaro because I didn't have any problems building ProBam today with the same kernel... I also tried building the ProBam kernel by itself and it gave me the same error.
EDIT: Well, I used crpalmer's kernel instead and it built perfectly fine... Not the perfect solution though.
Click to expand...
Click to collapse
Also, run
brunch dlx 2>&1 | tee /tmp/build.txt
After the build, that tmp file should hold all the text from the build.
crpalmer said:
Search for 1024 in the kernel defconfig that is used. There is an config named something with FRAME that sets the size to warn on. You can change it to 2048 to fix the build.
---------- Post added at 06:13 AM ---------- Previous post was at 06:10 AM ----------
Also, run
brunch dlx 2>&1 | tee /tmp/build.txt
After the build, that tmp file should hold all the text from the build.
Click to expand...
Click to collapse
Thank you. Do you think that has anything to do with why it won't flash?
Sent from my Droid DNA using Tapatalk
jamiethemorris said:
Thank you. Do you think that has anything to do with why it won't flash?
Sent from my Droid DNA using Tapatalk
Click to expand...
Click to collapse
No, the frame size warning is just there to ensure people don't accidentally so something stupid and breaks the build to let them know. 1K is arbitrary so 2K is also fine.
Can someone give me a little explanation on how the manifest works? Like how it knows which branches to pull of each git project? I'm trying to build carbon and it's running into an issue about BluetoothLwPwrProximityMonitor being undefined. For whatever reason the BluetoothLwPwrProximityMonitor.java file was deleted in the cm11 BluetoothExt repo. This was several months ago though. Both CM11 and ProBam build fine, and they don't have any of the pxpmonitorservice stuff. So it looks like they're using the cm-10.2 or stable/cm-11.0 branch. But it the manifests I don't see anything that differentiates which branch they pull from. Basically, I think I need to have Carbon use stable/cm-11.0 instead of cm-11.0 and then I think it will build, but I just want to make sure I'm doing it right.
EDIT: I tried that, but it doesn't matter now because it gives me this all of a sudden:
Code:
make: *** No rule to make target `/run/media/jamiethemorris/LinuxExternal/android/carbon_kk/out/host/linux-x86/bin/mkbootimg', needed by `/run/media/jamiethemorris/LinuxExternal/android/carbon_kk/out/target/product/dlx/boot.img'. Stop.
Really weird. I'm guessing it's misleading. I tried putting BluetoothExt back to how it was but I get the same error. It got way further than this before.
Code:
find -name mkbootimg*
./system/core/mkbootimg
./system/core/mkbootimg/mkbootimg.c
./external/genext2fs/mkbootimg_ext2.sh
Also, liquid is now hitting this kernel error:
Code:
liquidsmooth_kk/kernel/htc/m7/drivers/video/msm/mipi_novatek.c:569:37: warning: argument to ‘sizeof’ in ‘snprintf’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
error, forbidden warning: mipi_novatek.c:569
I don't know why it's having so much trouble. I'm guessing I will find this in the defconfig as well?
Maybe building ROMs is just not for me...
Don't get discouraged. I'm fixing to start learning, and I need you to figure it all out so I can ask you all my noob questions.
Sent from my HTC6435LVW using Tapatalk
armydog13 said:
Don't get discouraged. I'm fixing to start learning, and I need you to figure it all out so I can ask you all my noob questions.
Sent from my HTC6435LVW using Tapatalk
Click to expand...
Click to collapse
Thanks. For starters, read this http://xda-university.com/as-a-developer/getting-started-building-android-from-source and this http://xda-university.com/as-a-developer/porting-aosp-roms-using-source-code also this link is helpful because you will need to sync CM's repos at the same time for the device tree and kernel, and sometimes other repos http://xda-university.com/as-a-developer/repo-tips-tricks
jamiethemorris said:
I'm giving up on tripndroid for now... I'm trying to build liquidsmooth now and I'm running into a kernel error. I couldn't see what it was because it happened too far back when it stopped. So I tried to build the kernel individually using linaro 4.8 and it stopped in the same place so I'm pretty sure it's the same error:
Code:
drivers/video/msm/mdp.c: In function 'mdp_hist_lut_write_off':
drivers/video/msm/mdp.c:400:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
error, forbidden warning: mdp.c:400
I think it has to do with linaro because I didn't have any problems building ProBam today with the same kernel... I also tried building the ProBam kernel by itself and it gave me the same error.
EDIT: Well, I used crpalmer's kernel instead and it built perfectly fine... Not the perfect solution though.
Click to expand...
Click to collapse
I came here to ask some questions about building liquid myself but since you got it booting guess i might as well give on up huh? I guess I should bring up what im doing anyways so I dont accidentally start on a port one of the pros is starting on lol
DREWHAMM974 said:
I came here to ask some questions about building liquid myself but since you got it booting guess i might as well give on up huh? I guess I should bring up what im doing anyways so I dont accidentally start on a port one of the pros is starting on lol
Click to expand...
Click to collapse
No, don't give up, nothing wrong with teamwork and some learning experience. I don't have it booting, it fails when I flash it and I can't get it to build with the stock kernel
Sent from my Droid DNA using Tapatalk

[Q] Custom CyanogenMod Kernel (Samsung S3 i9300) - mac80211 Drivers

Hi Everyone
I am fairly new to android customisation, rooting, etc. and have been playing around with creating a custom CyanogenMod kernel to support a TP-Link USB wifi dongle.
The primary reference article for this can be found here - http://forum.xda-developers.com/showthread.php?t=2338179. However I have made some changes as listed below.
Keen to hack this further and any advice or guidance will be greatly appreciated.
Technical Spec:
Ubuntu 12.04 (32 Bit)
Samsung S3 (Cyanogenmod ROM)
Kernel = https://github.com/CyanogenMod/android_kernel_samsung_smdk4412
.config = https://github.com/CyanogenMod/andr.../arch/arm/configs/cyanogenmod_i9300_defconfig
Note - There is no /proc/config.gz on my device, hence the above use of the config.
gcc-arm-linux-gnueabi libstdc++6 libncurses5 libncurses5-dev - exports correctly setup.
Objective
Getting an TP-Link TL-WN821N USB Wifi Dongle to work.
The relevant drivers are already available in mac80211 - http://www.aircrack-ng.org/doku.php?id=mac80211
Error Message
CC net/mac80211/agg-rx.o
CC net/mac80211/ibss.o
CC net/mac80211/mlme.o
net/mac80211/mlme.c: In function ‘ieee80211_mgd_auth’:
net/mac80211/mlme.c:2317:9: error: ‘struct cfg80211_auth_request’ has no member named ‘local_state_change’
net/mac80211/mlme.c: In function ‘ieee80211_assoc_done’:
net/mac80211/mlme.c:2419:2: warning: passing argument 2 of ‘cfg80211_send_rx_assoc’ from incompatible pointer type [enabled by default]
include/net/cfg80211.h:2802:6: note: expected ‘struct cfg80211_bss *’ but argument is of type ‘unsigned char *’
net/mac80211/mlme.c:2419:2: warning: passing argument 3 of ‘cfg80211_send_rx_assoc’ makes pointer from integer without a cast [enabled by default]
include/net/cfg80211.h:2802:6: note: expected ‘const u8 *’ but argument is of type ‘unsigned int’
net/mac80211/mlme.c:2419:2: error: too few arguments to function ‘cfg80211_send_rx_assoc’
include/net/cfg80211.h:2802:6: note: declared here
net/mac80211/mlme.c: In function ‘ieee80211_mgd_deauth’:
net/mac80211/mlme.c:2560:19: error: ‘struct cfg80211_deauth_request’ has no member named ‘bss’
net/mac80211/mlme.c:2561:30: error: ‘struct cfg80211_deauth_request’ has no member named ‘bss’
net/mac80211/mlme.c:2581:18: error: ‘struct cfg80211_deauth_request’ has no member named ‘bss’
net/mac80211/mlme.c:2600:4: error: implicit declaration of function ‘__cfg80211_auth_canceled’ [-Werror=implicit-function-declaration]
net/mac80211/mlme.c:2610:16: error: ‘struct cfg80211_deauth_request’ has no member named ‘local_state_change’
cc1: some warnings being treated as errors
make[2]: *** [net/mac80211/mlme.o] Error 1
make[1]: *** [net/mac80211] Error 2
make: *** [net] Error 2
franna81 said:
Hi Everyone
I am fairly new to android customisation, rooting, etc. and have been playing around with creating a custom CyanogenMod kernel to support a TP-Link USB wifi dongle.
The primary reference article for this can be found here - http://forum.xda-developers.com/showthread.php?t=2338179. However I have made some changes as listed below.
Keen to hack this further and any advice or guidance will be greatly appreciated.
Technical Spec:
Ubuntu 12.04 (32 Bit)
Samsung S3 (Cyanogenmod ROM)
Kernel = https://github.com/CyanogenMod/android_kernel_samsung_smdk4412
.config = https://github.com/CyanogenMod/andr.../arch/arm/configs/cyanogenmod_i9300_defconfig
Note - There is no /proc/config.gz on my device, hence the above use of the config.
gcc-arm-linux-gnueabi libstdc++6 libncurses5 libncurses5-dev - exports correctly setup.
Objective
Getting an TP-Link TL-WN821N USB Wifi Dongle to work.
The relevant drivers are already available in mac80211 - http://www.aircrack-ng.org/doku.php?id=mac80211
Error Message
CC net/mac80211/agg-rx.o
CC net/mac80211/ibss.o
CC net/mac80211/mlme.o
net/mac80211/mlme.c: In function ‘ieee80211_mgd_auth’:
net/mac80211/mlme.c:2317:9: error: ‘struct cfg80211_auth_request’ has no member named ‘local_state_change’
net/mac80211/mlme.c: In function ‘ieee80211_assoc_done’:
net/mac80211/mlme.c:2419:2: warning: passing argument 2 of ‘cfg80211_send_rx_assoc’ from incompatible pointer type [enabled by default]
include/net/cfg80211.h:2802:6: note: expected ‘struct cfg80211_bss *’ but argument is of type ‘unsigned char *’
net/mac80211/mlme.c:2419:2: warning: passing argument 3 of ‘cfg80211_send_rx_assoc’ makes pointer from integer without a cast [enabled by default]
include/net/cfg80211.h:2802:6: note: expected ‘const u8 *’ but argument is of type ‘unsigned int’
net/mac80211/mlme.c:2419:2: error: too few arguments to function ‘cfg80211_send_rx_assoc’
include/net/cfg80211.h:2802:6: note: declared here
net/mac80211/mlme.c: In function ‘ieee80211_mgd_deauth’:
net/mac80211/mlme.c:2560:19: error: ‘struct cfg80211_deauth_request’ has no member named ‘bss’
net/mac80211/mlme.c:2561:30: error: ‘struct cfg80211_deauth_request’ has no member named ‘bss’
net/mac80211/mlme.c:2581:18: error: ‘struct cfg80211_deauth_request’ has no member named ‘bss’
net/mac80211/mlme.c:2600:4: error: implicit declaration of function ‘__cfg80211_auth_canceled’ [-Werror=implicit-function-declaration]
net/mac80211/mlme.c:2610:16: error: ‘struct cfg80211_deauth_request’ has no member named ‘local_state_change’
cc1: some warnings being treated as errors
make[2]: *** [net/mac80211/mlme.o] Error 1
make[1]: *** [net/mac80211] Error 2
make: *** [net] Error 2
Click to expand...
Click to collapse
Exactly the same issue here, bump :/
When I had to build a mac80211 driver (rt2800usb), I had to apply the following changes on top of cm-10.2.0 (d6f2f4ae4e593067dc59e2ac63f022434199f673):
Code:
# Depends on 3.4 backport that breaks mac80211.
git revert d6f2f4ae4e593067dc59e2ac63f022434199f673 # "Add support for Note 8 (N5100 and N5110)"
git revert c421809918b7106b40a81134f9fb5103146fc715 # "update bcmdhd driver from GT-9505 Source"
git revert 44655588a0b361afa15761b5c58f5a558c1c181c # "WIFI: Use kernel version 3.4 ifdef's."
git revert 3cedbff33e9884fdf3f7aaaa83ab9774d8145d1f # "wireless backport from 3.4"
# Another build fix:
Date: Sun Nov 24 12:04:33 2013 +0100
lib: fix compile of lib/genalloc.c
Taken from commit 3cedbff ("wireless backport from 3.4").
lib/genalloc.c | 54 ++++++++++++++++++++++++++++++++----------------------
1 file changed, 32 insertions(+), 22 deletions(-)
After that I was able to build rt2x00 from 3.4.70 (after enabling MAC80211 in config).. Note: these patches do not seem to revert cleanly on cm-11.0
For cm-11.0 (HEAD was 22cbf2cfb211cef2e493c5984d237d0509bf98ce, "otg: when removing ED from readyQ also set flag"), I now do:
Code:
# v--- 2014-11-06 (CM 11.0)
- revert c421809 # update bcmdhd driver from GT-9505 Source
Conflict in drivers/net/wireless/bcmdhd/Makefile, remove -DPASS_IPV4_SUSPEND
and DEBUGFS_CFG80211 (unused), all that remains is:
DHDCFLAGS += -DBLOCK_IPV6_PACKET
Conflict in drivers/net/wireless/bcmdhd/dhd_sec_feature.h, remove:
CONFIG_MACH_KONA
.config:
BCMDHD=M (was =Y, but this allows debugging)
DHD_USE_STATIC_BUF=N
DHD_USE_SCHED_SCAN=N
- revert 4465558 # WIFI: Use kernel version 3.4 ifdef's.
- revert 3cedbff # wireless backport from 3.4
- git checkout 3cedbff -- include/linux/{export,module}.h lib/genalloc.c
git commit -m 'Build fixes from 3cedbff'
Compile fixes, also used by d90b43b "mali: add r3p1 for devices that need it"
This compiles (with CONFIG_MAC80211=M), I have yet to try the newer rt2x00 for my purposes.

cant find /proc/last_kemg

hello
i cant find /proc/last_kmsg either in kernel crash after booting or in booting
tried to add
CONFIG_APANIC=y
CONFIG_APANIC_PLABEL="android_panic123"
also nothing can found
this could be interisting
kernel/panic.c:77:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
kernel/panic.c:78:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
kernel/panic.c: In function 'panic':
kernel/panic.c:117:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

Compile Problems

Hey guys, I have problems when compiling LiquidSmooth.
I have changed the toolchains to Uber 5.3/6.0.
Then when compiling, I met problems like this:
Code:
In file included from bionic/libc/include/stdatomic.h:156:0,
from system/core/liblog/logd_write.c:25:
bionic/libc/include/uchar.h:41:35: error: unknown type name 'char16_t'
size_t c16rtomb(char* __restrict, char16_t, mbstate_t* __restrict);
^
bionic/libc/include/uchar.h:42:35: error: unknown type name 'char32_t'
size_t c32rtomb(char* __restrict, char32_t, mbstate_t* __restrict);
^
bionic/libc/include/uchar.h:43:17: error: unknown type name 'char16_t'
size_t mbrtoc16(char16_t* __restrict,
^
bionic/libc/include/uchar.h:47:17: error: unknown type name 'char32_t'
size_t mbrtoc32(char32_t* __restrict,
^
In file included from system/core/liblog/logd_write.c:25:0:
bionic/libc/include/stdatomic.h:367:11: error: expected specifier-qualifier-list before 'char16_t'
typedef _Atomic(char16_t) atomic_char16_t;
^
bionic/libc/include/stdatomic.h:368:11: error: expected specifier-qualifier-list before 'char32_t'
typedef _Atomic(char32_t) atomic_char32_t;
^
build/core/binary.mk:801: recipe for target '/home/bbn/bbn/android/LS/out/target/product/m8/obj/STATIC_LIBRARIES/liblog_intermediates/logd_write.o' failed
I think the problem is caused by the change of the toolchain. Can anyone help me?

Categories

Resources