woensdag 29 augustus 2012

Running FirefoxOS b2g on a Raspi with Raspbian armhf

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:

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.



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).


dinsdag 21 augustus 2012

Reminder: Duitse films "Edition Deutscher Film" kijken!

Zo, lijstje van 50 Duitse top-films. Uitgegeven op een DVD-reeks "Edition Deutscher Film" (zie foto), dus vast her en der verkrijgbaar.

01 Der letzte Mann (Friedrich, Wilhelm Murnau, 1924)
02 Metropolis (Fritz Lang, 1926)
03 M - Eine Stadt sucht einen Mörder (Fritz Lang, 1931)
04 Die Mörder sind unter uns (Wolfgang Staudte, 1946)
05 Die Sünderin (Willi Forst, 1950)
06 Der Untertan (Wolfgang Staudte, 1951)
07 Der Verlorene (Peter Lorre, 1951)
08 Des Teufels General (Helmut Käutner, 1955)
09 Die Halbstarken (Georg Tressler, 1956)
10 Das Mädchen Rosemarie (Rolf Thiele, 1958)
11 Es geschah am hellichten Tag (Ladislao Vajda, 1958)
12 Die Brücke (Bernhard Wicki, 1959)
13 Der junge Törless (Volker Schlöndorff, 1966)
14 Spur der Steine (Frank Beyer, 1966)
15 Rote Sonne (Rudolf Thome, 1969)
16 Katzelmacher (Rainer Werner Fassbinder, 1969)
17 Aguirre - Der Zorn Gottes (Werner Herzog, 1972)
18 Die Legende von Paul und Paula (Heiner Carow, 1973)
19 Lina Braake (Bernhard Sinkel, 1975)
20 Die verlorene Ehre der Katharina Blum (Volker Schlöndorff und Margarethe von Trotta, 1975)
21 Im Lauf der Zeit (Wim Winders, 1976)
22 Nordsee ist Mordsee (Hark Bohm, 1976)
23 Deutschland im Herbst (A. Kluge, Volker Schlöndorff, Rainer Werner Fassbinder..., 1978)
24 Die Ehe der Maria Braun (Rainer Werner Fassbinder, 1978)
25 Die Blechtrommel (Volker Schlöndorff, 1979)
26 David (Peter Lilienthal, 1979)
27 Lili Marleen (Rainer Werner Fassbinder. 1980)
28 Theo gegen den Rest der Welt (Peter F. Bringmann, 1980)
29 Die bleierne Zeit (Margarethe von Trotta, 1981)
30 Das Boot (Wolfgang Petersen, 1981)
31 Christiane F. - Wir Kinder vom Bahnhof Zoo (Uli Edel, 1981)
32 Die weisse Rose (Michael Verhoeven, 1982)
33 Fitzcarradlo (Werner Herzog, 1982)
34 Stammheim (Reinhard Hauff, 1986)
35 Der Himmel über Berlin (Wim Wenders, 1987)
36 Out of Rosenheim (Percy Adlon, 1987)
37 Jenseits der Stille (Caroline Link, 1996)
38 Die innere Sicherheit (Christian Petzold, 2000)
39 Die Stille nach dem Schuss (Volker Schlöndorff, 2000)
40 Die Unberührbare (Oskar Roehler, 2000)
41 Good bye, Lenin! (Wolfgang Becker, 2003)
42 Gegen die Wand (Fatih Akin, 2004)
43 Alles auf Zucker! (Dani Levy, 2005)
44 Der freie Wille (Matthias Glasner, 2006)
45 Sehnsucht (Valeska Grisebach, 2006)
46 Vier Minuten (Chris Kraus, 2006)
47 Wer früher stirbt, ist länger tot (Marcus H. Rosenmüller, 2006)
48 Auf der anderen Seite (Fatih Akin, 2007)
49 Yella (Christian Petzold, 2007)
50 So glücklich war ich noch nie (Alexander Adolph, 2009)

Foute informatie van Telfort over Interactieve TV Online

Telfort zegt op https://www.telfort.nl/internet/interactieve-tv/ het volgende:

Interactieve TV Online kijken op je computer of tablet

Met Interactieve TV Online kijk je via je eigen internetverbinding de 20 meest populaire zenders via je computer, iPad of Android tablet.

Dat klopt niet: Ik heb iTV van Telfort, maar ik kan geen TV kijken op mijn computer of Android tablet. Waarschijnlijke redenen: 
  • mijn computer draait Linux, en daarvoor levert Microsoft geen Silverlight DRM. Resultaat: via http://telfort.itvonline.nl/ krijg ik een foutmelding. Zie screendump.
  • de Telfort TV app lijkt alleen beschikbaar voor Android tablets van Samsung. Voor mijn Android tablet zegt Google Play  "This item is not compatible with your device."


Dus: de correcte uitspraak van Telfort zou zijn:

Interactieve TV Online kijken op je computer of tablet

Met Interactieve TV Online kijk je via je eigen internetverbinding de 20 meest populaire zenders via je Windows-computer, iPad of Samsung Android tablet.

Het zou netter en duidelijker zijn als Telfort dat zo zou communiceren.

PS: Ik weet niet of Telfort TV het wel doet op Max OS X. Als iemand daar ervaring mee heeft, dan hoor ik het graag.



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.