newLISP Fan Club

Forum => newLISP and the O.S. => Topic started by: newdep on June 15, 2009, 09:04:34 AM

Title: newlisp on the Nokia N810 Internet tablet
Post by: newdep on June 15, 2009, 09:04:34 AM
The N810 is a Nokia Internet Tablet based on //http://www.maemo.org linux using the TI processor which is ARM based.

(N810 has a 400 MHz TI OMAP 2420 Cpu)



With the scratchbox setup on a linux PC you can cross-compile X86-ARM/EL.



If I did it all correct then newLisp v 10.0.0 was successfuly compiled for the ARM/EL, actualy out of the box without errors on the Diablo release of

maemo. Now this compilation was so very easy Im not sure it its correct ..hahaha.. But it sure does run ;-)



Now the real testing needs to be done, end of this week probably...



Here the output of the execution from within a scratchbox chrooted shell.

(a debian Arm version inside my slackware 12.2 environment with X11 client (xephyr) that emmulates the maemo GUI)


[sbox-DIABLO_ARMEL: ~/newlisp-10.0.0] > ldd newlisp
        libm.so.6 => /lib/libm.so.6 (0x00000000)
        libdl.so.2 => /lib/libdl.so.2 (0x00000000)
        libc.so.6 => /lib/libc.so.6 (0x00000000)
        /lib/ld-linux.so.3 => /lib/ld-linux.so.3 (0x00000000)

[sbox-DIABLO_ARMEL: ~/newlisp-10.0.0] > file newlisp
newlisp: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped

[sbox-DIABLO_ARMEL: ~/newlisp-10.0.0] > ls -al newlisp
-rwxrwxr-x  1 user users 232248 Jun 15 17:03 newlisp

[sbox-DIABLO_ARMEL: ~/newlisp-10.0.0] > ./newlisp
newLISP v.10.0.0 on Linux IPv4, execute 'newlisp -h' for more info.

> (sys-info)
(379 268435456 368 1 0 2048 31054 10000 1)
>


So actualy newlisp is now able to run on the ARM/EL based handheld

devices...Finaly I have newLisp in my handpalm ;-)



To be continued...
Title:
Post by: newdep on June 15, 2009, 02:14:01 PM
Small update ->



newLisp version 10.0.4 compiles out of the box under scratchbox for X86 and ARM.



..

..

..

and newLisp version 10.0.8 compiles out of the box under scratchbox for X86 and ARM.



to be continued...
Title:
Post by: TedWalther on June 15, 2009, 02:47:53 PM
It is really great to see this kind of activity and expansion in the newLISP world.



Can you apply this patch to the 10.0.8 tree, type ./configure --help, then compile to your hearts content?



http://ted.affordableaffiliates.com/newlisp-configure.patch



To compile:



./configure
make -f makefile_configure
make install


I'd like to hear how it works on your platform!  Whether it works or doesn't, can you email me the resulting makefile_configure and config.h files?
Title:
Post by: newdep on June 15, 2009, 02:48:53 PM
Hi Ted,



Yes I will, but i just switch to my XP environment.. Ill do that tomorro

see what it bring Ill let you know ;-)



Norman.
Title:
Post by: newdep on June 15, 2009, 02:56:57 PM
For all those NOT having a Linux machine running but are able to

run Qemu or Vmware player..There exists an Beta Image os the

Maemo SDK, so you can develop for the Maemo under i.e. Windows

with an Ubuntu enviornment..



Now if that newlisp is running on the N810, hopefuly stable at

the end of this week, you can create youre widgets using GTK on the

N810..thats should work out of the box too...



As an internet tablet is a network device newLisp fits right in ;-)



//http://maemo.org/news/announcements/maemo_sdk_virtual_image_released/



To be continued...
Title:
Post by: newdep on June 15, 2009, 02:57:56 PM
Ted,



Not Found

The requested URL /newlisp-configure.patch was not found on this server.



Any other link where I can ctach it ?
Title:
Post by: newdep on June 15, 2009, 02:58:48 PM
got it..



http://ted.affordableaffiliates.com/newlisp-configure.patch
Title:
Post by: TedWalther on June 15, 2009, 03:06:20 PM
Yes, sorry it was a glitch on my part, I'd been doing some mod_rewrite for another project, but all is well now.
Title:
Post by: newdep on June 16, 2009, 01:18:36 AM
Oke here a screen dump of the emulated maemo evironment on

my slackware machine running a xterm session in black/white.

Note: this is an emulated ARM environment with Qemu on my X86 slackware Linux. I added my .init.lsp.



(//%3C/s%3E%3CURL%20url=%22http://www.nodep.nl/downloads/newlisp/newlisp-maemo.jpg%22%3Ehttp://www.nodep.nl/downloads/newlisp/newlisp-maemo.jpg%3C/URL%3E%3Ce%3E)



To be continued...
Title:
Post by: newdep on June 16, 2009, 01:44:26 AM
Qemu doesnt support all IO call yet so some qa test fail, but this

should be fixed when running it on the real N810.

Here the qa-foop output..



(//%3C/s%3E%3CURL%20url=%22http://www.nodep.nl/downloads/newlisp/newlisp-maemo-2.jpg%22%3E%3CLINK_TEXT%20text=%22http://www.nodep.nl/downloads/newlisp/n%20...%20aemo-2.jpg%22%3Ehttp://www.nodep.nl/downloads/newlisp/newlisp-maemo-2.jpg%3C/LINK_TEXT%3E%3C/URL%3E%3Ce%3E)
Title:
Post by: newdep on June 16, 2009, 02:17:33 AM
Oke some GTK2 test..



this code from pjot "//http://www.turtle.dds.nl/newlisp/fractal.lsp"

runs out of the box on the scratchbox N810 emu.



Here the example where newlisp call GTK directly!



(//%3C/s%3E%3CURL%20url=%22http://www.nodep.nl/downloads/newlisp/newlisp-maemo-3.jpg%22%3E%3CLINK_TEXT%20text=%22http://www.nodep.nl/downloads/newlisp/n%20...%20aemo-3.jpg%22%3Ehttp://www.nodep.nl/downloads/newlisp/newlisp-maemo-3.jpg%3C/LINK_TEXT%3E%3C/URL%3E%3Ce%3E)
Title:
Post by: newdep on June 16, 2009, 08:07:06 AM
I created a maemo project so maemo users can download

the uptodate precompiled/source for the N810 newlisp from there.

I expect it not to become a seperate tree of newlisp code,

as it now seems newlisp simply compiles out of the box.



//http://newlisp.garage.maemo.org/



Although the binary will be listed there Ill put one on my personal pages too..



To be continued..
Title:
Post by: newdep on June 17, 2009, 04:37:50 PM
oke here it is, the official working version of newLisp v10.0.8

on the Nokia Internet Tablet!



This is an actual screen dump for the screen.



(//%3C/s%3E%3CURL%20url=%22http://www.nodep.nl/downloads/newlisp/screenshot00.png%22%3Ehttp://www.nodep.nl/downloads/newlisp/screenshot00.png%3C/URL%3E%3Ce%3E)



As always.. Enjoy...;-)
Title:
Post by: TedWalther on June 17, 2009, 07:00:22 PM
OMG, I didn't know you could (load ...) URL's.  I learn something new every day on this forum.  Thanks newdep.  And nifty dragonfly graphic.  I love your other screenshots too.



Ted
Title:
Post by: newdep on June 18, 2009, 10:15:01 AM
Now to give you actualy an impression on what size newLisp currently is running on the N810..and still running...

Dont mind that guy below the Tablet, he's just there to display progress ;-)





(//%3C/s%3E%3CURL%20url=%22http://www.nodep.nl/downloads/newlisp/n810-newlisp.jpg%22%3Ehttp://www.nodep.nl/downloads/newlisp/n810-newlisp.jpg%3C/URL%3E%3Ce%3E)



To be Continued...
Title:
Post by: newdep on June 20, 2009, 02:31:36 AM
newLisp 10.0.8 precompiled ARM version can be found at

//https://garage.maemo.org/projects/newlisp/



Im working on a official package so that newLisp can be directly

installed/maintained/updated on the N810.



To be continued...
Title:
Post by: newdep on June 25, 2009, 04:40:02 AM
because maemo linux handles Debian packaging and newlisp already

has lots of packaging I did not create a package for newlisp so it cant

yet be installed from the extra-repository in Maemo. I need help with this

because im a tar-guy and reject rpm and deb ..;-)



You can grab the full source + precompiled UTF8 and regular newlisp

package of version 10.1.0 from //https://garage.maemo.org/projects/newlisp/ including the pdf manual inside the package.




Release Name: newlisp 10.1.0

Notes:
This is the original 10.1.0 newlisp release that includes the complete source package of newlisp.
It also contains 2 pre-compiled binary's for the ARMEL maemo linux Diablo version. (not tested on other releases)
The 'newlisp' and 'newlisp_utf8' are pre-compiled ARMEL versions.


Quick install:

Become root on the N810

gunzip < newlisp-10.1.0-armel-maemo.tgz | tar xvf -

or

gzip -d newlisp-10.1.0-armel-maemo.tgz
tar xvf newlisp-10.1.0-armel-maemo.tar


run the ./maemo-install.sh script as user root to install newlisp.
run the ./maemo-deinstall.sh script as root to de-install newlisp.

The install script will install the utf8 version of newlisp by default
and will move the newlisp_manual.pdf to your ~/MyDocs/.documents/newlisp directory.

All information on newLisp language can be found at http://www.newlisp.org

This file is so big because it includes the PDF manual.
Title:
Post by: newdep on June 25, 2009, 01:36:48 PM
oke oke..nothing more annoying then unable to recall history..as we do daily..



But for the newlisp version on the ARMEL maemo its a must!.



So its working now..
# makefile for newLISP v.10.x.x on MAEMO ARMEL LINUX with readline and UTF-8 support
#
# Note, that readline support may require different libraries on different OSs
#

OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o
        nl-sock.o nl-import.o nl-xml.o nl-web.o nl-matrix.o nl-debug.o nl-utf8.o pcre.o

CFLAGS = -Wall -pedantic -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DLINUX

CC = gcc


default: $(OBJS)
        $(CC) $(OBJS) -g -lm -ldl -lreadline -ltermcap -o newlisp
#       $(CC) $(OBJS) -g -lm -ldl -lreadline -lncurses -o newlisp
#       $(CC) $(OBJS) -g -lm -ldl -lreadline -o newlisp
#       $(CC) $(OBJS) -g -lm -ldl  -lncurses -o newlisp
#       $(CC) $(OBJS) -g -lm -ldl -o newlisp
        strip newlisp

.c.o:
        $(CC) $(CFLAGS) $<

$(OBJS): primes.h protos.h makefile_maemo_utf8




dependency's ->

    libm.so.6 => /lib/libm.so.6 (0x00000000)

     libdl.so.2 => /lib/libdl.so.2 (0x00000000)

     libreadline.so.4 => /lib/libreadline.so.4 (0x00000000)

     libncurses.so.5 => /lib/libncurses.so.5 (0x00000000)

     libc.so.6 => /lib/libc.so.6 (0x00000000)

     /lib/ld-linux.so.3 => /lib/ld-linux.so.3 (0x00000000)





Ill put that little precompiled god-tool on the garage page ;-)
Title:
Post by: newdep on July 04, 2009, 12:21:21 PM
aaa still working nicely the N810 with newlisp.



I have compiled the nano editor, quick and simple without much fingering

on the keyboard a good editor for the N810..

With the newlisp syntax highlighting nanorc a nice to have!



The inputrc is now a real wonderful addon on the N810.

Quick an simple macro's with termcap nice nice...saves typing..



The only thing I realy would like to see is the newlisp manual

being split per chapter in smaler html pages.. Loading that thing

is just a little too long ;-) But perhpas the Wiki could create a solution

here..



all in all I had the N810 on a holiday trip the last week and its smashing

to use ... the nicest part is.."A lambda prompt at your fingertips"..

nice nice...



No deep testing done yet..normal use and newlisp runs fine..

Ill through in some border-checking this month..
Title:
Post by: newdep on July 08, 2009, 12:29:18 AM
Now having newlisp running on the N810 and being a console user

was thinking of an overall editing evironment..



For the Java part there is the GS editor for newlisp but as java is not

ported to the Maemo evironment I was seeking for something else..



And yes..there is.. Strange ..but I actualy never used this but comes in

very handing right now.. its the "//http://www.newlisp.org/index.cgi?Applications" newlisp-ide ;-)



As the webbrowser on the N810 from Maemo is very quick it turn this

ide into a fully usable editor.



the first thing i did seek on the Ide was a way to change the lines of the iinput/output,

yes it was already taken care of and could simply be adjusted to 24.

then I seeked for a bigger font for the left panel and yes

it was already taken care of.



Easy file seeking editing and evaluating.. Very handy Lutz! thanks !
Title:
Post by: newdep on July 09, 2009, 01:30:00 AM
I added the maemo release to my newlisp page so its under the roof

of the rest of my newlisp collection.

//http://maemo.nodep.nl can also be found via //http://newlisp.nodep.nl
Title:
Post by: newdep on July 09, 2009, 08:23:48 AM
oke oke the N810 Maemo does official not have Sun Java

but there is a Jalimo version that support AWT/SWT.



So after some tweaking to get the AWT running it finaly ran out

of the box...Guiserver support runs.

(Not sure yet what widgets are there yet but we will see ;-)





Ill dump some screenshot here tonight ;-)
Title:
Post by: newdep on July 09, 2009, 11:52:08 AM
Ok so after having Jalimo working it was upto the Gui-Server to start,

that went all out of the box actualy... The only problem I had where the

pre-version 10 Gui-server demo's, those whernt converted yet by myself...oeps...



Anyway the speed of this VM running on a 400Mhz processor isnt advisable

for 2D drawing.. Its simple too slow.. menu Widget though are well workable..

Some widgets dont work like the html clickable..but thats know inside Jalimo AWT. The Jalimo is a java 1.5 port..so it used the Swing SWT and AWT nicely.



As the N810 has a small screen 800x480 and there is a reserved area for

menu's etc.. (you can do full screen, no problem) some programs i started

are not adjusted for this screen size..



Still its nice to see that its working, not flawless as I saw in loading files

from the newlisp-edit, but i was using a old GS library! 1.29 and not 1.34.



All in all below a resized collection of screen shots, No dont worry the

graphics are halfsized to make 1 picture but gui is fine. I took screenshot

from the N810 directly...



(//%3C/s%3E%3CURL%20url=%22http://maemo.nodep.nl/downloads/gsserver-maemo.png%22%3Ehttp://maemo.nodep.nl/downloads/gsserver-maemo.png%3C/URL%3E%3Ce%3E)
Title:
Post by: newdep on July 13, 2009, 06:49:51 AM
working with the n810 continues..

updated //http://maemo.nodep.nl  (refresh manual please ;-)



Actualy all armel packages from the debian distribution work, though

there is ofcourse the dependency's but those can be sloved.



Just installed joe editor..works like a charm..ofrouce with newlisp

syntax highlighting.. (nano crashed on my selfcompiled version

when doing a search inside the files..duh..)



Lutz.. who is doing the debian packages?

because I can pre-compile the armel version so an extra debian

package can be create for armel. Im not a .deb guru.. perhpas

its an option..
Title: Re: newlisp on the Nokia N810 Internet tablet
Post by: jdelgado on December 04, 2009, 04:18:37 AM
Hi,



I'm new to newLISP, and the newLISP forums, so this is my first post (btw, thanks a lot to the creator of newLISP). Still playing with newLISP, though I am not new to Lisp. I have used Scheme for a while. I got here when I noticed that there was the possibility of carrying a lambda in the pocket, as they say...



I used to have lots of fun carrying around my Palm M125 with LispMe (scheme), but some time ago I just gave up the idea of having that back... until I discovered your newLISP port. I got really enthusiastic.



So, just one question: Does your port work with Nokia N900? If that is the case I will hurry to buy one. Unfortunately I have no much time to try to port newLISP to the new maemo version by myself.



Thanks in advance for your answer, and thanks for porting newLISP to Maemo.



Bests,



Jordi
Title: Re: newlisp on the Nokia N810 Internet tablet
Post by: hilti on July 22, 2010, 01:01:33 AM
QuoteSo, just one question: Does your port work with Nokia N900?


Short answer:

I think not yet, but I hope someone get it working.



Long answer:

I've downloaded all the maemo files and followed the gunzip process on my N900, started the maemo-install.sh but nothing happens. If I try to open the "newlisp" binary I get an error: permission denied, although I'm in a root shell.



Cheers

Hilti
Title: Re: newlisp on the Nokia N810 Internet tablet
Post by: newdep on July 23, 2010, 05:28:23 AM
No the N900 is a different ARM architecture irrc...

A port should not be that difficult... Though I dont have a N900 neighter

do I have the N900 simmulation on my Linux running.. Sorry..



But feel free to delivery to the N900 community ;-)



Im still using the N810 with newlisp although not recently updated..

Great travel mate for newlisp ;-)
Title: Re: newlisp on the Nokia N810 Internet tablet
Post by: hilti on July 23, 2010, 08:53:56 AM
Compiling newLISP on Nokia N900



I like the pragmatic way, so I just compiled newLISP directly on my N900. This is the way how it's done in Your X-Terminal:



1. You need to install the package "rootsh" to be able doing some hacking stuff ;-)

2. Install GCC from this repository

deb http://repository.maemo.org/ fremantle/sdk free

4. Open Terminal and type this "apt-get install build-essential"

5. Install readline support "apt-get install libreadline5-dev"

6. Download newlisp source via "wget http://www.newlisp.org/downloads/newlisp-10.2.8.tgz" into /home/user

7. From /home/user do a "./configure"

8. Then MAKE via "make -f makefile_linux_maemo_utf8"

9. Do a check "make check"

10. Install "make install"

11. Starty newLISP by typing "newlisp"



Happy newLISPing!



Cheers Hilti
Title: Re: newlisp on the Nokia N810 Internet tablet
Post by: newdep on September 08, 2010, 06:44:07 AM
Aaaaaaa Slick ;-)



Very nice!...



Im still on the N810 used it 2 weeks ago for newlisp.. Great device to run it on..



Good to see its now up for the N900 ;-)  Thanks for posting!