Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will not boot, eternal black screen #10

Open
dfreelan opened this issue Dec 24, 2012 · 23 comments
Open

Will not boot, eternal black screen #10

dfreelan opened this issue Dec 24, 2012 · 23 comments

Comments

@dfreelan
Copy link

When my phone boot i get "samsung galaxy SII" and all that, however after that it turns into a black screen and i have to pull out the battery
(no worries, i can use ODIN to flash rooted gingerbread)

My phone (of course) is sph-d710 and kernel EL29

I've been using this guide to place install the .zip, each time starting from a clean gingerbread root (from odin, no data, no nothing)

http://www.androidauthority.com/galaxy-s2-epic-4g-touch-sph-d710-cyanogenmod-9-cm9-65405/

i clear user data, then cache, then dalvik cache

I am able to put CM9 Beta1 on my phone using the above guide without issue.

To build, i used the instructions in the readme.

If I could just get help on to how to debug this, i would appreciate it.

here is my local_manifest.xml:
http://pastebin.com/6TwStttU

(you will notice "project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="ics" /" in the xml is missing, this is because i get a duplicate error, and a very very similar line is already in my manifest.xml)
project path="hardware/samsung" name="CyanogenMod/android_hardware_samsung" / this is the similar line
** another note, i am also trying to put gapps on there the same time i am putting the zip, as the guide above suggests i do
*** CWM 6.0 works, hell i can even put BETA1 on from it! however, my compiled source does not boot even when trying CWM 6.0

@dfreelan dfreelan mentioned this issue Dec 24, 2012
@dfreelan
Copy link
Author

mid troubloeshooting having issues with get-prebuilts, because
https://github.com/downloads/jackpal/Android-Terminal-Emulator
is 404

@thenameisnigel-old
Copy link
Contributor

Try pulling a boot image from the Beta 1 and putting it in your rom and flash.

@dfreelan
Copy link
Author

still in the process of trying that idea (and before i forget THANK YOU SO MUCH for helping me debug this, you've done a lot as it is)

meanwhile something interesting i noticed, jellybean came up when running the apply.sh:

HEAD is now at 3edcf52 u8500: add ST Ericsson audio configs
From https://github.com/CyanogenMod/android_system_core

  • branch jellybean -> FETCH_HEAD
    [auto f83dd49] init: Add "export_rc" command to export env from a specified file
    Author: David Ng [email protected]

@dfreelan
Copy link
Author

unfortunatly, that suggestion does not work, i pulled boot.img off of one, deleted the boot.img off mine, and pasted in the one from beta-1.

it refused to try and install it.
I should note all i did was unzip he beta1.zip and take boot.img off of it, i figured this is what we needed to do since googling got me no where otherwise

of of the frameworks are a very slightly different amount of bytes.... and my.zip is considerably smaller than the beta1.zip...
tried replacing random folders such as system/framework, all to no avail.

would it help if i posted the compile log? I've been looking through it myself.

One more note:
http://aosp.chris41g.org/chris41g_org/aosp/post/2012/07/09/How-To-Compile-CyanogenMod-9-from-Source.aspx
--- from here i cannot do this code:
cd ~/
wget https://github.com/flexiondotorg/oab-java6/raw/0.2.4/oab-java.sh -O oab-java.sh
chmod +x oab-java.sh
sudo ./oab-java.sh

because oab-java.sh require lib32-something-multiarch
is this critical to the project? because that multiarch problem is just about unsolvable... if it comes down to that i might just be screwed, tried everything on the ubuntu stack overflow

@thenameisnigel-old
Copy link
Contributor

Yeah, post the compile log on pastebin. It might give me some insight.

@dfreelan
Copy link
Author

Here's the compiler log:
http://pastebin.com/download.php?i=3KtgXzx7

recovery log: (note i dont usually do "fix permissions" i just wanted to see if that would work this time)
http://pastebin.com/PCXDADu3

d710 tools output--- why is there jellyben involved here? double checked your repo it's definitely in the ics repo
http://pastebin.com/ULsFAQJ8

I did more research on flahing the bot.img and have a better idea of what you meant. However, while i have fastboot on my computer, repooting into bootloader nor recovery allow me to connect using fastboot. adb has no problem in recovery mode, but will not work in the bootloader. and since the phone won't turn on... idk how i could possibly flash the boot.img. (i've been looking)

@thenameisnigel-old
Copy link
Contributor

Try repacking the boot.img into a boot.tar and flashing it into ODIN. The D710 doesn't use fastboot.

@thenameisnigel-old
Copy link
Contributor

Also try this in your working directory:

. build/envsetup.sh
make clobber
make clean
d710tools/apply.sh
vendor/get-prebuilts
. build/envsetup.sh
lunch

@dfreelan
Copy link
Author

EDIT: fixed paste, corrected the script
here's the result:
http://pastebin.com/F71qh60T
ir really stopped there... i didnt think is was supposed to... i figured lunch should have built? i'm gonna execute brunch right after posting this and post that

the phone wont boot into recovery after odin attempted to flash the boot.tar as bootloader (said it failed)

@thenameisnigel-old
Copy link
Contributor

After you run lunch, do a make -j2

Edit: How did you repack the boot image?

@dfreelan
Copy link
Author

i used tar command on boot.img (cvf) and saved as boot.tar

here's the results of make -j2, errored out, i think i fixed thi problem in the past with a repo sync
should i have inserted a repo sync somewhere in the script you gave me?
http://pastebin.com/306nTRqw

executing this now:
http://pastebin.com/8eNJUt5r
(just added a repo sync)

@dfreelan
Copy link
Author

EDIT: think i might have actually read the wrong logfile, retrying
EDIT: nope definitely the same
did repo sync, same thing i believe
http://pastebin.com/0wwDr8rG
i'll google that issue and see what comes up

Further edit:
so it looks like libump.so is in the proprietary! despite having that available in my local_manifest, they dont appear (at least when doing lunch make -j2 -- wouldnt brunch fail to compile if they werent there?)

vendor/samsung/galaxys2-common/proprietary/graphics/lib/libUMP.so exists, but it's not being copied to
system/lib/libUMP.so
what script is supposed to do that?

@dfreelan
Copy link
Author

i did boot.img wrong, it occured to me since you asked how i did it i probably did it incorrectly... However, when trying to extract files from boot.img every progran i find claims it is a broken file, used unyaffs and winimage

EDIT: found a guide specifically for boot.img repacking, i should have realized the boot would be a special img file!
in case for future people:
http://mobility.forumsee.com/a/m/s/p12-9400-044003--how-make-odin-flashable-tar-from-img.html

however, even after this i still error in odin, and the phone doesnt boot
http://pastebin.com/3BQrLp0H

perhaps there is a better way to repack boot.img? I'm googling my heart out !!

@dfreelan
Copy link
Author

i re-executed what you told me to do outside of a .sh, and i got a differnet result, here's the last bit of the make -j2

http://pastebin.com/RzzAkNPX

it should be noted i can only recreate that error after a fresh build, cannot run the script without first doing regular build, brunch, then doing this again

edit: yeah, i think i was building the emulator (full-eng?) when i got this error... so we should just ignore this post, i'll leave it here for now in case you already read it...
edit: i take it back, it's very difficult to reproduce this error.... going to try full-eng instead of userdebug, i think i may have done that last time
FINAL EDIT: AHH no matter wht i do i cannot reproduce this again, i always get the libump problem
http://pastebin.com/0wwDr8rG

@thenameisnigel-old
Copy link
Contributor

I'm lost as I removed my entire build directory, re-synced and everything and still got a full build.

@dfreelan
Copy link
Author

well this is justfrustrating and embarassing for me then.... i even tried syncing and doing CM10.... wubi is the death of me

@dfreelan
Copy link
Author

can you send me the .zip you get when you build? see if i can flash that on my phone and if i get the infinite black screen

also could we compare local_manifest?

i'll try redoing all this on a virtual machine instead of my linux partition (made with wubi) to see if that magically makes a difference

regardless, thank you for all the help!

@thenameisnigel-old
Copy link
Contributor

Try this, I updated the wiki:

https://github.com/EpicCM/d710tools/wiki

@dfreelan
Copy link
Author

i followed the instructions exactly on a fresh ubuntu 10.04 vm

Despite doing the local java repo step (i had to change the link to java6-oab.sh from 0.2.4 to 0.2.6 )
It says i'm missing java?

what should i install, normally i just installed the oracle-java6-jdk, should i still do that?

here's the error message on "lunch"

http://pastebin.com/Wq70uJ9N

@dfreelan
Copy link
Author

also, doing the setup in the read me compiles, however after installing the zip on my phone i get the infinite black screen after rebooting :-/

i'm beginning to think i'm doing the java install incorrectly?
oab-java.sh from 0.2.4 gives me a "build error" which appears to be fixed in 2.6, however, when i do -.2.6 it says i dont have java installed.... do in stall a separate java? or should the local java repo suffice on its own?
do you think i should bring this to the xda-developers forums?

@thenameisnigel-old
Copy link
Contributor

Either there or Android Central. I'm at AC more than XDA.

@dfreelan
Copy link
Author

it's all here:
http://forum.xda-developers.com/newreply.php?do=postreply&t=2074295

of course i couldnt post outside links so i had to post the whole thing on pastebin.... and try to bypass the filter...
i also couldnt put it in the developer forums... because 10 post rule

also, here's the full text

hello android-central

I am having problems building from source, I've been trying to get his to work for about a week or so with the help from the lovely people here:
#10
However, I'm about to explain everything that happened there, so you shouldnt have to read that.

WHAT'S HAPPENING:
The problem is (depending on the guide i follow) cm9 either does not build, or when i install the .zip, my phone goes into an eternal black screen after the "samsung galaxy s2" screen
There are two different basic setups i've been doing (i've tried these two setups in ubuntu 12.04,12.10,10.04LTS)
And i cannot figure out why the !@#$ing !@#$ why!!!!!!!! /rant

LOGS:
With the goal of being very thoughrough, i will start from a clean ubuntu 10.04 VM (network is using bridged), and I will post the result of each command to setup the environment for building.
If i saw an error with these i would google, but i dont see a problem, so i'm here.
Here we go (using this guide to setup env for 10.04 https://github.com/EpicCM/d710tools/wiki)
NOTE: for this step i had to change 0.2.4 to 0.2.6 because 0.2.4 was not building, 0.2.6 appears to work with no problem.
Setup local java repo and java commands: http://pastebin.com/RGhD1Shb
Results: http://pastebin.com/iEnNzSh3

(log)Installing required packages (Ubuntu 10.04)
commands: http://pastebin.com/eCZXkNvV
results: http://pastebin.com/vwzxfVsq

(log)Iidk what this is but guide said to do it for ubuntu 10.04:
command: sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
result: [sudo] password for tryagain: tryagain@tryagain-laptop:~$

(log)IMKDIRS, DOWNLOAD REPO, INIT REPO:
commands:http://pastebin.com/58aunVxB
results:http://pastebin.com/kKq9vyf5

(log)IThen i LOCAL MANFIFEST saved as local_manifest.xml inside ~/android/system/.repo/local_manifest.xml, here's what my localmanifest looks like:
http://pastebin.com/SCPAV8Ne

(log)IREPO SYNC THE FILES:
you may notice in the script file i had to repo sync -j1 more than once, because sometimes it would fail... in the end had no errors
commands : repo sync -j1
results: http://pastebin.com/a5Pa3sbL
results2: http://pastebin.com/VGPcPrE6
(the reason why there are two results is that i apparently forgot to save the local_manifest.xml the first time, results2 shows with the syncing of the files i have in my local manifest)

(log)IPREBUILTS, APPLY.SH:
commands: http://pastebin.com/VVx84ujN
results: http://pastebin.com/w9Wij28c
NOTE: i had to gedit the vendor to get the term.apk since
https://github.com/downloads/jackpal/Android-Terminal-Emulator/Term.apk isnt working
i replaced https://github.com/downloads/jackpal/Android-Terminal-Emulator/Term.apk with http://dl.dropbox.com/u/11103217/Term.apk to get things going.

(log)Build instructions 1:
this is the build instructions that lead to a build error, these instructions were taken from here:
https://github.com/EpicCM/d710tools/wiki
commands: http://pastebin.com/WbXgKmZp
results:http://pastebin.com/Lq5iLt8L
Note: between each build i do make clobber and make installclean.

(log)Build instructions 2 (after i do make clobber and make install clean, repo sync, and the vendor and d710 tools again):
taken from the readme here
https://github.com/EpicCM/d710tools
commands: . build/envsetup.sh && brunch cm_d710-userdebug
built results:http://pastebin.com/8FWtqkRf
and if you feel the need to download the file, here is a direct download link
buildresults.txt : :http://pastebin.com/download.php?i=8FWtqkRf
NOTE: you'll notice i had to sudo apt-get install schedtool. Also, i've done this from scratch before so i know if i dont at the end up the build it tells me to get pngcrush, so i do that too

WHAT I KNOW:
I've done my homework on the error for the build instructions 1:
-I know libUmp.so is a proprietary file, and the file does no exist in that directory, however it exists in another directory.
-Looking at the proprietary, that is where it should be, is there a script to move these directories? it's not a simple one line cp.

WHAT I DONT KNOW:
-builds but black screens? wtf?
-even if i managed to make something to do the cp to the appropriate directories, I dont even know if i'll end up with the same problem
-perhaps there is more not stated in the tutorial? if so I cannot find it

help? i've lost some hair over this, i hope you all can help buy me time to grow it back

@dfreelan
Copy link
Author

it's all up there now!

http://forum.xda-developers.com/showthread.php?t=2074295

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants