GithubHelp home page GithubHelp logo

chip-sdk's Introduction

CHIP-SDK

Everything needed to develop software for C.H.I.P.

While it is possible to install the SDK natively on your computer, currently the only supported way is to run it from a virtual machine.

System Requirements

A version of Windows, Mac OS X or your favourite Linux distribution running VirtualBox and Vagrant. For the virtual machine at least of free 1 GB RAM are necessary. Up to 40 GB of disk space may be used.

Getting started with the Vagrant image

Installation

  1. Install VirtualBox
  2. Install VirtualBox Extension Pack for the host - this is necessary to flash C.H.I.P from inside the virtual machine.
  3. Operating system specific stuff:
    • If you are on Windows, you need to add the VirtualBox installation directory to your PATH.
    • In case of a Ubuntu host: add your user to the vboxusers group!
  4. Install Git
  5. Git clone https://github.com/NextThingCo/CHIP-SDK

Start up the Virtual Machine

In a shell on the host type to following to start up the virtual machine:

cd CHIP-SDK/vagrant
vagrant up

Login to the Virtual mashine

In a shell on the host type to following:

cd CHIP-SDK/vagrant
vagrant ssh

Shutdown the Virtual machine

In a shell on the host type:

vagrant halt

Troubleshooting

In case you run into trouble because the kernel in the VM was updated and the shared vagrant folder can no longer be mounted, update the guest additions by typing the following in the chip_sdk/vagrant directory on the host:

vagrant plugin install vagrant-vbguest

Also look at this blog post

Build the flash image for CHIP

Start the build process

In a shell on the host log into the virtual machine by typing:

vagrant ssh

Logged in to the virtual machine type:

/vagrant/install.sh

Flash a new C.H.I.P for the first time

Login to the virtual machine:

vagrant ssh
cd $HOME/chip_sdk/tools
sudo BUILDROOT_OUTPUT_DIR=../buildroot/output ./chip-fel-flash.sh erase-bb     

Plese note the 'erase-bb' option which causes the bad block table of the NAND to be erased. This is not necessary for C.H.I.Ps that have already been flashed.

chip-sdk's People

Contributors

kaplan2539 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.