Skip to content
svc.swciuser edited this page Mar 16, 2026 · 10 revisions

Cix Linux Opensource

English | 简体中文 |


Prerequisites

  • Compilation must be performed with root or sudo privileges.

I. Environment Setup

1. Install Dependencies

Install all necessary system and build tools:

apt update
apt install -y git curl sudo wget python3-pip python-is-python3 \
             lsb-release p7zip-full p7zip-rar bison build-essential

2. Configure Git

git config --global user.name "your_account_name"
git config --global user.email "your_email@example.com"

3. Install the Repo Tool

curl https://storage.googleapis.com/git-repo-downloads/repo -o repo
chmod +x repo
mv ./repo /usr/bin/

Note: The repo tool requires Python 3. The python-is-python3 package installed earlier ensures the python command is correctly symlinked.

II. Code Download and Workspace Setup

1. Initialize the Workspace

mkdir workspace
cd workspace
repo init -b cix_p1_k6.6_master https://github.com/cixtech/cix-manifest/

2. Sync the Codebase

repo sync

Note: Syncing the final repository may take a considerable amount of time and is subject to network fluctuations. Please be patient until the process completes.

III. Preparing the Build Environment

1.Source the Environment Script

source ./build-scripts/envtool.sh

2. Initialize the Build Environment

export USER=root
newer_env

3. Fetch Build Assets

source ./build-scripts/envtool.sh
updateres
  • Note: The resource packages are quite large, so an extended download time is expected.
  • Troubleshooting: If you encounter an "incomplete resources" error or extraction fails, simply re-run the command until it succeeds.

IV. Building

1. Start the build

source ./build-scripts/envtool.sh
export USER=root
build all

2. Build Artifacts

Upon successful compilation, the generated output images are located in:

./output/cix_evb/images/

Clone this wiki locally