cant find /proc/last_kemg - Android Q&A, Help & Troubleshooting

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]

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] Allwinner A13 - Flash NAND (A13-Olinuxino-WiFi Dev Board)

Hey guys,
I was hoping someone would be able to help me flash the NAND on the board. There are a couple avenues that I have taken, but I've gotten stuck right before completion each time. I have an image to flash, and access to the board via my 32-bit Linux PC.
The board that I have is the Olimex A13-OLinuXino-WiFi.
Here's the different methods I've attempted:
Using ADB
This is what I'm most familiar with. The only place I'm stuck is finding out what block to flash the image to.
From what I've heard...
Code:
/dev/block/nanda bootloader
/dev/block/nandc boot
/dev/block/nandg recovery
But, I have no clue if that applies to all A13's.
My assumption is to run the following code, but... that's what it is... an assumption. Anyone able to shed some light on this?
Code:
cat /sdcard/imagefile.img > /dev/block/nand<1?>
sync; sync; sync
echo -n boot | busybox dd of=/dev/block/nand<2?> count=1 conv=sync; sync
Using LiveSuit
LiveSuit is the toolset that AllWinner released for their A1X SoCs... the problem is it seems like they only have a Windows or 64-bit Linux version. Since I'm only on 32-bit Linux, I obviously can't compile it. I've searched everywhere for a 32-bit version
Using sunxi-tools
LiveSuit utilizes sunxi-tools to flash the board. However... I can't for the life of me find any documentation surrounding it or any type of process around how to flash the board. It's all a mystery. There are two tools that I have been told to look at: nand-part and fel*. nand-part is a tool to manage the NAND partitions, while fel is a tool for writing directly to the NAND (specifying blocks, start and size).
NAND Map Memory
Code:
-name- -start- -size-
bootloader : 100000 1000000
env : 1100000 200000
boot : 1300000 2000000
system : 3300000 10000000
data : 13300000 20000000
misc : 33300000 100000
recovery : 33400000 2000000
cache : 35400000 10000000
UDISK : 45400000 a8400000
Is it a safe assumption that these correspond with the blocks in /dev/block/?
As in, /dev/block/nanda = bootloader, /dev/block/nadab = env?
Using awutil
A new one! AllWinner Utilities has a tool called `awflash` which is supposed to be comparable to LiveSuit and flashes using the same method. The only problem is I can't get it to compile.
Code:
swivel-mac:awflash swivelgames$ make -k awflash
cc -I/Developer/Platforms/.de650d.245/.de650d.244/SDKs/iPhoneSimulator4.1.sdk/usr/include/pcap/ -L/usr/local/lib -Wall -o awflash awflash.c -lusb
awflash.c:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
awflash.c:114: warning: ‘struct usb_dev_handle’ declared inside parameter list
awflash.c:114: warning: its scope is only this definition or declaration, which is probably not what you want
awflash.c: In function ‘fex_xfer’:
awflash.c:137: warning: implicit declaration of function ‘usb_bulk_write’
awflash.c:144: warning: implicit declaration of function ‘usb_bulk_read’
awflash.c: At top level:
awflash.c:172: warning: ‘struct usb_dev_handle’ declared inside parameter list
awflash.c: In function ‘fex_command’:
awflash.c:174: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:182: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:199: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:209: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:221: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:230: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:240: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:245: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:257: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:274: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:280: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:296: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c: In function ‘main’:
awflash.c:358: warning: implicit declaration of function ‘usb_init’
awflash.c:360: warning: implicit declaration of function ‘usb_set_debug’
awflash.c:362: warning: implicit declaration of function ‘locate_device’
awflash.c:362: warning: assignment makes pointer from integer without a cast
awflash.c:367: warning: implicit declaration of function ‘usb_set_configuration’
awflash.c:371: warning: implicit declaration of function ‘usb_claim_interface’
awflash.c:375: warning: implicit declaration of function ‘usb_set_altinterface’
awflash.c:417: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:420: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
awflash.c:423: warning: passing argument 1 of ‘fex_xfer’ from incompatible pointer type
make: *** [awflash] Error 1
Anyone able to help me out with any of these methods? You would think with four options there would be SOME sort of resource or documentation out there to help me out. But, you know...
Any help would be appreciated!
I finally got `awflash` to compile! Turned out none of my usb libs had usb_dev_handle in them. I had to use MacPorts to install libusb-legacy and that worked perfectly. After wrestling with the makefile a little bit to force it to see the library (lol) it finally built.
I'll search around for awflash documentation so I can become a bit familiar with it before blindly flashing it.
If anyone has any resources or documentation surrounding awflash, that'd be a huge help.

I got an issue while compiling

Hey guys, sorry if i wasn't supposed to create a thread for this but i am getting this error
Code:
system/core/libion/ion.c: In function 'ion_alloc':
system/core/libion/ion.c:65:3: error: unknown field 'heap_mask' specified in initializer
system/core/libion/ion.c:67:17: warning: initialized field overwritten [-Woverride-init]
system/core/libion/ion.c:67:17: warning: (near initialization for 'data.flags') [-Woverride-init]
system/core/libion/ion.c: In function 'ion_sync_fd':
system/core/libion/ion.c:160:26: error: 'ION_IOC_SYNC' undeclared (first use in this function)
system/core/libion/ion.c:160:26: note: each undeclared identifier is reported only once for each function it appears in
system/core/libion/ion.c:162:1: error: control reaches end of non-void function [-Werror=return-type]
cc1: some warnings being treated as errors
make: *** [out/target/product/glacier/obj/EXECUTABLES/iontest_intermediates/ion.o] Error 1
Thats while compiling CM10.1
I have no idea what is up, i am tearing my hair out over it lol. Thanks in advanced for the help!
THEindian said:
Hey guys, sorry if i wasn't supposed to create a thread for this but i am getting this error
Code:
system/core/libion/ion.c: In function 'ion_alloc':
system/core/libion/ion.c:65:3: error: unknown field 'heap_mask' specified in initializer
system/core/libion/ion.c:67:17: warning: initialized field overwritten [-Woverride-init]
system/core/libion/ion.c:67:17: warning: (near initialization for 'data.flags') [-Woverride-init]
system/core/libion/ion.c: In function 'ion_sync_fd':
system/core/libion/ion.c:160:26: error: 'ION_IOC_SYNC' undeclared (first use in this function)
system/core/libion/ion.c:160:26: note: each undeclared identifier is reported only once for each function it appears in
system/core/libion/ion.c:162:1: error: control reaches end of non-void function [-Werror=return-type]
cc1: some warnings being treated as errors
make: *** [out/target/product/glacier/obj/EXECUTABLES/iontest_intermediates/ion.o] Error 1
Thats while compiling CM10.1
I have no idea what is up, i am tearing my hair out over it lol. Thanks in advanced for the help!
Click to expand...
Click to collapse
bump
anybody?

[Q] Compile error, linaro 4.8, fsnotify.h

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

[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.

Categories

Resources