This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:development:build-ubuntu [2022/07/05 23:40] hyphop [Build Options] |
products:sbc:common:development:build-ubuntu [2026/05/11 02:13] (current) nick |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | We provided | + | We provide |
| - | You can follow the steps below to build the Ubuntu OS image. | + | You can follow the steps below. |
| ===== Preparation ===== | ===== Preparation ===== | ||
| - | Install | + | Install |
| - | ```sh | + | ```shell |
| $ sudo apt update | $ sudo apt update | ||
| $ sudo apt install git make lsb-release qemu-user-static | $ sudo apt install git make lsb-release qemu-user-static | ||
| ``` | ``` | ||
| - | ===== Get Fenix Source Code ===== | + | ===== Get Fenix source code ===== |
| - | Clone the Fenix repository to somewhere, e.g. '' | + | Clone the Fenix repository to a directory, e.g., '' |
| - | ```sh | + | ```shell |
| $ mkdir ~/project | $ mkdir ~/project | ||
| $ cd ~/project/ | $ cd ~/project/ | ||
| Line 26: | Line 26: | ||
| ``` | ``` | ||
| - | ===== Setup the Build Environment | + | ===== Setup the build environment |
| - | You should setup the build environment first. \\ | + | You must set up the build environment first. \\ |
| - | For example: '' | + | For example: '' |
| - | ```sh | + | ```shell |
| $ cd ~/ | $ cd ~/ | ||
| $ source env/ | $ source env/ | ||
| ``` | ``` | ||
| - | ===== Build the OS Image ===== | + | ===== Build the OS image ===== |
| - | Just type '' | + | Simply |
| - | + | <WRAP tip > | |
| - | <WRAP tip > | + | If this is your first time building an image, the script will check your host environment and install essential packages. |
| - | If this is your first time building an image, the script will check your host' | + | |
| </ | </ | ||
| - | ===== Other Build Commands | + | ===== Other build commands |
| ==== Build U-Boot ==== | ==== Build U-Boot ==== | ||
| - | ```sh | + | ```shell |
| $ make uboot | $ make uboot | ||
| ``` | ``` | ||
| - | ==== Build U-Boot Debian | + | ==== Build U-Boot Debian |
| - | ```sh | + | ```shell |
| $ make uboot-deb | $ make uboot-deb | ||
| ``` | ``` | ||
| Line 63: | Line 62: | ||
| ==== Build Linux ==== | ==== Build Linux ==== | ||
| - | ```sh | + | ```shell |
| $ make kernel | $ make kernel | ||
| ``` | ``` | ||
| - | ==== Build Linux Debian | + | ==== Build Linux Debian |
| - | ```sh | + | ```shell |
| $ make kernel-deb | $ make kernel-deb | ||
| ``` | ``` | ||
| - | ==== Build GPU Debian | + | ==== Build GPU Debian |
| - | ```sh | + | ```shell |
| $ make gpu-deb | $ make gpu-deb | ||
| ``` | ``` | ||
| - | ==== Build the Board Debian | + | ==== Build the board Debian |
| - | ```sh | + | ```shell |
| $ make board-deb | $ make board-deb | ||
| ``` | ``` | ||
| - | ==== Build all Debian | + | ==== Build all Debian |
| - | ```sh | + | ```shell |
| $ make debs | $ make debs | ||
| ``` | ``` | ||
| - | ==== Build U-Boot | + | ==== Build U-Boot |
| - | ```sh | + | ```shell |
| $ make uboot-image | $ make uboot-image | ||
| ``` | ``` | ||
| - | ==== Clean Linux Source Tree ==== | + | ==== Clean Linux source tree ==== |
| - | ```sh | + | ```shell |
| $ make kernel-clean | $ make kernel-clean | ||
| ``` | ``` | ||
| - | ==== Show Linux Menuconfig | + | ==== Show Linux menuconfig |
| - | ```sh | + | ```shell |
| $ make kernel-config | $ make kernel-config | ||
| ``` | ``` | ||
| - | ==== Save Linux Defconfig | + | ==== Save Linux defconfig |
| - | ```sh | + | ```shell |
| $ make kernel-saveconfig | $ make kernel-saveconfig | ||
| ``` | ``` | ||
| - | ==== Clean U-Boot | + | ==== Clean U-Boot |
| - | ```sh | + | ```shell |
| $ make uboot-clean | $ make uboot-clean | ||
| ``` | ``` | ||
| - | ==== Help Messages | + | ==== Help messages |
| You can get help messages by executing '' | You can get help messages by executing '' | ||
| - | ```sh | + | ```shell |
| $ make help | $ make help | ||
| Fenix scripts help messages: | Fenix scripts help messages: | ||
| Line 149: | Line 148: | ||
| ``` | ``` | ||
| - | ==== Build Options | + | ==== Build options |
| Options for building: | Options for building: | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| * '' | * '' | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| * '' | * '' | ||
| Line 173: | Line 172: | ||
| Please refer to [[https:// | Please refer to [[https:// | ||
| - | ==== Add User to a Docker | + | ==== Add user to a Docker |
| - | ```sh | + | ```shell |
| $ sudo usermod -aG docker $USER | $ sudo usermod -aG docker $USER | ||
| ``` | ``` | ||
| <WRAP important > | <WRAP important > | ||
| - | You need to logout | + | You must log out or reboot the system for this change |
| </ | </ | ||
| Line 186: | Line 185: | ||
| ==== Check Docker ==== | ==== Check Docker ==== | ||
| - | ```sh | + | ```shell |
| $ docker run hello-world | $ docker run hello-world | ||
| ``` | ``` | ||
| - | If you see the following | + | If you see the following |
| ```txt | ```txt | ||
| Line 223: | Line 222: | ||
| ==== Build Fenix in Docker ==== | ==== Build Fenix in Docker ==== | ||
| - | Get Docker image: | + | Pull the Docker image: |
| - | ``` | + | ```shell |
| $ cd ~/ | $ cd ~/ | ||
| $ docker pull numbqq/ | $ docker pull numbqq/ | ||
| ``` | ``` | ||
| - | Build image in Docker: | + | Build the image in Docker: |
| - | ```sh | + | ```shell |
| $ docker run -it --name fenix -v $(pwd):/ | $ docker run -it --name fenix -v $(pwd):/ | ||
| -v / | -v / | ||
| Line 241: | Line 240: | ||
| | | ||
| ``` | ``` | ||
| - | Start your build from inside the Docker container. | + | Start your build from inside the Docker container: |
| - | ```sh | + | ```shell |
| khadas@919cab43f66d: | khadas@919cab43f66d: | ||
| khadas@919cab43f66d: | khadas@919cab43f66d: | ||
| ``` | ``` | ||
| - | Restart the Docker container. | + | Restart the Docker container: |
| - | ```sh | + | ```shell |
| $ docker start fenix | $ docker start fenix | ||
| $ docker exec -ti fenix bash | $ docker exec -ti fenix bash | ||
| ``` | ``` | ||