WeTek Community Forum

[Tutorial] How to bake own Enigma in 9 simple steps. :)

justasonjustason Posts: 6WeTek Community Member
The building instructions are mostly the copy/paste from existing build instructions for another platform.
(https://github.com/openmips/stbgui/b...ster/README.md)
But nevertheless...

1. Environment used Ubuntu 14.04 LTS
Please reserve enough disk space. Finally the folder size is about 18G, with the sources used during the compilation deleted.

2. Install auxiliary packages:
sudo apt-get install -y autoconf automake bison bzip2 chrpath coreutils cvs default-jre default-jre-headless diffstat flex g++ gawk gcc gettext git-core gzip help2man htop info java-common libc6-dev libglib2.0-dev libperl4-corelibs-perl libproc-processtable-perl libtool libxml2-utils make ncdu ncurses-bin ncurses-dev patch perl pkg-config po4a python-setuptools quilt sgmltools-lite sshpass subversion swig tar texi2html texinfo wget xsltproc zip zlib1g-dev

3. Set your shell to /bin/bash
sudo dpkg-reconfigure dash
When asked: Install dash as /bin/sh?
select "NO"

4. Clone oe-alliance git
git clone git://github.com/oe-alliance/build-enviroment.git

5. Switch to folder build-enviroment
cd build-enviroment

6. Update build-enviroment
make update

6.5 Replace minidlna recipe with a newer one
The existing minidlna recipe, which is coming along with oe-alliance build environment is old as a sh..t of a mammoth.
I doubt it is compiling anywhere now.
So, in order to build the image, the minidlna recipe must be replaced with something newer...
...just replace the existing folder (~/build-enviroment/meta-oe-alliance/meta-oe/recipes-connectivity/minidlna) with the content of the attachment.
On the other hand, on could:
a. Clone the meta-openembedded layer locally
b. modify the minidlna.inc to contain LICENSE_FLAGS_WHITELIST += "commercial"
string
c. replace the recipe

7. Finally you can start building a image, I used to bake openatv
make MACHINE=wetekplay DISTRO=openatv image

8. Sit back and relax
Because it is about to bake over 9000 recipes, so it might take some time

9. The hot and steaming image will be available at:
~/build-enviroment/builds/openatv/release/wetekplay/tmp/deploy/images/wetekplay/

ls -al
total 112572
drwxrwxr-x 2 developer developer 4096 Nov 20 14:14 .
drwxrwxr-x 3 developer developer 4096 Nov 20 03:47 ..
-rw-r--r-- 2 developer developer 294 Nov 20 14:12 README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
-rw-rw-r-- 2 developer developer 4067840 Nov 20 03:47 modules--3.10.76-.1-wetekplay-20151119224509.tgz
lrwxrwxrwx 1 developer developer 48 Nov 20 03:47 modules-wetekplay.tgz -> modules--3.10.76-.1-wetekplay-20151119224509.tgz
-rw-r--r-- 1 developer developer 105671128 Nov 20 14:14 openatv-5.1-wetekplay-20151120_sdcard.zip
-rw-r--r-- 1 developer developer 1244216 Nov 20 13:50 splash576.bmp
lrwxrwxrwx 1 developer developer 51 Nov 20 03:47 uImage-dtb -> uImage-dtb--3.10.76-.1-wetekplay-20151119224509.bin
-rw-r--r-- 2 developer developer 4468555 Nov 20 03:47 uImage-dtb--3.10.76-.1-wetekplay-20151119224509.bin
lrwxrwxrwx 1 developer developer 51 Nov 20 03:47 uImage-dtb-wetekplay.bin -> uImage-dtb--3.10.76-.1-wetekplay-20151119224509.bin


Enjoy!

Comments

  • spibasespibase Posts: 15WeTek Community Member
    thanks for this tut,

    all working now after some days of trying and updating.

    regards
  • nerronnerron Posts: 5WeTek Community Member
    hi
    thanks for tuto
    i tried to build but i have error message
    some one have any idea ?

    Makefile:653 : la recette pour la cible « image » a échouée
    make: *** [image] Erreur 1
    k@k-System-Product-Name:~/build-enviroment$ make MACHINE=wetekplay DISTRO=openatv image
    check internet connection: Online
    NOTE: Your conf/bblayers.conf has been automatically updated.
    ERROR: OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Failed to create a file with a long name in TMPDIR. Please use a filesystem that does not unreasonably limit filename length.
    Failed to create a file with a long name in SSTATE_DIR. Please use a filesystem that does not unreasonably limit filename length.
Sign In or Register to comment.
Help Center

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

© Copyright 2014 - Creative Dreams | Powered by Vanilla
All times are UTC