I’m trying to integrate the intel RealSense Library into the Balena ecosystem, primarily to make it run in the Asus Tinker S, or if it is not possible in the Up Board.
Let’s start with what I have done up to now. I create a Balena project where I use an Ubuntu Xenial image.
There are 2 ways to install the library. The First method is adding a repository after updating, install software-properties-common, I tried to install the package but:
N: Skipping acquire of configured file ‘main/binary-armhf/Packages’ as repository ‘http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial InRelease’ doesn’t support architecture ‘armhf’
And RealSense is not giving support for ARM architectures, So I got stuck in this way.
The second way is to build the libraries. The problem are the Prerequisites, I think (guess) that are Kernel libraries (so cant be changed from the Docker image?). When I tried to install the first ones I got these errors that were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
each of these libraries show this error: >
Preparing to unpack …/linux-headers-4.4.0-154-generic_4.4.0-154.181_armhf.deb …
Unpacking linux-headers-4.4.0-154-generic (4.4.0-154.181) …
dpkg: error processing archive /var/cache/apt/archives/linux-headers-4.4.0-154-generic_4.4.0-154.181_armhf.deb (–unpack):
unable to clean up mess surrounding ‘./lib/modules/4.4.0-154-generic’ before installing another version: Read-only file system
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
I know I can change from the image the host kernel libraries, but I cant neither update the host OS that is a Yocto Linux version. I also know that RealSense require kernel version 4.18 in order to use the new cameras.
So I run out of ideas, any suggestion? when I use the apt-get install from the terminal console, when the image is restarted I lost all the changes (layers)?