Trash Fr:Développement Lua

From ArmadeusWiki
Revision as of 20:51, 1 August 2010 by Salocin68 (Talk | contribs) (Fr:Développement Lua moved to Trash Fr:Développement Lua)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Page under construction... Construction.png Informations on this page are not guaranteed !!

On this page you will learn how to create your first Lua script for your Armadeus board. Lua.png


Lua interpreter is not installed in the default rootfs. Lua version installed by Buildroot is x.x.

  • Launch Buildroot's menuconfig:
armadeus$ make menuconfig
  • In

Menuconfig package.png
Menuconfig package python.png

  • choosing Lua package automatically selects readline and ncurses one
  • then save your configuration and build your system:
armadeus$ make
  • copy generated rootfs to your NFS directory or on your MMC/SD. If you already have an existing rootfs then just make a:
armadeus$ cp -r buildroot/build_arm/root/usr/ /local/export/

Here /local/export/ is my NFS directory.

Source code

First take your favorite editor/IDE and create the following script:

print "Hello from APF9328 ! Today it's:"

Save it as example.lua


Not needed. Transforming Lua scripts in "executables" with Luac hasn't been tested yet.


  • Copiez votre script example.luaà votre carte APF9328 via votre répertoire d'export NFS ou sur votre MMC/SD
  • ensuite sur votre console APF, lancez-le:
# lua example.lua
Hello from APF9328 ! Today it's:
Thu Jun  6 21:57:17 2007

Maintenant, vous y êtes ! ;-)


Other languages:

English Flag.svg English  •  French Flag.svg Français