Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:development:build-ubuntu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:development:build-ubuntu [2022/07/10 23:17]
hyphop [Build Fenix in Docker]
products:sbc:common:development:build-ubuntu [2026/05/11 02:13] (current)
nick
Line 3: Line 3:
 ===== Introduction ===== ===== Introduction =====
  
-We provided [[kg>fenix|Fenix]] for you to build the Ubuntu OS images easily. \\ +We provide [[kg>fenix|Fenix]] to help you build Ubuntu OS images easily. \\ 
-You can follow the steps below to build the Ubuntu OS image.+You can follow the steps below.
  
  
 ===== Preparation ===== ===== Preparation =====
  
-Install ecessial dependencies.+Install essential dependencies.
  
 ```shell ```shell
Line 16: Line 16:
 ``` ```
  
-===== Get Fenix Source Code =====+===== Get Fenix source code =====
  
-Clone the Fenix repository to somewhere, e.g. ''~/project''+Clone the Fenix repository to a directory, e.g.''~/project''.
  
 ```shell ```shell
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: ''Board type'', ''Linux version'', ''distribution'', etc.+For example: ''Board type'', ''Linux version'', ''distribution''.
  
 ```shell ```shell
Line 37: Line 37:
 ``` ```
  
-===== Build the OS Image =====+===== Build the OS image =====
  
-Just type ''make'' to start build.+Simply type ''make'' to start the build.
  
- +<WRAP tip >  
-<WRAP tip > +If this is your first time building an image, the script will check your host environment and install essential packages. Additionally, repositories (such as U-Boot and Linux) will be automatically cloned from the Khadas GitHub. 
-If this is your first time building an image, the script will check your host'environment and install some essential packages. In addition, repositories (U-BootLinux) will be cloned automatically from the Khadas GitHub.+
 </WRAP> </WRAP>
  
-===== Other Build Commands =====+===== Other build commands =====
  
  
Line 55: Line 54:
 ``` ```
  
-==== Build U-Boot Debian Package ====+==== Build U-Boot Debian package ====
  
 ```shell ```shell
Line 67: Line 66:
 ``` ```
  
-==== Build Linux Debian Package ====+==== Build Linux Debian package ====
  
 ```shell ```shell
Line 73: Line 72:
 ``` ```
  
-==== Build GPU Debian Package ====+==== Build GPU Debian package ====
  
 ```shell ```shell
Line 79: Line 78:
 ``` ```
  
-==== Build the Board Debian Package ====+==== Build the board Debian package ====
  
 ```shell ```shell
Line 85: Line 84:
 ``` ```
  
-==== Build all Debian Packages ====+==== Build all Debian packages ====
  
 ```shell ```shell
Line 91: Line 90:
 ``` ```
  
-==== Build U-Boot Image ====+==== Build U-Boot image ====
  
 ```shell ```shell
Line 97: Line 96:
 ``` ```
  
-==== Clean Linux Source Tree ====+==== Clean Linux source tree ====
  
 ```shell ```shell
Line 103: Line 102:
 ``` ```
  
-==== Show Linux Menuconfig ====+==== Show Linux menuconfig ====
  
 ```shell ```shell
Line 109: Line 108:
 ``` ```
  
-==== Save Linux Defconfig ====+==== Save Linux defconfig ====
  
 ```shell ```shell
Line 115: Line 114:
 ``` ```
  
-==== Clean U-Boot Source Tree ====+==== Clean U-Boot source tree ====
  
 ```shell ```shell
Line 121: Line 120:
 ``` ```
  
-==== Help Messages ====+==== Help messages ====
  
 You can get help messages by executing ''make help'': You can get help messages by executing ''make help'':
Line 149: Line 148:
 ``` ```
  
-==== Build Options ====+==== Build options ====
  
 Options for building: Options for building:
  
   * ''NO_CCACHE'' - ccache option   * ''NO_CCACHE'' - ccache option
-    * ''NO_CCACHE=no make'' - Enable ccache **default** +    * ''NO_CCACHE=no make'' - Enable ccache **(default)** 
     * ''NO_CCACHE=yes make'' - Disable ccache      * ''NO_CCACHE=yes make'' - Disable ccache 
  
   * ''COMPRESS_IMAGE'' - compress build image option   * ''COMPRESS_IMAGE'' - compress build image option
-    * ''COMPRESS_IMAGE=no make'' - Don't compress **default**+    * ''COMPRESS_IMAGE=no make'' - Don't compress **(default)**
     * ''COMPRESS_IMAGE=yes make'' - Compress image with xz     * ''COMPRESS_IMAGE=yes make'' - Compress image with xz
  
Line 173: Line 172:
 Please refer to [[https://docs.docker.com/engine/install/|Docker Documentation]]. Please refer to [[https://docs.docker.com/engine/install/|Docker Documentation]].
  
-==== Add User to a Docker Group ====+==== Add user to a Docker group ====
  
 ```shell ```shell
Line 180: Line 179:
  
 <WRAP important > <WRAP important >
-You need to logout or reboot the system for changes to take effect.+You must log out or reboot the system for this change to take effect. 
 </WRAP> </WRAP>
  
Line 190: Line 189:
 ``` ```
  
-If you see the following print-out, Docker has installed successfully:+If you see the following output, Docker has been installed successfully:
  
 ```txt ```txt
Line 223: Line 222:
 ==== Build Fenix in Docker ==== ==== Build Fenix in Docker ====
  
-Get Docker image:+Pull the Docker image:
  
 ```shell ```shell
Line 230: Line 229:
 ``` ```
  
-Build image in Docker:+Build the image in Docker:
  
 ```shell ```shell
Line 241: Line 240:
              numbqq/fenix              numbqq/fenix
 ``` ```
-Start your build from inside the Docker container.+Start your build from inside the Docker container:
  
 ```shell ```shell
Line 248: Line 247:
 ``` ```
  
-Restart the Docker container.+Restart the Docker container:
  
 ```shell ```shell
Last modified: 2022/07/10 23:17 by hyphop