On http://eva-quirinius.blogspot.nl/2012/08/installing-firefoxos-on-raspi.html I gave a description how to run FirefoxOS on a Raspi with Wheey armel. Thanks to Oleg, there is now a FirefoxOS b2g for Raspbian armhf. Here's an instruction how to get it running.
First get and unpack b2g for armhf:
First get and unpack b2g for armhf:
cd
tar -xvzf b2g-17.0a1.linuxgl-gnueabi-armhf_v6.tar.gz
cd b2g/
ldd b2g
The last command should give a output look below. Note the "hf" in the libraries:
pi@raspbian-armhf-SJ ~/b2g $ ldd b2g
/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0x40207000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x400d3000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x400f2000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x400fd000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x40210000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x401ca000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x40281000)
/lib/ld-linux-armhf.so.3 (0x400a0000)
pi@raspbian-armhf-SJ ~/b2g $
Then get and unpack the profile (while you're still in the ~/b2g directory)
tar xvzf profile.tar.gz
Then (still in ~/b2g) start b2g, which needs an environment variable set:
LD_LIBRARY_PATH=/opt/vc/lib:/home/pi/b2g:$LD_LIBRARY_PATH ./b2g -profile profile
That should give the FirefoxOS screen on your Raspbian running Raspi.
Here's a ugly screendump of it running on my CRT TV. If you a HDMI display, things should work fine.
Here's a ugly screendump of it running on my CRT TV. If you a HDMI display, things should work fine.
Update:
Thanks to Oleg, I used the "--screen=" option to get a much better display
LD_LIBRARY_PATH=/opt/vc/lib:/home/pi/b2g:$LD_LIBRARY_PATH ./b2g -profile profile --screen=656x545
Result:
A bit of explanation: if you don't specify --screen, b2g uses the default value "320x480".
The image is still a bit off-screen on the left side. I tried to solve that with the overscan parameters in /boot/config.txt, but that doesn't influence b2g.
PS: If you get
pi@raspbian-armhf-SJ ~/b2g $ ./b2g -profile profile
XPCOMGlueLoad error for file /home/pi/b2g/libxpcom.so:
libxul.so: cannot open shared object file: No such file or directory
Couldn't load XPCOM.
pi@raspbian-armhf-SJ ~/b2g $
you did not set the LD_LIBRARY_PATH environment variable like I described. Or libxul.so is not in the directory LD_LIBRARY_PATH is pointing to (/home/pi/b2g).





