diff options
Diffstat (limited to 'README.rpi')
-rw-r--r-- | README.rpi | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/README.rpi b/README.rpi new file mode 100644 index 0000000..34dfb3c --- /dev/null +++ b/README.rpi | |||
@@ -0,0 +1,64 @@ | |||
1 | Instructions for RaspberryPi device | ||
2 | ----------------------------------- | ||
3 | |||
4 | You might want to check from README.md file what poky and meta-oe | ||
5 | revisions are supported. Usually HEAD version work ok but if it | ||
6 | does not, then you can use the tested version mentioned in that file. | ||
7 | |||
8 | $ mkdir yocto | ||
9 | $ cd yocto | ||
10 | $ git clone git://git.yoctoproject.org/poky | ||
11 | $ cd poky | ||
12 | $ git clone git://git.openembedded.org/meta-openembedded | ||
13 | $ git clone git://git.yoctoproject.org/meta-eca | ||
14 | $ export YOCTO=`pwd` | ||
15 | $ git clone git://git.yoctoproject.org/meta-raspberrypi | ||
16 | $ . oe-init-build-env build-rpi | ||
17 | $ cd conf | ||
18 | |||
19 | Edit bblayers.conf file and add these layers to BBLAYERS variable, | ||
20 | if your name is not "user", then fix the path accordingly. | ||
21 | |||
22 | /home/user/yocto/poky/meta-eca/meta-eca | ||
23 | /home/user/yocto/poky/meta-eca/meta-eca-bsp | ||
24 | /home/user/yocto/poky/meta-raspberrypi | ||
25 | /home/user/yocto/poky/meta-openembedded/meta-oe | ||
26 | /home/user/yocto/poky/meta-openembedded/meta-systemd | ||
27 | /home/user/yocto/poky/meta-openembedded/meta-networking | ||
28 | /home/user/yocto/poky/meta-openembedded/meta-ruby | ||
29 | |||
30 | Edit local.conf file | ||
31 | |||
32 | * set BB_NUMBER_THREADS and PARALLEL_MAKE accordingly to your machine | ||
33 | capabilities | ||
34 | * set your target to MACHINE ?= "raspberrypi" | ||
35 | * set DISTRO ?= "eca" | ||
36 | * add BBMASK = "meta/recipes-connectivity/bluez/bluez4*|meta-openembedded/meta-systemd/oe-core/recipes-connectivity/bluez/bluez4*" | ||
37 | |||
38 | |||
39 | If you want to build the Internet-of-Things version of ECA, then add | ||
40 | |||
41 | /home/user/yocto/poky/meta-eca/meta-iot | ||
42 | |||
43 | to bblayers.conf and also add | ||
44 | |||
45 | DISTRO_FEATURES_append = " internet-of-things" | ||
46 | |||
47 | to local.conf file. | ||
48 | |||
49 | |||
50 | Then build the distro | ||
51 | |||
52 | $ cd $BUILDDIR | ||
53 | $ bitbake eca-image | ||
54 | |||
55 | If the build succeeds, the result image can be found at | ||
56 | tmp-eglibc/deploy/images/raspberrypi | ||
57 | |||
58 | Insert SD card and figure out its device name (use dmesg | ||
59 | and see messages at the end). Lets assume the SD card is at /dev/mmcblk0 | ||
60 | |||
61 | $ cd tmp-eglibc/deploy/images/raspberrypi | ||
62 | $ sudo dd if=eca-image-raspberrypi.rpi-sdimg of=/dev/mmcblk0 | ||
63 | |||
64 | Then sync and eject the card, insert it to the device and boot. | ||