Jump to content


Photo

Android AOSP

- - - - -

  • Please log in to reply
34 replies to this topic

#1
sebbo90

sebbo90

    Regular

  • Members
  • PipPip
  • 63 posts
Before I get told I know that ril isn't working so technically ahving an aosp isn't much use, but this is more for teaching purposes so that I can undertsand it better asnd then eventually create my own roms. I ahve set up the android sdk and eclipse and these all work fine (this is for android 2.2.1). I am however finding it difficult to then create a rom for the blade from this. Could someone point me in the direction of guide which is easily tranferable to the blade or perhpas give me some pointers. I am ok on linux and can do some java, but I am trying to teach myself from stracth about android.

thanks

  • 0

#2
Quu

Quu

    Enthusiast

  • Members
  • PipPipPip
  • 165 posts
  • Devices:ZTE Blade
agh. HAVE NOT AHVEN.

  • 0

#3
fonix232

fonix232

    Addict

  • Members
  • PipPipPipPipPip
  • 942 posts
  • Location:Hungary, Debrecen
  • Devices:ZTE Blade [TFT 512RAM]
  • Twitter:@fonix232
From the SDK you can't create a ROM. It is for SOFTWARE (application) development!
You need to download and compile the Android Source code yourself (for that you need Ubuntu x64, read the Android Source page for details).
But, you need a lot of work to build everything right. First of all, setting up the device tree isn't the easiest thing to do.

  • 0
If you like my work, invite me for a drink or two!

Also, take a look at my Blade-dedicated site too! fonix232.co.cc

#4
sebbo90

sebbo90

    Regular

  • Members
  • PipPip
  • 63 posts

From the SDK you can't create a ROM. It is for SOFTWARE (application) development!
You need to download and compile the Android Source code yourself (for that you need Ubuntu x64, read the Android Source page for details).
But, you need a lot of work to build everything right. First of all, setting up the device tree isn't the easiest thing to do.



Thanks, i'm looking into it now

  • 0

#5
FelixL

FelixL

    Enthusiast

  • Members
  • PipPipPip
  • 196 posts
  • Location:Germany
  • Devices:San Francisco, Moto Defy
Regarding x64:
Afaik this info is not right. I've built Froyo myself on 32bit x86 Ubuntu 10.10, and yes, it did throw an error like this before it worked, but with a little googling I've found that the failure was something else (something wrong with java I think, but I don't remember it).

Also, the source-page (witch contains a lot(!) of outdated information) states that x64 is experimental and x86 is to be prefered:
http://source.androi...e/download.html


Just wanted to say it's possible on 32 bit, but I think 64 bit should be preferred if you can use it, although the site tells you something else.

Edited by FelixL, 23 January 2011 - 03:41 PM.

  • 0

#6
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@t0mm13b

Regarding x64:
Afaik this info is not right. I've built Froyo myself on 32bit x86 Ubuntu 10.10, and yes, it did throw an error like this before it worked, but with a little googling I've found that the failure was something else (something wrong with java I think, but I don't remember it).

Also, the source-page (witch contains a lot(!) of outdated information) states that x64 is experimental and x86 is to be prefered:
http://source.androi...e/download.html
Just wanted to say it's possible on 32 bit, but I think 64 bit should be preferred if you can use it, although the site tells you something else.


Gingerbread requires a x64bit dev system to build....

I do recall seeing a patch somewhere on google's code site where the patch changes the make files to use 32bit java.....

  • 0
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#7
fonix232

fonix232

    Addict

  • Members
  • PipPipPipPipPip
  • 942 posts
  • Location:Hungary, Debrecen
  • Devices:ZTE Blade [TFT 512RAM]
  • Twitter:@fonix232

Regarding x64:
Afaik this info is not right. I've built Froyo myself on 32bit x86 Ubuntu 10.10, and yes, it did throw an error like this before it worked, but with a little googling I've found that the failure was something else (something wrong with java I think, but I don't remember it).

Also, the source-page (witch contains a lot(!) of outdated information) states that x64 is experimental and x86 is to be prefered:
http://source.androi...e/download.html
Just wanted to say it's possible on 32 bit, but I think 64 bit should be preferred if you can use it, although the site tells you something else.


As it's said, the latest branch (gingerbread) what is checked out by default needs an x64 build system. The Android Source site is so outdated it refers to Android 1.5 infos!
I suggest to take a look at the CyanogenMod wiki, it tells you everything you need :lol:

  • 0
If you like my work, invite me for a drink or two!

Also, take a look at my Blade-dedicated site too! fonix232.co.cc

#8
FelixL

FelixL

    Enthusiast

  • Members
  • PipPipPip
  • 196 posts
  • Location:Germany
  • Devices:San Francisco, Moto Defy
Okay, it's possible that you really need x64 for Gingerbread. I thought it could be the same thing as with Froyo, and yes, it could have been something with some makefile that needed to be changed. My brain is just like a sponge today. Full off holes :lol:

  • 0

#9
fonix232

fonix232

    Addict

  • Members
  • PipPipPipPipPip
  • 942 posts
  • Location:Hungary, Debrecen
  • Devices:ZTE Blade [TFT 512RAM]
  • Twitter:@fonix232

Okay, it's possible that you really need x64 for Gingerbread. I thought it could be the same thing as with Froyo, and yes, it could have been something with some makefile that needed to be changed. My brain is just like a sponge today. Full off holes :)


But, a sponge can fast suck in everything :lol:

  • 0
If you like my work, invite me for a drink or two!

Also, take a look at my Blade-dedicated site too! fonix232.co.cc

#10
FelixL

FelixL

    Enthusiast

  • Members
  • PipPipPip
  • 196 posts
  • Location:Germany
  • Devices:San Francisco, Moto Defy

But, a sponge can fast suck in everything :lol:



Yeah, and if it's under pressure, it will lose everything as fast as it was sucked up. I've got exams next week, I hope the pressure doesn't get to high :)

  • 0

#11
Phoenix Silver

Phoenix Silver

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,839 posts
  • Gender:Female
  • Location:Strasbourg.
  • Devices:ZTE Blade Orange France
  • Twitter:@phoenixbjp
is compile the android kernel same way than compile a linux kernel ?

  • 0
Si le corps est mortel, l’âme elle est éternelle.

#12
t0mm13b

t0mm13b

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,784 posts
  • Gender:Male
  • Location:Ireland
  • Devices:GT-S8500,Zte Blade,SE ST15i
  • Twitter:@t0mm13b

is compile the android kernel same way than compile a linux kernel ?



Have a look at this thread - it might help you! :lol:

  • 0
try{ not_laugh; }catch{ FAIL; }finally{ laugh; }

#13
Phoenix Silver

Phoenix Silver

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 1,839 posts
  • Gender:Female
  • Location:Strasbourg.
  • Devices:ZTE Blade Orange France
  • Twitter:@phoenixbjp
ho haven't seen this post
all answers are here
thank you :lol:

  • 0
Si le corps est mortel, l’âme elle est éternelle.

#14
Tom G

Tom G

    Addict

  • Members
  • PipPipPipPipPip
  • 742 posts
  • Gender:Male
  • Location:Melbourne Australia
  • Devices:2X Blade U8220 V9 Vega X10
I would recommend starting from codeaurora source. The AOSP source will not boot without modifications (or a modified kernel). You should be able to get a codeaurora rom booting without any modifications, you just need the right device config.

  • 0

#15
rjm2k

rjm2k

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,096 posts

I would recommend starting from codeaurora source. The AOSP source will not boot without modifications (or a modified kernel). You should be able to get a codeaurora rom booting without any modifications, you just need the right device config.



Is aurora easier to get going than CM? I assumed that because CM supports the Legend, which uses the same chipset as the blade that it would also be a good place to start?

  • 0

#16
hecatae

hecatae

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 3,235 posts
  • Gender:Male
  • Location:northampton
  • Devices:Samsung i9305
  • Twitter:@meritez

Is aurora easier to get going than CM? I assumed that because CM supports the Legend, which uses the same chipset as the blade that it would also be a good place to start?


codeaurora have a gingerbread release available for MSM7627

  • 0

#17
kallt_kaffe

kallt_kaffe

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 1,185 posts
  • Gender:Male
  • Devices:Nexus 4 + 10 + Asus Fonepad

I would recommend starting from codeaurora source. The AOSP source will not boot without modifications (or a modified kernel). You should be able to get a codeaurora rom booting without any modifications, you just need the right device config.


Tell me more. I just failed booting an rather generic AOSP 2.2 that I built. Can't even get into adb to see what's happening. I didn't expect it to work but I hoped for it to at least get into some kind of upside down mode showing something.

  • 0
Blog - App

#18
Tom G

Tom G

    Addict

  • Members
  • PipPipPipPipPip
  • 742 posts
  • Gender:Male
  • Location:Melbourne Australia
  • Devices:2X Blade U8220 V9 Vega X10

Tell me more. I just failed booting an rather generic AOSP 2.2 that I built. Can't even get into adb to see what's happening. I didn't expect it to work but I hoped for it to at least get into some kind of upside down mode showing something.

codeaurora has support for the 2G VMSPLIT used in the blade kernel. There is an option to set for 2G split in the device config.

With AOSP you need to either use a kernel with a 3G vmsplit (and lose half the ram) or add 2G support. The same for cyanogenmod.

For adb to work you will need /sbin/usbconfig for the kernel version you are using (and include it in the init script).

  • 0

#19
kallt_kaffe

kallt_kaffe

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 1,185 posts
  • Gender:Male
  • Devices:Nexus 4 + 10 + Asus Fonepad

codeaurora has support for the 2G VMSPLIT used in the blade kernel. There is an option to set for 2G split in the device config.

With AOSP you need to either use a kernel with a 3G vmsplit (and lose half the ram) or add 2G support. The same for cyanogenmod.

For adb to work you will need /sbin/usbconfig for the kernel version you are using (and include it in the init script).


Seems like a good idea to switch to Code Aurora then. I'm using the JJ boot.img so I should have the /sbin/usbconfig in place but I didn't add the USB device id line in build.prop so I suppose it might not work without it.

However with since I'm not using a kernel compiled with 3G vmsplit it's propably the main cause for it not to boot. Oh, well...

Btw, I haven't come that far yet but I suppose I will need to solve the 180 degree rotation issue when/if I get that far. How did you get around that problem? Did you modify PhoneWindowManager.java?

  • 0
Blog - App

#20
rjm2k

rjm2k

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,096 posts
..

Edited by rjm2k, 24 January 2011 - 04:32 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users