MCUxpresso IDE Debian 10 Buster installation (now old, newer versions install without problems)

Discussions related to the firmware code development
Post Reply
M6KDU
Posts: 6
Joined: Sat Nov 16, 2019 7:24 am
Location: Leicester

MCUxpresso IDE Debian 10 Buster installation (now old, newer versions install without problems)

Post by M6KDU » Fri Apr 03, 2020 10:23 pm

Hello everyone,

I would like to share with you all my short guide on how to install MCUxpresso 11 on Debian 10. The NPX website clearly states that Debian >=9 are not supported. There is although a workaround to satisfy all dependancies.

I am currently using Debian 10, but the installation on Debian 9 is more straight forward.

Please test it, provide feedback or even transform it to an automatic script and publish it online. The following text is released under public domain.

Disclaimer: I am providing these commands WITHOUT ANY WARRANTY. I am not able to provide any troubleshooting if things goes wrong. All downloaded packages are from an official source.Use it at your own risk.

1) Multiarch

Activate Multiarch, and in particular the i386 architecture. More info here - https://wiki.debian.org/Multiarch/HOWTO

2) Install dependencies

Before running the MCUxpresso installer, please install the following dependencies:

libncurses-dev

Code: Select all

$ sudo apt-get install libncurses-dev:i386
libusb-1.0

Code: Select all

$ sudo apt-get install libusb-1.0:i386
dfu-util

Code: Select all

$ sudo apt-get install dfu-util:i386
libwebkitgtk-1.0 is the more complex package and it has a lot of dependencies. The following command install the packages already available from the Debian repo.

Code: Select all

$ sudo apt-get install libjavascriptcoregtk-1.0-0:i386 libatk1.0-0:i386 libcairo2:i386 libenchant1c2a:i386 libfontconfig1:i386 libfreetype6:i386 libgdk-pixbuf2.0-0:i386 libgl1-mesa-glx:i386 libgl1:i386 libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libgtk2.0-0:i386 libharfbuzz-icu0:i386 libharfbuzz0b:i386 libicu57:i386 libjpeg62-turbo:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libsecret-1-0:i386 libsoup2.4-1:i386 libsqlite3-0:i386 libwebp6:i386 libx11-6:i386 libxcomposite1:i386 libxdamage1:i386 libxfixes3:i386 libxml2:i386 libxrender1:i386 libxslt1.1:i386 libxt6:i386 gstreamer1.0-plugins-base:i386 gstreamer1.0-plugins-good:i386 geoclue-2.0:i386
Some packages are not included in the current Debian 10 repository, so we need to fetch them manually.

Create libwebkitgtk.txt

Code: Select all

$ echo 'http://ftp.uk.debian.org/debian/pool/main/w/webkitgtk/libwebkitgtk-1.0-0_2.4.9-1~deb8u1_i386.deb
http://security.debian.org/debian-security/pool/updates/main/i/icu/libicu52_52.1-8+deb8u8_i386.deb
http://ftp.uk.debian.org/debian/pool/main/w/webkitgtk/libwebkitgtk-1.0-common_2.4.9-1~deb8u1_all.deb
http://ftp.uk.debian.org/debian/pool/main/w/webkitgtk/libjavascriptcoregtk-1.0-0_2.4.9-1~deb8u1_i386.deb
http://ftp.uk.debian.org/debian/pool/main/libw/libwebp/libwebp5_0.4.1-1.2+b2_i386.deb
https://downloads.sourceforge.net/project/libpng/libpng12/1.2.59/libpng-1.2.59.tar.gz' > libwebkitgtk.txt
Download the packages for manual installation

Code: Select all

$ wget -i libwebkitgtk.txt
Cross compile libpng for i386 architecture

Code: Select all

$ tar -zxvf libpng-1.2.59.tar.gz
$ cd libpng-1.2.59
$ ./configure --host=i386 --libdir=/usr/lib/i386-linux-gnu/
$ make check
$ sudo make install
Install libicu52

Code: Select all

$ sudo dpkg -i libicu52_52.1-8+deb8u8_i386.deb
Install libwebkitgtk-1.0-common_2.4.9

Code: Select all

$ sudo dpkg -i libwebkitgtk-1.0-common_2.4.9-1_deb8u1_all.deb
Install libwebp5

Code: Select all

$ sudo dpkg -i libwebp5_0.4.1-1.2+b2_i386.deb
Install libwebkitgtk forcing it to ignore libpng12 dependencies as the correct library is already installed.

Code: Select all

$ sudo dpkg -i --force-depends libwebkitgtk-1.0-0_2.4.9-1_deb8u1_i386.deb
Install libjavascriptcoregtk

Code: Select all

$ sudo dpkg -i libjavascriptcoregtk-1.0-0_2.4.9-1_deb8u1_i386.deb
3) Download MCUxpresso IDE and Config Tools

Link: https://www.nxp.com/design/software/dev ... presso-IDE

Run the bin file as root

Code: Select all

$ sudo ./mcuxpressoide-11.0.1_2563.x86_64.deb.bin
Clean some space post installation

Code: Select all

$ sudo apt autoremove
I hope everything has gone as planned.

4) Download the SDK

I am using thi SDK-2.6.0-MK22FN512xxx12-MCUX

5) Import openGD77

Now you can import the openGD77 GitHub repo as usual. Probably it wont compile for two reasons:
a) You cannot execute M$ software (you have to install 'mono');
b) There is a flag in the compiling settings that must be changed to point at the right executable.

I'll try to write a different guide for it. If you resolve all by yourself, have fun editing and compiling the OpenGD77 firmware.

M6KDU - Andrea
Last edited by M6KDU on Tue Mar 02, 2021 8:26 pm, edited 2 times in total.

VK3KYY
Posts: 7475
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: MCUxpresso IDE Debian 10 Buster installation

Post by VK3KYY » Fri Apr 03, 2020 11:29 pm

Thanks Andrea

Daniel F1RMB uses Linux for this development work, but I don't know what flavor of Linux he uses.

I didn't think there was a need to change the compiler settings. Is there a stray reference to a .exe file in the project file somewhere, e.g. the post build steps.

We aimed to have a Linux binary as well as the Windows exe, and there should not need to be any differences in the build setup, because on Windows I think it naturally runs the exe even if the .exe extension is not in the command

User avatar
F1RMB
Posts: 2517
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: MCUxpresso IDE Debian 10 Buster installation

Post by F1RMB » Sat Apr 04, 2020 5:00 am

Hi Andrea,

Yes, you can build and flash under Linux.
A statically linked version of bin2sgl is there (used via bin2sgl shell script). The build process may work straight forward for this step.

About flashing, you need to setup one external tool for this.
You have two choice here, one is using Mono (check this thread for the explanations viewtopic.php?p=6102#p6102), or use the Python script (you can tweak the external tool configuration above to make it work with).

I forgot to mention I'm using LinuxMint (a Ubuntu, ergo Debian, variation).

Cheers.
---
Daniel

oh4va
Posts: 25
Joined: Sat Mar 07, 2020 7:14 am

Re: MCUxpresso IDE Debian 10 Buster installation

Post by oh4va » Sat Apr 04, 2020 6:44 am

Great job guys! I installed MCUXPresso IDE in my Linux computer yesterday but did not get this far. I try these instructions next week when I'm in my work office again.

73 de VA

M6KDU
Posts: 6
Joined: Sat Nov 16, 2019 7:24 am
Location: Leicester

Re: MCUxpresso IDE Debian 10 Buster installation

Post by M6KDU » Sat Apr 04, 2020 7:12 am

I'm sorry if I have created some confusion, it was quite late last night when I've posted the instructions and I haven't had a go with the project yet.

When talking about compiling issues I was referring to an old conversation I had with Roger on September 19 about executing the tool to extract the AMBE firmware and to use bin2sgl under linux. As far as I can see, this has already been resolved as the compiling process now works first time like a charm.

Andrea

User avatar
F1RMB
Posts: 2517
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: MCUxpresso IDE Debian 10 Buster installation

Post by F1RMB » Sat Apr 04, 2020 7:29 am

Hi Andrea,
M6KDU wrote:
Sat Apr 04, 2020 7:12 am
I'm sorry if I have created some confusion, it was quite late last night when I've posted the instructions and I haven't had a go with the project yet.

When talking about compiling issues I was referring to an old conversation I had with Roger on September 19 about executing the tool to extract the AMBE firmware and to use bin2sgl under linux. As far as I can see, this has already been resolved as the compiling process now works first time like a charm.

Andrea
No worries.
Yes, I've also ported the codec extractor to C, and built a statically linked version.

Anyway, your post is useful, as you list all the missing dependencies that need to be installed in order to have the MCUXpresso + SDK up and running on a pure Debian.

Cheers.
---
Daniel

M6KDU
Posts: 6
Joined: Sat Nov 16, 2019 7:24 am
Location: Leicester

Re: MCUxpresso IDE Debian 10 Buster installation

Post by M6KDU » Tue Mar 02, 2021 8:25 pm

After I have published the same instructions on the MCUXpresso forum, NXP have updated their installer to be compatible with most recent libraries and you don't need to follow all my instructions anymore.

VK3KYY
Posts: 7475
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: MCUxpresso IDE Debian 10 Buster installation

Post by VK3KYY » Tue Mar 02, 2021 8:58 pm

M6KDU wrote:
Tue Mar 02, 2021 8:25 pm
After I have published the same instructions on the MCUXpresso forum, NXP have updated their installer to be compatible with most recent libraries and you don't need to follow all my instructions anymore.


OK.

Thanks for the uodate

Post Reply