Can anyone either give a step-by-step guide to building a kernel from source on Ubuntu. or give a link to a good guide. I have searched the web but I cant find a straightforward guide.
I think I have done most things but when I try to 'make' I get the error 'make: arm-eabi-gcc: Command not found'
Im guessing I dont have the correct gcc toolchain but I dont know how to get/install it.
From the flykernel post:
erasmux said:
Kernel Sources
My sources with all my updates and changes are found on github:
http://github.com/erasmux/hero-2.6.29-flykernel
Use hero_defconfig for the regular version and hero-bfs_defconfig for the BFS version.
See the wiki for more information about building the kernel. Another great resource about kernel building is the cyanogen wiki - do note that currently the CM kernel will not work on the hero.
Please feel free to contact me regarding my sources and kernel development.
Click to expand...
Click to collapse
The cyanogen wiki is excellent.
You just need Android NDK!
Hi,
you just need Android NDK and add proper dir to environment PATH variable to fix your problem...
If you should have any problems, here is a step by step guide for you:
1) Get latest Android NDK from: developer.android.com/sdk/ndk/index.html
(Ubuntu: android-ndk-r5-linux-x86.tar.bz2)
2) Extract it wherever you wish (tar -xvjf android-ndk-r5-linux-x86.tar.bz2)
3) Set some variables typing:
export CROSS_COMPILE=arm-eabi-
export PATH=$PATH:/path/to/android-ndk-r5/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/
And U R ready to compile your kernel
For your first compilation I recommend use erasmux's flykernel!
Just follow the steps from this short wiki github.com/erasmux/hero-2.6.29-flykernel/wiki
Have a fast compilation dude
f_padia said:
Can anyone either give a step-by-step guide to building a kernel from source on Ubuntu. or give a link to a good guide. I have searched the web but I cant find a straightforward guide.
I think I have done most things but when I try to 'make' I get the error 'make: arm-eabi-gcc: Command not found'
Im guessing I dont have the correct gcc toolchain but I dont know how to get/install it.
Click to expand...
Click to collapse
first download the prebuilt binaries from android source:
run this command in bash:
Code:
git clone git://android.git.kernel.org/prebuilt
then download the kernel source, for example Behnaam old kernel:
Code:
mkdir android
cd android
git clone https://github.com/behnaam/HeRo-2.6.29-GoDmOdE.git
then follow these steps:
https://github.com/behnaam/HeRo-2.6.29-GoDmOdE/wiki/
yes, that easy
Does this code link closely to any programming languages like Java? Visual Basic? I've been learning C++ and would like to get into the developing scence
Calico5 said:
Does this code link closely to any programming languages like Java? Visual Basic? I've been learning C++ and would like to get into the developing scence
Click to expand...
Click to collapse
There is some Java of course but I'm pretty sure there's also some C and C++
Calico5 said:
Does this code link closely to any programming languages like Java? Visual Basic? I've been learning C++ and would like to get into the developing scence
Click to expand...
Click to collapse
The kernel code is pure C.
The android code is mostly Java and C++, maybe also some c.
As far as I know no visual basic, thank god
erasmux said:
The kernel code is pure C.
The android code is mostly Java and C++, maybe also some c.
As far as I know no visual basic, thank god
Click to expand...
Click to collapse
No man that would be great! That's the only coding language besides Windows DOS I speak :'(
erasmux said:
The kernel code is pure C.
The android code is mostly Java and C++, maybe also some c.
As far as I know no visual basic, thank god
Click to expand...
Click to collapse
Thanks for the info! I think i'll finish off learning C++, before having a look at Java... then maybe one day i can become an android developer
C0mpu13rFr34k said:
No man that would be great! That's the only coding language besides Windows DOS I speak :'(
Click to expand...
Click to collapse
same here! VB is just soo easy albeit rubbish in pure programming talk
Well this link is little old but should work to, anyway the basics
http://forum.androidcentral.com/htc...how-build-your-own-kernel-package-source.html
elelinux said:
Well this link is little old but should work to, anyway the basics
http://forum.androidcentral.com/htc...how-build-your-own-kernel-package-source.html
Click to expand...
Click to collapse
thanks! I did finally come across this page after much searching. its an excellent guide and very easy to follow... now on to the compiling...
I have started adding some info for developers to my flykernel wiki. I have done some minor updates to the page about building the kernel, including adding the link brought by elelinux, big thanks to him
I have also added a small git tutorial which can be very helpful to developers new to git.
Related
Im trying to get my wan into android dev, but i dont like eclipse..at all...lol.
So ive been using NetBeans instead, i much perfer it. I was wondering if anyone has any experience with the ndk and or with netbeans and the ndk. Im just looking for basically a guide/walkthrough for getting started.
Any info would be greatly appreciated .
I'm not a fan of eclipse either.
http://gerry.ws/2009/01/1074/how-to-setup-netbeans-for-android-development.html
Hope this helps!
thanks for the reply but that link is just for setting up the SDK not the NDK. While it is perfect fo the sdk its not the ndk .
for everyone who stiil requre I wrote a post to make it working
Hi everyone, i am graduating in T.I here in Brasil.
I know C / C++ Programming, Java (Standard and Android Programming aswell).
I was wondering,what should i need to start helping all great developers like Kyrillos,Rudolf,Apolo and their teams to develop those custom roms.
Also,how hard it is ?
Sorry if this is at the wrong forum,but i hope i can get some answers before someone closes it
Thanks in advance !
marcelloLins said:
Sorry if this is at the wrong forum,but i hope i can get some answers before someone closes it
Thanks in advance !
Click to expand...
Click to collapse
Lol.
Post in general section bro. You don t need extensive C/C++ or Java unless you developing kernel or editing, making new frameworks and apks.
Post in general section. No one will close it.
marcelloLins said:
Hi everyone, i am graduating in T.I here in Brasil.
I know C / C++ Programming, Java (Standard and Android Programming aswell).
I was wondering,what should i need to start helping all great developers like Kyrillos,Rudolf,Apolo and their teams to develop those custom roms.
Also,how hard it is ?
Sorry if this is at the wrong forum,but i hope i can get some answers before someone closes it
Thanks in advance !
Click to expand...
Click to collapse
Hey y dont u do a search man...
There's already a thread on tutorial for custom rom. Video by rudolf895. Its clearly explained.
dhirend_6d said:
Lol.
Post in general section bro. You don t need extensive C/C++ or Java unless you developing kernel or editing, making new frameworks and apks.
Post in general section. No one will close it.
Click to expand...
Click to collapse
Hm, what exactly makes those custom ROMS faster than the stock ones ?
My bet is that the little ( and lower level , like assembly , C ) tweaks that make them faster.
Am i Wrong ? I really dont know,this is my only shot to be honest
Thanks again !
actually custom roms are nothing else then stock with a litle photoshop, some added/removed apks and repacked. they dont get realy much faster than a stock rom except if they contain a custom kernel, where the full potential of customization lies. with your knowledge you should concentrate on kernel development, there is a thread here describing all needed to get your own kernel up and running, have a look at the fugumod and the g3mod kernel thread to see what goals are already accieved and find your own customizations to make the g3 better. also u could pick up on the graphics driver project posted here somewhere, iirc nobody took the plunge yet to do this, and youd be the hero for many of us if u get it runing...
kernel development:
http://forum.xda-developers.com/showthread.php?t=1186409
Graphics driver stuff:
http://forum.xda-developers.com/showthread.php?t=1104222
How?
what should i use?
THANK YOU!
you have to know some coding in linux-based ecosystems
Even I want to know it!
deathnotice01 said:
you have to know some coding in linux-based ecosystems
Click to expand...
Click to collapse
Like the ones that they use to make kernels?
nope...it's actually very easy. basicly you only need to know the linux shell command and some other basic sfuff of algorythm and logic. code in kernel are written on C. that's a different stuff with the one used on linux shell.
Hi Developers, or anyone just interested in Sailfish,
I figured that before the mods create a Sailfish App Development thread, we could post our successes, guides and tips here. I find Sailfish a wonderful platform to develop on so far
For starters, here's the beginner's guide to Sailfish app development:
What you need:
- Anything capable of Running code, the only OS the Sailfish IDE isn't compatible with is OS/2 and DOS
- The sailfish IDE, https://sailfishos.org/develop.html
- Virtualbox (just have it installed, the IDE will do its thing)
- Some programming knowledge is necessary, if you don't know QML, don't be too scared to dive in and learn things on the go, that's what I'm doing, you'll find Sailfish Silica (Sailfish "API") very simple and logical
Click to expand...
Click to collapse
If there's anything that needs to be added, tell me. Please share any ideas you come up with and especially any good beginner guides.
Thank you for this thread. Eager to see good native apps.
so i download virtualbox, then the IDE and just start coding? i know a little of qml...
djvita said:
so i download virtualbox, then the IDE and just start coding? i know a little of qml...
Click to expand...
Click to collapse
Yep, it's really simple and everything sets up automatically, you just fire up the IDE and code.
I have been running about, trying to create a basic custom ROM for my device.
Have tried most of the methods mentioned in forums. Nothing seems to work.
Anybody out here who can guide me through it?
Also, explaining customising the Android system.
Thanking everyone in advance.
arbajmessiali said:
I have been running about, trying to create a basic custom ROM for my device.
Have tried most of the methods mentioned in forums. Nothing seems to work.
Anybody out here who can guide me through it?
Also, explaining customising the Android system.
Thanking everyone in advance.
Click to expand...
Click to collapse
Create??????
Really don't get the "thanks in advance" thing!!
akshmau5 said:
Create??????
Really don't get the "thanks in advance" thing!!
Click to expand...
Click to collapse
Yes. Create.
I mean building or compiling.
arbajmessiali said:
Yes. Create.
I mean building or compiling.
Click to expand...
Click to collapse
If you are an up and coming developer (I am assuming) then Github or the best place to start would be from lineage os website and their guide "how to build for your device".
And ofc you would need all possible help from our lead device developers like Shivam Kumar Jha and Sagar for the device trees, kernel source codes and what not!! I have no clue.
The base is already compiled from AOSP by the respective main contributors rather head developers. You have to take the source code and tweak it/compile it (ofc not easy) for our device.
You asked the question to explain android customisation in general!!! Well, if you don't know that, then unless you are on NZT-48 or a really genius programmer, I doubt you can do it. (Also great if you prove me wrong here). Don't mean to discourage you.
Wouldn't we do it all for ourselves??!!!!!
For Android customization - the basics would be to root and go tweaking, fiddling and modding around on the stock rom first. Lots of amazing stuff already. (Why to reinvent the wheel!)
Then depends on your requirements.
Good luck.
akshmau5 said:
If you are an up and coming developer (I am assuming) then Github or the best place to start would be from lineage os website and their guide "how to build for your device".
And ofc you would need all possible help from our lead device developers like Shivam Kumar Jha and Sagar for the device trees, kernel source codes and what not!! I have no clue.
The base is already compiled from AOSP by the respective main contributors rather head developers. You have to take the source code and tweak it/compile it (ofc not easy) for our device.
You asked the question to explain android customisation in general!!! Well, if you don't know that, then unless you are on NZT-48 or a really genius programmer, I doubt you can do it. (Also great if you prove me wrong here). Don't mean to discourage you.
Wouldn't we do it all for ourselves??!!!!!
For Android customization - the basics would be to root and go tweaking, fiddling and modding around on the stock rom first. Lots of amazing stuff already. (Why to reinvent the wheel!)
Then depends on your requirements.
Good luck.
Click to expand...
Click to collapse
A real thank you.
Have already started the learning process.
Hope to come up with a ROM soon.
arbajmessiali said:
A real thank you.
Have already started the learning process.
Hope to come up with a ROM soon.
Click to expand...
Click to collapse
Oh that's great mate!
Are you in computer science?
Or what programming languages do you know?
akshmau5 said:
Oh that's great mate!
Are you in computer science?
Or what programming languages do you know?
Click to expand...
Click to collapse
I am pursuing Mechanical Engineering.
But I do know Java and web development.
arbajmessiali said:
I am pursuing Mechanical Engineering.
But I do know Java and web development.
Click to expand...
Click to collapse
Good stuff!!
Attaboy:good:
I am trying the same thing myself using the lineageOS 15.1 branch.
I am using the directions provided in the lineageOS Wiki for the X00TD device (can't post a link because i am a newbie).
The instructions are clear enough but I am having specific problems with the brunch command - specific errors come up for missing files.
Is this the right place to start posting specific technical questions?