Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Black Screen on SGS2 - please help debugging

139 views
Skip to first unread message

Niclas Hoyer

unread,
Sep 20, 2012, 6:44:05 AM9/20/12
to mozilla...@lists.mozilla.org
Hi,

I just followed the guide at [1] to install b2g as secondary ROM on my Samsung Galaxy SII.

Everything went well so far, except that I can't start gaia. B2G boots successfully and I am able to log in to my phone via adb shell.

If I run
make install-gaia
everything seems to be transferred properly, but the screen still remains black.
I tried pushing some buttons, but that did not help.

Is there any way I can debug this? Are there any logfiles from Firefox OS?

Regards,
Niclas

Juan Gómez

unread,
Sep 20, 2012, 2:35:41 PM9/20/12
to Niclas Hoyer, mozilla...@lists.mozilla.org
Hi Nicolas,
Could you paste [1] your "adb logcat" output ?
I found a problem [2] time ago with Gecko and Siyah kernel (the one
you used to install B2G as secondary ROM) , but I was able to see the
Gaia interface for a second before it constantly reboots. Is that what
is happening to you?

Kind Regards,

Juan Gomez.

[1] http://pastebin.mozilla.org/
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=789807
> _______________________________________________
> dev-b2g mailing list
> dev...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-b2g

Niclas Hoyer

unread,
Sep 22, 2012, 2:56:56 PM9/22/12
to mozilla...@lists.mozilla.org, Niclas Hoyer, mozilla...@lists.mozilla.org
Hi Juan,

sorry for the late response.

Here is my adb logcat output: http://pastebin.mozilla.org/1836665

I do not see the Gaia interface at all, but the system does not restart, either.

I did not update my Siyah Kernel for about one month, so I do not have the most recent version installed.

Regards,
Niclas

Juan Gómez

unread,
Sep 24, 2012, 9:54:36 AM9/24/12
to Niclas Hoyer, mozilla...@lists.mozilla.org
Hi Niclas,
Are you running a recent version of Gecko? It seems like a bug that
was fixed about one month ago.
Look into your phone (adb shell) for a file called
"/system/lib/hw/hwcomposer.exynos4.so", and if exists, delete it (or
rename it) and then reboot.

Kind Regards,
Juan.


On Sat, Sep 22, 2012 at 8:56 PM, Niclas Hoyer <niclas...@gmail.com> wrote:
> Hi Juan,
>
> sorry for the late response.
>
> Here is my adb logcat output: http://pastebin.mozilla.org/1836665
>
> I do not see the Gaia interface at all, but the system does not restart, either.
>
> I did not update my Siyah Kernel for about one month, so I do not have the most recent version installed.
>
> Regards,
> Niclas
>
> Am Donnerstag, 20. September 2012 20:35:46 UTC+2 schrieb Juan Gómez:

Niclas Hoyer

unread,
Sep 24, 2012, 3:11:32 PM9/24/12
to mozilla...@googlegroups.com, mozilla...@lists.mozilla.org
Hi Juan,

I just compiled the current version of Firefox OS today an reflashed system.img and data.img.

Unfortunately the screen still remains black. I then moved hwcomposer.exynos4.so to bak-hwcomposer.exynos4.so. After reboot I the "mozilla" at the bottom right. Is this some kind of regression?

But since I moved hwcomposer.exynos4.so

make install-gaia

hangs at

python build/install-gaia.py "adb" "/data/local"

shell output attached [1].
Is this another bug?

adb logcat output attached [2].

[1] http://pastebin.mozilla.org/1840414
[2] http://pastebin.mozilla.org/1840415

Kind Regards,
Niclas

Juan Gómez

unread,
Sep 24, 2012, 5:40:46 PM9/24/12
to Niclas Hoyer, mozilla...@lists.mozilla.org, mozilla...@googlegroups.com
I think that this is the problem:
E/GeckoConsole(10012): [JavaScript Error: "DOMApplicationRegistry:
Could not read from /system/b2g/webapps/webapps.json : [Exception...
"Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND)
[nsIChannel.asyncOpen]" nsresult: "0x80520012
(NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
resource://gre/modules/NetUtil.jsm :: NetUtil_asyncOpen :: line 165"
data: no]" {file: "resource://gre/modules/Webapps.jsm" line: 378}]

Try using: ./flash.sh gaia
Your Gaia installation shouldn't be pointing to /system/b2g/webapps,
it must be pointing to /data/local/webapps.

Kind Regards,
Juan.

On Mon, Sep 24, 2012 at 9:11 PM, Niclas Hoyer <niclas...@gmail.com> wrote:
> Hi Juan,
>
> I just compiled the current version of Firefox OS today an reflashed system.img and data.img.
>
> Unfortunately the screen still remains black. I then moved hwcomposer.exynos4.so to bak-hwcomposer.exynos4.so. After reboot I the "mozilla" at the bottom right. Is this some kind of regression?
>
> But since I moved hwcomposer.exynos4.so
>
> make install-gaia
>
> hangs at
>
> python build/install-gaia.py "adb" "/data/local"
>
> shell output attached [1].
> Is this another bug?
>
> adb logcat output attached [2].
>
> [1] http://pastebin.mozilla.org/1840414
> [2] http://pastebin.mozilla.org/1840415
>
> Kind Regards,
> Niclas
>
>> Hi Niclas,
>>
>> Are you running a recent version of Gecko? It seems like a bug that
>>
>> was fixed about one month ago.
>>
>> Look into your phone (adb shell) for a file called
>>
>> "/system/lib/hw/hwcomposer.exynos4.so", and if exists, delete it (or
>>
>> rename it) and then reboot.
>>
>>
>>
>> Kind Regards,
>>
>> Juan.

Dave Hylands

unread,
Sep 24, 2012, 5:50:37 PM9/24/12
to Juan Gómez, Niclas Hoyer, mozilla...@lists.mozilla.org, mozilla dev b2g
Hi,

----- Original Message -----
> From: "Juan Gómez" <ati...@gmail.com>
> To: "Niclas Hoyer" <niclas...@gmail.com>
> Cc: mozilla...@lists.mozilla.org, "mozilla dev b2g" <mozilla...@googlegroups.com>
> Sent: Monday, September 24, 2012 2:40:46 PM
> Subject: Re: [b2g] Black Screen on SGS2 - please help debugging
>
> I think that this is the problem:
> E/GeckoConsole(10012): [JavaScript Error: "DOMApplicationRegistry:
> Could not read from /system/b2g/webapps/webapps.json : [Exception...
> "Component returned failure code: 0x80520012
> (NS_ERROR_FILE_NOT_FOUND)
> [nsIChannel.asyncOpen]" nsresult: "0x80520012
> (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
> resource://gre/modules/NetUtil.jsm :: NetUtil_asyncOpen :: line 165"
> data: no]" {file: "resource://gre/modules/Webapps.jsm" line: 378}]
>
> Try using: ./flash.sh gaia
> Your Gaia installation shouldn't be pointing to /system/b2g/webapps,
> it must be pointing to /data/local/webapps.

VARIANT=user and userdebug point to /system/b2g/webapps
VARIANT= (or I think VARIANT=eng) points to /data/local/webapps

The eng variants still look in /syste/b2g/webapps, even though it doesn't exist.
There was a bug related to this that was fixed over the weekend.
See https://bugzilla.mozilla.org/show_bug.cgi?id=793243

Dave Hylands

Niclas Hoyer

unread,
Sep 24, 2012, 7:23:38 PM9/24/12
to mozilla...@lists.mozilla.org
Hi,

I just did a fresh rebuild of my B2G installation. I flashed everything
accordingly, but the screen still remains black.

I now tried using

./flash.sh gaia

as suggested. This worked once, but screen still remains black. I then just
rebooted to try again, but since then the procedure hangs again on

python build/install-gaia.py ""adb"" "/data/local"

and nothing seems to happen. There is no new output on logcat.
I tried rebooting several times, but no luck.

logcat attached again [1], it may have several tried to flash gaia logged.

Anyway, I would like to thank for the great support! :-)

[1] http://pastebin.mozilla.org/1840769

Kind Regards,
Niclas

2012/9/24 Dave Hylands <dhyl...@mozilla.com>

Juan Gómez

unread,
Sep 25, 2012, 10:09:22 AM9/25/12
to Niclas Hoyer, mozilla...@lists.mozilla.org
Niclas,
I almost prefer that you fix your problem and keep testing things on
SGS2, the more the merrier :).
I have a SGS2 and its working *fine*, so we should be able to make
yours work too.

Here are some usefull tips:

Ok, IIRC this line in the logcat:
I/ServiceManager( 5134): Waiting for service SecTVOutService...
was due to the existance of hwcomposer.exynos4.so, so lets delete it
(I know, you moved it before, but as long as it has a .so extension
weired things could happen).

If you are still using Siyah kernel, you must ./flash gaia _every
time_ you reboot the system. I know that the documentation says that
newer versions of Siyah kernel than v. 3.5.2 shouldn't work with B2G,
but actually I tested the lastest one and It worked fine for me, and
with this newer version you don't have to flash gaia every time the
phone is rebooted. Well it has other problems, but at least you will
see the Gaia interface for a moment :)

But if you followed the install instructions step by step, you
probably had flashed the Samsung kernel in the "./flash.sh" step, so
you don't have to reflash gaia every time you reboot the phone.

Make sure that yo do:
./flash.sh gecko
./flash.sh gaia

Do you have /system/b2g/webapps directory?
If you are using Siyah kernel, it's probably that your /system
partition was mounted as read-only, another test that you should do is
to make this partition writeable:
adb shell
(in the phone shell)
# mount -o rw,remount -t ext4 /dev/couldnot/remember/device /system
(and then restart b2g process)
# killall b2g

Hope this works!

Kind Regards,

Juan Gómez
0 new messages