lueschem/edi-var

Modifications for VAR-SOM-iMX8M-MINI

Closed this issue · 1 comments

Hi, guys. Sorry for the beginner question but I'm not used to cross-compile/building embedded images in complex environments.
Could you guide me on how hard and what should I adopt in order to use your repo?

I'm currently using a Debian bullseye and would like to use Mender for OTA as you did. Thanks!

Hi Mauricio

The VAR-SOM-MX8M-MINI is pretty similar to the VAR-SOM-MX8M-NANO. So you could take (clone/fork) the edi-var setup as a starting point and adjust or extend it according to the needs of the VAR-SOM-MX8M-MINI.
I have described a similar procedure for the Raspberry Pi 4.
I guess that you are currently running the Debian bullseye image provided by Variscite. Variscite has a very good documentation and it is extremely valuable as a starting point. They also publish the source code of the tools they use to build their images. The most tricky part is the bootloader adjustment so that it is suitable for the chosen setup (including Mender). The good thing is that you already have a working setup and this lets you figure out what kind of adjustments are needed.
The kernel then might be the first thing you want to cross compile. Here is how I did it for the VAR-SOM-MX8M-NANO. For the edi-boot-shim and the kernel Debian package it is then convenient if you have your own Debian package repository (either self hosted or e.g. packagecloud).
As you can see the overall process is unfortunately way more complicated than installing Debian on a standard amd64 machine. But with the good documentation from Variscite it is absolutely doable and do not hesitate to ask if you have some concrete questions.

Best regards
Matthias