eLua on Blackfin?

classic Classic list List threaded Threaded
10 messages Options
GillesToo GillesToo
Reply | Threaded
Open this post in threaded view
|

eLua on Blackfin?

Hello

I'm playing with the Blackfin-based Atcom IP01 embedded device to run an Asterisk IP PBX:

www.openippbx.org/index.php?title=IP01
http://blackfin.uclinux.org/gf/

Since it only has 64MB RAM, ie. about 30MB left after the whole thing is loaded, and Lighttpd + PHP takes close to 3MB, I'm looking for a light but rich scripting language to write applets for this device.

I know very little about Lua at this point, but would it be possible to port eLua to Blackfin, or is it too much work?

Thank you.
Tim Michals Tim Michals
Reply | Threaded
Open this post in threaded view
|

Re: eLua on Blackfin?

Since it is already running Linux, just add the Lua option in busy box and it will be added to the files system...


From: GillesToo <[hidden email]>
To: [hidden email]
Sent: Wed, June 2, 2010 3:13:52 PM
Subject: [eLua-dev] eLua on Blackfin?


Hello

I'm playing with the Blackfin-based Atcom IP01 embedded device to run an
Asterisk IP PBX:

www.openippbx.org/index.php?title=IP01
http://blackfin.uclinux.org/gf/

Since it only has 64MB RAM, ie. about 30MB left after the whole thing is
loaded, and Lighttpd + PHP takes close to 3MB, I'm looking for a light but
rich scripting language to write applets for this device.

I know very little about Lua at this point, but would it be possible to port
eLua to Blackfin, or is it too much work?

Thank you.
--
View this message in context: http://elua-development.2368040.n2.nabble.com/eLua-on-Blackfin-tp5132384p5132384.html
Sent from the eLua Development mailing list archive at Nabble.com.
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev


_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
GillesToo GillesToo
Reply | Threaded
Open this post in threaded view
|

Re: eLua on Blackfin?

Tim Michals wrote
Since it is already running Linux, just add the Lua option in busy box and it will be added to the files system...
Thanks Tim. Do you mean that Busybox already includes Lua, and it's just a matter of editing its configuration?

Here's some information I found while looking around:

> /bin/busybox  
BusyBox v1.4.1 (2008-03-10 09:54:22 CST) multi-call binary
Copyright (C) 1998-2006  Erik Andersen, Rob Landley, and others.
Licensed under GPLv2.  See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: [function] [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as!

Currently defined functions:
        [, [[, awk, basename, cat, chgrp, chmod, chown, chroot,
        cmp, cp, cut, date, dd, df, diff, dmesg, du, echo, env,
        expr, false, find, free, getty, grep, gunzip, head, hostname,
        id, insmod, ipkg, kill, killall, klogd, last, ln, logger,
        logname, ls, lsmod, md5sum, mkdir, mkfifo, mknod, modprobe,
        more, mount, msh, mv, netstat, nslookup, passwd, pidof,
        ping, ps, pwd, renice, rm, rmmod, sed, sh, sleep, stty,
        sync, syslogd, tail, tar, telnet, test, tftp, time, top,
        touch, traceroute, true, tty, umount, uname, uptime, vi,
        watch, wget, which, xargs, zcat

Thank you.
Tim Michals Tim Michals
Reply | Threaded
Open this post in threaded view
|

Re: eLua on Blackfin?

yes, I use the make menuconfig

http://www.busybox.net/FAQ.html#getting_started

The menuconfig then will do all of the work... also, if you already have a config file there is a menu option to select the location...
Tim Michals Tim Michals
Reply | Threaded
Open this post in threaded view
|

Re: eLua on Blackfin?

Sorry.... it is buildroot... I always get those mixed up... sorry...
GillesToo GillesToo
Reply | Threaded
Open this post in threaded view
|

Re: eLua on Blackfin?

Thanks Tim. I'll ask the powers that be how to set up a build system on Linux x86 and somehow recompile BusyBox for the Blackfin.
Tim Michals Tim Michals
Reply | Threaded
Open this post in threaded view
|

Re: eLua on Blackfin?

The issue is not busybox, The issue is you have to recompile lua for ucLinux.. I use buildroot to create compiler, busybox, etc..   Maybe the best place is to start at http://blackfin.uclinux.org/gf/project/uclinux-dist  and ask there, there are a ton of projects etc.  http://docs.blackfin.uclinux.org/doku.php?id=simple_hello_world_application_example
sorry for the confusion...
GillesToo GillesToo
Reply | Threaded
Open this post in threaded view
|

Re: eLua on Blackfin?

Got it. I'll ask there how feasible it is to compile Lua and whatever modules I need. Thank you.
jbsnyder jbsnyder
Reply | Threaded
Open this post in threaded view
|

Re: eLua on Blackfin?

If you're able to compile most anything else for the environment, Lua
should be pretty painless.

Depending on what you're looking for in functionality, you may find
some of the components added to eLua useful including some of the
patches to Lua core, the various modules we include, etc.. If you're
looking for help with any of those, feel free to ask.

eLua is mainly intended for bare metal installs with no OS underneath
and thus provides functionality for doing everything from basic
bootstrapping (standard startup code for various platforms) to
providing basic filesystem services internally.  The other components,
however, should be pretty reusable, though, and may either be broken
out from our sources or, if they're based on others' work, found from
their original providers.

Best of luck with Lua on Blackfin :-)

On Wed, Jun 2, 2010 at 4:32 PM, GillesToo <[hidden email]> wrote:

>
> Got it. I'll ask there how feasible it is to compile Lua and whatever modules
> I need. Thank you.
> --
> View this message in context: http://elua-development.2368040.n2.nabble.com/eLua-on-Blackfin-tp5132384p5132689.html
> Sent from the eLua Development mailing list archive at Nabble.com.
> _______________________________________________
> eLua-dev mailing list
> [hidden email]
> https://lists.berlios.de/mailman/listinfo/elua-dev
>



--
James Snyder
Biomedical Engineering
Northwestern University
[hidden email]
PGP: http://fanplastic.org/key.txt
Phone: (847) 448-0386
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
GillesToo GillesToo
Reply | Threaded
Open this post in threaded view
|

Re: eLua on Blackfin?

jbsnyder wrote
If you're able to compile most anything else for the environment, Lua
should be pretty painless.
Thanks James. I'll spend the next few days trying to set up a "buildroot" on Fedora and try compiling applications to run on the Atcom. Hopefully, I'll even manage to turn them into BAPS packages for easier install.