diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:29:32 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:29:32 +0200 |
commit | 6b4c82f4657bdb56e6b7a56651d6d4bb91a35b8f (patch) | |
tree | 814ad3da280833de03535ca04cf5068da1d31822 /README.bbb | |
download | meta-eca-6b4c82f4657bdb56e6b7a56651d6d4bb91a35b8f.tar.gz |
initial commit for Enea Linux 4.0daisy-enea
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'README.bbb')
-rw-r--r-- | README.bbb | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/README.bbb b/README.bbb new file mode 100644 index 0000000..059ee8c --- /dev/null +++ b/README.bbb | |||
@@ -0,0 +1,86 @@ | |||
1 | Instructions for BeagleBoneBlack 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://github.com/beagleboard/meta-beagleboard.git | ||
16 | $ . oe-init-build-env build-bbb | ||
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-beagleboard/common-bsp | ||
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 ?= "beaglebone" | ||
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/beaglebone | ||
57 | |||
58 | Partition and format an SD card: | ||
59 | |||
60 | # fdisk -lu /dev/mmcblk0 | ||
61 | |||
62 | Disk /dev/mmcblk0: 3951 MB, 3951034368 bytes | ||
63 | 255 heads, 63 sectors/track, 480 cylinders, total 7716864 sectors | ||
64 | Units = sectors of 1 * 512 = 512 bytes | ||
65 | |||
66 | Device Boot Start End Blocks Id System | ||
67 | /dev/mmcblk0p1 * 63 144584 72261 c Win95 FAT32 | ||
68 | /dev/mmcblk0p2 144585 465884 160650 83 Linux | ||
69 | |||
70 | # mkfs.vfat -F 16 -n "boot" /dev/mmcblk0p1 | ||
71 | # mke2fs -j -L "root" /dev/mmcblk0p2 | ||
72 | |||
73 | The following assumes the SD card partition 1 and 2 are mounted at | ||
74 | /media/boot and /media/root respectively. Removing the card and reinserting | ||
75 | it will do just that on most modern Linux desktop environments. | ||
76 | |||
77 | $ sudo -s | ||
78 | # cd tmp-eglibc/deploy/images/beaglebone | ||
79 | # cp MLO /media/boot/ | ||
80 | # cp u-boot.img /media/boot/u-boot.bin | ||
81 | # cp uImage /media/boot/ | ||
82 | # tar x -C /media/root -f eca-image-beaglebone.tar.gz | ||
83 | # tar x -C /media/root -f modules-beaglebone.tgz | ||
84 | # sync | ||
85 | |||
86 | Then eject the SD card, insert it to your Beaglebone and boot. | ||