i am building my own kernel. now i need help :( - Android Q&A, Help & Troubleshooting

hi xda community,
i am trying to make my own kernel for xperia sp. i am following http://forum.xda-developers.com/showthread.php?t=1748297
i am stuck at step 5, part B.
When i type make '/home/jk-chaos/android/kernel/sony/205/kernel/arch/arm/configs/viskan_huashan_defconfig'
or make viskan_huashan_defconfig
this comes up
"make: Nothing to be done for `/home/jk-chaos/android/kernel/sony/205/kernel/arch/arm/configs/viskan_huashan_defconfig'."
"make: *** No rule to make target `viskan_huashan_defconfig'. Stop."
i am just compiling stock kernel, no other additions.
using ubuntu 14.04
please guide me to further get this working
afterwards i will add features to this kernel which i need. ofcourse the features u people create and provide. ALL WITH YOUR HELP.
Will be Appreciated,
J.K.

Your best bet is to ask in the thread that you linked to...unfortunately your links are broken...

a tool for you to Edit current Boot images.
http://forum.xda-developers.com/general/general/tool-abime-android-boot-image-editor-t2847426

worked fine afterwards when i corrected kernel source path. :good:
thanks to @pec0ra for pointing that out
Hi,
It's nice to see new people making kernels
I think this error happens when the file isn't found.
What you should check :
That the file exists (double check that you entered the right name)
That the file has correct permission (user jk-chaos should be able to read it)
That you execute the command from the right directory : You must be in your kernel root folder when you "make". In your terminal it must look like :
Code:
~/android/kernel/sony/205/kernel$
Tell me if it isn't any of this and I'll look into it more deeply.
Regards,
pec0ra
Click to expand...
Click to collapse
mods plz close the thread

Related

[Q] How do I make updater-script file?

I really want to create a rom and I'm doing everything right with the Android Kitchen but after I flash my rom I get status 6/7 errors in CWM.
Can someone explain me please how I do updater-script file that don't provide this errors?
Ok but, you need to tell us what errors are you getting...
RoberGalarga said:
Ok but, you need to tell us what errors are you getting...
Click to expand...
Click to collapse
Status 6 and sometimes status 7.
Huh? There aren't any other errors, like "no such file bla,bla,bla"?
There is an updater-script FAQ in Android Software General Section. Post your updater-script there, they will surely help you.
I would have given you a link but I am on mobile now

CVE-2013-2094 exploit ported to android

symantec.com/connect/blogs/linux-kernel-exploit-ported-android
Can anyone patch the 3.0.x sources? there is a module that fix this arighi.blogspot.com.es/2013/05/linux-perfevents-root-exploit-cve-2013.html . When 3.4 sources go out whould need fix also...
Sorry for my poor english.
Salud.
agises said:
symantec.com/connect/blogs/linux-kernel-exploit-ported-android
Can anyone patch the 3.0.x sources? there is a module that fix this arighi.blogspot.com.es/2013/05/linux-perfevents-root-exploit-cve-2013.html . When 3.4 sources go out whould need fix also...
Sorry for my poor english.
Salud.
Click to expand...
Click to collapse
If any dev here have NDK configured (my damn Internet is to slow to download Eclipse C++ extension) and is willing to spare some time on compiling the exploit, here is the code : https://github.com/hiikezoe/break_setresuid
Cheers
wolf849 said:
If any dev here have NDK configured (my damn Internet is to slow to download Eclipse C++ extension) and is willing to spare some time on compiling the exploit, here is the code : https://github.com/hiikezoe/break_setresuid
Cheers
Click to expand...
Click to collapse
no, this is not... it's only the basic exploit....
here is the complete one... (same dev BTW)
https://github.com/hiikezoe/android_run_root_shell
stormtrooper_mx said:
no, this is not... it's only the basic exploit....
here is the complete one... (same dev BTW)
https://github.com/hiikezoe/android_run_root_shell
Click to expand...
Click to collapse
Thanks, you are right. I was so tired yesterday that I misinterpreted the branches.
But I am afraid that it will need some basic modification, as it seem to be written for Xperia.
wolf849 said:
Thanks, you are right. I was so tired yesterday that I misinterpreted the branches.
But I am afraid that it will need some basic modification, as it seem to be written for Xperia.
Click to expand...
Click to collapse
as far as i have seen, it has some addresses for some phones, but, if the phone doesn't match those, it tries to autodetect the correct address for perf_events proc.
i tried to compile it, but i get some errors that i can't fix..... yet.... (i'm not a prof dev)
if someone can help, please do it... i want root on my unrootable phone: NEC MEDIAS 101T, android 2.3.5 (with perf_events enabled) kernel 2.6.35.7-perf
error at building the code
wolf849 said:
Thanks, you are right. I was so tired yesterday that I misinterpreted the branches.
But I am afraid that it will need some basic modification, as it seem to be written for Xperia.
Click to expand...
Click to collapse
Hi,
I wanted to test this exploit on my Xperia phone.
I went through the whole progress, but now when I wanted to 'ndk-build' the file, I got an error and have no clue what I did wrong.
Here's what I did:
Code:
[B]/android_run_root_shell#[/B] ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk
make: /home/<username>/build/core/build-local.mk: No such file or directory
make: *** No rule to make target `/home/<username>/build/core/build-local.mk'. Stop.
<username> is my username on the computer ofcourse . I run with privileged rights (root).
Any idea how to fix this? I have no dev skills AT ALL, so I just follow tutorial if I want to try something.
thanx in advance!

[Q][Noob] How to build an .apk (Keyguard) from source ?

Hi everyone,
i've downloaded keyguard source from AOSB Github (https://github.com/AOSB/android_frameworks_base/tree/kitkat/packages/Keyguard), and after made all changes i need, i would like to compile/build it as an .apk, but i don't know how to do that
Someone can help me please ?
I'm using Windows.
I will be grateful to people who give me answers
Android Studio ☺
worf_1977 said:
Android Studio ☺
Click to expand...
Click to collapse
Thank you for your help.
But i when i try to build it, i've git an error and it says:
Error:FAILURE: Build failed with an exception.
* What went wrong:
Task 'assemble' not found in root project 'Keyguard'.
* Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Click to expand...
Click to collapse
Any idea ? :/
EDIT: I solved it; but after make project, i don't know where is my apk :X
EDIT²: When i try to build it with eclipse, i've got 1271 errors
Bump, any other ideas ? :/
It should be placed into your $OUT folder, whatever would it be...

Q..... can anyone help to built a rom without pc ???

Can any body in XDA help me to find a way to make ROM without PC . ?
Like signing zip, script, update binary. etc.​
rrajj said:
Can any body in XDA help me to find a way to make ROM without PC . ?
Like signing zip, script, update binary. etc.​
Click to expand...
Click to collapse
I'm no expert but I'm pretty sure that's impossible. What are you going to run a compiler on?
I m not making from the source . only porting and signeing how . lot of sign app like ( zip me ) etc r not working.
Apktool for Android contains a lot of useful tools for signing zip files etc. etc. and also whole java framework:
https://github.com/pqy330/apktool (download links from baidu.com below).
Also it IS absolutely possible to even compile whole rom or kernel on android device. C4Droid app (paid, search @gplay) seem to provide whole environment for compiling c/c++ and it IS working. The second thing is how long would it take....
esgie said:
Apktool for Android contains a lot of useful tools for signing zip files etc. etc. and also whole java framework:
https://github.com/pqy330/apktool (download links from baidu.com below).
Also it IS absolutely possible to even compile whole rom or kernel on android device. C4Droid app (paid, search @gplay) seem to provide whole environment for compiling c/c++ and it IS working. The second thing is how long would it take....
Click to expand...
Click to collapse
Thanks bro...
rrajj said:
I m not making from the source . only porting and signeing how . lot of sign app like ( zip me ) etc r not working.
Click to expand...
Click to collapse
Someone who dont have pc can able to sign the zips by using this guide
Works on 5.0=+ https://forum.xda-developers.com/android/help/app-sign-apk-zip-android-t3835975/post77483475

Android kernel build error

I get this error when I run make command while compiling Android kernel. Please help me.
kurtulus145 said:
I get this error when I run make command while compiling Android kernel. Please help me.
Click to expand...
Click to collapse
Send a text file containing the entire log right from command execution or .sh file execution. Also which phone and processor are u developing on?
KingRaheel said:
Send a text file containing the entire log right from command execution or .sh file execution. Also which phone and processor are u developing on?
Click to expand...
Click to collapse
I upload on attachments.
Device: Asus Memopad 7 ME176CX
Processor: Intel Atom Z3745
kurtulus145 said:
I upload on attachments.
Device: Asus Memopad 7 ME176CX
Processor: Intel Atom Z3745
Click to expand...
Click to collapse
Did u try compiling again using a fresh copy of source? What exact changes did u make? Did u use menuconfig command? Is your source code on github? You should tell all this when u need help else we may not be able to help u out efficiently.
KingRaheel said:
Did u try compiling again using a fresh copy of source? What exact changes did u make? Did u use menuconfig command? Is your source code on github? You should tell all this when u need help else we may not be able to help u out efficiently.
Click to expand...
Click to collapse
No other source file is available. I have not made any changes to the source code. I have edited some things with menuconfig command. No source code in Github. I downloaded it from Asus's site.
kurtulus145 said:
No other source file is available. I have not made any changes to the source code. I have edited some things with menuconfig command. No source code in Github. I downloaded it from Asus's site.
Click to expand...
Click to collapse
What i meant by fresh copy is the downloaded kernel files from asus website which has no alterations done by youto it. Try compiling it without doing any changes using menuconfig or any other command and see if u get the zImage. If u do then use menuconfig and apply one change at a time,compile and see if it causes issues. From your log its clear that some change has caused instability to most of the kernel modules. Kernel building is not easy.
If u want attention of other developers then upload your source code on github and post link here. Can't assure attention but it may help:good:
KingRaheel said:
What i meant by fresh copy is the downloaded kernel files from asus website which has no alterations done by youto it. Try compiling it without doing any changes using menuconfig or any other command and see if u get the zImage. If u do then use menuconfig and apply one change at a time,compile and see if it causes issues. From your log its clear that some change has caused instability to most of the kernel modules. Kernel building is not easy.
If u want attention of other developers then upload your source code on github and post link here. Can't assure attention but it may help:good:
Click to expand...
Click to collapse
I tried the make command without making any changes with the menuconfig command. I got the same error again. I upload source code on GitHub.
I uploaded github.
Link:https://github.com/kurtulus145/k013_kernel
Help!!!

Categories

Resources