Skip to main content
JWali
Associate II
July 1, 2019
Question

Installing Node.js on the STM32MP1

Any recommendations on how to install Node.js on OpenSTLinux / OpenEmbedded?

I want to run some node.js applications on the A7 processor.

I found this repository but there has been no activity for a few years.

https://github.com/imyller/meta-nodejs

This topic has been closed for replies.

13 replies

rzr www.rzr.online.fr
Associate
February 26, 2020

As a workaround you could try to run node in a container with supported used land, It would require meta-virtualization with a couple of patches, like this one:

https://lists.yoctoproject.org/g/meta-virtualization/topic/docker_fix_init_script_for/71468074?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,40,71468074

radeshsharma
Associate II
April 26, 2022

Hello community,

I'm trying to implement node.js in distribution package for STM32MP157F-DK2. I'm little new to this development. I'm facing few issue after adding node.js from https://github.com/imyller/meta-nodejs

I'm getting a error when I'm trying t build:

ERROR: Nothing RPROVIDES 'meta-nodejs' (but /home/radesh/STM32MPU_workspace/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-11-17/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'meta-nodejs' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['meta-nodejs']
ERROR: Required build target 'st-image-weston' has no buildable providers.
Missing or unbuildable dependency chain was: ['st-image-weston', 'meta-nodejs']

Steps I follow:

cd layers
git clone https://github.com/imyller/meta-nodejs
bitbake-layers add-layer [your STM32MP1 Distribution path]/meta-nodejs

I have created a file called "nodejs_%.bbappend" with these contents 

   EXTRA_OEMAKE += "builddir_name=."

in this directory:

$HOME/STM32MPU_workspace/STM32MP15-Ecosystem-v1.0.0/Starter-Package/stm32mp1-openstlinux-4.19-thud-mp1-19-02-20/layers/meta-openembedded/meta-oe/recipes-devtools/nodejs

and added a stanza to

$HOME/STM32MPU_workspace/STM32MP15-Ecosystem-v1.0.0/Starter-Package/stm32mp1-openstlinux-4.19-thud-mp1-19-02-20/layers/meta-openembedded/meta-oe/conf/layer.conf

to include nodejs

IMAGE_INSTALL_append += "nodejs"

After this all I try to build using:

bitbake st-image-weston

Thanks in advance for your valuable answers.