How to update NELK

From DAVE Developer's Wiki
Revision as of 14:38, 30 November 2012 by DevWikiAdmin (talk | contribs) (Installation Steps)

Jump to: navigation, search
Info Box
Naon am387x-dm814x.png Applies to Naon
VirtualMachine.png Applies to DVDK

Introduction[edit | edit source]

This page describes how to perform the NELK update procedure, starting from an existing DVDK installation and updating only the SDK (tools, sources and root file system) without creating a full new DVDK virtual machine.


200px-Emblem-important.svg.png

We assume that the DVDK provided with a previous kit version is already installed on the system

Installation Steps[edit | edit source]

200px-Emblem-important.svg.png

The update package consists in a compressed archive (nelk-x.y.x.tar.bz2). It can be downloaded from DAVE website or it can be found on the NELK distribution (SD card or USB pen drive)

  • Start the DVDK virtual machine
  • Take a snapshot of the current VM state. This creates a sort of "backup" which can be used to restore the previous installation, and you need this because to do the update you need to remove the previous SDK (unless you have extended the disk space - see VirtualBox Extending Disk Size)
  • Fetch the nelk-x.y.x.tar.bz2 file. You have the following options:
    • download it from inside the virtual machine (with a browser or file downloader);
    • share the file from a shared folder on the host machine using the "Shared Folder" feature (you need to have the Virtual Guest extension installed, see VirtualBox Shared folders);
    • share the file from a shared folder on the local network (you need to have a working network configuration, see VirtualBox Network Configuration;
  • Enter the sdk directory: cd /home/shared/devel/dave/naon-DAA/sw/linux/sdk
  • Remove the symbolic link to the root file system: rm rfs/nelk
  • Unless you have enough space available on the VM disk (you should have extended it following the VirtualBox Extending Disk Size guide), remove the previous sdk directory: rm -fr sdk-x.xx.xx.xx
  • Un-compress the archive: sudo tar xvjf <path-to-update-archive>nelk-x.y.z.tar.bz2. Include in the command the actual path to the nelk-x.y.x.tar.bz2 archive according on how you fetched it

The new components (sdk-x.xx.xx.xx directory, rfs/nelk-x.xx.xx.xx root file system and rfs/nelk symbolic link) will be installed into the /home/shared/devel/dave/naon-DAA/sw/linux/sdk directory.