The Raspberry Pi Thread

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

ZirconiumX
Posts: 1361
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: Expected order date: Leap Day

Post by ZirconiumX »

JuLieN wrote:
ZirconiumX wrote:Julien,

*Don't* do any compiling on the raspberry pi. It takes an hour just to compile Quake 3, and 42 minutes to compile completely the cutechess project.

So you'd better have plenty of time on your hands.

1) KP has never happened for me. I've used the Debian distro, Arch Linux, and now Raspbian. All quite stable, so long as you don't do e2fsck on it. (I truly am a stupid idiot)

Mac users don't need a virtualizer at all. Just use Terminal:

Code: Select all

$ df -h
<hard disk stuff>
$
<insert sd card reader with sd card in>
$ df -h
<hard disk stuff>
<new device, in my case disk1s1>
$ diskutil unmount <name of new device>
Device <name of new device> unmounted.
$ dd bs=1m if=path/to/image.img of=/dev/<raw disk name; remove the s1 bit and add r to the front; for me this is rdisk1>
<a long wait later>
<disk stuff>
$ diskutil eject <name of new device>
Disk <name of new device> ejected.
$
You can now use your sd card.
2) See above post.

Matthew:out
Thanks for the SD tips for Mac users, very usefull! :D

Compiling Pred on the RP was very easy: I just had to use my configs for OSX and 32 bits instead of 64, and it compiled. It went quite fast actually (a few seconds). But the FPC compiler is very fast and Pred is only 5000 lines long.
Well, it's quicker than GCC!
Now, about the performances... errr... how shall I put this? Snail Pred? :lol:
Despite I activated all the compiler's optimizations I get 380Kn in perft (12.8 seconds to run a perft 5! :shock: ), and about 30Kn in game...
I warned you...

Matthew:out
tu ne cede malis, sed contra audentior ito
User avatar
JuLieN
Posts: 2949
Joined: Mon May 05, 2008 12:16 pm
Location: Bordeaux (France)
Full name: Julien Marcel

Re: Expected order date: Leap Day

Post by JuLieN »

hmm... xboard doesn't want to run (unable to create font set), and gnuchess won't start either (malloc() cannot allocate memory)...
"The only good bug is a dead bug." (Don Dailey)
[Blog: http://tinyurl.com/predateur ] [Facebook: http://tinyurl.com/fbpredateur ] [MacEngines: http://tinyurl.com/macengines ]
ZirconiumX
Posts: 1361
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: Expected order date: Leap Day

Post by ZirconiumX »

The xboard problem is a known problem. The best I can suggest is

apt-get remove xboard

apt-get update && apt-get dist-upgrade

apt-cache search xfonts-* | grep xfonts-* | apt-get install -

apt-get install xboard

The above may or may not work.

The second by closing every non essential program, and trying again.

If that doesn't work you may have to try more extreme measures.

Matthew:out
tu ne cede malis, sed contra audentior ito
User avatar
JuLieN
Posts: 2949
Joined: Mon May 05, 2008 12:16 pm
Location: Bordeaux (France)
Full name: Julien Marcel

Re: Expected order date: Leap Day

Post by JuLieN »

ZirconiumX wrote:The xboard problem is a known problem. The best I can suggest is

apt-get remove xboard

apt-get update && apt-get dist-upgrade

apt-cache search xfonts-* | grep xfonts-* | apt-get install -

apt-get install xboard

The above may or may not work.

The second by closing every non essential program, and trying again.

If that doesn't work you may have to try more extreme measures.

Matthew:out
Thanks Matthew! :D Now XBoard is running!

But I can't get it to use Predateur as its engine. Each time I try to add it I get
Failed to start first chess program polyglot -noini -ec "Desktop/Predateur" -ed "Desktop" -uci NalimovCache=4 on localhost: polyglot: No such file or directory
I'm no Linux expert (that's an understatement...) but obviously it can't find polyglot. Did you get Xboard to load a UCI engine on the Raspburry Pi?
"The only good bug is a dead bug." (Don Dailey)
[Blog: http://tinyurl.com/predateur ] [Facebook: http://tinyurl.com/fbpredateur ] [MacEngines: http://tinyurl.com/macengines ]
User avatar
geots
Posts: 4790
Joined: Sat Mar 11, 2006 12:42 am

Re: Ordering info for US residents

Post by geots »

sje wrote:It appears that the designated merchant of the Raspberry Pi for US residents is at http://www.newark.com/ and currently the board is out of stock. However, the site has a form where one can register their name and email address to be contacted at a later date.

One report states that the current estimated delivery date for new orders has now slipped to mid May.

My apologies if this post sounds like an advertisement; I'm only trying to get the information out so as to save others the time and effort of searching.

Yes, with all the threads you have posted about the thing it certainly sounds like you are getting part of the profits. But i'm ok with that too- it just won't be from me.


gts
mephisto
Posts: 431
Joined: Mon Apr 03, 2006 10:10 am
Location: England

Re: Ordering info for US residents

Post by mephisto »

Julien
Have you got Arena to work?
What's my next move? - to the fridge for another beer !!
ZirconiumX
Posts: 1361
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: Expected order date: Leap Day

Post by ZirconiumX »

Julien,

apt-get install polyglot

Problem solved.

Bryan,

Arena simply won't run. Linux on x86 is unstable, to say the least, so god forbid what might happen if you tried it on the RasPi.

Matthew:out
tu ne cede malis, sed contra audentior ito
User avatar
JuLieN
Posts: 2949
Joined: Mon May 05, 2008 12:16 pm
Location: Bordeaux (France)
Full name: Julien Marcel

Re: Ordering info for US residents

Post by JuLieN »

mephisto wrote:Julien
Have you got Arena to work?
Hmm, I don't think there is an Arena version for ARM Linux yet... :cry:
ZirconiumX wrote:Julien,

apt-get install polyglot

Problem solved.

Bryan,

Arena simply won't run. Linux on x86 is unstable, to say the least, so god forbid what might happen if you tried it on the RasPi.

Matthew:out
Thanks Matthew, that (almost) did the trick! :D

Now, I have one problem remaining: the only way I found for not getting polyglot to protest because it couldn't find my engine if I had it in "hom" or on the "desktop" was to put it in usr/games :oops: (Yes, right with Fairymax and Fruit...), something I had to do as Root... Surely there's a simpler way to do this?

Whatever, Pred is working fine in Xboard... at 20-30 Kns... ^^
Last edited by JuLieN on Mon Jul 02, 2012 1:31 pm, edited 2 times in total.
"The only good bug is a dead bug." (Don Dailey)
[Blog: http://tinyurl.com/predateur ] [Facebook: http://tinyurl.com/fbpredateur ] [MacEngines: http://tinyurl.com/macengines ]
ZirconiumX
Posts: 1361
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: Ordering info for US residents

Post by ZirconiumX »

Surely you know how to make an ini file for Predateur!

If not:

Code: Select all

[PolyGlot]

EngineDir = ~/Desktop/
EngineCommand = ./Predateur

Book = true

Resign = true
ResignScore = 500

[Engine]

Hash = 16
Copy the above and paste it into a text file called predateur.ini in /usr/games (it's important). Put Predateur back on the Desktop and run:

Code: Select all

xboard -fd /usr/games -fcp "./polyglot predateur.ini"
As always, I cannot guarantee that this works.

Matthew:out
tu ne cede malis, sed contra audentior ito
ZirconiumX
Posts: 1361
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: Ordering info for US residents

Post by ZirconiumX »

Julien,

As for the speed problem, try copying this and pasting it in /boot/config.txt

Code: Select all

arm_freq = 900
gpu_freq = 350
sdram_freq = 500
and reboot.

**IMPORTANT**

If the raspberry pi doesn't boot up with this, turn the Pi off, remove the SD card, plug it into your computer. You should find a file called config.txt (I wonder where that came from) open it with your favourite text editor and replace

Code: Select all

arm_freq = 900
with

Code: Select all

arm_freq = 850
Eject the sd card, plug it in, start the RasPi up. If it doesn't boot *then*, try

Code: Select all

arm_freq = 800
gpu_freq = 300
sdram_freq = 450
Rinse and repeat.

If it doesn't boot then, let me know.

Matthew:out[/code]
tu ne cede malis, sed contra audentior ito