Trying to add python 2.7.12 recipe to Legato

Hello everyone

I’m very very new to Legato and Yocto. I’ve spent some days diving into both documentation in order to understand both, but still there’s some stuff I don’t get.

My scenario is: I have a mangOH Green board with the WP8548 from Sierra Wireless, no problem to download and flash the Legato from the official page so far. But my problem comes when I need the pip package from python to keep working and the python 2.7.3 doesn’t include pip, so my main idea was to add an openembedded recipe (this one) to upgrade the python version to 2.7.12 (which includes pip by default). It’s suppose to be easy thanks to Yocto features.

I’ve been following to ways to do it, trying to add the recipe manually following this, adding the folders and files under the meta-openembedded layer already included in Legato, but when I compile it using bitbake I get “ERROR: Nothing PROVIDES ‘python_2.7.12.bb’”

My second way to attack was using Toaster, the way Yocto recommends to add new layers and recipes to the images, but I wasn’t able to “load” the Legato images to Toaster, and either way, I can’t find neither the Python 2.7.12 recipe among the availables in Toaster or the machine for the mangOH.

I know I’m missing something, but after days trying to find it by myself I came here. I’m still thinking that the manually approach is better, adding the recipe, compile it, rebuild the Legato image and flash it on the mangOH, but due the different versions of Legato and Yocto, it’s been hell. Any lead I can follow?

Thanks in advance and sorry for the (maybe) dumb question.

P.D: I’ve realized the Python 2.7.12 recipe is for the latest Yocto version, 2.2, and legato uses the 1.7. Could I include a 2.2 Yocto recipe on the 1.7 Legato?

1 Like

Hello richia.

I have the same problem and can’t find any “doable” solution anywhere. I was wondering if after all this time you managed to add a recipe that upgrades the Python version. If so, could you please share?

Best regards.

I think the latest version of FW has already used the Python 2.7.12.
Or you can compile the latest Yocto version.
https://source.sierrawireless.com/resources/airprime/software/wpx5xx/wpx5xx-firmware-release-16-components/

root@swi-mdm9x15:~# python -V
Python 2.7.12

Dear Jordan,

Would you know, if I can use this firmware on FX30 devices, or use the recipes to upgrade my python on FX30?
Currently I have in the default firmware the version 2.7.3, that is old for some of my applications.

Best regards.

Gustavo

Hi Gustavo,
I recommend pulling the Yocto source code that Jordan recommended either from the Source in tarfile format or using Leaf. When port the python recipe to your FX30 workspace.

You will looks functionality on your FX30 if you use the stock WP module firmware.

BR,
Chris

Here says there is new SDK for fx30-3g on leaf, you can give a try

https://source.sierrawireless.com/resources/airlink/software_downloads/fx30-firmware/fx30-firmware-3g/#sthash.cEmNgXK3.dpbs

root@fx30:~# cm info
Device: WP8548
IMEI: 359377060004735
IMEISV: 2F
FSN: LL537500110203
Firmware Version: SWI9X15Y_07.13.07.00 92cfd2c jenkins 2018/08/22 19:18:52
Bootloader Version: SWI9X15Y_07.13.07.00 92cfd2c jenkins 2018/08/22 19:18:39
MCU Version:
PRI Part Number (PN): 9904889
PRI Revision: 01.11
Carrier PRI Name: GENERIC
Carrier PRI Revision: 001.040_000
SKU: 1102621
Last Reset Cause: Unknown
Resets Count: Expected: 0 Unexpected: 0
root@fx30:~#
root@fx30:~# legato version
18.06.5.e4479a6a_4d846734b15dea928031af763d2d138c
root@fx30:~#
root@fx30:~# python --version
Python 2.7.12