source: project/wiki/chicken-on-nokia-770 @ 5597

Last change on this file since 5597 was 5597, checked in by anonymous, 13 years ago

Changed "Miscellaneous" for "Handhelds" section in the platforms page.

File size: 1.9 KB
Line 
1[[tags:tutorials]]
2
3The following will describe how to get a Chicken interpreter up and running on a [[http://europe.nokia.com/770|Nokia 770]].
4
5* The first step after buying a 770 is to gain [[http://maemo.org/maemowiki/HowDoiBecomeRoot2?highlight=%28root%29|root]] and add SSH capabilities. This will allow you to remotely login to the device and run Chicken. Note, you can obtain your IP address with "/sbin/ifconfig" within an x-term.
6
7* To build Chicken install [[http://scratchbox.org|scratchbox]] according to the following [[http://home.comcast.net/~3rdshift/articles/Nokia770/Maemo-Installation.html|instructions]]. You should then have a cross compilation environment suitable for building both Chicken & eggs.
8
9* Build Chicken with the normal autotools sequence and build any eggs.
10
11* Copy the interpreter to /usr/bin and the shared library to /usr/lib.
12<enscript>
13scp /usr/local/bin/csi root@<nokia-ip>:/usr/bin/
14scp /usr/local/lib/libchicken.so.0.0.0 root@<nokia-ip>:/usr/lib
15</enscript>
16
17* Login to your 770 and add symbolic links for the library.
18<enscript>
19cd /usr/lib
20ln -s libchicken.so.0.0.0 libchicken.so.0
21ln -s libchicken.so.0.0.0 libchicken.so
22</enscript>
23
24* Copy any eggs over and set the environment variable CHICKEN_REPOSITORY if necessary.
25<enscript>
26scp /usr/local/lib/chicken/1/packedobjects.so root@<nokia-ip>:/usr/local/lib/chicken/1
27</enscript>
28
29* Fire up Chicken and test an egg.
30
31<enscript>
32Nokia770-39:~# csi
33
34  ___| |    _)      |
35 |     __ \  |  __| |  /  _ \ __ \
36 |     | | | | (      <   __/ |   |
37\____|_| |_|_|\___|_|\_\\___|_|  _|
38
39Version 2.5 - linux-unix-gnu-arm - [ dload ptables applyhook ]
40(c)2000-2006 Felix L. Winkelmann
41#;1> (use packedobjects)
42; loading /usr/local/lib/chicken/1/packedobjects.so ...
43#;2> (define p '(b bit-string (size 8)))
44#;3> (define po (packedobjects p))
45#;4> (po 'pack '(b "10101010"))
461
47#;5> (po 'unpack)
48(b "10101010")
49#;6> (exit)
50Nokia770-39:~#
51</enscript>
Note: See TracBrowser for help on using the repository browser.