Hello.

Can you share prebuilt VM?
I have linux mobile phone (meegoOS with ARMv7 processor). And I really want pharo on it. I try built VM by myself but without success.

Best regards,
Denis

2012/11/23 Sven Van Caekenberghe <sven@stfx.eu>
I am making progress.

It seems 1.4 does run out of the box, at least headless:

pi@raspberrypi ~/Pharo-1.4 $ cat test.st

FileStream stdout
� nextPutAll: 'Hello World, 42 factorial = '; print: 42 factorial;
� crlf; flush.

Smalltalk quitPrimitive.

pi@raspberrypi ~/Pharo-1.4 $ /usr/lib/squeak/4.4.7-2357/squeakvm -vm-display-null -vm-sound-null /home/pi/Pharo-1.4/Pharo-1.4.image /home/pi/Pharo-1.4/test.st

Hello World, 42 factorial = 1405006117752879898543142606244511569936384000000000


No HTTP server like apache is installed by default, lucky Zn comes with Pharo then ;-)

pi@raspberrypi ~/Pharo-1.4 $ cat zn.st

ZnServer startDefaultOn: 1701.

pi@raspberrypi ~/Pharo-1.4 $ /usr/lib/squeak/4.4.7-2357/squeakvm -vm-display-null -vm-sound-null /home/pi/Pharo-1.4/Pharo-1.4.image /home/pi/Pharo-1.4/zn.st


And now visit http://localhost:1701 or (with avahi-daemon installed) http://raspberrypi.local:1701 from another machine, at first sight everything seems to work as expected. Things are a bit slow with the slower ARM CPU and a Stack VM, but that is normal.


As for 2.0, there seems to be some startup problem:


THERE_BE_DRAGONS_HERE
==== Startup Error: FileDoesNotExist: file:///usr/lib/squeak/4.4.7-2357
23 November 2012 5:33:13.051 pm

VM: unix - armv7l - linux - THERE_BE_DRAGONS_HERE
MessageNotUnderstood: receiver of "do:" is nil
23 November 2012 5:33:13.068 pm

VM: unix - armv7l - linux - THERE_BE_DRAGONS_HERE
MessageNotUnderstood: receiver of "do:" is nil
23 November 2012 5:33:13.089 pm

VM: unix - armv7l - linux - THERE_BE_DRAGONS_HERE
MessageNotUnderstood: receiver of "do:" is nil
23 November 2012 5:33:13.106 pm

VM: unix - armv7l - linux - THERE_BE_DRAGONS_HERE
MessageNotUnderstood: receiver of "do:" is nil
23 November 2012 5:33:13.123 pm


Some code is referring to the VM directory and that seems to fail. Funny there is no better/usable stacktrace.

I wonder whether FileSystem is completely supported on older VMs ?


Sven


On 23 Nov 2012, at 13:57, Sven Van Caekenberghe <sven@stfx.eu> wrote:

> Hi,
>
> Does anyone know how to make Pharo 2.0 run on a Raspberry Pi ?
>
> I am running an up to date 2012-10-28-wheezy-raspbian (Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l). There seems to be a Stack VM on it, it does run Smalltalk code, but there is some initialization error, a loop of
>
> VM: unix - armv7l - linux - THERE_BE_DRAGONS_HERE
> MessageNotUnderstood: receiver of "do:" is nil
> 22 November 2012 8:55:09.996 pm
>
> in PharoDebug.log.
>
> I will (try to) look deeper into this, but if someone knows how to get things working, I would be grateful for any help.
>
> It would be really great if we as a community would be able to offer this as an option.
>
> Thx,
>
> Sven
>
> PS: I specifically want to run a (possibly patched) Pharo 2.0 image, not something else.


--
Sven Van Caekenberghe
http://stfx.eu
Smalltalk is the Red Pill