5

So i am new to 'Build android from source'. I recently built a custom ROM (with no changes in AOSP). After syncing the repo, (and downloading hammerhead binaries) I used the following commands:

   $. build/envsetup.sh
   $lunch
   $aosp_hammerhead-userdebug
   $export OUT_DIR_COMMON_BASE=/media/entertainment/out
   $make -j4 otapackage

It built after taking a significantly long time. The process stopped twice giving ......Error 1. But then I increased the linux-swap space. And everything went OK.

finally, I was able to get the flashable zip in out/target/product/hammerhead/aosp_hammerhead-ota-eng.gaurav-ubuntu.zip (174.7 mb)

I installed this ROM on my nexus 5 using multiROM manager.

Problem:

when I boot this ROM, the phone gets stuck on Google Logo, i.e. even the boot screen doesnt show up.

Can anybody guide me, what can be the possible problem ?

gaurav414u
  • 812
  • 13
  • 22

2 Answers2

5

I fixed my case by deploying vendor binaries into the android source tree from google page

It is quite easy, You download the zip files and run them in the source tree root. They append additional software being embedded int the final img files of the built system. Rebuild after this takes about 2 mins, because all android build system does is repackage the imgs .

foo
  • 574
  • 8
  • 13
  • 2
    You could and You probably should clean the output previously generated though. This can be done using make clobber – foo Jul 02 '15 at 03:07
4

So finally, got the problem. Actually I pulled the android4.4.2_r2 branch and was using google's preview binaries.

Then I pulled the android-4.4.4_r2 branch and used Google Binaries for android 4.4.4_r2. Everything went fine.

gaurav414u
  • 812
  • 13
  • 22
  • Hello @gaurav414u is this the binary you used? https://dl.google.com/dl/android/aosp/hammerhead-ktu84q-factory-ae475293.tgz – Ankur Bhatia Apr 29 '16 at 08:40
  • I dont remember now Ankur. – gaurav414u Apr 29 '16 at 08:41
  • No problem Gaurav. Thanks for the reply. I tried flashing my Nexus 5. But it is getting stuck at the Google Logo. Its more than 10 mins now. I am able to take an adb shell access though. Did you also face this? – Ankur Bhatia Apr 29 '16 at 10:07
  • @AnkurBhatia, I downloaded the binaries from here: https://developers.google.com/android/nexus/drivers#hammerheadktu84p You can match whether these are the same which you are using. – gaurav414u Apr 29 '16 at 10:19
  • Thanks @gaurav. I also downloaded the correct ones it seems. Dont know why it is getting stuck at the google Logo. Probably will wait for another 10-15 mins. – Ankur Bhatia Apr 29 '16 at 10:23