> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tsukineos.top/llms.txt
> Use this file to discover all available pages before exploring further.

# TsukineOS 建構概覽：從原始碼建構系統

> 從原始碼建構 TsukineOS（簡版流程）

# 建構概覽

TsukineOS 基於 Linux 6.6 LTS，使用者空間由 BusyBox + dash + 自研工具組成。建構產物為可啟動的 initrd 及對應映像檔。

## 建構流程（簡版）

```bash theme={null}
# 1. 取得 Linux 6.6 核心原始碼
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.6.tar.xz
tar xf linux-6.6.tar.xz && cd linux-6.6
make defconfig && make -j$(nproc)
cd ..

# 2. 建構 BusyBox（靜態編譯）
# 設定為靜態連結後編譯，產出 busybox 二進位檔

# 3. 建構 dash
# 編譯 dash 作為 /bin/sh

# 4. 編譯自研工具
# 建構 taskmgr / net / ping / iwr / tknpkg / tknpkkj

# 5. 打包 initrd
# 將核心模組、BusyBox、dash、自研工具、init 指令碼組裝為 initrd
```

## 產物

* x86\_64：可啟動 ISO（含核心 + initrd）
* ARM64：可燒錄 IMG（含核心 + initrd，適配樹莓派類裝置）

## 詳細說明

各步驟的相依性與交叉編譯設定見 [建構環境](/zh-Hant/build-guide/environment)。完整、可復現的建構指令碼以倉庫 `TsukineOS` 原始碼為準。

<Note>
  本頁內容由 AI 翻譯，可能不完全準確。以簡體中文原文為準。
</Note>

***

© 2024-2026 TsutokiTeo/JunweiZhang. All rights reserved.
