Hains / openpli-dm920-python3

Build-environment for dm920 with Python 3
GNU General Public License v3.0
6 stars 1 forks source link

Build environment for dreambox 920 with Python 3.

Note Ubuntu 24.04 LTS!
Due to new security features, run on each OS startup:

sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

See: https://ubuntu.com/blog/whats-new-in-security-for-ubuntu-24-04-lts

-Submodules bitbake, openembedded-core and meta-openembedded from master branch,
 with git snapshot of August 30, 2024.
-GCC 14.2.0
-Glibc 2.40
-GStreamer 1.24.6
-Python 3.12.5
-OpenSSL 3.3.1
-Busybox 1.36.1
and more.

Tested with Ubuntu 24.04.

Dependencies:

sudo apt install -y autoconf automake bison bzip2 cvs default-jre diffstat flex g++ gawk gcc gettext git git-lfs gzip help2man make ncurses-bin lib32ncurses-dev libc6-dev libtool lz4 texinfo patch perl pkg-config subversion tar texi2html zlib1g-dev chrpath libxml2-utils xsltproc libglib2.0-dev python3-setuptools libc6-i386 genromfs guile-2.2-libs quilt zstd


To build image:

git clone https://github.com/Hains/openpli-dm920-python3.git

cd openpli-dm920-python3

make image


When the build is finished, the openpli-enigma2-14.2-dm920.tar.bz2 image file is located in the:

build/tmp/deploy/images/dm920/

directory.


To build feed:

make feed


To update your box, install Apache2:

sudo apt install apache2

Create symlinks to your build-environment:

cd /var/www/html

sudo mkdir feeds;cd feeds;sudo mkdir openpli-python3;cd openpli-python3;

sudo ln -s /home/<your username>/openpli-dm920-python3/build/tmp/deploy/ipk/dm920 dm920 

sudo ln -s /home/<your username>/openpli-dm920-python3/build/tmp/deploy/ipk/all all

sudo ln -s /home/<your username>/openpli-dm920-python3/build/tmp/deploy/ipk/cortexa15hf-neon-vfpv4 cortexa15hf-neon-vfpv4

With recent Apache2, fix file permission problem with symlinks:

sudo chown -Rf <username> openpli-dm920-python3/build/tmp/deploy/ipk


Add hostname or ip address to the site.conf file (file exist after make command), e.g. at the end of the file.

DISTRO_HOST = " <your ip address or hostname> "


To update the image, run:

make image                         // update image only.

or

make feed                          // update image and feed.


To update build-environment including all submodules, run:

make update

==========================================================