Linux source code built

@jyijyi ,

The legato directory is created but it is empty , just copied the legato directory from the legato-src to swi-linux-src to see if now the build is successfully completed.

Should’nt the legato be fetched from gerrit repo by the linux SDK?

do you find problem to download legato source by " leaf getsrc legato"

I am able to download the legato source code perfectly but the only thing is it is downloaded in a different directory

Then it is just minor problem as you can move the folder

Facing issues with patch:
ERROR: legato-af-git-r0 do_patch: Command Error: ‘quilt --quiltrc /home/pankaj/Documents/fx30slegatosrcltem1/swi-linux-src/build_bin/tmp/sysroots/x86_64-linux/etc/quiltrc push’ exited with 0 Output:
Applying patch 0002-ALPC-299-Add-columbiaAtService-to-avcService-black-l.patch
patching file apps/platformServices/airVantageConnector/avcAppUpdate/avcAppUpdate.c
Hunk #1 FAILED at 339.
1 out of 1 hunk FAILED – rejects in file apps/platformServices/airVantageConnector/avcAppUpdate/avcAppUpdate.c
Patch 0002-ALPC-299-Add-columbiaAtService-to-avcService-black-l.patch can be reverse-applied
ERROR: legato-af-git-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/pankaj/Documents/fx30slegatosrcltem1/swi-linux-src/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/legato-af/git-r0/temp/log.do_patch.16606
ERROR: Task (/home/pankaj/Documents/fx30slegatosrcltem1/swi-linux-src/meta-swi/common/recipes-legato/legato-af/legato-af_git.bb:do_patch) failed with exit code ‘1’

You can see here

Hi @Pankaj,

We’re currently investigating the leaf packages for swi-fx30-catm_2.0.0

There seems to be an issue with pulling/building the swi-linux source.

BR,
Chris

Hi @cchenry ,

Can you update the fix on the issue?

Regards,

Pankaj Sant

Hi @Pankaj,
The team is still investigating and hope to have a resolution by the end of the week.
BR,
Chris

@cchenry,

Thanks for the update.

@Pankaj

Please make sure you have done the initial setup in First Time Set up- GitHub - Legato Docs.

Afterwards within swi-linux-src/Makefile please update the line

gerrit.legato.io:29418/manifest
to
ssh://git@github.com/legatoproject/manifest

This should resolve the errors with fetching legato.

@lpacyk

It does resolve the error but after going through the build new error regarding bin packages are shown:

WARNING: time-genoff-git-r0 do_fetch: Failed to fetch URL file://time-genoff-bin.tar.bz2, attempting MIRRORS if available
ERROR: time-genoff-git-r0 do_fetch: Fetcher failure: Unable to find file file://time-genoff-bin.tar.bz2 anywhere. The paths that were searched were:
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/…/…/…/meta-swi-mdm9x28-wp-bin/files/poky
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/time-genoff-git/poky
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/time-genoff/poky
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/files/poky
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/…/…/…/meta-swi-mdm9x28-wp-bin/files/swi-mdm9x28-wp
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/time-genoff-git/swi-mdm9x28-wp
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/time-genoff/swi-mdm9x28-wp
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/files/swi-mdm9x28-wp
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/…/…/…/meta-swi-mdm9x28-wp-bin/files/armv7a
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/time-genoff-git/armv7a
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/time-genoff/armv7a
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/files/armv7a
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/…/…/…/meta-swi-mdm9x28-wp-bin/files/arm
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/time-genoff-git/arm
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/time-genoff/arm
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/files/arm
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/…/…/…/meta-swi-mdm9x28-wp-bin/files/
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/time-genoff-git/
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/time-genoff/
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/files/
/home/pankaj/Documents/fx30ltem1/swi-linux-src/build_bin/downloads
ERROR: time-genoff-git-r0 do_fetch: Fetcher failure for URL: ‘file://time-genoff-bin.tar.bz2’. Unable to fetch URL from any source.
ERROR: time-genoff-git-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/pankaj/Documents/fx30ltem1/swi-linux-src/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/time-genoff/git-r0/temp/log.do_fetch.18027
ERROR: Task (/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/time-genoff/time-genoff_git.bb:do_fetch) failed with exit code ‘1’
WARNING: diag-git-r6 do_fetch: Failed to fetch URL file://diag-bin.tar.bz2, attempting MIRRORS if available
ERROR: diag-git-r6 do_fetch: Fetcher failure: Unable to find file file://diag-bin.tar.bz2 anywhere. The paths that were searched were:
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/…/…/…/meta-swi-mdm9x28-wp-bin/files/poky
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/diag-git/poky
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/diag/poky
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/files/poky
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/…/…/…/meta-swi-mdm9x28-wp-bin/files/swi-mdm9x28-wp
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/diag-git/swi-mdm9x28-wp
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/diag/swi-mdm9x28-wp
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/files/swi-mdm9x28-wp
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/…/…/…/meta-swi-mdm9x28-wp-bin/files/armv7a
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/diag-git/armv7a
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/diag/armv7a
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/files/armv7a
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/…/…/…/meta-swi-mdm9x28-wp-bin/files/arm
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/diag-git/arm
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/diag/arm
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/files/arm
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/…/…/…/meta-swi-mdm9x28-wp-bin/files/
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/diag-git/
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/diag/
/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/files/
/home/pankaj/Documents/fx30ltem1/swi-linux-src/build_bin/downloads
ERROR: diag-git-r6 do_fetch: Fetcher failure for URL: ‘file://diag-bin.tar.bz2’. Unable to fetch URL from any source.
ERROR: diag-git-r6 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/pankaj/Documents/fx30ltem1/swi-linux-src/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/diag/git-r6/temp/log.do_fetch.18029
ERROR: Task (/home/pankaj/Documents/fx30ltem1/swi-linux-src/meta-swi-extras/meta-swi-mdm9x28-bin/recipes/diag/diag_git.bb:do_fetch) failed with exit code ‘1’

There are no files in the recipe directory only the .bb recipe is available.

Is there something more missed in the download.

The missing packages can be seen here:

https://github.com/legatoproject/meta-swi-bin-files-mdm9x28le212/tree/lxswi-yocto-3.0

but not of the same version did the fetcher did not fetch the files correctly?

@lpacyk @cchenry ,

One observation I see that when leaf getsrc swi-linux the python version is checked and required verson is 3.6 else there is a warning as below:
“File “/home/pankaj/Documents/fx30ltem1/swi-linux-src/.repo/repo/main.py”, line 79
file=sys.stderr)”

Error comes from main.py looking for python3 if sys.version_info.major < 3:
print('repo: error: Python 2 is no longer supported; ’
‘Please upgrade to Python {}.{}+.’.format(*MIN_PYTHON_VERSION_SOFT),
file=sys.stderr)

The openembedded in FX30 linux src requires python2.7, so the users have to switch between python version which is inconvenient.

Hi @pankaj1,

We hope to have R14.1 released for the FX30(WP7702) by mid July.
BR,
Chris