Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Mihini/Build Mihini"

(Configure Mihini: <= Commented this part, as it should be the default)
Line 38: Line 38:
 
</source>
 
</source>
  
=== Configure Mihini ===
+
<!--=== Configure Mihini ===
  
 
Now there are some configuration items in <code>~/mihini/lua/agent/defaultconfig.lua</code> that you may optionally want to modify.
 
Now there are some configuration items in <code>~/mihini/lua/agent/defaultconfig.lua</code> that you may optionally want to modify.
Line 49: Line 49:
 
* Enable the highest logfile output level, this way you can easily see errors in the code
 
* Enable the highest logfile output level, this way you can easily see errors in the code
 
**<source lang="lua">log.defaultlevel = "DEBUG" -- default log level: can be one of NONE, ERROR, WARNING, INFO, DETAIL, DEBUG, ALL. See log.lua for details</source>
 
**<source lang="lua">log.defaultlevel = "DEBUG" -- default log level: can be one of NONE, ERROR, WARNING, INFO, DETAIL, DEBUG, ALL. See log.lua for details</source>
 +
-->
  
 
=== Next ===
 
=== Next ===

Revision as of 03:27, 9 July 2013

So far, all the work is being done directly on your remote system. For the following sample, pi user is being used on a RaspberryPi running Raspbian Wheezy. Connect to you device using ssh and follow the steps.

$ ssh pi@raspberry.local

Compilation prerequisites

First of all, you will need some compilation tools:

$ sudo apt-get install build-essential cmake git telnet

Sources to compile

Get the sources

$ cd
$ git clone http://git.eclipse.org/gitroot/mihini/org.eclipse.mihini.git mihini-repo

Run the compilation

Lets move into the repository you just cloned. Make sure you have all prerequisites mentioned above installed. Now, simply run the following in the repository you just cloned, here called mihini-repo/.

# Compile Mihini
$ cd mihini-repo
$ ./bin/build.sh
 
# Compile a Lua interpreter
$ cd build.default/
$ make lua
# Optional, if you want to use Modbus over serial (e.g. to run the Greenhouse sample)
$ make modbus_serial
 
# Move the result of the build in your HOME
$ mv runtime ~/mihini


Next

Then, you can go back to the main tutorial: Run Mihini on an Open Hardware platform


Back to the top