Im having a hell of a time figuring out how to configure git in Ubuntu 11.10. I am very new to the Linux environment and was wondering if someone could help me get my foot in the door and at least get the my work environment set up properly and the proper source code downloaded. Im really only interested in modifying the kernel so if you can help me set up and understand whats going on Id be greatly appreciative.
Thanks...
oh dude dont even get me started on linux ive literally just spent the past 2hrs trying to get flash to work on kubuntu i got so pissed i uninstalled and am switching back to ubu as we speak lol. ubuntu should have an irc help channel i know xubuntu did when i was playing around with it.
i just looked and there channel is #ubuntu
huzza!!!!!!!!!!!!!!!!! freakin a i finally got flash to work properly on kde shell i completly uninsulated kubuntu installed ubuntu downloaded flash from adobe not from the software center then put it in mozilla/ plugins folder and reinstalled kde on ubuntus terminal and all my settings stook. sorry for the rambling but yall have no idea of how stoked i am im probably going to make kde my default desktop now lol
I'm just having trouble getting ADB to recognize my phone. Also it seems Samsung didn't include a config file for the kernel to add things like overclocking etc.. Unless its hidden somewhere else?
Sent from my SCH-I400 using XDA
jaizero said:
I'm just having trouble getting ADB to recognize my phone. Also it seems Samsung didn't include a config file for the kernel to add things like overclocking etc.. Unless its hidden somewhere else?
Sent from my SCH-I400 using XDA
Click to expand...
Click to collapse
U building from source?
Sent from my SCH-I400 using xda premium
I have the source just not too sure how to utilize it in Ubuntu, like I said I'm learning as I go. I tried doing an adb pull from my phone for the config file in windows and I get the error "file or directory does not exist" however it did work when I tried it with my Acer A500...
Is there a config.gz included in the source somewhere? I've been reading about something called defconfig but there are numerous references to that within the source.
If I can find that file I feel like building our own kernel would be infinitely easier... Maybe I'm too optimistic..
i actually recocmend installing linux mint first a lot more stuff works out of the box with it but if you like unity just search for ubuntu in the software manager and u can install it over mint.
Just as an FYI, you are likely not going to be able to use Ubuntu 11.10 to build the Continuum kernel. You'll need to use either 10.04 (LTS) or 10.10 to get the proper build tools. Also, getting git to work should be as simple as installing it. I believe it is under git-core or similar. You should have a look at the page for setting up a build environment for AOSP on what to install and such, as it is a pretty good starting point.
Minty Fresh
I tried installing Mint over Unity with no success. All of the other desktop environments work, but not Mint. I wonders why.
u need to install the mint live cd first then one youve got everything update install ubuntu u can search for it in the package manage or get it in terminal
i believe the command is sudo apt-get ubuntu-desktop
Bierce22 said:
u need to install the mint live cd first then one youve got everything update install ubuntu u can search for it in the package manage or get it in terminal
i believe the command is sudo apt-get ubuntu-desktop
Click to expand...
Click to collapse
Will this erase windows like you too? Jk
Sent from my SCH-I400 using xda premium
10chr
Bierce22 said:
10chr
Click to expand...
Click to collapse
Cheer up chuck. I was just pwaying
Sent from my SCH-I400 using xda premium
Found this today. Came out today lol
http://rootzwiki.com/_/articles/the...or-setting-up-adb-and-transferring-files-r592
Sent from my SCH-I400 using xda premium
Anyone know what defconfig the Continuum uses? There are about 100 different defconfigs within the kernel source. Does the Continuum have a codename or something?
P.S. everything seems to be working fine in Ubuntu 11.10.
jaizero said:
Anyone know what defconfig the Continuum uses? There are about 100 different defconfigs within the kernel source. Does the Continuum have a codename or something?
P.S. everything seems to be working fine in Ubuntu 11.10.
Click to expand...
Click to collapse
Not sure., you might check the fascinate forums. I'd bet its the same.
Sent from my SCH-I400 using Tapatalk 2
jaizero said:
Anyone know what defconfig the Continuum uses? There are about 100 different defconfigs within the kernel source. Does the Continuum have a codename or something?
P.S. everything seems to be working fine in Ubuntu 11.10.
Click to expand...
Click to collapse
It should be listed in the readme with the source, but it should be something like "garnett_defconfig"
Related
hello,
as you probably know ubuntu has bin able to run on the nexus one and evo 4g i have spoken to the dev of both the ''mods'' and he has informed me that if someone can make a kernel for the droid x with loop devices enabled and u follow hes video its possible that ubuntu can run on the droid x.he's exact words are ''You will need a new kernel image with loop devices enabled I think. I haven't tried it on Droid X yet but it should be possible with that new kernel. You should ask someone on XDA to compile a new kernel with loop device support, someone will do it.'' and im hopping someone here can do it and we can all run ubuntu on out droid x's i would do it myself if i had any idea of what to do lol.
thank you for your help and good luck to all ubuntu loving droid x users.
You can't flash a new kernel but you can probably build loop as a module.
As for ubuntu I had sucess in running Debian from my second SD partition in a chroot environment. I installed with debootsrap and have apt nmap wifi, etc. I just need to compile a compatible kernel (for ubuntu not android) for a full install.
Sent from my DROIDX using XDA App
As of right now we have no way to boot a custom kernel even if one were to be created.
yea and how long can it take for u to compile one for ubuntu and once you have compiled one for ubuntu will it actually work for booting ubuntu even in ui mode as i can use terminal but it would be more eye-candy with the UI
drew630 said:
You can't flash a new kernel but you can probably build loop as a module.
As for ubuntu I had sucess in running Debian from my second SD partition in a chroot environment. I installed with debootsrap and have apt nmap wifi, etc. I just need to compile a compatible kernel (for ubuntu not android) for a full install.
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
yea and how long can it take for u to compile one for ubuntu and once you have compiled one for ubuntu will it actually work for booting ubuntu even in ui mode as i can use terminal but it would be more eye-candy with the UI
Sorry I lost this thread. Yes if you install x you can have some eye candy. Still working on the kernel. Ill post back soon.
Sent from my DROIDX using XDA App
drew630 said:
Sorry I lost this thread. Yes if you install x you can have some eye candy. Still working on the kernel. Ill post back soon.
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
sounds good man , so will this be like a rom i install and that enables me to install ubuntu?
Gotta love open source!
can u tell me how to get debian on my droid x?
Has any progress been made on creating a loop device module and getting ubuntu( or any distro) running on our droidx?
I'm willing to test.
I have been busy lately an unable to post a mini guide on getting this done. Just had my first child!!
In anycase I haven't tried making a loop module, I am waiting for the 2.2 kernel source. But I did make a second ext3 partition on my sd card and used debootstrap to install debian. It is currently only a chroot environment but I can use apt to install pacakgrs over wifi.
Hopefully in a few days I will have some time to post a step by step. If you want to try you can do some research on debootstrapp. I used a card reader to format the sd and use debootstrap to install ubuntu or debian.
Sent from my DROIDX using XDA App
This has me obsessed now... lol
Sent from my DROIDX using XDA App
I use Ubuntu on my other PC, if I could use it on my phone I would die of happiness!
Would the same method run on d2?
Sent from my DROID2 using XDA App
I know this is an old thread already but was curious about this last night and stumbled across it. I am doing a lot more at work with Linux servers and desktop work at home also and would love to do this this just to see how it works.
Nit sure if you are still interested in this but here ya go pal!
http://androlinux.com/
Im kind of new to this. Iv'e created some apps succesfully in Eclipse and stuff like that.
But, I like to start with ROM development. I have no idea where to start! Would be really nice if someone could tell me how to start with creating/porting a ROM.
Iv'e read that you need to have Linux Ubuntu, is that true?
So Iv'e almost installed Ubuntu now on a Virtual machine, downloading HTC Android Kitchen. Am I doing right?
EDIT: Märkte att det nog fungerar till Windows. <- Also noticed that I wrote that on Swedish! :S (I wrote: Noticed that it propably works with Windows.)
As far as I know I don't think you need Ubuntu, but you've probably figured that out by now It should work for windows and mac too, although it looks like ubuntu is the only linux-based distribution it works on..
And I'm curious, How is the rom-making going?
I wouldn't recommend flashing roms using a virtual machine... a screwup in the vm might make your test phone a 600 dollar paperweight... check out wubi... actual partitioned ubuntu installer that when unstalled defaults back to the windows bootloader...so you don't have to screw with lilo or grub...oh also leaves windows as the default OS...so you don't accidentally boot into ubuntu after every reboot
Sent from my ADR6300 using Tapatalk
Ubuntu is perfect for ROM development/porting. A virtual machine is perfectly fine to dev on. But you will need at least a 12gb virtual disk though. These sites should get you up and running
http://source.android.com/
http://developer.android.com/index.html
Sent from Conical .07
I already got everything set up on windows.
HTC android ROM kitchen, SDK manager and eclipse.
I dont really know where to start. Ive just created a simple ROM using the shipped RUU, added like apps2sd, root and that stuff. Also edited like status-bar background in framework-res.apk and stuff like that.
Id like to go in abit more deeper, whats next?
Use the first link. Go to porting. Then go to "get source" on the left side.
You need to get the source. Then compile.
Sent from Conical .07
linuxmotion said:
Use the first link. Go to porting. Then go to "get source" on the left side.
You need to get the source. Then compile.
Sent from Conical .07
Click to expand...
Click to collapse
There is no "get source"? Link?
My bad. Its under source : -)). That site should be a good place to start
Sent from Conical .07
but dont have the time to set up a kitchen every time you wanna cook http://forum.xda-developers.com/showthread.php?t=1254909
Update.zip creator for windows - removed
building apps guide - http://forum.xda-developers.com/showthread.php?t=1244196
Interseting. Good find. I will check this out when I am well rested. Thanks.
Sent from my SPH-D700 using xda premium
EDIT...double post..
Sent from my SPH-D700 using xda premium
So with the Update.zip creator, would this be used for custom ROM's or only updating the firmware?
JohnCorleone said:
Interseting. Good find. I will check this out when I am well rested. Thanks.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Does this mean you're gonna get your hands dirty JC??? Lol ;-)
Sent from my SPH-D700 using XDA App
Has anyone tried the top link? I would love to have a dual booting machine. It says it is possible but they haven't had any luck with dual booting with Ubuntu. I like to try with windows and this seems to be the most user friendly and update to program.
dtm_stretch said:
Has anyone tried the top link? I would love to have a dual booting machine. It says it is possible but they haven't had any luck with dual booting with Ubuntu. I like to try with windows and this seems to be the most user friendly and update to program.
Click to expand...
Click to collapse
I am just seeing this so haven't tried anything out but wanted to say I am running Windows 7 x64 and Ubuntu now. I have done it with other versions in the past.
Sent from my SPH-D700 using xda premium
crawrj said:
I am just seeing this so haven't tried anything out but wanted to say I am running Windows 7 x64 and Ubuntu now. I have done it with other versions in the past.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Which method did you use to do that?
dtm_stretch said:
Which method did you use to do that?
Click to expand...
Click to collapse
If you have windows installed you just boot to the ubuntu cd and go through the setup. It will give you the option to resize the drive to make a partition for Ubuntu. Pick a size and go through the install. Once it is done when you boot you will have the option to boot from Windows or Ubuntu. If I remember right it will default to Ubuntu if you don't make a choice within the defined time. You can edit Grub to change that. You can do this to change it to windows if you prefer http://www.hackourlife.com/change-default-boot-order-ubuntu-10-04-lucid/.
crawrj said:
If you have windows installed you just boot to the ubuntu cd and go through the setup. It will give you the option to resize the drive to make a partition for Ubuntu. Pick a size and go through the install. Once it is done when you boot you will have the option to boot from Windows or Ubuntu. If I remember right it will default to Ubuntu if you don't make a choice within the defined time. You can edit Grub to change that. You can do this to change it to windows if you prefer http://www.hackourlife.com/change-default-boot-order-ubuntu-10-04-lucid/.
Click to expand...
Click to collapse
You can also go to the Ubuntu website and you can download the windows installer that lets you dualboot if you didnt have a cd burner (or if its broke like mine lol) or if you dont wanna wait for the cd to be shipped.
ConfusingCurve said:
So with the Update.zip creator, would this be used for custom ROM's or only updating the firmware?
Click to expand...
Click to collapse
Yeah you can use it for custom roms because it lets you edit the updater script. You could use it for themes, apps, scripts, kernels, or pretty much anything you wanna flash
Dual booting win7 and ubuntu on my netbook. Simple as pie.
Sent from my SPH-D700 using XDA App
dualcor3 said:
You can also go to the Ubuntu website and you can download the windows installer that lets you dualboot if you didnt have a cd burner (or if its broke like mine lol) or if you dont wanna wait for the cd to be shipped.
Yeah you can use it for custom roms because it lets you edit the updater script. You could use it for themes, apps, scripts, kernels, or pretty much anything you wanna flash
Click to expand...
Click to collapse
Or you could edit the updater-script . But really, if your gonna get your hands dirty and make flashable zips you should look at someone elses first. Or, even write your own from scratch.
sent from my uncyanogen modded epic 4g. with the key skips.
ugothakd said:
Or you could edit the updater-script . But really, if your gonna get your hands dirty and make flashable zips you should look at someone elses first. Or, even write your own from scratch.
sent from my uncyanogen modded epic 4g. with the key skips.
Click to expand...
Click to collapse
Yeah I splice roms together pretty often. Its not that hard but hey, why not just use a tool to make it simpler =)
dualcor3 said:
Yeah I splice roms together pretty often. Its not that hard but hey, why not just use a tool to make it simpler =)
Click to expand...
Click to collapse
But, then you don't know what's actually going on...I think it'd be better to know how to make it from scratch and not know how to use a tool, then it'd be to know how to use the tool and not how to make it from scratch.
[edit] after looking at that it seemed kinda rude...but i didnt mean it that way lol
Hey all, I guess if your here its because you want to build your own kernel from the HTC GB Kernel source for the HTC Droid Incredible. So that's what we're gonna do.
First things first. I have to send out a huge thanks to a few guys that helped me out along the way.
jdkoreclipse - Your the best man. Thanks for getting me compiling.
wdfowty - Always good on the code.
ohheyitslou - Standing by while a blabbered on with stupid questions.
conap - The original god of kernels.
Koush - Thanks for the anykernel updater.
Note: The method I descripe below is what worked for me to get this thing to build and boot. Additional packages may be required. Ie; JDK, Android SDK, Python, git and the 32bit libs (if your on a x64 machine). I do assume that you have them and have your computer set up for development. I also assume that you are fully aware that any damage caused to your devices from YOU following this guide is held at your own responsibility.
Click to expand...
Click to collapse
First things first, lets make sure you are on a linux distro. At the time of this writing, I was using Ubuntu 11.10 x64. Note: 64x is highly suggested. My computer is a dual core amd machine with 4GB of ram. I have a 250GB HHD.
Next lets download some things that we will need for your kernel.
The kernel source of course:
DROID Incredible by HTC (Verizon) – GB MR - 2.6.35 kernel source code
This is the correct size and MD5:
88.8 MB (93,175,808 bytes) 67c01623ff73415a99e5f8cd1d8ef11a
You will also want the CM Toolchain. This is what compiles your kernel.
Open a terminal window and type:
Code:
git clone git://github.com/CyanogenMod/android_prebuilt.git prebuilt
And finally, the anykernel_updater.zip for packaging and flashing your kernel: anykernel_updater.zip
Have these things downloaded? Great! Lets continue.
Next we need to create a new build directory to build your kernel in. For this tut, we will make this in your Home dir.
Open a terminal window and type:
Code:
cd ~
mkdir android
cd android
mkdir kernel
Easy huh?
Next grab your HTC Droid Incredible kernel source archive and just open it with archive manager. We don't need to do any untarring here.
You'll want to drag that 395.2MB folder inside called 'incrediblec-2.6.35-gb-mr' to that kernel directory you created.
Next, grab the CM toolchain archive and open it the same way. Yup just drag that folder thats inside there out and put right in your 'android' folder.
So lets review real quick before we continue:
Inside your Home directory you now have a folder called: android
Inside that android folder you have two folders. One called: kernel and the other called: android_prebuilt or prebuilt.
Inside the kernel folder you have your kernel source folder: incrediblec-2.6.35-gb-mr
Is this correct? Good.
Now, lets open a new terminal window and move to your kernel source folder:
Code:
cd '/home/yourusername/android/kernel/incrediblec-2.6.35-gb-mr'
Now we will compile the source. Note: This is a basic kernel source compiling guide. Our focus is to simply compile the source. Nothing more.
In the terminal window type:
Code:
make incrediblec_defconfig
make -j4 ARCH=arm CROSS_COMPILE=/home/yourusername/android_prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
Note I used j4. This is because I am using a dual core box to develop on. I think now days most boxes are usually dual core or quad core?
Your kernel should now be compiling. This process could run average between 5min-1hr. My laptop (which is beast) did it in about 2 minutes. But then again I'm running a full install of 'buntu x64 with everything updated and ready to rock.
Anyways after the compiler finishes building it will tell you where to locate your kernel and wifi driver. Yes the wifi driver is included!
The kernel should be at: /home/yourusername/android/kernel/incrediblec-2.6.35-gb-mr/arch/arm/boot/ for those that don't know it is called 'zimage'. Just drag that out to your Desktop.
Now go grab your wifi driver. Its located at: /home/yourusername/android/kernel/incrediblec-2.6.35-gb-mr/drivers/net/wireless/bcm4329_204/ It will be called bcm4329.ko. Again drag that out to your desktop.
Now you can close everything thats open. Grab that anykernel_flasher.zip you downloaded earlier and open it up with archive manager. Don't extract it, just open it.
Navigate to system/lib/module/ and drag your bcm4329.ko right into it.
Next back up all the way to the root of the anykernel_flasher.zip and then open the kernel folder. Yup just drag and drop your zimage right in there. Close the archive manager window.
CONGRATS!!! You just compiled your first kernel from source!
Now you can rename the zip to whatever is easiest for you to remember. Common practice says the date and time should be in the name. Like mine from today is called: 2.6.35.13-stang-kernel-1830-110111.zip.
Now go test your kernel. Just put it on your sd card and flash it through recovery. The anykernel_updater.zip will handle the wiping for you so you shouldn't have to worry about wiping boot, dalvik-cache or cache. You can still wipe those things if you would like.
Once the flash is complete, just hit reboot device and wait for your phone to boot up. It took mine about 5 minutes to fully boot up.
Well, I hope yall enjoyed this guide. I wanted to keep it simple. I am not a kernel god or anything but let me tell ya, I went through a lot to try to learn how to do this. So if you run into any trouble, I'll try to help you out if I can.
Have fun guys!
now what..........
Nice. Good job.
Sent from my ADR6300 using Tapatalk
Way to help us out with a good easy to follow guide stang thanks
sent from my sexy Slcd Droid Incredible. not dinc or D-inc that just sounds stupid.
tiny4579 said:
Nice. Good job.
Sent from my ADR6300 using Tapatalk
Click to expand...
Click to collapse
Thanks Tiny. Now we need to get some more customs going
evilstewie23 said:
Way to help us out with a good easy to follow guide stang thanks
sent from my sexy Slcd Droid Incredible. not dinc or D-inc that just sounds stupid.
Click to expand...
Click to collapse
Thanks stew, You know how much this means to me.
Beast Mode! Very nice guide sir, I'm sure some of the more serious members will get hella use out of this. I have been (sort of) following your progress on twitter, so glad to see that you finally got it figured out. Nice work.
00McD00 said:
Beast Mode! Very nice guide sir, I'm sure some of the more serious members will get hella use out of this. I have been (sort of) following your progress on twitter, so glad to see that you finally got it figured out. Nice work.
Click to expand...
Click to collapse
Thanks Mc. I'm just happy to have learned this much atleast. I'm even more happy to share what I've learned. That's the important part.
wildstang83 said:
Thanks Mc. I'm just happy to have learned this much atleast. I'm even more happy to share what I've learned. That's the important part.
Click to expand...
Click to collapse
Definitely, I have always felt the same way. Sharing is caring lol
That's the stuff, Wildstang. Glad you're back.
Sent from my Prime_XL Incredible via Tapatalk
very nice. Im going to give a this a go and see what i can some up with. does this require a sense rom or a aosp rom?
dirtsky said:
very nice. Im going to give a this a go and see what i can some up with. does this require a sense rom or a aosp rom?
Click to expand...
Click to collapse
This compiles a sense kernel.
tcberg2010 said:
This compiles a sense kernel.
Click to expand...
Click to collapse
Well Sh*t. Oh well ill still give it a go I guess.
tcberg2010 said:
This compiles a sense kernel.
Click to expand...
Click to collapse
these instructions will work fine for aosp. You just have to download that kernel source instead. The compile process is the same.
Sent from my ADR6300 using Tapatalk
Ill have to get the kernel source and see what I can do.
Sent from my Incredibly awesome Droid Incredible.
Thanks for adding this howto, wildstang -
I really appreciate it. I just for the first time in a year+ went from my old rooted inc to this home-brewed self-compiled (I added cifs & tun built into the kernel) and installed it. I'd just tried the insensitive ROM as well and this helped things quite a lot due to cifs & tun. I also set the clock to a not-very-aggressive 1075000 which works fine on my inc.
Much appreciated and good guide.
edit: I forgot to mention that in general and here as well, you can 'brand' your kernel so you're sure you've really installed it and it is running on your phone by checking the firmware revs in about-phone. To do that, just edit Makefile and I think it is called Extra (under Version) which is as it is set to .13, so I set that in my case to .13-cifs-tun-cust, and it shows on my phone. It is useful in case you forget to zip the file up or something.
Hashi
Ok XDA im fairly new to this but have a decent background with software and such. And i am looking for a bit of assistance on cooking/modding my own rom. and just wondering if you guys have any pointer? Thank you!
A few questions, mostly for others to help:
Do you have some sort of Linux distribution installed on your computer, such as Ubuntu? If you are, do you feel comfortable with terminal commands?
If not, do you run Windows or OS X? Would you be willing to install Ubuntu or something similar through alongside, or us Wubi if you would like to use it inside your current OS?
Are you planning on compiling AOSP, port from other phones, or base it on stock?
Are you going to be theming and/or optimizing?
Do you have a 32- or 64- bit-capable computer?
I'll post some links in a minute to what I use
Sent from my PC36100 using xda premium
i think paul at modaco may even have a kitchen available. that makes things easy.
lithid has a compiler for android <3.0, i believe. use your powers of google-fu
tropicalbrit said:
A few questions, mostly for others to help:
Do you have some sort of Linux distribution installed on your computer, such as Ubuntu? If you are, do you feel comfortable with terminal commands?
If not, do you run Windows or OS X? Would you be willing to install Ubuntu or something similar through alongside, or us Wubi if you would like to use it inside your current OS?
Are you planning on compiling AOSP, port from other phones, or base it on stock?
Are you going to be theming and/or optimizing?
Do you have a 32- or 64- bit-capable computer?
I'll post some links in a minute to what I use
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
I have a basic knowedge of commands. really basic. i run windows 7 on a 64 bit. and as for what i want to do? well im looking to learn it all. ive mostly been tinkering with sense roms. ive been using Team Nocturnals Shooter for E4G as my daily. good place to start?
Need Java JDK first: here
Definitely need ADB and Fastboot, great YouTube video by QBKing here
7-Zip and/or WinRAR. I have both, but I prefer 7-Zip. Get the 64-bit beta version here. WinRAR here too, get the 64-bit
UOT Kitchen for some theming here
Gimp, for theming
Notepad++ for editing text
Of course, a kitchen: Custom ROM Creator Studios here . Has many tools that you will need, including APK Tool and deodexing tools.
Great for Sense, "What You Know about Rosie?" And more by Tommy here
Chef Central for Android
so i followed the adb video to a t and it isnt workin?