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.5. Compile rootfs

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

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

  • 2) Select Rootfs and all debpackages, then press Enter


    Img 4.15

  • 3) Then select the model of the development board


    Img 4.16

  • 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


    Img 4.17

      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

  • 5) Then select the type of rootfs


    Img 4.18

  • 6) Then select the type of image


    Img 4.19

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

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

  • 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.20

  • 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 choose the XFCE type desktop


    Img 4.21


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


    Img 4.23

  • 9) Then it will start to compile rootfs, and some information prompted during compilation is explained as follows

      a. The type of rootfs

      [ o.k. ] local not found [ Creating new rootfs cache for bullseye ]

      b. The storage path of the compiled rootfs compressed package

      [ o.k. ] Target directory [ orangepi-build/external/cache/rootfs ]

      c. The name of the rootfs compressed package generated by compilation

      [ o.k. ] File name [ bullseye-xfce-arm64.5250ec7002de9e81a41de169f1f89721.tar.lz4 ] 

  • 10) View the rootfs compressed package generated by compilation

      a. bullseye-xfce-arm64.5250ec7002de9e81a41de169f1f89721.tar.lz4 is the rootfs compressed package, the meaning of each field of the name is

        a) bullseye indicates the type of linux distribution of rootfs

        b) xfce means rootfs is the type of desktop version, if it is cli, it means the type of server version

        c) arm64 represents the architecture type of rootfs

        d) 25250ec7002de9e81a41de169f1f89721 is the MD5 hash value generated by the package names of all software packages installed by rootfs. As long as the list of software packages installed by rootfs is not modified, this value will not change. The compilation script will use this MD5 hash value to generate Determine whether rootfs needs to be recompiled

      b. bullseye-xfce-arm64.5250ec7002de9e81a41de169f1f89721.tar.lz4.list lists the package names of all packages installed by rootfs

      test@test:~/orangepi-build$ ls external/cache/rootfs/
      bullseye-xfce-arm64.5250ec7002de9e81a41de169f1f89721.tar.lz4
      bullseye-xfce-arm64.5250ec7002de9e81a41de169f1f89721.tar.lz4.current
      bullseye-xfce-arm64.5250ec7002de9e81a41de169f1f89721.tar.lz4.list

  • 11) If the required rootfs already exists under external/cache/rootfs, then compiling rootfs again will directly skip the compilation process and will not restart the compilation. When compiling the image, it will also go to external/cache/rootfs to find out whether it has If there is rootfs available in the cache, use it directly, which can save a lot of download and compilation time

     <         > 


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