vrijdag 17 augustus 2012

Installing FirefoxOS on Raspi

Here's how I installed FirefoxOS on the Raspberry Pi. The FirefoxOS package is created by Oleg Romashin, see http://romaxa.info/b2g/

First of all, I only got this working on the Beta Wheezy image (with armel). See http://www.raspberrypi.org/phpBB3/viewtopic.php?f=50&t=8071 and http://www.raspberrypi.org/archives/1435
For b2g, I call this the "correct" Linux image in this post ...

On the more recent Raspbian (with armhf) I got the errors described further down this post. I think Oleg's b2g package is not suitable for Raspbian. Just a hypothesis.

First step, download the FirefoxOS package, untar it, and check the b2g binary like this:

tar -xvzf b2g-17.0a1.en-US.linux-gnueabi-arm_rasp_pi_linuxgl.tar.gz
cd b2g/
ldd b2g

The last command ("ldd") is a check and should give lines like:

pi@raspberrypi ~/b2g $ ldd b2g
libpthread.so.0 => /lib/arm-linux-gnueabi/libpthread.so.0 (0x402d2000)
...
pi@raspberrypi ~/b2g $

If you get something else, for example "not a dynamic executable", I think you're using the wrong Linux image. Go back to the top of this post, and get the 'correct' Linux image.

If the ldd output looks good, you should download, unpack and use the profile:

tar xvzf profile.tar.gz 
./b2g -profile profile

That should start up b2g and give you a screen like the one included in this post. And hopefully a bit more beautiful; my Raspi is connected to an old CRT, and I guess that's the reason FirefoxOS is a bit off screen.


PS: if you get

XPCOMGlueLoad error for file /home/pi/b2g/libxpcom.so:
/home/pi/b2g/libxpcom.so: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

it's my hypothesis you're using the wrong Linux image: armel versus armhf, or something else. See the "ldd b2g" check, and get the 'correct' Linux image on your Raspi.

4 opmerkingen:

Anoniem zei

can you make .iso image .?


Making OpenELEC images for Raspberry Pi
http://blog.thestateofme.com/2012/06/03/openelec-images/


plesae help to windows users :))

Anoniem zei

Followed all advice. No errors. Looks like it should work but I do not get the pretty desktop. All i get is a mouse cursor that is one red pixel and "mozilla" in big white font in the lower right quadrant of the screen. ???

I tried to launch profile from both within LXE GUI and from command line.

sensor56 zei

taescraHi,

same problem with the last Raspbian image.

A black screen with a big white "Mozilla" during few second... and command line with error : "segment fault"

an idea ?

Anoniem zei

ok, muy bien, pero b2g es una herramienta que se puede crear con el codigo fuente de FireFox, no?
Y que hay de profile? Ese es el verdadero programa de Raspberry? Deberias aclarar mejor los archivos utilizados.