murata-wireless / meta-murata-wireless

Murata's customized Linux Yocto layer for our Wi-Fi/Bluetooth modules. For support, post questions to: https://community.murata.com
GNU General Public License v2.0
25 stars 35 forks source link

Murata_Wireless_Yocto_Build_CYW fails on Ubuntu 20.04 #45

Open ach-ee opened 2 years ago

ach-ee commented 2 years ago

I discovered this issue while building an image on a fresh install of Ubuntu 20.04 on WSL2 (including apt update, apt dist-upgrade, apt upgrade, etc.) After running the Host Setup script, I ran the Murata_Wireless_Yocto_Build_CYW.sh script and followed the prompts. The script seemed to run normally without any (obvious/RED) errors, but when it reached the end and I selected 'Y' to start the build, the script would exit without actually starting the build.

After looking more closely at the output, there were a few errors around Step 11 like "-bash ./imx-setup-release.sh: No such file or directory". So I started working through the steps in the script manually and found the issue when trying to run repo and I would get this error:

/usr/bin/env: ‘python’: No such file or directory

Implying that Python was not installed. In order to fix this on Ubuntu 20.04, I installed the "python-is-python3" package with

sudo apt install python-is-python3

This seems to have resolved the issue and now the Murata build script runs normally.

It may be worth updating your Host Setup script to ensure python is installed.

I hope this helps anyone else running into issues with the Murata build script.