Code Monkey home page Code Monkey logo

fenix's Introduction

Build Download

Fenix script set to build Ubuntu/Debian images

Documentation Licence Version PRs Welcome

Supported build host:

  • Ubuntu 22.04 Jammy x64
    • Building Ubuntu 20.04 Focal image
    • Building Ubuntu 22.04 Jammy image
    • Building Debian 10 Buster image
    • Building Debian 11 Bullseye image
  • Docker

How to use

Install essential packages

$ sudo apt-get install git make lsb-release qemu-user-static

Clone Fenix repository

$ mkdir -p ~/project/khadas
$ cd ~/project/khadas
$ git clone --depth 1 https://github.com/khadas/fenix
$ cd fenix

Setup build environment

  • Setup environment manually.
$ source env/setenv.sh
  • Or you can load environment configuration from file.
$ source env/setenv.sh config config-template.conf

You need to edit config-template.conf file to correct variables.

Build image

$ make

For Chinese users, it's better to use mirror from China:

$ DOWNLOAD_MIRROR=china make

Somethings with Redhat series

Disable SELinux

$ vim /etc/selinux/config
$ SELINUX=enforcing --> SELINUX=disabled
$ sudo reboot

Build in Docker

Get Docker image

$ cd fenix
$ docker pull numbqq/fenix:latest

Build image in Docker

Run fenix in docker.

$ docker run -it --name fenix -v $(pwd):/home/khadas/fenix \
             -v /etc/localtime:/etc/localtime:ro \
             -v /etc/timezone:/etc/timezone:ro \
             -v $HOME/.ccache:/home/khadas/.ccache --privileged \
             --device=/dev/loop-control:/dev/loop-control \
             --device=/dev/loop0:/dev/loop0 --cap-add SYS_ADMIN \
             numbqq/fenix

We are in Docker container now, start to build.

khadas@919cab43f66d:~/fenix$ source env/setenv.sh
khadas@919cab43f66d:~/fenix$ make

For Chinese users, it's better to use mirror from China:

khadas@919cab43f66d:~/fenix$ DOWNLOAD_MIRROR=china make

To restart the Docker container a second time.

$ docker start fenix
$ docker exec -ti fenix bash

fenix's People

Contributors

numbqq avatar yan-wyb avatar jacobzang avatar ivanivanivanivanivanivan avatar zhangn1985 avatar gouwa avatar philstevenson avatar qqnumb avatar raffaellod avatar 150balbes avatar siyu6974 avatar hyphop avatar davorvr avatar tutorgaming avatar jeanlego avatar terry2droid avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.