MTK LK to source code - Android Q&A, Help & Troubleshooting

Hi, I'm looking for a way to convert the LK of a MediaTek device into source code.

XxChevrulxX said:
Hi, I'm looking for a way to convert the LK of a MediaTek device into source code.
Click to expand...
Click to collapse
You can debug it.
But, you can't to convert into source again.
Here, you can see the source code of a generic LK: https://github.com/littlekernel/lk
Here, you can see the source code of a lk for (Xiaomi) MI 2/MI 2S/MI 2A devices: https://github.com/MiCode/mi2_lk

VD171 said:
You can debug it.
But, you can't to convert into source again.
Here, you can see the source code of a generic LK: https://github.com/littlekernel/lk
Here, you can see the source code of a lk for (Xiaomi) MI 2/MI 2S/MI 2A devices: https://github.com/MiCode/mi2_lk
Click to expand...
Click to collapse
VD171 said:
You can debug it.
But, you can't to convert into source again.
Here, you can see the source code of a generic LK: https://github.com/littlekernel/lk
Here, you can see the source code of a lk for (Xiaomi) MI 2/MI 2S/MI 2A devices: https://github.com/MiCode/mi2_lk
Click to expand...
Click to collapse
How to debug it?
Best tool ? and guide if possible.
Thanks in advance.

abh_tn said:
How to debug it?
Best tool ? and guide if possible.
Thanks in advance.
Click to expand...
Click to collapse
I have no knowledge about that.
You have to discover by yourself.
Good luck.

abh_tn said:
How to debug it?
Best tool ? and guide if possible.
Thanks in advance.
Click to expand...
Click to collapse
Did you manage to find a way?
Thanks.

llxxVENOMxxll said:
Did you manage to find a way?
Thanks.
Click to expand...
Click to collapse
there is many tools for analyzing and disassambling ,like : binwalk , binary ninja , ghidra ....
but it needs more knowledge about ARM architecture and memory managment
I am trying little by little.

abh_tn said:
there is many tools for analyzing and disassambling ,like : binwalk , binary ninja , ghidra ....
but it needs more knowledge about ARM architecture and memory managment
I am trying little by little.
Click to expand...
Click to collapse
You can debug only.
You will never get the original source code.

Related

How to compile Cyanogenmod for an unsupported device

Hello everyone,
I am a newbie here, I want to compile Cyanogenmod from source and I learned CyanogenMod wiki.
Unfortunately I didn't find my device, ZTE v889d. I have downloaded the Cyanogenmod source, the wiki tells
cd ~/android/system/device/manufacturer/device-name/
./extract-files.sh
Click to expand...
Click to collapse
However I didn't see device/zte/v889d, so I don't know what to do. I searched the github, there's no such file either.
Is there any guide for me to do this? Thanks in advance.
josephok said:
Hello everyone,
I am a newbie here, I want to compile Cyanogenmod from source and I learned CyanogenMod wiki.
Unfortunately I didn't find my device, ZTE v889d. I have downloaded the Cyanogenmod source, the wiki tells
However I didn't see device/zte/v889d, so I don't know what to do. I searched the github, there's no such file either.
Is there any guide for me to do this? Thanks in advance.
Click to expand...
Click to collapse
You have to find a device tree for your device...or make one
I can't help with making one as I've never made a device tree...
But for finding one just Google ZTE v889d github...if someone has made one it should pop up...if you can't find any...then your out of luck and will have to make your own..
Sent from my SGH-I997 using Tapatalk 2
mg2195 said:
You have to find a device tree for your device...or make one
I can't help with making one as I've never made a device tree...
But for finding one just Google ZTE v889d github...if someone has made one it should pop up...if you can't find any...then your out of luck and will have to make your own..
Sent from my SGH-I997 using Tapatalk 2
Click to expand...
Click to collapse
Thanks for reply. I can't find device tree on github, it seems that I have to create one, is there any guide for this?
josephok said:
Thanks for reply. I can't find device tree on github, it seems that I have to create one, is there any guide for this?
Click to expand...
Click to collapse
I'm no pro either, but perhaps you could find a device that is close to your model that is cm supported and then look into its vendor tree on github. Doing this will allow you to see what you need to pull from your firmware to start a tree. Or if the devices are close enough you might even be able to barrow some of the supported devices pre existing tree.
Hope this helps a little
Sent from my HTC Rezound using Tapatalk 2
wildstang83 said:
I'm no pro either, but perhaps you could find a device that is close to your model that is cm supported and then look into its vendor tree on github. Doing this will allow you to see what you need to pull from your firmware to start a tree. Or if the devices are close enough you might even be able to barrow some of the supported devices pre existing tree.
Hope this helps a little
Sent from my HTC Rezound using Tapatalk 2
Click to expand...
Click to collapse
Thanks
I did wonder did you get it to work for you..?
Could try my guide to give it a nother try here: http://forum.xda-developers.com/showthread.php?t=1935162
If its not too late:
http://forum.xda-developers.com/showthread.php?t=2010281
How to create device tree.

**htc desire x device source devs only**

ok guys this is the source that i can provide you for the desire x, this is a source tree i have built myself, along with the vendor folder, the reason im giving this to you guys is because i don't have the device and doing CM9 is just too much work for the little time i have right now
device tree
vendor tree
IF YOU USE THIS please give me a mention in your rom thread
no permissions required. and please don't pm me on how to use this...i cannot help everyone, so please DEVS ONLY, sorry guys
the vendor folder MAYBE incomplete
Also the README file is to be kept intact DO NOT MODIFY IT
Enjoy
-Lloir
I am also making a device tree.. but what should I put in
TARGET_BOARD_PLATFORM
??
I know the name of the SoC's but how to put "and" between them?
hell_lock said:
I am also making a device tree.. but what should I put in
TARGET_BOARD_PLATFORM
??
I know the name of the SoC's but how to put "and" between them?
Click to expand...
Click to collapse
msm7x27a
Six months.......
atis112 said:
msm7x27a
Click to expand...
Click to collapse
u sure? kernel config shows that we hav msm8625 and msm7x27a
hell_lock said:
u sure? kernel config shows that we hav msm8625 and msm7x27a
Click to expand...
Click to collapse
Yes, i'm sure. We need to use that.
https://www.codeaurora.org/gitweb/q...b12843b71102bfd3fb;hb=refs/heads/jb_rel_2.0.3

[Help]Mod Kernel Huawei asend Y210

I have a boot.img of Y210, buddy can help me mod Swap RAM for this kernel because Ram is very low (50-80mb) ! Thank!
Sorry if spam, i live in Viet Nam and I speak english is not good!
This boot.img
https://docs.google.com/file/d/0B62A9ZgwB-MxNkk3MXkwMjMxeUU/edit?usp=sharing
Swap support must be enabled/added in kernel source and need to compile new kernel. There's nothing much u can do with existing precompiled kernel.
an0nym0us_ said:
Swap support must be enabled/added in kernel source and need to compile new kernel. There's nothing much u can do with existing precompiled kernel.
Click to expand...
Click to collapse
Can you help me find source, i cant find because it not open source!
an0nym0us_ said:
Swap support must be enabled/added in kernel source and need to compile new kernel. There's nothing much u can do with existing precompiled kernel.
Click to expand...
Click to collapse
Excuse me sir. I guess this is source-kernel-2.6.38.6-U8815- Gingerbread on Huawei ascend Y200. But it same as Huawei ascend Y210 and we stuck at edit to suitable Y210. So please help we, and you can invite someone can help our trouble. Thanks a lot !
Here is link source kernel :
Code:
huaweidevice.com/worldwide/downloadCenter.do?method=toDownloadFile&flay=software&softid=NDU5NTk=
magapapa said:
Excuse me sir. I guess this is source-kernel-2.6.38.6-U8815- Gingerbread on Huawei ascend Y200. But it same as Huawei ascend Y210 and we stuck at edit to suitable Y210. So please help we, and you can invite someone can help our trouble. Thanks a lot !
Here is link source kernel :
Code:
huaweidevice.com/worldwide/downloadCenter.do?method=toDownloadFile&flay=software&softid=NDU5NTk=
Click to expand...
Click to collapse
Ae gocmobile đây mà
To Cry To Cry
Buddy kindly grant me access to the file boot.img.
my gmail is [email protected]
You can see at link http://gocmobile.net/threads/334113/
Sent from my V8404 jellybean using xda app-developers app

[Request] CWM for Acer Iconia B1

Hi, I need fast replies...
Some tutorial or some thread directly to make requests on CWM for Devices that not have?
Well need CWM for make more Roms for this device... install to old mode *Root Explorer* is waste of time
sebasrock156 said:
Hi, I need fast replies...
Some tutorial or some thread directly to make requests on CWM for Devices that not have?
Well need CWM for make more Roms for this device... install to old mode *Root Explorer* is waste of time
Click to expand...
Click to collapse
Unfortunately the Acer Iconia B1-A71 has a locked bootloader and as a result you sadly can't flash a custom recovery on the tablet without bricking it. You can however root the device, if you would like to root your tablet I would recommend taking a look at this tool here.
shimp208 said:
Unfortunately the Acer Iconia B1-A71 has a locked bootloader and as a result you sadly can't flash a custom recovery on the tablet without bricking it. You can however root the device, if you would like to root your tablet I would recommend taking a look at this tool here.
Click to expand...
Click to collapse
Great help..!! :sarcasm: Tell me something I do not know, please .. I need a prudent helps, I have access to the kernel *which is a point in my favor*
The point is that you like working with the kernel to create CWM
sebasrock156 said:
Great help..!! :sarcasm: Tell me something I do not know, please .. I need a prudent helps, I have access to the kernel *which is a point in my favor*
The point is that you like working with the kernel to create CWM
Click to expand...
Click to collapse
Unfortunately integrating Clockworkmod into a kernel is currently outside the scope of my skill-set, however I would be willing to try and look at the kernel source code if you would be willing to provide me with the link to it .
shimp208 said:
Unfortunately integrating Clockworkmod into a kernel is currently outside the scope of my skill-set, however I would be willing to try and look at the kernel source code if you would be willing to provide me with the link to it .
Click to expand...
Click to collapse
Well... would be helpful... well you have given me great news
I will attached you the Kernel :3
sebasrock156 said:
Well... would be helpful... well you have given me great news
I will attached you the Kernel :3
Click to expand...
Click to collapse
Do you have the actual kernel source code out of curiosity? Additionally, the boot.img you provided doesn't unpack correctly is produces an error that it's not in the correct format. If you can provide me with the actual kernel source code I will see what I can do with that :good:.
shimp208 said:
Do you have the actual kernel source code out of curiosity? Additionally, the boot.img you provided doesn't unpack correctly is produces an error that it's not in the correct format. If you can provide me with the actual kernel source code I will see what I can do with that :good:.
Click to expand...
Click to collapse
If you mean with source code to its version is 3.4.0... a new version of kernels for JB
sebasrock156 said:
If you mean with source code to its version is 3.4.0... a new version of kernels for JB
Click to expand...
Click to collapse
What I meant was do you have the actual source code for the kernel that I can download and compile. For example this is what I am refering to what I mean by kernel source code, a .zip file or similar that contains the kernel source code that you can them compile.
On the official site of acer is a file in zip format, with kernel source code.it will help, is for iconia b1-a71
Sent from my B1-A71 using xda app-developers app
vali stan said:
On the official site of acer is a file in zip format, with kernel source code.it will help, is for iconia b1-a71
Sent from my B1-A71 using xda app-developers app
Click to expand...
Click to collapse
Post the link guy
And thx for the information
Grettings

Porting MIUI 8 from Nexus 5

Hi to all. I created a porting of MIUI 8 coming from Nexus 5 for d802. It remains only in bootanimation and got bootloop... Can anyone help me?
Here are the logs: https://drive.google.com/open?id=0B2CDSAt5MIakTTlOc3Nic2R6aDg
From which base are you creating 7 or 6?
shaneel1491 said:
From which base are you creating 7 or 6?
Click to expand...
Click to collapse
I'm porting miui 8 with cm13 based kernel with some modifies
Maybe it's having to do with nexus 5 modules, where some are not the same as G2, and maybe that is causing problems?
Don't we need specific binaries and blobs for our device?
shaneel1491 said:
Maybe it's having to do with nexus 5 modules, where some are not the same as G2, and maybe that is causing problems?
Don't we need specific binaries and blobs for our device?
Click to expand...
Click to collapse
I used at least all were kernel, i putted only somethig of n5... What i can do now? Must i do some sources? I don't know what i can do.
matteo0026 said:
I used at least all were kernel, i putted only somethig of n5... What i can do now? Must i do some sources? I don't know what i can do.
Click to expand...
Click to collapse
Maybe try following this and see, I haven't ever built a ROM, so I don't know what to do
http://forum.xda-developers.com/android/software/guide-build-port-miui-rom-to-device-t3250984
shaneel1491 said:
Maybe try following this and see, I haven't ever built a ROM, so I don't know what to do
http://forum.xda-developers.com/android/software/guide-build-port-miui-rom-to-device-t3250984
Click to expand...
Click to collapse
Yes, i'm the official manteiner of XOSP for this device! I can try to compile! Thank you so much!
Just remember this is aimed at miui 7 so point the source to your miui 8 code
Bro if I could also ask you a question, how do I go about building Android 7 for G2? Are there any good guides on the web, I don't even know where to start...
shaneel1491 said:
Just remember this is aimed at miui 7 so point the source to your miui 8 code
Bro if I could also ask you a question, how do I go about building Android 7 for G2? Are there any good guides on the web, I don't even know where to start...
Click to expand...
Click to collapse
I don't know... I tried to build cm14 and i got it, resolving a lot of building issues, but it work only wifi...
Anyway, i looked in the README MIUI patchrom's page, and i'm blocked at the command:
Code:
cp ../honor/makefile
i don't know what i must do... i tried to replace honor with d802 (name of my device folder) but terminal give me this error:
Code:
cp: missing destination file operand after '../d802/makefile'
Try 'cp --help' for more information.
[email protected]0-15ISK:~/patchrom/d802$
matteo0026 said:
I don't know... I tried to build cm14 and i got it, resolving a lot of building issues, but it work only wifi...
Anyway, i looked in the README MIUI patchrom's page, and i'm blocked at the command:
Code:
cp ../honor/makefile
i don't know what i must do... i tried to replace honor with d802 (name of my device folder) but terminal give me this error:
Code:
cp: missing destination file operand after '../d802/makefile'
Try 'cp --help' for more information.
[email protected]:~/patchrom/d802$
Click to expand...
Click to collapse
i looked through the readme and maybe you missed something
the readme says:
Code:
cp ../honor/makefile .
maybe you missed the .
according to the error message your cp command has no destination where to copy this file and the dot seems to be the destination in this case
Maybe I'm wrong
this is just an idea
Blumdum said:
i looked through the readme and maybe you missed something
the readme says:
Code:
cp ../honor/makefile .
maybe you missed the .
according to the error message your cp command has no destination where to copy this file and the dot seems to be the destination in this case
Maybe I'm wrong
this is just an idea
Click to expand...
Click to collapse
Very likely the solution, cause he didn't specify a location to copy to. Also is the directory you're working from named d802?
shaneel1491 said:
Very likely the solution, cause he didn't specify a location to copy to. Also is the directory you're working from named d802?
Click to expand...
Click to collapse
Yes... Anyway... I completed a fullota ROM and tried to flash... But bootloops. Here's the log
https://drive.google.com/open?id=0B2CDSAt5MIakTTlOc3Nic2R6aDg
(Read patchrom log)
I can say that you were wrong base rom. Because you're so complicated life, you have to fill the power command after boot animation. You were wrong some trivial step, you have to thunder back.
P.S It is an exceptional work, the finished project looks.
Sorry for my bad english
CHIRCA_ROBERT said:
I can say that you were wrong base rom. Because you're so complicated life, you have to fill the power command after boot animation. You were wrong some trivial step, you have to thunder back.
P.S It is an exceptional work, the finished project looks.
Sorry for my bad english
Click to expand...
Click to collapse
Why wrong base ROM? Which ROM must i use? I would like to use aosp pure or cm13... Anyway, after resolved some problems, i got another logcat...
https://drive.google.com/file/d/0B2CDSAt5MIakVm1xeVJFZlVTbms/view?usp=drivesdk
Dev @LinhPhi9x94 from XdaVN team patch rom complete Miui v8 for lg g2 f320
thinhx2 said:
Dev @LinhPhi9x94 from XdaVN team patch rom complete Miui v8 for lg g2 f320
Click to expand...
Click to collapse
Ok thanks i contact him
Wait D802
Hey guys i found it https://github.com/linhphi9x94/MIUI8_Patchrom_LG-G2/blob/master/README.md how to build miui 8 for g2. İf any developer try it must see work. Because xdavn try it and working f320.
Emresaygin said:
Hey guys i found it https://github.com/linhphi9x94/MIUI8_Patchrom_LG-G2/blob/master/README.md how to build miui 8 for g2. İf any developer try it must see work. Because xdavn try it and working f320.
Click to expand...
Click to collapse
Oh wow sources yet patched for g2! Thank you so much i try this afternoon!!!
matteo0026 said:
Oh wow sources yet patched for g2! Thank you so much i try this afternoon!!!
Click to expand...
Click to collapse
İf you know build rom i am ready to test for d802 bro. This source for f320

Categories

Resources