Skip to content

Software installation

jujumo edited this page Feb 13, 2012 · 33 revisions

Install Ubuntu 11 from scratch

Get sources

  • Install GIT: sudo apt-get install git qgit
  • Create a dev directory : mkdir dev/; cd dev
  • and then dowload source code : git clone https://username@github.com/lebipbip/le-BipBip.git lebipbip

Compile the sources

Install tools

See WIKI here.

  • sudo apt-get install build-essential bison flex libgmp-dev libmpfr-dev libmpc-dev texinfo dpkg
  • sudo apt-get install msp430-libc mspdebug msp430mcu binutils-msp430 gcc-msp430
  • sudo apt-get install eclipse

Now should have gcc for msp430: check by :

  • /usr/bin/msp430-gcc -v

Upload software on device

  • mspdebug rf2500 -q "prog solarclimb.elf"

commit changes

Setup GIT to commit

To commit changes, you should set up your SSH. You can find the procedure on : linux-set-up-git.

Once this is done, you should modify the git URL to specify the SSH protocol :

  • gedit .git/config
  • replace the URL = https://username@... by URL = git://git@...

Apply modifications

  • check for modifications with git status
  • add new file (if needed) with git add <filename>
  • and finaly apply change to the server with : git commit. Enter a comment about the commit when GIT ask for it.

IDE

Codeblocks

  • sudo apt-get install codeblocks