Khadas VIM3 + newest kernel

83 views
Skip to first unread message

Tommi Savikko

unread,
Nov 14, 2023, 8:50:04 AM11/14/23
to doubango-ai
Hi,

Khadas has released new (beta) image of VIM3: https://forum.khadas.com/t/vim3-3l-ubuntu-22-04-linux-5-15-testing-images-are-available-now/20600

What is interesting there is ability to offload H264 decoding to hardware.

Quick test with new image and Ultimate-ALPR shows that there no (yet) support for it.

Running runtimeKey outputs this:

```
*[COMPV INFO]: [UltBaseOpenCL] !!!Booom!!!, OpenCL successfully loaded [libOpenCL.so]
*[COMPV INFO]: [UltOcrEngine] Tensorflow version: 1.12.3
*[COMPV INFO]: [UltAlprPlugin] Loading plugin: /home/khadas/devel/ultimateALPR-SDK/binaries/linux/aarch64/libultimatePluginAmlogicNPU.so ...
*[COMPV INFO]: [CompVSharedLib] Loading sharded library from /home/khadas/devel/ultimateALPR-SDK/binaries/linux/aarch64/libultimatePluginAmlogicNPU.so
*[COMPV INFO]: [CompVSharedLib] Loaded shared lib: /home/khadas/devel/ultimateALPR-SDK/binaries/linux/aarch64/libultimatePluginAmlogicNPU.so
*[COMPV INFO]: [UltAlprSdkEnginePrivate]**** Copyright (C) 2011-2023 Doubango Telecom <https://www.doubango.org> ****
You're using an unlicensed version of ultimateALPR-SDK <https://github.com/DoubangoTelecom/ultimateALPR-SDK>
without the rights to include the SDK in any form of commercial product.
*[COMPV INFO]: [UltAlprSdkEnginePrivate]IC took 0 millis
*[COMPV INFO]: [CompVCpu] Enabling asm code
*[COMPV INFO]: [CompVCpu] Enabling intrinsic code
***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
file: "/home/ultimate/ultimateALPR/SDK_dev/lib/../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_PARAMETER) -> Serial number is empty. Required for Amlogic path mapping.
***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
file: "/home/ultimate/ultimateALPR/SDK_dev/lib/../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_PARAMETER) -> PathToNPU failed
***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
file: "/home/ultimate/ultimateALPR/SDK_dev/lib/../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [UltAlprSdkEngine]Failed to initialize the engine
****[ULTALPR_SDK FATAL]: function: "main()"
file: "/home/ultimate/ultimateALPR/SDK_dist/samples/c++/runtimeKey/runtimeKey.cxx"
line: "59"
message: Assertion failed!
Aborted

```

This is just kind request to Doubango to add support for this. Previous version of VIM3 image (or actually rather old one :) ) works flawlessly, but this would probably speed up things (or just lower the CPU usage) when working.

Prateek Garg

unread,
Nov 18, 2023, 4:48:38 AM11/18/23
to Tommi Savikko, doubango-ai
Even I faced the same issue, I thought something was wrong with my device, can you tell which image worked?

--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/doubango-ai/4db4eae5-c0be-45de-9694-285340e82ec1n%40googlegroups.com.


--
Thanks and regards
Prateek Garg
ParkSmart

Tommi Savikko

unread,
Nov 18, 2023, 3:56:26 PM11/18/23
to doubango-ai
It is the old one; not able to remember correctly which one but search this group for vim3 and you will find it :)

Mamadou DIOP

unread,
Nov 18, 2023, 5:30:15 PM11/18/23
to Tommi Savikko, doubango-ai

Prateek Garg

unread,
Nov 20, 2023, 9:17:51 AM11/20/23
to doubango-ai
Do we have any plan to support the latest OS or even Khadas VIM4?

Mamadou DIOP

unread,
Nov 20, 2023, 9:20:14 AM11/20/23
to Prateek Garg, doubango-ai

Tommi Savikko

unread,
Nov 20, 2023, 9:26:12 AM11/20/23
to doubango-ai
Is there any possibilities to add this to your plans?

Mamadou DIOP

unread,
Nov 20, 2023, 9:27:39 AM11/20/23
to Prateek Garg, doubango-ai
To clarify:
VIM3 (5.0 TOPS) has a faster NPU than VIM4 (3.2 TOPS). The quantized (int8) models (tensorflow lite) will run fine (and fast) on VIM4 CPU, we will not add NPU acceleration.
The SDK works on any ARM device using Linux or Android. Support for NPU or GPU acceleration is another history but unfortunately we cannot afford time to add them.
Hi,

"/home/ultimate/ultimateALPR/SDK_dev/lib/../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_PARAMETER) -> Serial number is empty. Required for Amlogic path mapping.
***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
"/home/ultimate/ultimateALPR/SDK_dev/lib/../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_PARAMETER) -> PathToNPU failed
***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
"/home/ultimate/ultimateALPR/SDK_dev/lib/../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [UltAlprSdkEngine]Failed to initialize the engine
****[ULTALPR_SDK FATAL]: function: "main()"
"/home/ultimate/ultimateALPR/SDK_dist/samples/c++/runtimeKey/runtimeKey.cxx"
line: "59"
message: Assertion failed!
Aborted

```

This is just kind request to Doubango to add support for this. Previous version of VIM3 image (or actually rather old one :) ) works flawlessly, but this would probably speed up things (or just lower the CPU usage) when working.
--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/doubango-ai/4db4eae5-c0be-45de-9694-285340e82ec1n%40googlegroups.com.


--
Thanks and regards
Prateek Garg
ParkSmart

--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/doubango-ai/aca011c9-5150-4924-bf85-2b93f54b8f76n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.

Mamadou DIOP

unread,
Nov 20, 2023, 9:36:13 AM11/20/23
to Tommi Savikko, doubango-ai
Unfortunately no, we cannot afford it. We'd change the price for a license from 39$ to 200$ if we have to spend high amount of time to support and maintain all GPUs and NPUs available on the market. We already supports all Jetson devices, OpenVINO on all x86 devices, VIM3 NPU, CUDA and partial OpenCL, quantized (int8) inference on all ARM devices... that's already a lot for the price we propose 
No
Hi,

"/home/ultimate/ultimateALPR/SDK_dev/lib/../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_PARAMETER) -> Serial number is empty. Required for Amlogic path mapping.
***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
"/home/ultimate/ultimateALPR/SDK_dev/lib/../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_PARAMETER) -> PathToNPU failed
***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
"/home/ultimate/ultimateALPR/SDK_dev/lib/../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [UltAlprSdkEngine]Failed to initialize the engine
****[ULTALPR_SDK FATAL]: function: "main()"
"/home/ultimate/ultimateALPR/SDK_dist/samples/c++/runtimeKey/runtimeKey.cxx"
line: "59"
message: Assertion failed!
Aborted

```

This is just kind request to Doubango to add support for this. Previous version of VIM3 image (or actually rather old one :) ) works flawlessly, but this would probably speed up things (or just lower the CPU usage) when working.
--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/doubango-ai/4db4eae5-c0be-45de-9694-285340e82ec1n%40googlegroups.com.


--
Thanks and regards
Prateek Garg
ParkSmart

--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.

Tommi Savikko

unread,
May 8, 2024, 8:57:05 AMMay 8
to doubango-ai
Returning back to this issue. Would you - with some monetary compensation - dig in to this issue little more?
Reply all
Reply to author
Forward
0 new messages