User Manual Orange Pi Zero 3

  Features   |  Use   |  Linux   |    Linux SDK     |  Android   |  Android SRC   |

RU          EN  

Chapt 4. Linux SDK - orangepi-build instruction
Страница:   124    125    126    127    128    129    130    131    132  


4.6. Compile linux image

  • 1) Run the build.sh script, remember to add sudo permission

    test@test:~/orangepi-build$ sudo ./build.sh

  • 2) Select FullOSimagefor flashing, then press Enter


    Img 4.24

  • 3) Then select the model of the development board


    Img 4.25

  • 4) Then select the branch type of the kernel source code, the type of rootfs maintained by different versions of the kernel source code is different

      a. The current branch can see debian11, ubuntu20.04, ubuntu22.04 three options

      b. The next branch can see debian11, debian12, ubuntu22.04 three options



    Img 4.26

  • 5) Then select the type of rootfs


    Img 4.27

  • 6) Then select the type of image

      a. Imagewithconsole interface (server) Indicates the image of the server version, which is relatively small

      b. Imagewithdesktopenvironment Indicates a mirror image with a desktop, which is relatively large



    Img 4.28

  • 7) If you are compiling the image of the server version, you can also choose to compile the Standard version or the Minimal version. The pre-installed software of the Minimal version will be much less than that of the Standard version. Please do not choose the Minimal version if there is no special requirement, because many things are not pre-installed by default. Some functions may not be available.


    Img 4.29

  • 8) If you are compiling the image of the desktop version, you also need to select the type of desktop environment. Currently only XFCE is maintained, so please select the XFCE type desktop


    Img 4.30


    Img 4.31
    You can then select additional packages that need to be installed. Please press the Enter key to skip directly here.


    Img 4.32

  • 9) Then it will start to compile the linux image. The general process of compilation is as follows

      a. Initialize the compilation environment of Ubuntu PC and install the software packages required for the compilation process

      b. Download the source code of u-boot and linux kernel (if cached, only update the code)

      c. Compile u-boot source code and generate u-boot deb package

      d. Compile the linux source code and generate linux-related deb packages

      e. Make the deb package of linux firmware

      f. Make the deb package of the orangepi-config tool

      g. Create a deb package supported by the board

      h. If you are compiling the desktop image, you will also create desktop-related deb packages

      i. Check whether the rootfs has been cached, if not, recreate the rootfs, if it has been cached, directly decompress and use

      j. Install the previously generated deb package into rootfs

      k. Make some specific settings for different development boards and different types of images, such as pre-installing additional software packages, modifying system configuration, etc.

      l. Then make an image file and format the partition, the default type is ext4

      m. Then copy the configured rootfs to the mirrored partition

      n. Then update initramfs

      o. Finally, write the bin file of u-boot into the image through the dd command

  • 10) After compiling the image, the following information will be prompted

      a. The storage path of the compiled image

      [ o.k. ] Done building
      [ output/images/orangepizero3_x.x.x_debian_bullseye_linux6.1.xx_xfce_desktop/ora \
      ngepizero3_x.x.x_debian_bullseye_linux6.1.xx_xfce_desktop.img ]
      

      b. Compilation time

      [ o.k. ] Runtime [ 19 min ] 

      c. Repeat the command to compile the image, and use the following command to start compiling the image directly without selecting through the graphical interface

    [ o.k. ] Repeat Build Options [ sudo ./build.sh
    BOARD=orangepizero3
    BRANCH=next BUILD_OPT=image RELEASE=bullseye
    BUILD_MINIMAL=no BUILD_DESKTOP=no
    KERNEL_CONFIGURE=yes ]

     <         > 


  • Страница:   124    125    126    127    128    129    130    131    132