blueberry-pages/src/docs/system-build.md
2023-12-21 16:55:39 +08:00

38 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 系统构建
icon: hammer
order: 3
---
## Linux Kernel
[https://github.com/niuyuling/linux](https://github.com/niuyuling/linux)
## U-BOOT
[https://github.com/niuyuling/u-boot](https://github.com/niuyuling/u-boot)
## 其他Linux发行版
如果想在其他的Linux发行版上进行构建您需要进行以下额外的工作
选择您喜欢的Linux发行版并安装`Docker version 24.0.7`
确保您的磁盘空间不少于`60G`,内存不少于`2G`
按照`Docker`安装方法安装`Docker`
如果选择使用官方的build构建系统请下载补丁文件`blueberry.patch`
```
apt-get -y install git wget
git clone --depth=1 --branch=main https://github.com/armbian/build
wget https://git.aixiao.me/aixiao/Blueberry/raw/branch/master/SF/ArmDebian/blueberry.patch
cd build
git apply ../blueberry.patch # 打补丁
./compile.sh build BOARD=blueberry BRANCH=legacy BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=yes RELEASE=bookworm
```
如果使用build构建系统是官方也非官方(二次修改)
```
apt-get -y install git
git clone --depth=1 --branch=main https://git.aixiao.me/aixiao/build.git
cd build
./compile.sh build BOARD=blueberry BRANCH=legacy BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=yes RELEASE=bookworm
```