aboutsummaryrefslogtreecommitdiffstats
path: root/README.nuc
blob: 899fcef996b367029454c076a3c17e22caefd392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Instructions for Intel NUC
--------------------------

You might want to check from README.md file what poky and meta-oe
revisions are supported. This build has been tested with Yocto dizzy
release.

$ mkdir yocto
$ cd yocto
$ git clone git://git.yoctoproject.org/poky
$ cd poky
$ git checkout -b dizzy origin/dizzy
$ git clone git://git.openembedded.org/meta-openembedded
$ cd meta-openembedded
$ git checkout -b dizzy origin/dizzy
$ cd ..
$ git clone git://git.yoctoproject.org/meta-eca
$ git clone git://git.yoctoproject.org/meta-intel
$ cd meta-intel
$ git checkout -b dizzy origin/dizzy
$ cd ..
$ . oe-init-build-env build-nuc
$ cd conf

Edit bblayers.conf file and add these layers to BBLAYERS variable,
if your name is not "user", then fix the path accordingly.

/home/user/yocto/poky/meta-eca/meta-eca
/home/user/yocto/poky/meta-eca/meta-eca-bsp
/home/user/yocto/poky/meta-intel
/home/user/yocto/poky/meta-intel/meta-nuc
/home/user/yocto/poky/meta-openembedded/meta-oe
/home/user/yocto/poky/meta-openembedded/meta-systemd
/home/user/yocto/poky/meta-openembedded/meta-networking
/home/user/yocto/poky/meta-openembedded/meta-python
/home/user/yocto/poky/meta-openembedded/meta-ruby

Edit local.conf file

* set BB_NUMBER_THREADS and PARALLEL_MAKE accordingly to your machine
  capabilities (optional)
* set your target to MACHINE ?= "nuc"
* set DISTRO ?= "eca"
* add BBMASK = "meta/recipes-connectivity/bluez/bluez4*|meta-openembedded/meta-systemd/oe-core/recipes-connectivity/bluez/bluez4*"


If you want to build the Internet-of-Things version of ECA, then add

/home/user/yocto/poky/meta-eca/meta-iot

to bblayers.conf and also add

DISTRO_FEATURES_append = " internet-of-things"

to local.conf file.


Then build the distro

$ cd $BUILDDIR
$ bitbake eca-image

If the build succeeds, the result image can be found at
tmp-eglibc/deploy/images/nuc

Insert USB mass storage stick and figure out its device name (use dmesg
and see messages at the end). Lets assume the USB stick is at /dev/sdX

$ cd tmp-eglibc/deploy/images/nuc
$ sudo dd if=eca-image-nuc.hddimg of=/dev/sdX

Then eject the USB stick, insert it to NUC and boot.