FOTA for FX30S how to

Hi @claudio.baldini,
I’ve pulled and built the swi-fx30-catm_2.0.0 and it runs without issue. I’m using a Ubuntu 16.04 machine, but 18.04 should be fine as well.

Here is the procedure I used:

Create a workspace folder:

$ mkdir leaf-fx30-catm_2.0.0
$ cd leaf-fx30-catm_2.0.0

Initialize the workspace for Leaf

$ leaf init

Setup the workspace

$ leaf setup -p swi-fx30-catm_2.0.0

Pull the yocto workspace

$ leaf getsrc swi-linux

Edit the FX30 Makefile

$ cd swi-linux-src/
$ vi Makefile

Modify the Makefile to change pulling Legato from gerrit.legato.io to github:

Original:

$ repo init -u ssh://${LEAF_GERRIT_USER}@gerrit.legato.io:29418/manifest \

New:

$ repo init -u ssh://git@github.com/legatoproject/manifest \

Execute make to pull the Legato source code, but do not build the entire workspace

$ make

Once the Legato source code has been pulled, the yocto build will start. Cancel the build by pressing:

$ ctrl-c

Copy the Legato proprietary binaries from the leaf-data metadata to the Legato source folder

$ cd…
$ cp -r ./leaf-data/current/fx30-catm-legato/apps/proprietary ./legato-src-fx30-catm/legato/apps/

Confirm the proprietary folder is present

$ ls legato-src-fx30-catm/legato/apps/

Perform a clean, and then build the image

$ cd swi-linux-src/
$ make clean
$ make

BR,
Chris