README.rst 2.95 KB
Newer Older
David Mondou's avatar
David Mondou committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
------------------------
Rigado Vesta Gateway BSP
------------------------


This document assumes the development environment is being built on a clean install of Ubuntu 14.04 and the user is comfortable with using the Linux command line. Complete the following steps from the Linux command line.


To install the essential Yocto Project host packages run the following command:
    - *sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev*

To install the i.MX layers host packages run the following command:
    - *sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc u-boot-tools git*

15
16
17
18
19
20
To install the Node.js host packages run the following command:
    - For compiling for 32-bit ARM with x86_64 host you need to enable x86 packages/libraries. For Ubuntu it might be done with the following command: *sudo dpkg --add-architecture i386*
    - Update *apt-get* cache: *sudo apt-get update*
    - Install Node.js dependencies: *sudo apt-get install g++-multilib libssl-dev:i386 libcrypto++-dev:i386 zlib1g-dev:i386 bluetooth bluez libbluetooth-dev libudev-dev*
    - Previous command also includes necessary libraries and packages to build the Noble package for Node-RED

David Mondou's avatar
David Mondou committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
To install the `repo` utility, run the following commands:
    - *mkdir ~/bin*
    - *curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo*
    - *chmod a+x ~/bin/repo*

Add the following line to the .bashrc file to ensure that the ~/bin folder is in your PATH variable:
    - *export PATH=~/bin:$PATH*

Make sure that git is setup properly with the following commands below:
    - *git config --global user.name "Your Name"*
    - *git config --global user.email "Your Email"*
    - *git config –list*

Initialize the repo with the master branch of the repository with the following commands:
    - *mkdir vesta-gateway-bsp*
    - *cd vesta-gateway-bsp*
37
    - *repo init -u https://git.rigado.com/vesta/board-support-package -b node-red*
David Mondou's avatar
David Mondou committed
38
    - *repo sync -c -j1*
David Mondou's avatar
David Mondou committed
39

40
41
42
43
44
45
46
47
48
49
50
51
    NOTE: without -j1 repo will appear to lock up when it is actually asking for your user name.

Set up the environment with the following command substituting MACHINE_TYPE for the correct MACHINE:
	- *MACHINE=<MACHINE TYPE> DISTRO=poky source setup-environment build*
	  
Below is the list of the different MACHINE types supported:
	- vesta-100
	- vesta-200
	- vesta-300
     
Example with MACHINE type vesta-300:
    - *MACHINE=vesta-300 DISTRO=poky source setup-environment build*
David Mondou's avatar
David Mondou committed
52

David Mondou's avatar
David Mondou committed
53
    NOTE: This next instruction will take several hours to build.
David Mondou's avatar
David Mondou committed
54
55

To start the build run the following command:
David Mondou's avatar
David Mondou committed
56
    - *bitbake vesta-image-developer*
David Mondou's avatar
David Mondou committed
57
58
59
60

After a build is complete, the created image will reside in veta-gateway-bsp/build/tmp/deploy/images. Each image build creates a U-Boot, kernel, and rootfs.