-
Notifications
You must be signed in to change notification settings - Fork 296
Building
Building OpenBK requires different steps for different platforms. Please follow the right guide for your device. For information on flashing your device, see our Flashing guide.
In order to build the OpenBK repository for your device, you will need a valid installation of Cygwin. You will also need Git installed.
⚠️ The build process for OpenBK has not been verified to work with Git Bash (MinGW). Use it at your own risk.
Navigate to your workspace (eg. C:\OpenBK), and clone the repository.
cd C:/OpenBK
git clone https://github.com/openshwprojects/OpenBK7231N
BK7231T: Replace references to "BK7231N" with "BK7231T". We will be using the BK7231N in this guide.
Download SDK:
- openshwprojects / OpenBK7231N – for BK7231N
- openshwprojects / OpenBK7231T – for BK7231T
❗Take note to download the SDK version that is appropriate for your device. If you're not sure, then check your module type before proceeding
Move into the just-downloaded folder (repository name), and clone the app repository openshwprojects / OpenBK7231T_App into the apps
folder.
cd ./OpenBK7231N
git clone https://github.com/openshwprojects/OpenBK7231T_App apps\OpenBK7231T_App
The application should now be located (in your project directory) at C:\OpenBK\OpenBK7231N\apps\OpenBK7231T_App\
.
These next steps will require a Cygwin terminal.
→ To get started, open a Cygwin prompt.
Next, build the project at its root directory (eg. C:/OpenBK/OpenBK7231N).
The Advanced build can be used when you have an app folder that differs from the one in step 2
Default build:
./b.sh
Advanced build:
./build_app.sh apps/openbk_custom-app openbk_custom-app 1.0.0
Get XR809 SDK: https://github.com/openshwprojects/OpenXR809
Clone this repository to openxr809/project/oxr_sharedApp/shared/
Run ./build_oxr_sharedapp.sh
To build for W800 & W801, you need the OpenW800 SDK fork
Clone this repository, and place it into the OpenW800\sharedAppContainer\sharedApp\src\devicegroups
directory in the SDK folder.
To compile, you only need C-Sky Development Suite for CK-CPU C/C++ Developers (V5.2.11 B20220512). Get it here: https://occ.t-head.cn/community/download (registration required)
The IDE/compiler bundle used in this guide was cds-windows-mingw-elf_tools-V5.2.11-20220512-2012.zip
Wiki Home Link