Skip to content

Commit

Permalink
docs(yocto): add instructions how to extract SDK for RPi Zero 2W
Browse files Browse the repository at this point in the history
  • Loading branch information
nikAizuddin committed Jul 9, 2023
1 parent d304d4a commit 2ce196d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/project/yocto/build/tmp*
/project/yocto/build/*.log
/project/yocto/build/*.lock
/project/yocto/build/sdk-*
/project/yocto/layers/meta-user/recipes-apps/datastruct-cpp/files/build

/project/third-party/*.bsp
2 changes: 1 addition & 1 deletion docs/yocto/all-targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ To test on specific boards, see the following list:

To clean build:
```
rm -rf project/yocto/build/{sstate-cache,tmp,cache,downloads,tmp-*,*.log}
rm -rf project/yocto/build/{sstate-cache,tmp,cache,downloads,tmp-*,sdk-*,*.log}
```
11 changes: 11 additions & 0 deletions docs/yocto/specifics/rpizero2-w.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ Build:
bitbake mc:raspberrypi0-2w-64:ros2-image
```

To build SDK and extract into `[PROJECT_ROOT]/project/yocto/build/sdk-rpizero2-w` directory:
```
bitbake mc:raspberrypi0-2w-64:ros2-image -c populate_sdk
./tmp-glibc/deploy/sdk/oecore-x86_64-cortexa53-toolchain-nodistro.0.sh -d sdk-rpizero2-w
```

**NOTE: To use the SDK for cross-compiling, use the following command to `source` SDK environment**:
```
source sdk-rpizero2-w/environment-setup-cortexa53-oe-linux
```


## Flashing to SD Card

Expand Down

0 comments on commit 2ce196d

Please sign in to comment.