{"id":13994744,"url":"https://github.com/khadas/fenix","last_synced_at":"2025-07-22T20:31:11.773Z","repository":{"id":39637649,"uuid":"96026113","full_name":"khadas/fenix","owner":"khadas","description":"One-stop script set to build Ubuntu/Debian images","archived":false,"fork":false,"pushed_at":"2024-10-30T02:48:35.000Z","size":307009,"stargazers_count":213,"open_issues_count":3,"forks_count":135,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-10-30T05:11:33.899Z","etag":null,"topics":["amlogic","arm64v8","build-tools","debian","distribution","kernel","kodi","rockchip","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khadas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-02T13:46:34.000Z","updated_at":"2024-10-30T02:48:38.000Z","dependencies_parsed_at":"2024-03-28T12:30:00.163Z","dependency_job_id":"ebb62d0c-2aac-4390-b7a4-09b53655b3aa","html_url":"https://github.com/khadas/fenix","commit_stats":null,"previous_names":[],"tags_count":64,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khadas%2Ffenix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khadas%2Ffenix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khadas%2Ffenix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khadas%2Ffenix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khadas","download_url":"https://codeload.github.com/khadas/fenix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227166911,"owners_count":17741009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amlogic","arm64v8","build-tools","debian","distribution","kernel","kodi","rockchip","ubuntu"],"created_at":"2024-08-09T14:03:04.750Z","updated_at":"2025-07-22T20:31:11.749Z","avatar_url":"https://github.com/khadas.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"[![Build](https://github.com/khadas/fenix/actions/workflows/build.yml/badge.svg)](https://github.com/khadas/fenix/actions/workflows/build.yml)\n[![Download](https://img.shields.io/badge/Test%20Build%20Images-Download-blue)](http://build.khadas.com:8080/khadas/fenix/images/)\n\n# Fenix script set to build Ubuntu/Debian images\n\n[![Documentation](https://img.shields.io/badge/Documentation-Reference-blue.svg)](https://docs.khadas.com/products/sbc/common/development/build-ubuntu)\n[![Licence](https://img.shields.io/badge/Licence-GPL--2.0-brightgreen.svg)](https://github.com/khadas/fenix/blob/master/LICENSE)\n[![Version](https://img.shields.io/badge/Version-v1.7.4-blue.svg)](https://github.com/khadas/fenix/tree/v1.7.4)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/khadas/fenix/pulls)\n\nSupported build host:\n\n* `Ubuntu 22.04 x64`\n  * `Building Ubuntu 22.04 image`\n  * `Building Ubuntu 24.04 image`\n  * `Building Debian 12 image`\n* `Docker`\n\n## How to use\n\n### Install essential packages\n\n```bash\n$ sudo apt-get install git make lsb-release qemu-user-static\n```\n\n### Clone Fenix repository\n\n```bash\n$ mkdir -p ~/project/khadas\n$ cd ~/project/khadas\n$ git clone --depth 1 https://github.com/khadas/fenix\n$ cd fenix\n```\n\n### Setup build environment\n\n* Setup environment manually.\n\n```bash\n$ source env/setenv.sh\n```\n\n* Or you can load environment configuration from file.\n\n```bash\n$ source env/setenv.sh config config-template.conf\n```\n\nYou need to edit `config-template.conf` file to correct variables.\n\n### Build image\n\n```bash\n$ make\n```\nFor Chinese users, it's better to use mirror from China:\n\n```bash\n$ DOWNLOAD_MIRROR=china make\n```\n\n## Somethings with Redhat series\n\n### Disable SELinux\n\n```bash\n$ vim /etc/selinux/config\n$ SELINUX=enforcing --\u003e SELINUX=disabled\n$ sudo reboot\n```\n\n## Build in Docker\n\n### Get Docker image\n\n```bash\n$ cd fenix\n$ docker pull numbqq/fenix:latest\n```\n\n### Build image in Docker\n\nRun fenix in docker.\n\n```bash\n$ docker run -it --name fenix -v $(pwd):/home/khadas/fenix \\\n             -v /etc/localtime:/etc/localtime:ro \\\n             -v /etc/timezone:/etc/timezone:ro \\\n             -v $HOME/.ccache:/home/khadas/.ccache --privileged \\\n             --device=/dev/loop-control:/dev/loop-control \\\n             --device=/dev/loop0:/dev/loop0 --cap-add SYS_ADMIN \\\n             numbqq/fenix\n```\n\nWe are in Docker container now, start to build.\n\n```bash\nkhadas@919cab43f66d:~/fenix$ source env/setenv.sh\nkhadas@919cab43f66d:~/fenix$ make\n```\n\nFor Chinese users, it's better to use mirror from China:\n\n```bash\nkhadas@919cab43f66d:~/fenix$ DOWNLOAD_MIRROR=china make\n```\n\n\nTo restart the Docker container a second time.\n\n```bash\n$ docker start fenix\n$ docker exec -ti fenix bash\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhadas%2Ffenix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhadas%2Ffenix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhadas%2Ffenix/lists"}