Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: quic-khrahul <[email protected]>
  • Loading branch information
quic-khrahul authored Jun 8, 2024
1 parent e5ddf25 commit 05b7796
Showing 1 changed file with 49 additions and 2 deletions.
51 changes: 49 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,63 @@ Follow these [build procedures](https://github.com/quic-yocto/meta-qcom-qim-prod
Run the following command from the build directory to generate the eSDK:

```console
bitbake -c do_populate_sdk qcom-multimedia-image
bitbake -c populate_sdk_ext qcom-multimedia-image
```

qcom-wayland-x86_64-qcom-multimedia-image-armv8-2a-qcm6490-toolchain-1.0.sh is generated at <WORKSPACE DIR>/build-qcom-wayland/tmp-glibc/deploy/sdk.

Extract the toolchain using
```console
./qcom-wayland-x86_64-qcom-multimedia-image-armv8-2a-qcm6490-toolchain-1.0.sh
./qcom-wayland-x86_64-qcom-multimedia-image-armv8-2a-qcm6490-toolchain-ext-1.0.sh
```

## Build Standalone Sample App using makefile.

Hello-QIM is the sample application that can be used to experience the capabilities of the Qualcomm
Linux platform. The sample application is hosted on GitHub.

Prerequisites:
Before you begin developing the Hello QIM sample application, ensure that you [Generate platform
SDK](https://github.com/quic/sample-apps-for-qualcomm-linux) on the host machine.

1. Run the following command to create the platform SDK if not already generated:
bitbake -c populate_sdk_ext qcom-multimedia-image
For example:
/local/mnt/workspace/qcom-6.6.13-QLI.1.0-Ver.1.2_qim-product-sdk/build-qcom-wayland$ bitbake -c populate_sdk_ext qcom-multimedia-image
The platform SDK is created at <WORKSPACE_DIR>/build-qcom-wayland/tmp-glibc/deploy/sdk/.
It is a standalone installer that can be shared with developers interest.

2. Run the following command to extract the platform eSDK:
Create directory and do the following to install platform eSDK,
/# sh /local/mnt/workspace/qcom-6.6.13-QLI.1.0-Ver.1.2_qim-product-sdk/build-qcom-wayland/tmp-glibc/deploy/sdk/qcom-wayland-x86_64-qcom-multimedia-image-armv8-2a-qcm6490-toolchain-ext-1.0.sh
The host is ready for application development. Next, you can develop your first application using the
platform eSDK.

2. Run the following command to go to the directory where the platform SDK was installed.
cd <installation directory of platfom SDK>
3. Run the following command to set up the source environment:
source environment-setup-armv8-2a-qcom-linux

4. git clone https://github.com/quic/sample-apps-for-qualcomm-linux
5. cd sample-apps-for-qualcomm-linux/Hello-QIM
6. export SDKTARGETSYSROOT=<path to installation directory of platfom SDK>/tmp/sysroots
Example : export SDKTARGETSYSROOT=/local/mnt/workspace/Platform_eSDK_plus_QIM/tmp/sysroots

export GST_APP_NAME=<appname>
Example: export GST_APP_NAME=gst-appsink
7. make

To run the Hello-QIM program, do the following

8. Run the following command to transfer the program to the Qualcomm Reference kit.
adb push gst-appsink /opt/
adb shell chmod 777 /opt/gst-appsink
cd /opt/
./gst-appsink -w 1280 -h 720.

The Hello-QIM application is successfully created. The following message is displayed:
Hello-QIM: Success creating pipeline and received camera frame.

## Model Details

Contains Qualcomm® Neural Processing SDK quantized models and TensorFlow Lite (TFLite) to execute the Sample applications :
Expand Down

0 comments on commit 05b7796

Please sign in to comment.