I am currently working in a IoT project where we use the FX30 device, in the default linux distribution that comes with the device or the one that I built from source, comes with the python version 2.7.3. In my project I need at least the version 2.7.12, I would like to know if somebody could point me out a recipe to upgrade the python version, I tried it by using the recipes available for mangoh boards without success.
Please mention relevant information like FW version, model etc when posting questions to get faster and clearer answers. Also, note that since this is a product(WP77) related query, it’s more relevant on https://forum.sierrawireless.com/ and you will get quicker answers there.
Thanks.
Hi Gustavo,
Have you downloaded the FX30 R17 yocto source code using Leaf swi-fx30-3g_1.0.1?
I think it would be easiest if you add your recipes to the lead swi-linux workspace.
BR,
Chris
Hi Gustavo,
I think Legato wasn’t pulled properly. When you perform the make, Legato is supposed to be pulled from manifest.
Could you please check your leaf workspace folder (one up from swi-linux) for a folder called legato-src-fx30 or similar? (I don’t mean doing a leaf getsrc swi-legato).
If there is no such folder, could you please do:
make clean
make
And post the output of both commands.
BR,
Chris
Yes, there is a “legato-src” folder on my leaf workspace. There is the following in the workspace: “leaf-data”, “legato-src”, “swi-linux-src” (folders) and the “leaf-workspace.json”.
Even having the folder, I tried the “make clean”, and I got the following:
fatal: Not a git repository (or any of the parent directories): .git
rm -rf build_*
Hi Gustavo,
There’s an issue with the Makefile causing the Legato source code not be pulled. Could you please try this procedure:
Create a new folder in your workspace called “legato-src-fx30” (at the same level as your legato-src folder)
cd legato-src-fx30
repo init -u ssh://<YOUR_USERNAME>@gerrit.legato.io:29418/manifest -m legato/releases/18.06.5/legato.xml
where <YOUR_USERNAME> is the username you use to connect to gerrit.legato.io
Hi Gustavo,
The yocto environment will build the toolchain, so this isn’t the issue. I believe the problem is the legato source code wasn’t pulled properly.
Could you please supply the output for the following commands:
ls -la /home/gustavo/leafFX30
ls -la /home/gustavo/leafFX30/legato-src-fx30
ls -la /home/gustavo/leafFX30/legato-src-fx30/legato
ls -la /home/gustavo/leafFX30/swi-linux-src
Could you confirm the legato source code was pulled correctly when you executed these 2 commands?
repo init -u ssh://gustavo@gerrit.legato.io:29418/manifest -m legato/releases/18.06.5/legato.xml
repo sync
assuming your gerrit username is “gustavo”
The patch that is failing applies to the Legato framework. The framework is pulled using repo and must be outside the swi-linux repo workspace.
In addition, the Legato framework cannot be used from “leaf getsrc swi-legato” because leaf automatically patches the source framework with the FX30 Legato patches. ie, the framework pulled in this way is intended for framework development so it is pre-patched. Compared to the yocto environment, which contains the patch files and applies them to the base framework at build-time.
Disregard for the moment, from reading the error message I guess the legato source is now completely hosted on git vs gerrit. I re-downloaded legato by using repo init -u git://github.com/legatoproject/manifest -m legato/releases/18.09.4.xml legato downloaded w/o error and am running make now.
Hi Chris,
I’m trying to build the R11 Linux source for an FX-30. I followed your procedure in this thread to download the legato source, but when I run make in the swi-linux-src folder it fails with the following error:
make[1]: Leaving directory '/home/dcchurchill/myWorkspace/swi-linux-src/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/legato-af/git-r0/legato-af'
| 'platformAdaptor' directory is missing, which means these Legato sources have not been downloaded properly.
| Please refer to https://github.com/legatoproject/legato-af#clone-from-github
| Makefile:275: recipe for target 'platformAdaptor' failed
| make: *** [platformAdaptor] Error 1
| WARNING: /home/dcchurchill/myWorkspace/swi-linux-src/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/legato-af/git-r0/temp/run.do_compile.10607:1 exit 2 from 'make $LEGATO_TARGET ENABLE_IMA=0 IMA_PRIVATE_KEY= IMA_PUBLIC_CERT='
| ERROR: Function failed: do_compile (log file is located at /home/dcchurchill/myWorkspace/swi-linux-src/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/legato-af/git-r0/temp/log.do_compile.10607)
ERROR: Task (/home/dcchurchill/myWorkspace/swi-linux-src/meta-swi/common/recipes-legato/legato-af/legato-af_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2031 tasks of which 1980 didn't need to be rerun and 1 failed.
When I ran repo init in the egato-src-fx30 folder I get a lot of errors like:
Fetching projects: 97% (34/35) legato-Apps-QmiAirVantageBin-wp76xxERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
legato-Apps-QmiAirVantageBin-wp85:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
error: Cannot fetch legato-Apps-QmiAirVantageBin-wp85 from ssh://git@github.com/legatoproject/legato-Apps-QmiAirVantageBin-wp85
Fetching projects: 100% (35/35), done.
Checking out projects: 40% (14/35) legato-Service-AirVantageConnectorerror: Cannot checkout legato-Apps-AtAirVantageBin-wp76xx: ManifestInvalidRevisionError: revision refs/tags/18.09.4 in legato-Apps-AtAirVantageBin-wp76xx not found
error: in `sync`: revision refs/tags/18.09.4 in legato-Apps-AtAirVantageBin-wp76xx not found
My GERRIT_USER was not set in my default env only in my leaf shell env, I had forgot to run leaf shell before ran repo init or repo sync, maybe that was my issue all along. You mentioned my leaf Settings, where are those set how do I view them? The value of my USER env var in my leaf shell is dcchurchill and my GERRIT_USER is david.churchill@thingtech.com, I suppose this is a problem too?
I ran the git clone command you referenced in another directory and it ran fine, however, when I examined the contents of the components directory compared to /legato-src-fx30-catm/legato/platformAdaptor/qmi/bin/wp85/components the new clone had one extra subdirectory le_pa_start
All that being said I was finally successful in building the source by using the repo init command referenced by the page in the error message:
The one last piece to the puzzle was to install java as it evidently is used to sign some component during the build process.
I’ve successfully built the factory linux distribution then applied my customizations and re-built and both builds succeeded. I have yet to install the image on an Fx-30 I was going to try that today. Do you think I should scrap my working setup and go back and try to get it working using gerrit?