hi I'm a beginner.
I want to compile a kernel HTC Tattoo for Android emulator(is part SDK).I got config.gz of working emulator, then renamed it .config and placed in the root of the kernel source. Then run make and received a message "RESTART CONFIG"
make was to reconfigure the kernel....
what I did wrong?
and the kernel compiled with-config tattoo does not start an emulator. Why?
PS. sorry for my bad english
azt59 said:
I got config.gz of working emulator, then renamed it .config and placed in the root of the kernel source.
Click to expand...
Click to collapse
Can you open that .config you got with a simple text editor and view it as plain text?
yes .config is a text document, I first unpacked the archive
lacks some parameters for compile
azt59 said:
yes .config is a text document, I first unpacked the archive
lacks some parameters for compile
Click to expand...
Click to collapse
Oh, you just wrote that you've renamed config.gz into .config
consider Chef Central for questions like this, that's one of it's purposes
ok thanks, if I decide the problem, I'll write here
admins plese move thread to Chef Central forum
Mod. edit: moved on OP request
Related
Can anybody compile mkbootimg for linux x86? Since the one's I found in other threads dosen't have --base support. And I don't understand how you compile the mkbootimg.h :/
Here you go.
Simple advice: do an android generic build so you'll get lots of usefull tools compiled.
Reagards
gecka said:
Here you go.
Simple advice: do an android generic build so you'll get lots of usefull tools compiled.
Reagards
Click to expand...
Click to collapse
Thx, I want to do that but don't know how, new to linux and android development
Everything explained here:
http://source.android.com/download
gecka said:
Everything explained here:
http://source.android.com/download
Click to expand...
Click to collapse
Thx, I know that one, but not how to compile the code :/
behnaam said:
Thx, I know that one, but not how to compile the code :/
Click to expand...
Click to collapse
Well it is explained....
Building the code
To build the files, run make from within your working directory:
$ cd ~/mydroid
$ make
Click to expand...
Click to collapse
Just start following the steps and tell me if you have a problem.
How could i compile mkbootimg?
Download AOSP
. build/env_setup.sh (Make sure your SHELL is bash(Or at least not zsh)
make mkbootimg
Or
make mkbootimg mkbootfs fastboot adb
(If you have to do a full build you can but for few tools might as well not).
I now this thread is a bit old, but there may be some people able to solve my problem here..
unrandomsam said:
Download AOSP
. build/env_setup.sh (Make sure your SHELL is bash(Or at least not zsh)
make mkbootimg
Or
make mkbootimg mkbootfs fastboot adb
(If you have to do a full build you can but for few tools might as well not).
Click to expand...
Click to collapse
That works indeed! And I am on OS X with MacPorts. Thanks guys!
Now… I needed to compile a different mkbootimg, the one that makes use of md5, for the bcm21553 CPU family. I had the full directory with the Android.mk and the .c file. I solved removing the mkbooting directory from the AOSP and putting this new one instead.
Isn't there any other way? I hoped it was just a matter of writing make in the new module/tool directory after setting the environment but such isn't the case.
And another thing: what the heck are the .mk files?? Are they specific to the Android SDK? I can't find anything in Internet.
Can someone post good guide for editing files in boot.img. I know how to unpackk, repack and compile, but don't know how to edit. In guides that I find they say "edit all you want" or something like that, but don't say HOW.
Sent from my Folio 100 using Tapatalk
?
Just open the files of the unpacked ramdisk (for example init.rc) with the editor you prefer and edit it...
Or replace the kernel file and repack it..
You don't understand me. How to make or edit files inside kernel?
You have to recompile it...
There is no other way i know...
Get the source from here
https://github.com/tsh/folio100
Install a cross-compiler (for example CodeSourcery)
start your folio with a kernel you like and get a working config (/proc/config.gz) and copy int into the kernel directory
gunzip it and then
make CROSS_COMPILE=arm-none-linux-eabi- ARCH=arm -j20
I dont know the name of the cross-compiler files.. Maybe they are a little bit different.
-j20 defines how many parallel compiling threads you like to have...
After that you'll have your compiled kernel @ /arch/arm/boot/zImage
And before compiling you are able to make some changes on the kernel..
But not on an compiled kernel..
Thank's!!!
Sent from my GT-I5700 using Tapatalk
Jon2555 said:
Can someone post good guide for editing files in boot.img. I know how to unpackk, repack and compile, but don't know how to edit. In guides that I find they say "edit all you want" or something like that, but don't say HOW.
Sent from my Folio 100 using Tapatalk
Click to expand...
Click to collapse
Here is my small Howto - unpack, edit, repack boot.img under Ubuntu with all scripts and compiled tools needed
http://forum.xda-developers.com/showthread.php?t=915808
MAJOR NOOB ALERT!!!
Hello. Working on the theory that less is more, I'll get on with the questions...
1. I am trying to edit the .bash_profile file and I can't do it. Please help!
2. The reason I am trying to use the kitchen is to work on the excellent SFM 1.1 ROM for the wildfire. Can the kitchen be used this way, or can I try to port the SFM 1.2 from the Salsa?
I asked my mum why I was so special, but she didn't know...
builtonRock said:
MAJOR NOOB ALERT!!!
Hello. Working on the theory that less is more, I'll get on with the questions...
1. I am trying to edit the .bash_profile file and I can't do it. Please help!
2. The reason I am trying to use the kitchen is to work on the excellent SFM 1.1 ROM for the wildfire. Can the kitchen be used this way, or can I try to port the SFM 1.2 from the Salsa?
I asked my mum why I was so special, but she didn't know...
Click to expand...
Click to collapse
Read post #3 of the kitchen thread.
Sent from my HTC Hero making C.R.E.A.M.
I have read the third post of the kitchen
I can FIND the file, but when I open it in Wordpad and add the line on the end, cygwin still can't find my JAVA.
Sorry if this is a really noob mistake...
I did find the porting answer though
Thanks!!
Sent from my HTC Wildfire using XDA App
I have made a VERY noob mistake...
I have just realised that editing a file that is used in a LINEX enviroment in Wordpad isn't very clever - no wonder it's not working
Could somebody tell me how I can remove the Wordpad file association and how I need to edit it so that Cygwin can recognise it?
Sorry for my stupidity...
builtonRock said:
I have made a VERY noob mistake...
I have just realised that editing a file that is used in a LINEX enviroment in Wordpad isn't very clever - no wonder it's not working
Could somebody tell me how I can remove the Wordpad file association and how I need to edit it so that Cygwin can recognise it?
Sorry for my stupidity...
Click to expand...
Click to collapse
Just right click and click "Open With..."
Sent from my Ultima Weapon© using XDA App
I have installed gvim, edited the bash_profile file, and tried to run the kitchen, but then it says the clear command is not found.
I know this is covered in the FAQ's, but I have been over the installation, and am 99% sure I have done nothing wrong in installing cygwin. I followed the readme and the picture guide, and am getting very frustrated...
I only want to get the kitchen working...
(after that I'll go and hassle the guys in the wildfire forum!)
Just delete your entire cygwin dir and re install and all should be good.
By the sounds of it you did exactly the same as I did. Mines all sorted now after a re install.
Sent from my MB860 using XDA App
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
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!!!