Supported build host:
Ubuntu 24.04 x64Building Ubuntu 24.04 imageBuilding Debian 12 image
Docker
$ sudo apt-get install git make lsb-release qemu-user-static$ mkdir -p ~/project/khadas
$ cd ~/project/khadas
$ git clone --depth 1 https://github.com/khadas/fenix
$ cd fenix- Setup environment manually.
$ source env/setenv.sh- Or you can load environment configuration from file.
$ source env/setenv.sh config config-template.confYou need to edit config-template.conf file to correct variables.
$ makeFor Chinese users, it's better to use mirror from China:
$ DOWNLOAD_MIRROR=china make$ vim /etc/selinux/config
$ SELINUX=enforcing --> SELINUX=disabled
$ sudo reboot$ cd fenix
$ docker pull numbqq/fenix:latestRun 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/fenixWe are in Docker container now, start to build.
khadas@919cab43f66d:~/fenix$ source env/setenv.sh
khadas@919cab43f66d:~/fenix$ makeFor Chinese users, it's better to use mirror from China:
khadas@919cab43f66d:~/fenix$ DOWNLOAD_MIRROR=china makeTo restart the Docker container a second time.
$ docker start fenix
$ docker exec -ti fenix bash