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:53] nick | 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/ | 
| ``` | ``` | ||
| Line 111: | Line 123: | ||
| </ | </ | ||
| + | ===== 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 | ||
| + | ``` | ||
| + | |||
| + | <WRAP important > | ||
| + | You need to logout or reboot the system to take effect. | ||
| + | </ | ||
| + | |||
| + | ==== Build SDK in Docker ==== | ||
| + | |||
| + | |||
| + | Get Docker image: | ||
| + | |||
| + | ```shell | ||
| + | $ docker pull wesion/ | ||
| + | ``` | ||
| + | |||
| + | Enter Docker: | ||
| + | |||
| + | ```shell | ||
| + | $ cd ~/ | ||
| + | $ docker run --rm -it  -u $(id -u):$(id -g)  -v /opt:/opt -v $(pwd):/ | ||
| + | ``` | ||
| + | |||
| + | Start your build from inside the Docker container. | ||
| + | |||
| + | ```shell | ||
| + | khadas@0126a0629f9a: | ||
| + | khadas@0126a0629f9a: | ||
| + | ``` | ||
| ===== Install the Yocto image ===== | ===== Install the Yocto image ===== | ||