Thanks to visit codestin.com
Credit goes to github.com

Skip to content
forked from khadas/fenix

One-stop script set to build Ubuntu/Debian images

License

Notifications You must be signed in to change notification settings

rms007-sh/fenix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fenix script set to build Ubuntu/Debian images

Documentation Licence Version PRs Welcome

Supported build host:

  • Ubuntu Bionic 18.04 x64
  • 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
$ source env/setenv.sh
  • Build image
$ make

Somethings with Redhat series

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

Build in Docker

  • Build Docker image
$ cd fenix
$ docker build -t fenix .
  • 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 --privileged --device=/dev/loop0:/dev/loop0 --cap-add SYS_ADMIN fenix

We are in Docker container now, start to build.

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

To restart the Docker container a second time.

$ docker start fenix
$ docker exec -ti fenix bash

About

One-stop script set to build Ubuntu/Debian images

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 91.3%
  • Shell 5.3%
  • Makefile 1.7%
  • Batchfile 0.7%
  • PHP 0.6%
  • CMake 0.2%
  • Other 0.2%