Open main menu

DAVE Developer's Wiki β

Changes

Development Environment HowTo (NELK)

337 bytes added, 09:17, 28 March 2014
m
Build the whole kit
To allow fast development startup, NELK is provided as [[:Category:DVDK|DVDK]] virtual appliance, in this way user can setup its development environment in minutes and get productive as soon as the virtual machine starts.
 
==== NELK updates ====
 
{{ImportantMessage|text=It's recommended to use the latest available NELK version. Please refer to [[NELK Release Notes]] and [[How to update NELK]] pages for further information.}}
=== Build the whole kit ===
* enter the ''EZSDK_INSTALL_DIR'' directory: <code>cd /home/shared/devel/dave/naon-DAA/sw/linux/sdk/sdk-x.xx.xx.xx</code>
** where the ''x'' should be substituted with the current release which NELK is based (e.g. ''/home/shared/devel/dave/naon-DAA/sw/linux/sdk/sdk-5.05.02.00'')
* configure the build system to build the components for a specific SOM (Naon, Maya or DIDO). To do that, set the <code>NAON_VARIANT</code> environement variable (available values are '''naon''', '''maya''' or '''dido''') with the following command (please note that, if the use of the '''sudo''' command is required during the build, the '''-E''' option must be included, otherwise the '''NAON_VARIANT''' environment setting will be lost)<br><pre class="workstation-terminal">export NAON_VARIANT=<SOM name></pre>
* run <code>make all</code> command ('''N.B.''': with NELK versions older than the 4.0.0, '''before''' running <code>make all</code> '''for the first time''' after DVDK installation, '''please run''' <code>make linux_defconfig</code> '''as first step'''. This command creates the <code>.config</code> file with the kernel configuration and allows the build procedure to go on; without this first step, the build procedure stops with a related error)<br>
<pre class="workstation-terminal">
</pre>
* when the build is completed (which may take a while, depending on user's PC power), user can install the binaries with <code>sudo -E make install</code> (<code>sudo</code> is required due file permission restriction on the root file systemand the ''-E'' option is required to preserve the NAON_VARIANT environement variable)<br>
<pre class="workstation-terminal">
nelk@nelk-desktop:/home/shared/devel/dave/naon-DAA/sw/linux/sdk/sdk-5.03.01.15$ sudo -E make install
[sudo] password for nelk:
install -d /home/shared/devel/dave/naon-DAA/sw/linux/sdk/sdk-5.03.01.15/../rfs/nelk/boot