Firefly ROC-RK3328-CC board compability
Hi all
Have any of you had the d415 or d435 running on the Firefly ROC-RK3328-CC board? Or do you see this possible? The ROC-RK3328-CC has a single USB 3 port, and therefore seems more suitable than e.g. the Raspberry Pi.
[Realsense Customer Engineering Team Comment] Hi @BGA3,
Since it has the USB3 capability, you can have a try. But, you may also need the kernel patch.
What do your mean with kernel patch? Does the RealSense SKD/API only work on a specific linux/ubuntu version? Sorry, im not very experienced in the linux world.
Hi @BGA3
In general, you are correct. RealSense devices only work on specific Linux versions. That list is continuously growing, but until all patches are upstreamed, we need to provide patches per kernel / distribution.
We also provide a libuvc backend, that lets you work with RealSense on any linux based system without patches using user-mode driver, but because it is a user-mode solution it comes with some stability and reliability limitations.
Please see Linux Installation for more information.
Thanks for your reply, @dorodnic. The ROC-RK3328-CC appears to be running Ubuntu 16.04, is this supported by the realsense SDK? If not, is there any plans to make this work?
Thanks in advance
[Realsense Customer Engineering Team Comment] Hi @BGA3,
librealsense SDK can support below platforms. Since ROC-RK3328-CC is an ARM platform, probably, you may need to resolve the kernel patches based on below Linux instruction. By the way, what's its kernel version?
- Ubuntu 14/16.04/18.04 LTS (Linux Kernel 4.4, 4.8 ,4.10, 4.13 and 4.15)
per default its 4.4.103. So I guess I need do downgrade this to make it compatible with the realsense sdk?
[Realsense Customer Engineering Team Comment] Hi @BGA3,
Kernel 4.4.x is fine and the kernel version should support D400 series camera depth format as default.
OIkay so I tried installing and compiling the SDK using this guide: https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md
But when i run the make command, the build fails. See the screenshot below (sorry for the poor quality):

Does anyone have an idea on what is wrong that can potentially help me?
Hi @BGA3 Yes, this error can happen when GCC runs out of memory. Usually 1GB is not sufficient but it can also happen with 2GB. The solution is adding a swap file to your Linux system (assuming one is not configured). Please look at any of the available guides (like this one) on-line.
@dorodnic Thanks so much for your help! I got it compiled using the swap file, and now I can run all the demos (including the live viewer).
It seems to be running steady, however I get quite a lot of "Incomplete frame detected". I suspect this to be caused by the low CPU resources. This occurs when I run 1280x720 depth map only @6fps.
Great! "Incomplete frame detected" warnings propagate from Video4Linux subsystem when the driver haven't finished fetching the entire frame, before the USB buffer on the camera is filled-up and the old frame has to be discarded in favor of the next one. You can play around with various settings that affect CPU utilization (at the moment the SDK is not well optimized for non-x86), like enabling YUY instead of RGB for the color sensor, but it can also be a problem at the USB controller level.
[Realsense Customer Engineering Team Comment] Hi @BGA3,
You can also try to set CMAKE_CONFIGURATION_TYPES to "Release" as a release build. This should improve the performance.
[Realsense Customer Engineering Team Comment] Hi @BGA3,
Since the app can work on the board, I will close this issue. You can still re-open it and create another ticket if any further questions. Thanks.
HI @BGA3
Do you use the default rk3328 16.04 or 18.04 img install success?