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:vims-build-yocto [2024/12/31 02:42] nick [Get SDK] |
products:sbc:common:development:vims-build-yocto [2025/05/14 22:14] (current) nick |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== Preparation ===== | ===== Preparation ===== | ||
| - | Install essential dependencies. It is recommended to use '' | + | Install essential dependencies. |
| ```shell | ```shell | ||
| Line 20: | Line 20: | ||
| ===== Get SDK ===== | ===== Get SDK ===== | ||
| - | 1. Download the base SDK packages here: [[https:// | + | 1. Download the base SDK packages here: [[https:// |
| <WRAP important > | <WRAP important > | ||
| - | You need to download all 5 compressed files: | + | You need to download all 3 compressed files: |
| * khadas_vims_yocto_sdk_base.tar.gz00 | * khadas_vims_yocto_sdk_base.tar.gz00 | ||
| * khadas_vims_yocto_sdk_base.tar.gz01 | * khadas_vims_yocto_sdk_base.tar.gz01 | ||
| * khadas_vims_yocto_sdk_base.tar.gz02 | * khadas_vims_yocto_sdk_base.tar.gz02 | ||
| </ | </ | ||
| + | |||
| + | <WRAP tip > | ||
| + | You can also download the [[dl> | ||
| + | |||
| + | ```shell | ||
| + | $ md5sum -c md5sum/* | ||
| + | khadas_vims_yocto_sdk_base.tar.gz00: | ||
| + | khadas_vims_yocto_sdk_base.tar.gz01: | ||
| + | khadas_vims_yocto_sdk_base.tar.gz02: | ||
| + | ``` | ||
| + | </ | ||
| + | |||
| 2. Create and enter the working directory: | 2. Create and enter the working directory: | ||
| Line 62: | Line 74: | ||
| ```shell | ```shell | ||
| - | .repo/ | + | $ .repo/ |
| ``` | ``` | ||
| ===== Compile ===== | ===== Compile ===== | ||
| + | ==== Setup the Compile Configuration ==== | ||
| - | 1.Select Configuration: | + | You should setup the compile configuration before compilation. |
| - | kvim1s board: mesons4-kvim1s-5.15 | + | ```shell |
| + | $ cd < | ||
| + | $ source meta-meson/aml-setenv.sh | ||
| - | kvim3 board: mesong12b-kvim3-k5.15 | + | You're building on Linux |
| + | Lunch menu...pick a combo: | ||
| + | 1. | ||
| + | 2. mesongsm1-kvim3l-k5.15 | ||
| + | 3. mesons4-kvim1s-5.15 | ||
| + | 4. mesont7c-kvim4-5.15 | ||
| - | kvim3l board: mesongsm1-kvim3l-k5.15 | + | Which would you like? [2] |
| - | kvim4 board: mesont7c-kvim4-5.15 | + | ``` |
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | |||
| + | Build: | ||
| + | |||
| + | ```shell | ||
| + | $ bitbake amlogic-yocto | ||
| ``` | ``` | ||
| - | source meta-meson/ | ||
| - | You're building on Linux | ||
| - | Lunch menu...pick a combo: | ||
| - | 1. mesong12b-kvim3-k5.15 | ||
| - | 2. mesongsm1-kvim3l-k5.15 | ||
| - | 3. mesons4-kvim1s-5.15 | ||
| - | 4. mesont7c-kvim4-5.15 | ||
| - | Which would you like? [2] | + | The image located in '' |
| + | |||
| + | <WRAP tip > | ||
| + | The CONFIGURATION should be: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== Build in Docker ===== | ||
| + | |||
| + | You can also choose to build the OS image in a Docker container. | ||
| + | |||
| + | ==== Install Docker ==== | ||
| + | |||
| + | Please refer to [[https:// | ||
| + | |||
| + | ==== Add User to a Docker Group ==== | ||
| + | |||
| + | ```shell | ||
| + | $ sudo usermod -aG docker $USER | ||
| ``` | ``` | ||
| - | 2.Build: | + | <WRAP important > |
| + | You need to logout or reboot the system to take effect. | ||
| + | </ | ||
| - | ``` | + | ==== Build SDK in Docker ==== |
| - | bitbake amlogic-yocto | + | |
| + | |||
| + | Get Docker image: | ||
| + | |||
| + | ```shell | ||
| + | $ docker pull wesion/yocto-amlogic | ||
| ``` | ``` | ||
| - | 3.The constructed image path: | + | Enter Docker: |
| + | ```shell | ||
| + | $ cd ~/ | ||
| + | $ docker run --rm -it -u $(id -u):$(id -g) -v /opt:/opt -v $(pwd):/ | ||
| ``` | ``` | ||
| - | SDK/build/tmp/ | + | |
| + | Start your build from inside the Docker container. | ||
| + | |||
| + | ```shell | ||
| + | khadas@0126a0629f9a: | ||
| + | khadas@0126a0629f9a: | ||
| ``` | ``` | ||
| + | ===== Install the Yocto image ===== | ||
| - | ===== Burn the image ===== | ||
| + | Please refer to: | ||
| - | Please refer to: [固件烧录](https:// | + | * [[products: |
| + | * [[products:sbc: | ||
| + | * [[products:sbc:vim1s:install-os:install-os-into-emmc-via-usb-tool|]] | ||