aboutsummaryrefslogtreecommitdiffstats
path: root/README.vbox
blob: a2454046e3531c13a2c163e85be0cd68c14cdc5f (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
73
74
75
76
77
78
79
Instructions for VirtualBox
---------------------------

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-pc
$ 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-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 ?= "genericx86"
* 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/genericx86

Then we need to convert the image to VDI format that VirtualBox can use.

$ cd tmp-eglibc/deploy/images/genericx86
$ vboxmanage convertfromraw --format=VDI eca-image-genericx86.hddimg eca-image-genericx86.vdi

If you have eca machine already configured in VirtualBox, then the following
instructions below might not be needed.

$ vboxmanage createvm --register --name eca
$ vboxmanage hostonlyif create ipconfig vboxnet1  --ip 192.168.42.1 --netmask 255.255.255.0
$ vboxmanage modifyvm eca --ostype Linux --nic1 hostonly --hostonlyadapter1 vboxnet1
$ vboxmanage storagectl eca --name IDE --add ide --bootable on --controller PIIX4
$ vboxmanage storageattach eca --storagectl IDE  --port 0 --device 0 --type hdd --medium eca-image-genericx86.vdi
$ vboxmanage startvm eca