Kernel error - Android Q&A, Help & Troubleshooting

Hi for my yp-g1 a group is building ics so we started with making/porting (not sure wich)
Anyway zacmillions bean working on the kernel but got this error:
So far I have 1 error left but I don't know how to resolve it:
drivers/usb/gadget/s3c_udc_otg.c:688: error: lvalue required as left operand of assignment
drivers/usb/gadget/s3c_udc_otg.c:689: error: lvalue required as left operand of assignment
I got this error using the teamhacksung's line of the same file
/* 3. Put the OTG device core in the disconnected state.*/
utemp = __raw_readl(S3C_UDC_OTG_DCTL);
utemp |= SOFT_DISCONNECT;
__raw_writel(utemp, S3C_UDC_OTG_DCTL);
udelay(20);
Do you know what this means?
Any ideas what to do?
Thanks.
Sent from my YP-G1 using xda app-developers app

Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Thanks ✟
Moving to Q&A

Related

Hermes goes wiki

Hermes goes wiki
A wiki page has been opened for the Hermes
http://wiki.xda-developers.com/index.php?pagename=HTC_Hermes
Please look here before asking questions on the forum.
All users can edit this page so you can all add information thus making it a better source of information.
Hi!
can't go to the wiki page at the moment ... and get this error!
Fatal error: Can't connect to database: wikidb_backend_mysql: fatal database error DB Error: no such database ( [nativecode=Unknown database 'xdadevwiki'] ** mysql://xdadevwiki:[email protected]/xdadevwiki) in /var/www/phpwiki/lib/WikiDB/backend/PearDB.php on line 32
I guess I just need to wait and check it later, but I was wondering if there is a place to report this.
Ofiaich
ofiaich: reported to admins, should be fixed now...
thanks pof!
I should have searched about how to report this to the mods!
sorry about that!
Ofiaich

[ISSUE SOLVED]CM9 compiling error

Hi guys I am kind of a noob when it comes to linux and compiling and have hit a brick wall. I posted this question here in Q&A and in Chef central so hopefully someone has an idea. I have been trying to compile CM9 for about three days now and no matter what I do I get this output. It is 95% of the time after the "install libwebcore.so" line.
Code:
install: out/target/product/maguro/system/lib/libwebcore.so
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.android.dx.util.IntList.(IntList.java:87)
at com.android.dx.rop.code.RopMethod.calcPredecessors(RopMethod.java:154)
at com.android.dx.rop.code.RopMethod.labelToPredecessors(RopMethod.java:95)
at com.android.dx.dex.code.RopTranslator.pickOrder(RopTranslator.java:352)
at com.android.dx.dex.code.RopTranslator.translateAndGetResult(RopTranslator.java:212)
at com.android.dx.dex.code.RopTranslator.translate(RopTranslator.java:106)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:293)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:134)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:87)
at com.android.dx.command.dexer.Main.processClass(Main.java:483)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
at com.android.dx.command.dexer.Main.access$400(Main.java:67)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
at com.android.dx.command.dexer.Main.processOne(Main.java:418)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
at com.android.dx.command.dexer.Main.run(Main.java:206)
at com.android.dx.command.dexer.Main.main(Main.java:174)
at com.android.dx.command.Main.main(Main.java:95)
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Error 3
Before I tried to compile CM I did successfully compile AOSP for my Gnex. I have searched and tried everything I could find. I've tried these values in the common.py file and just about every combo I could think of per recommendations I found online.
Code:
check = (sys.maxsize > 2**32)
if check is True:
cmd = ["java", "Xmx2048m", "-jar",
os.path.join(OPTIONS.search_path, "framework", "signapk.jar")]
else:
cmd = ["java", "-Xmx1024m", "-jar",
os.path.join(OPTIONS.search_path, "framework", "signapk.jar")]
I have also checked my swap and as far as I can tell its there and working but it seams to never be used. I have tried all the commands I could find online to make sure it was enabled but Idk what else to try or check.
Also I am using a quad core AMD with 6GB of RAM if anyone is curious. Any and all advice/ideas would be very much appreciated at this point I am at a complete loss. Thanks for looking and helping guys.
EDIT:I just finished a successful build of AOSP for my galaxy nexus so I am really confused as to why I run out of memory for CM9.
Sky-
A fresh install of Ubuntu 12.04 on a freshly formatted partition seemed to fix my memory issue.

[DEV] MIUI v5 for HTC Desire X

Hi all,
I want to port MIUI v5 to the Desire X using patchrom based on deodexed stock ROM. I'm following https://github.com/MiCode/patchrom but am stuck at the ota_target_from_phone because I think packages.xml is missing (the apkcerts.txt is in place, checked that already). I'm getting this in terminal while running the script:
Code:
Run getfilesysteminfo to build filesystem_config.txt
131 KB/s (5572 bytes in 0.041s)
Run getfilesysteminfo and recoverylink.py to recover symlink
File "/home/daniel/patchrom/tools/releasetools/recoverylink.py", line 27
print r"%s isn't exist" % linkfile_path
^
SyntaxError: invalid syntax
Build apkcerts.txt
1704 KB/s (189866 bytes in 0.108s)
File "/home/daniel/patchrom/tools/apkcerts.py", line 16
print "Usage: python ./apkcerts.py path-to-packages.xml path-to-apkcerts.txt"
^
SyntaxError: invalid syntax
Generate metadata used to build target files...
Compress the target_files dir into zip file
/home/daniel/patchrom/desirex
Build full ota package: /home/daniel/patchrom/desirex/stockrom.zip
File "/home/daniel/patchrom/tools/releasetools/ota_from_target_files", line 103
return (info.external_attr >> 16) == 0120777
^
SyntaxError: invalid token
For your info, I didn't use repo to download the files but did a zip download of all needed directories, unpacked and renamed them. Also, I am using Arch Linux, and before you ask, python is installed and android sdk along with platform tools is installed too and added to path. I hope it doesn't matter that I use zsh shell, does it? I modified .zshrc for path. Any ideas / suggestions where to find packages.xml?
Can you work if i give ICS stockrom??/ for miui v4?
Maybe, but I think the problem will still be the same, and I definitely want to do a JB ROM with MIUI v5... What I found now: The ota_target_from_phone script pulls packages.xml from /data/system, so it should be generated by android at some point... I'll have to check and see if it is there. I'll definitely give it a go again tonight...
EDIT: When trying for the first time, I was on hboot 1.25 using Philz Touch recovery for JB hboot compiled by him (the one with incorrect fstab), so maybe that could have been the problem as well...
EDIT 2: Will try with the one fixed by atis112 now...
Tried again now with fixed recovery, didn't make any difference.
But found something: The first error appearing comes from the script "apkcerts.py" which is to be found in the miui patchrom tools directory. The relevant part of the script (the point where it crashes) is:
Code:
if len(sys.argv) != 3:
usage()
sys.exit(1)
And it is called from ota_target_from_phone like this:
Code:
python $TOOL_DIR/apkcerts.py $TARGET_FILES_DIR/packages.xml $META_DIR/apkcerts.txt
The variables are pointing to valid directories. The full scripts can be accessed here:
https://github.com/MiCode/patchrom_tools/blob/ics/apkcerts.py for apkcerts.py and
https://github.com/MiCode/patchrom_tools/blob/ics/releasetools/ota_target_from_phone for the other one.
Ideas?
Bump.
Sent from my HTC Desire X using xda premium
No one really?
So I will have to go for the MIUI forums for help, right?
Sent from my HTC Desire X using xda premium
dansou901 said:
So I will have to go for the MIUI forums for help, right?
Sent from my HTC Desire X using xda premium
Click to expand...
Click to collapse
Yup pretty much MIUI is not supported or respected around here.
So, I've opened a thread in MIUI Germany forum now, can be found here:
http://miui-germany.de/forum2/index.php?page=Thread&threadID=6565
If you still have ideas, you can post them here, too.
Does this MIUI completely work?
It's not even close to finish yet. It will work, but it needs time.
Sent from my HTC Desire X using xda premium

[Q&A] [DEV] AndroidLib - .NET Android Device Communication and Management Library 01

[Q&A] [DEV] AndroidLib - .NET Android Device Communication and Management Library 01
Q&A for [DEV] AndroidLib - .NET Android Device Communication and Management Library 01.20.13
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [DEV] AndroidLib - .NET Android Device Communication and Management Library 01.20.13. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
where's the link to download
I and finding only code everywhere but where's the link to download the latest androidLib in which RegawMOD.Android is included
How to send sms
how to send
download link for androidlib.dll
hi,
could anyone show the link to download androidlib.dll? many thanks!!!
regards
Lim
---------- Post added at 05:02 PM ---------- Previous post was at 04:45 PM ----------
Hi
does anyone has the download link for androidlib? thanks!!
LESLIE
Best way to communicate between c# and android app
I would like to communicate data between c# and my java app. 2 variables nothing fancy, I think of an idea to use Preferences file and read it via adb using androidlib. My phone is rooted, but i want to it work without root. I know sharedprefs file permissions are only for the app itself. Any ideas?
I wanna make a function "Flashall"
I try make a "flashall function"..
use a "ExecuteFastbootCommand("flashall", "-w");
but, result message "error: neither -p product specified nor ANDROID_PRODUCT_OUT set"
How to excute command (set ANDROID_PRODUCT_OUT=~) & "fastboot flashall -w "?
Question for AndroidLib Developer
First of all, I am using your Android library and I think it is a great tool. My application that I am using it for is a wrapper class to manage testing of some android based handsets. I require the ability to query the phones IMEI. Is there any method you have in your library that I can easily use for this requirment?
Thanks in advance!!
device.pushfile need help with parameters, thanks
hi, this is my code load the phone and after want a sent a file contactos.sqlite, I need help with parameters because I cant send, thanks for help me.
*************************************
Public Sub phone()
Dim serial As String
'Always call UpdateDeviceList() before using AndroidController on devices to get the most updated list
android.UpdateDeviceList()
If (android.HasConnectedDevices) Then
serial = android.ConnectedDevices(0)
device = android.GetConnectedDevice(serial)
txtphone.Text = serial
Else
MsgBox("Error - No Devices Connected", MsgBoxStyle.Exclamation)
End If
End Sub
*****************************************
Private Sub btncopy_Click(sender As Object, e As EventArgs) Handles btncopy.Click
Dim filepath As String = "C:\Visual Studio 2013\Projects\prueba\prueba\bin\Debug\contactos1.sqlite"
Dim destinationfilepath As String = "\data\data\yo\databases\contactos1.sqlite"
device.PushFile(filepath, destinationfilepath)
End Sub
*********************************************
help
hello
Documentation link notwork for me
please other link for Documentation
i need all commands help file for vb.net androidlib
Where to download the compiled DLL?
Looks like the website is down... I downloaded the source from github but I'd prefer to save some time and use the compiled binary.
Is there a working download link?
I was looking for documentation, but the site is offline. What I want know for is like copying a database from my PC to my Android phone and the other way round via USB, so if anyone has documentation to guide me.
Thank You
Postscript: Sorry, my english is poor and i work with vb.net 2013
usman14903usa said:
I and finding only code everywhere but where's the link to download the latest androidLib in which RegawMOD.Android is included
Click to expand...
Click to collapse
The idea is that you fork, clone and compile the library yourself. This isn't an application, it is a wrapper library containing code to make writing applications for use with Android devices easier.
leslielin71 said:
hi,
could anyone show the link to download androidlib.dll? many thanks!!!
regards
Lim
---------- Post added at 05:02 PM ---------- Previous post was at 04:45 PM ----------
Hi
does anyone has the download link for androidlib? thanks!!
LESLIE
Click to expand...
Click to collapse
It's all here: http://forum.xda-developers.com/showthread.php?t=1512685
The idea is that you fork, clone and compile the library yourself.
Flopik2 said:
I would like to communicate data between c# and my java app. 2 variables nothing fancy, I think of an idea to use Preferences file and read it via adb using androidlib. My phone is rooted, but i want to it work without root. I know sharedprefs file permissions are only for the app itself. Any ideas?
Click to expand...
Click to collapse
Have you thought of writing a service for the device that checks for changes in a folder in the shared mass storage, and then handles accordingly?
That might be something to think about before considering going places you shouldn't be with a host computer.
hwiri said:
I try make a "flashall function"..
use a "ExecuteFastbootCommand("flashall", "-w");
but, result message "error: neither -p product specified nor ANDROID_PRODUCT_OUT set"
How to excute command (set ANDROID_PRODUCT_OUT=~) & "fastboot flashall -w "?
Click to expand...
Click to collapse
Code:
Fastboot.ExecuteFastbootCommand(Fastboot.FormFastbootCommand("flashall", "-w"));
cjdelgross said:
First of all, I am using your Android library and I think it is a great tool. My application that I am using it for is a wrapper class to manage testing of some android based handsets. I require the ability to query the phones IMEI. Is there any method you have in your library that I can easily use for this requirment?
Thanks in advance!!
Click to expand...
Click to collapse
No, there is no property or method to get the IMEI, but that's a good idea, and seeming as I'm doing some work on AndroidLib for a project of mine (of course the changes will be uploaded to GitHub), I'll add that, too.
The ADB command is: adb shell dumpsys iphonesubinfo
GonzaloCimma said:
hi, this is my code load the phone and after want a sent a file contactos.sqlite, I need help with parameters because I cant send, thanks for help me.
*************************************
Public Sub phone()
Dim serial As String
'Always call UpdateDeviceList() before using AndroidController on devices to get the most updated list
android.UpdateDeviceList()
If (android.HasConnectedDevices) Then
serial = android.ConnectedDevices(0)
device = android.GetConnectedDevice(serial)
txtphone.Text = serial
Else
MsgBox("Error - No Devices Connected", MsgBoxStyle.Exclamation)
End If
End Sub
*****************************************
Private Sub btncopy_Click(sender As Object, e As EventArgs) Handles btncopy.Click
Dim filepath As String = "C:\Visual Studio 2013\Projects\prueba\prueba\bin\Debug\contactos1.sqlite"
Dim destinationfilepath As String = "\data\data\yo\databases\contactos1.sqlite"
device.PushFile(filepath, destinationfilepath)
End Sub
*********************************************
Click to expand...
Click to collapse
Even if I were to help with your specific problem, you have hardcoded the paths. That's a bad practice. Maybe you should gather some more basic knowledge about programming.
astarali said:
hello
Documentation link notwork for me
please other link for Documentation
i need all commands help file for vb.net androidlib
Click to expand...
Click to collapse
That's what IntelliSense is for - It's built in to the IDE. Also, you can check the code files. They're all there.
cfsmp3 said:
Looks like the website is down... I downloaded the source from github but I'd prefer to save some time and use the compiled binary.
Is there a working download link?
Click to expand...
Click to collapse
There hasn't been a compiled binary for quite some time. The idea is you fork, clone, and compile the lib yourself so that you always have the latest updates and changes.
Ferel94 said:
I was looking for documentation, but the site is offline. What I want know for is like copying a database from my PC to my Android phone and the other way round via USB, so if anyone has documentation to guide me.
Thank You
Postscript: Sorry, my english is poor and i work with vb.net 2013
Click to expand...
Click to collapse
The documentation wouldn't really help. You're looking for the push command: adb push <local> <remote>.
The wrapper method is in the Device class.
You might, however, need to do some shell work beforehand.
Hey, I am trying to get Androidlib to work with Genymotion. (Another emulator). I first tried to point Genymotion to the ADB that comes with the Android-sdk, but when I tried to use Androidlib to find devices it never found any. I where able to find it using command line adb, but after running androidlib, not even that worked.
My second attempt was to change the adb file used it androidlib. Changed the md5 hash and copied the right file where it should go. but it still would not find my device.
Anyone been working on Genymotion and Androidlib before and have gotten this problem? Or just anyone that have any suggestions?
Can i get progress with push command on AndroidLib.dll?
i am looking for document, to get progress with '"RegawMOD.Android.Adb.FormAdbCommand" (push command) on AndroidLib.dll?
Help!
Erase my quote please
Hi guys, i just wanted to know where is the documentation of this project (since the website is down).
Best regards!
hi
i do not know how to download adriodLib.dll
Pushing files
I'm having trouble with the adb command pushing files, does anyone have an example preferable in vb because i keep getting errors.
I'm getting Type 'RegawMOD.Android.AndroidController' has no constructors.
Code:
Private _android As AndroidController
Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles Me.Form1
CheckFor_()
txtBody.AppendText("Starting adb server..." & NewLine)
_android = New AndroidController()
txtBody.Text = txtBody.Text.Replace("Starting adb server..." & NewLine, "")
timerCursor.Enabled = True
timerPhone.Enabled = True
timerCursor.Start()
timerPhone.Start()
End Sub
Device "minimizes" Activity after App started
Hello,
I'm usind AndroidLib in my project and encountered a strange behaviour. When I start an App via "shell am start -n [PackageName]/[ActivityName] -a android.intent.action.MAIN -c android.intent.category.LAUNCHER", the main Activity shows up on screen. A second later, the activity gets "minimized" and the previous Activity (Home, other App,...) is shown again.
I know the App starts, as it launches some background Threads, which are running and doing, what they're supposed to do. So how can I stop the Activity from disappearing? When starting my App from Android Studio or running the command manually via CMD, everything works.
For everyone asking: I have created my own branch of AndroidLib, and I have documentation for it on my webserver.
Some of the documentation is specifically for my branch of the library, however most of the docs are from the core git and haven't changed.
http://team-m4gkbeatz.eu/androidlib/documentation/

[WIP] Compiling TWRP for WI502Q Wren device

Background:
Can't locate a TWRP image for WI502Q device
@T10NAZ has been helping in his TWRP for WI501Q thread. It seems more polite to separate this discussion from his TWRP release thread.
Goal:
Build a booting TWRP image for WI502Q device
I'll be posting step-by-step directions as I make progress and I'll also be posting questions!
Steps
Repo
1) Install repo (sudo apt-get install repo)
1a) repo init -u git://github.com/joeykrim/platform_manifest_twrp_omni_wren.git -b twrp-6.0
1b) repo sync
2) Clone device configuration and kernel files
2a) mkdir -p device/asus/wren (Inside omni directory cloned in 1b)
2b) cd device/asus/ && git clone https://github.com/joeykrim/wren
3) Setup AOSP to compile and Compile
3a) . build/envsetup.sh
3b) lunch omni_wren-eng
3c) mka recoveryimage OR make clean && mka -j9 recoveryimage
Sources:
Referencing Dees_Troy's guide for compiling TWRP: http://forum.xda-developers.com/showthread.php?p=32965365#post32965365
Sparrow Omni ROM/Recovery compile files: https://github.com/asyan4ik/sparrow
Compiling kernel: http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276 & https://source.android.com/source/building-kernels.html & @T10NAZ who compiled the kernel and provided the binary
Dependencies (Not complete list):
My GitHub forks include minor changes in order to compile without errors: https://github.com/joeykrim/platform_manifest_twrp_omni_wren & https://github.com/joeykrim/wren
OmniROM requires OpenJDK 7: sudo apt-get install openjdk-7-jdk (Reference for install, replace version 8 with 7)
Unresolved Issues:
1) Requires pre-compiled or compiling kernel
1a) Unable to pull from device: /dev/block/platform/msm_sdcc.1/by-name/boot: Permission denied and /dev/block/mmcblk0p11: Permission denied
1b) ASUS Kernel source: https://www.asus.com/au/support/Download/42/1/0/3/y5tW5D4k3zKBVKf4/32/
Latest version at this time: ASUS ZenWatch2 (WI502Q) Kernel source code V5.20.0.111 (MEC23G)
Requires a prebuilt toolchain - AOSP recommends: git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
export ARCH=arm
export CROSS_COMPILE=arm-eabi-
make wren_user_msm8226-perf_defconfig - results in many errors, as shown in the multiple posts below
@T10NAZ suggested using wren_defconfig instead of wren_user_msm8226-perf_defconfig, compiled a kernel and posted it: http://forum.xda-developers.com/showpost.php?p=65955638&postcount=13
2) Sparrow (BoardConfig.mk) calls for an older font file: font_7x16.h (bootable/recovery/minui.old/font_7x16.h). For now, disabled as compiling with it results in an error:
"In file included from bootable/recovery/minui/graphics.cpp:35:
bootable/recovery/minui/font_7x16.h:12:14: error: initialization of flexible array member is not allowed
.rundata = {
^"
u should post in the android dev or android orid dev section of the zenwatch 2 i think.
here in q&a it might get lost
just a friendly advice. i have a w501q. for mine there is T10NAZ's version which works perfectly if tethered (a flashable version would be nich to have )
4RK4N said:
u should post in the android dev or android orid dev section of the zenwatch 2 i think.
here in q&a it might get lost
just a friendly advice. i have a w501q. for mine there is T10NAZ's version which works perfectly if tethered (a flashable version would be nich to have )
Click to expand...
Click to collapse
im working on making it flashable
T10NAZ said:
I used this dev tree here so you can modify it to get twrp for the 502
or to practice by using the files available for the 501
all you need is the omni 6.0 source for twrp 3.0.0.0 and the latest kernel source and you are off to the races!
If you need help let me know
Click to expand...
Click to collapse
Summary
I have omni 6.0 source and using asyan4ik's device tree for sparrow, I have the sparrow TWRP recovery.img compiled in out/target/product/sparrow. The 501 device was a good starting point, thanks!
Now to 502, I'm unable to get a kernel binary to use in order to build TWRP. Any suggestions on how to either get the 502 kernel binary or get the 502 kernel source compiling?
Details:
1) I'm not able to get the kernel binary, which asyan4ik provided for the 501/sparrow device on the github repo. I tried but couldn't pull the kernel binary from the 502 device: /dev/block/platform/msm_sdcc.1/by-name/boot: Permission denied and /dev/block/mmcblk0p11: Permission denied
2) I do have the kernel source from ASUS's web site, but am seeing multiple errors when compiling with wren_user_msm8226-perf_defconfig or wren_userdebug_msm8226_defconfig.
Example of an error: "kernel/printk.c: In function ‘printk_buffer_rebase’:
kernel/printk.c:1022:38: error: ‘ASUS_SW_VER’ undeclared (first use in this function)
strncpy(asus_global.kernel_version, ASUS_SW_VER, sizeof(asus_global.kernel_version));
^
kernel/printk.c:1022:38: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:308: recipe for target 'kernel/printk.o' failed"
joeykrim said:
Summary
I have omni 6.0 source and using asyan4ik's device tree for sparrow, I have the sparrow TWRP recovery.img compiled in out/target/product/sparrow. The 501 device was a good starting point, thanks!
Now to 502, I'm unable to get a kernel binary to use in order to build TWRP. Any suggestions on how to either get the 502 kernel binary or get the 502 kernel source compiling?
Details:
1) I'm not able to get the kernel binary, which asyan4ik provided for the 501/sparrow device on the github repo. I tried but couldn't pull the kernel binary from the 502 device: /dev/block/platform/msm_sdcc.1/by-name/boot: Permission denied and /dev/block/mmcblk0p11: Permission denied
2) I do have the kernel source from ASUS's web site, but am seeing multiple errors when compiling with wren_user_msm8226-perf_defconfig or wren_userdebug_msm8226_defconfig.
Example of an error: "kernel/printk.c: In function ‘printk_buffer_rebase’:
kernel/printk.c:1022:38: error: ‘ASUS_SW_VER’ undeclared (first use in this function)
strncpy(asus_global.kernel_version, ASUS_SW_VER, sizeof(asus_global.kernel_version));
^
kernel/printk.c:1022:38: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:308: recipe for target 'kernel/printk.o' failed"
Click to expand...
Click to collapse
that error was the most annoying thing ever and i always had an issue with it.
download this Makefile and replace the one in the root of the kernel folder with that one, that will get rid of that error. You may run into more errors, and hopefully they are ones that i had problems with
T10NAZ said:
that error was the most annoying thing ever and i always had an issue with it.
download this Makefile and replace the one in the root of the kernel folder with that one, that will get rid of that error. You may run into more errors, and hopefully they are ones that i had problems with
Click to expand...
Click to collapse
Great, your Makefile cleared up the ASUS_SW_VER error!
Amazing they release kernel source that doesn't compile...
Next error...
1) TIF_MM_RELEASED undecleared
kernel/exit.c: In function ‘exit_mm’:
kernel/exit.c:510:28: error: ‘TIF_MM_RELEASED’ undeclared (first use in this function)
set_tsk_thread_flag(tsk, TIF_MM_RELEASED);
^
kernel/exit.c:510:28: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:308: recipe for target 'kernel/exit.o' failed
It does appear to be defined...
grep -irs TIF_MM_RELEASED *
arch/arm/include/asm/thread_info.h:#define TIF_MM_RELEASED 23 /* task MM has been released */
arch/arm64/include/asm/thread_info.h:#define TIF_MM_RELEASED 24
drivers/staging/android/lowmemorykiller.c: if (test_task_flag(tsk, TIF_MM_RELEASED))
kernel/exit.c: set_tsk_thread_flag(tsk, TIF_MM_RELEASED);
joeykrim said:
Great, your Makefile cleared up the ASUS_SW_VER error!
Amazing they release kernel source that doesn't compile...
Next error...
1) TIF_MM_RELEASED undecleared
kernel/exit.c: In function ‘exit_mm’:
kernel/exit.c:510:28: error: ‘TIF_MM_RELEASED’ undeclared (first use in this function)
set_tsk_thread_flag(tsk, TIF_MM_RELEASED);
Click to expand...
Click to collapse
Your grep maybe or maybe not shed light on the issue.
The first 2 are defined but not in the last 2, the last 2 are calling TIF_MM_RELEASED (at least that is my understanding) however it has a number after defining it
anyways travel to the folder kernel and open exit.c, and assuming you can see line numbers on your text editor, go to line 506, and that whole #ifndef config thing, maybe either do this:
Code:
#define TIF_MM_RELEASED 23
#ifndef CONFIG_UML
mm_released = mmput(mm);
if (mm_released)
set_tsk_thread_flag(tsk, TIF_MM_RELEASED);
#endif
or add the define TIF_MM under the config_UML.
Im almost thinking ASUS has some other things outside of the kernel source to allow it to build cleanly
T10NAZ said:
Your grep maybe or maybe not shed light on the issue.
The first 2 are defined but not in the last 2, the last 2 are calling TIF_MM_RELEASED (at least that is my understanding) however it has a number after defining it
anyways travel to the folder kernel and open exit.c, and assuming you can see line numbers on your text editor, go to line 506, and that whole #ifndef config thing, maybe either do this:
Code:
#define TIF_MM_RELEASED 23
#ifndef CONFIG_UML
mm_released = mmput(mm);
if (mm_released)
set_tsk_thread_flag(tsk, TIF_MM_RELEASED);
#endif
or add the define TIF_MM under the config_UML.
Im almost thinking ASUS has some other things outside of the kernel source to allow it to build cleanly
Click to expand...
Click to collapse
Defining it either before or inside of CONFIG_UML both worked to clear the error. Thanks!
Now two more errors:
kernel/asusdebug.c: In function 'proc_asusdebug_init':
kernel/asusdebug.c:1405:15: error: 'struct mutex' has no member named 'owner'
fake_mutex.owner = current;
^
kernel/asusdebug.c: At top level:
kernel/asusdebug.c:1418:15: error: expected declaration specifiers or '...' before string constant
EXPORT_COMPAT("qcom,asusdebug");
^
scripts/Makefile.build:308: recipe for target 'kernel/asusdebug.o' failed
joeykrim said:
Defining it either before or inside of CONFIG_UML both worked to clear the error. Thanks!
Now two more errors:
kernel/asusdebug.c: In function 'proc_asusdebug_init':
kernel/asusdebug.c:1405:15: error: 'struct mutex' has no member named 'owner'
fake_mutex.owner = current;
^
kernel/asusdebug.c: At top level:
kernel/asusdebug.c:1418:15: error: expected declaration specifiers or '...' before string constant
EXPORT_COMPAT("qcom,asusdebug");
^
scripts/Makefile.build:308: recipe for target 'kernel/asusdebug.o' failed
Click to expand...
Click to collapse
Whats weird is asusdebug.c is exactly the same on the 501 and 502,
this may be a dumb question but, are you make clean after every edit?
T10NAZ said:
Whats weird is asusdebug.c is exactly the same on the 501 and 502,
this may be a dumb question but, are you make clean after every edit?
Click to expand...
Click to collapse
Yes, I have been using make clean, but the system I'm using might be on newer versions that are causing issues (Ubuntu 16.04).
I'm assuming that since asusdebug.c is the same between devices, you didn't receive the same error?
I'm using the toolchain included with OmniROM: prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- through export CROSS_COMPILE=/tmp/omni/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-
Downgraded gcc to 4.8 (/usr/bin/gcc -> /usr/bin/gcc-4.8)
Anything else I should check? Not sure if I should just grab Ubuntu 14.04, put it in a VM and start again from there...
joeykrim said:
Yes, I have been using make clean, but the system I'm using might be on newer versions that are causing issues (Ubuntu 16.04).
I'm assuming that since asusdebug.c is the same between devices, you didn't receive the same error?
I'm using the toolchain included with OmniROM: prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- through export CROSS_COMPILE=/tmp/omni/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-
Downgraded gcc to 4.8 (/usr/bin/gcc -> /usr/bin/gcc-4.8)
Anything else I should check? Not sure if I should just grab Ubuntu 14.04, put it in a VM and start again from there...
Click to expand...
Click to collapse
only difference i have is i am running 15.10 with linaro 4.9.4 toolchain I wonder if itll get stuck on the same error if i take a crack at it
---------- Post added at 10:06 PM ---------- Previous post was at 09:41 PM ----------
So i tried it, I tar -xvf'd the source, added the path to the linaro chain, used my modified makefile for Sparrow, and typed make wren_defconfig (that might be highly unconventional) and make -j# ARCH=arm
I didnt hit the errors you had, but I ran into issues im more familiar with, starting with
Code:
In file included from drivers/devfreq/devfreq_trace.h:43:0,
from drivers/devfreq/devfreq_trace.c:20:
include/trace/define_trace.h:79:43: fatal error: ./devfreq_trace.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.
which you just copy devfreq_trace.h into include/trace
after that I got the next error I encountered for sparrow,
Code:
drivers/hwmon/qpnp-adc-common.c: In function ‘qpnp_adc_scale_batt_therm’:
drivers/hwmon/qpnp-adc-common.c:732:4: error: ‘adcmap_btm_threshold’ undeclared (first use in this function)
adcmap_btm_threshold,
^
drivers/hwmon/qpnp-adc-common.c:732:4: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/linux/kref.h:18:0,
from include/linux/of.h:21,
from drivers/hwmon/qpnp-adc-common.c:16:
and that issue, it calls either Sparrow or Wren specific battery voltages in the qpnp-adc-common.c for whatever you are working on. But it doesnt do that!! All you do is find qpnp-adc-common-wren.h
and copy pasta this:
Code:
static const struct qpnp_vadc_map_pt adcmap_btm_threshold[] = {
{-300, 1538},
{-200, 1538},
{-100, 1384},
{-90, 1372},
{-80, 1360},
{-70, 1346},
{-60, 1335},
{-50, 1322},
{-40, 1308},
{-30, 1298},
{-20, 1282},
{-10, 1269},
{0, 1255},
{10, 1251},
{20, 1238},
{30, 1225},
{40, 1212},
{50, 1199},
{60, 1186},
{70, 1173},
{80, 1160},
{90, 1147},
{100, 1122},
{110, 1111},
{120, 1097},
{130, 1086},
{140, 1074},
{150, 1060},
{160, 1048},
{170, 1035},
{180, 1021},
{190, 1009},
{200, 998},
{210, 987},
{220, 977},
{230, 966},
{240, 952},
{250, 943},
{260, 932},
{270, 923},
{280, 911},
{290, 902},
{300, 891},
{310, 881},
{320, 871},
{330, 860},
{340, 849},
{350, 839},
{360, 832},
{370, 823},
{380, 813},
{390, 807},
{400, 801},
{410, 790},
{420, 779},
{430, 774},
{440, 769},
{450, 760},
{460, 750},
{470, 742},
{480, 738},
{490, 730},
{500, 721},
{510, 714},
{520, 713},
{530, 707},
{540, 701},
{550, 695},
{560, 689},
{570, 683},
{580, 677},
{590, 671},
{600, 665},
{610, 659},
{620, 653},
{630, 647},
{640, 641},
{650, 635},
{660, 629},
{670, 623},
{680, 617},
{690, 611},
{700, 496},
{710, 490},
{720, 484},
{730, 478},
{740, 472},
{750, 466},
{760, 460},
{770, 454},
{780, 448},
{790, 442}
};
right above static const struct qpnp_vadc_map_pt adcmap_qrd_btm_threshold[] = { at line 56
There are a few more errors that can be easily fixed after that, Im not sure if its your 16.04 or omni's toochain but so far im just running into fixable errors that got in the way on sparrow as well
*Update*
I ran into 3 more issues, they are just indicating exactly where files are by adding /home/user/kernel/etc/etc/etc to things that say they dont know where its at
and I got it to build
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
@joeykrim do you want the zimage that i created so you can mess with twrp for now? I will try and assist in any way i can to get you to build the kernel and twrp up for Wren users!
T10NAZ said:
only difference i have is i am running 15.10 with linaro 4.9.4 toolchain I wonder if itll get stuck on the same error if i take a crack at it
---------- Post added at 10:06 PM ---------- Previous post was at 09:41 PM ----------
So i tried it, I tar -xvf'd the source, added the path to the linaro chain, used my modified makefile for Sparrow, and typed make wren_defconfig (that might be highly unconventional) and make -j# ARCH=arm
I didnt hit the errors you had, but I ran into issues im more familiar with, starting with
Code:
In file included from drivers/devfreq/devfreq_trace.h:43:0,
from drivers/devfreq/devfreq_trace.c:20:
include/trace/define_trace.h:79:43: fatal error: ./devfreq_trace.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.
which you just copy devfreq_trace.h into include/trace
after that I got the next error I encountered for sparrow,
Code:
drivers/hwmon/qpnp-adc-common.c: In function ‘qpnp_adc_scale_batt_therm’:
drivers/hwmon/qpnp-adc-common.c:732:4: error: ‘adcmap_btm_threshold’ undeclared (first use in this function)
adcmap_btm_threshold,
^
drivers/hwmon/qpnp-adc-common.c:732:4: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/linux/kref.h:18:0,
from include/linux/of.h:21,
from drivers/hwmon/qpnp-adc-common.c:16:
and that issue, it calls either Sparrow or Wren specific battery voltages in the qpnp-adc-common.c for whatever you are working on. But it doesnt do that!! All you do is find qpnp-adc-common-wren.h
and copy pasta this:
Code:
static const struct qpnp_vadc_map_pt adcmap_btm_threshold[] = {
{-300, 1538},
{-200, 1538},
{-100, 1384},
{-90, 1372},
{-80, 1360},
{-70, 1346},
{-60, 1335},
{-50, 1322},
{-40, 1308},
{-30, 1298},
{-20, 1282},
{-10, 1269},
{0, 1255},
{10, 1251},
{20, 1238},
{30, 1225},
{40, 1212},
{50, 1199},
{60, 1186},
{70, 1173},
{80, 1160},
{90, 1147},
{100, 1122},
{110, 1111},
{120, 1097},
{130, 1086},
{140, 1074},
{150, 1060},
{160, 1048},
{170, 1035},
{180, 1021},
{190, 1009},
{200, 998},
{210, 987},
{220, 977},
{230, 966},
{240, 952},
{250, 943},
{260, 932},
{270, 923},
{280, 911},
{290, 902},
{300, 891},
{310, 881},
{320, 871},
{330, 860},
{340, 849},
{350, 839},
{360, 832},
{370, 823},
{380, 813},
{390, 807},
{400, 801},
{410, 790},
{420, 779},
{430, 774},
{440, 769},
{450, 760},
{460, 750},
{470, 742},
{480, 738},
{490, 730},
{500, 721},
{510, 714},
{520, 713},
{530, 707},
{540, 701},
{550, 695},
{560, 689},
{570, 683},
{580, 677},
{590, 671},
{600, 665},
{610, 659},
{620, 653},
{630, 647},
{640, 641},
{650, 635},
{660, 629},
{670, 623},
{680, 617},
{690, 611},
{700, 496},
{710, 490},
{720, 484},
{730, 478},
{740, 472},
{750, 466},
{760, 460},
{770, 454},
{780, 448},
{790, 442}
};
right above static const struct qpnp_vadc_map_pt adcmap_qrd_btm_threshold[] = { at line 56
There are a few more errors that can be easily fixed after that, Im not sure if its your 16.04 or omni's toochain but so far im just running into fixable errors that got in the way on sparrow as well
*Update*
I ran into 3 more issues, they are just indicating exactly where files are by adding /home/user/kernel/etc/etc/etc to things that say they dont know where its at
Click to expand...
Click to collapse
Excellent! Yea, not sure whether it's the not-yet-final Ubuntu 16.04 release, OmniROM's toolchain, or some odd combination. If I try again, I'll do everything in a VM with a fresh and final Ubuntu image...
T10NAZ said:
and I got it to build
@joeykrim do you want the zimage that i created so you can mess with twrp for now?
Click to expand...
Click to collapse
Yes, please!
Once I have the kernel image, I can focus on tinkering with the sparrow build files to get wren compiling and working. Hopefully won't take too much effort and fastboot booting...
joeykrim said:
Excellent! Yea, not sure whether it's the not-yet-final Ubuntu 16.04 release, OmniROM's toolchain, or some odd combination. If I try again, I'll do everything in a VM with a fresh and final Ubuntu image...
Yes, please!
Once I have the kernel image, I can focus on tinkering with the sparrow build files to get wren compiling and working. Hopefully won't take too much effort and fastboot booting...
Click to expand...
Click to collapse
Alrighty, I added both zImage and zImage-dtb just in case, dtb is mainly what you will work with.
And for twrp 3.0.0.0, there are a bit of changes you need to do to Sparrows files. So we will both be helping each other out with getting it stable and working right for sparrow and wren .
https://drive.google.com/file/d/0B_Duyz8Shz-YbmZ2ZE82VUZSR2c/view?usp=sharing
T10NAZ said:
Alrighty, I added both zImage and zImage-dtb just in case, dtb is mainly what you will work with.
And for twrp 3.0.0.0, there are a bit of changes you need to do to Sparrows files. So we will both be helping each other out with getting it stable and working right for sparrow and wren .
https://drive.google.com/file/d/0B_Duyz8Shz-YbmZ2ZE82VUZSR2c/view?usp=sharing
Click to expand...
Click to collapse
Great! Using the kernel you supplied and the slightly modified Build files from: https://github.com/lj50036/platform_manifest_twrp_omni and I forked here: https://github.com/joeykrim/wren
I was able to get the recovery (TWRP-v3.0.0-0) to compile and boot. wren TWRP v3.0.0-0 recovery.img: https://joeykrim.com/android/devices/wren/twrp-v3.0.0-0.jk-v1.recovery.img
Updates now posted in the development thread: http://forum.xda-developers.com/zen...nt/recovery-twrp-3-0-0-0-wi502q-root-t3343366
Bugs (All Fixed):
1) Unable to backup recovery partition - isn't visible from backup menu
2) The screen resolution is small, but it works! Any suggestions on adjusting the screen resolution?
I'll probably start with BoardConfig.mk settings...
fb0 reports (possibly inaccurate):
vi.bits_per_pixel = 32
vi.red.offset = 0 .length = 8
vi.green.offset = 8 .length = 8
vi.blue.offset = 16 .length = 8
setting GGL_PIXEL_FORMAT_RGBA_8888
double buffered
framebuffer: 0 (280 x 280)
I:Checking resolution...
I:Scaling theme width 0.875000x and height 0.875000x, offsets x: 0 y: 0

Categories

Resources