Installing Node.js on FX30 WP77xx - Node.js Not Recognized

For the first solution I tried to apply, the instructions on this web site you shared:

but not possible to mv on /usr/local/lib directory which is RO. So did to /home/root on FX30 and changed Paths but node -v still not reply

Here is an example on how to copy file to /usr/lib which is RO path

BTW, you can try to use cross compiler to compile the nodejs8.9.4.
This can make sure how your previous colleague obtained the binary of nodejs8.9.4.

Hi,
Is my configuration ok?

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "qemuarm"
DISTRO               = "poky"
DISTRO_VERSION       = "3.1.33"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta                 
meta-poky            
meta-yocto-bsp       = "dunfell:63d05fc061006bf1a88630d6d91cdc76ea33fbf2"
meta-oe              
meta-networking      
meta-python          = "dunfell:01358b6d705071cc0ac5aefa7670ab235709729a"

It gives me after bitbake core-image-minimal errors:
ERROR: Task (/home/muammer/yocto-nodejs/poky/meta/recipes-devtools/autoconf-archive/autoconf-archive_2019.01.06.bb:do_package) failed with exit code '1'

DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are [‘virtual:native:/home/muammer/yocto-nodejs/poky/meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb:do_populate_sysroot’, ‘virtual:native:/home/muammer/yocto-nodejs/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot’, ‘/home/muammer/yocto-nodejs/poky/meta/recipes-devtools/libtool/libtool-native_2.4.6.bb:do_populate_sysroot’, ‘virtual:native:/home/muammer/yocto-nodejs/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot’, ‘virtual:native:/home/muammer/yocto-nodejs/poky/meta/recipes-devtools/automake/automake_1.16.1.bb:do_populate_sysroot’, ‘virtual:native:/home/muammer/yocto-nodejs/poky/meta/recipes-extended/xz/xz_5.2.4.bb:do_populate_sysroot’, ‘virtual:native:/home/muammer/yocto-nodejs/poky/meta/recipes-devtools/rpm/rpm_4.14.2.1.bb:do_populate_sysroot’, ‘virtual:native:/home/muammer/yocto-nodejs/poky/meta/recipes-devtools/autoconf/autoconf_2.69.bb:do_populate_sysroot’, ‘/home/muammer/yocto-nodejs/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_populate_sysroot’, ‘virtual:native:/home/muammer/yocto-nodejs/poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb:do_populate_sysroot’, ‘/home/muammer/yocto-nodejs/poky/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot’]
NOTE: Installed into sysroot: [‘dwarfsrcfiles-native’, ‘rpm-native’, ‘elfutils-native’, ‘libarchive-native’, ‘python3-native’, ‘popt-native’, ‘db-native’, ‘pkgconfig-native’, ‘perl-native’, ‘file-native’, ‘dbus-native’, ‘bzip2-native’, ‘openssl-native’, ‘zlib-native’, ‘lzo-native’, ‘e2fsprogs-native’, ‘sqlite3-native’, ‘libtirpc-native’, ‘gdbm-native’, ‘libnsl2-native’, ‘libffi-native’, ‘util-linux-native’, ‘readline-native’, ‘expat-native’, ‘libpcre2-native’, ‘ncurses-native’, ‘libcap-ng-native’]
NOTE: Skipping as already exists in sysroot: [‘pseudo-native’, ‘libtool-native’, ‘patch-native’, ‘automake-native’, ‘xz-native’, ‘autoconf-native’, ‘texinfo-dummy-native’, ‘gnu-config-native’, ‘quilt-native’, ‘attr-native’, ‘gettext-minimal-native’, ‘m4-native’]
DEBUG: sed -e ‘s:[1]*/:/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/recipe-sysroot-native/:g’ /home/muammer/yocto-nodejs/poky/build-dunfell/tmp/sysroots-components/x86_64/rpm-native/fixmepath /home/muammer/yocto-nodejs/poky/build-dunfell/tmp/sysroots-components/x86_64/elfutils-native/fixmepath /home/muammer/yocto-nodejs/poky/build-dunfell/tmp/sysroots-components/x86_64/python3-native/fixmepath /home/muammer/yocto-nodejs/poky/build-dunfell/tmp/sysroots-components/x86_64/pkgconfig-native/fixmepath /home/muammer/yocto-nodejs/poky/build-dunfell/tmp/sysroots-components/x86_64/perl-native/fixmepath /home/muammer/yocto-nodejs/poky/build-dunfell/tmp/sysroots-components/x86_64/dbus-native/fixmepath /home/muammer/yocto-nodejs/poky/build-dunfell/tmp/sysroots-components/x86_64/openssl-native/fixmepath /home/muammer/yocto-nodejs/poky/build-dunfell/tmp/sysroots-components/x86_64/e2fsprogs-native/fixmepath /home/muammer/yocto-nodejs/poky/build-dunfell/tmp/sysroots-components/x86_64/libpcre2-native/fixmepath /home/muammer/yocto-nodejs/poky/build-dunfell/tmp/sysroots-components/x86_64/ncurses-native/fixmepath | xargs sed -i -e ‘s:FIXMESTAGINGDIRTARGET:/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/recipe-sysroot-native:g’ -e ‘s:FIXME_PSEUDO_SYSROOT:/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/sysroots-components/x86_64/pseudo-native:g’ -e ‘s:FIXME_HOSTTOOLS_DIR:/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/hosttools:g’ -e ‘s:FIXME_PKGDATA_DIR:/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/pkgdata/qemuarm:g’ -e ‘s:FIXME_PSEUDO_LOCALSTATEDIR:/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/pseudo/:g’ -e ‘s:FIXME_LOGFIFO:/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/temp/fifo.2291037:g’
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function do_package
DEBUG: Executing python function package_convert_pr_autoinc
DEBUG: Python function package_convert_pr_autoinc finished
DEBUG: Executing python function package_prepare_pkgdata
NOTE: Installed into pkgdata-sysroot:
DEBUG: Python function package_prepare_pkgdata finished
DEBUG: Executing python function perform_packagecopy
DEBUG: Python function perform_packagecopy finished
DEBUG: Executing python function split_and_strip_files
DEBUG: Python function split_and_strip_files finished
DEBUG: Executing python function fixup_perms
DEBUG: Python function fixup_perms finished
DEBUG: Executing python function package_do_split_locales
DEBUG: No locale files in this package
DEBUG: Python function package_do_split_locales finished
DEBUG: Executing python function populate_packages
DEBUG: Python function populate_packages finished
DEBUG: Executing python function package_fixsymlinks
DEBUG: Python function package_fixsymlinks finished
DEBUG: Executing python function package_name_hook
DEBUG: Executing python function debian_package_name_hook
DEBUG: LIBNAMES: pkg autoconf-archive-src libs 0 bins 0 sonames
DEBUG: LIBNAMES: pkg autoconf-archive-doc libs 0 bins 0 sonames
DEBUG: LIBNAMES: pkg autoconf-archive libs 0 bins 0 sonames
DEBUG: Python function debian_package_name_hook finished
DEBUG: Python function package_name_hook finished
DEBUG: Executing python function package_do_filedeps
ERROR: Fatal errors occurred in subprocesses:
[Errno 13] Permission denied: ‘/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/packages-split/autoconf-archive/usr/share/aclocal/ax_f90_module.m4’: Traceback (most recent call last):
File “/home/muammer/yocto-nodejs/poky/meta/lib/oe/utils.py”, line 280, in run
ret = self._target(*self._args, **self._kwargs)
File “/home/muammer/yocto-nodejs/poky/meta/lib/oe/package.py”, line 251, in filedeprunner
output = subprocess.check_output(shlex.split(rpmdeps) + pkgfiles, stderr=subprocess.STDOUT).decode(“utf-8”)
File “/usr/lib/python3.10/subprocess.py”, line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/usr/lib/python3.10/subprocess.py”, line 503, in run
with Popen(*popenargs, **kwargs) as process:
File “/usr/lib/python3.10/subprocess.py”, line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.10/subprocess.py”, line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: ‘/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/packages-split/autoconf-archive/usr/share/aclocal/ax_f90_module.m4’

[Errno 13] Permission denied: ‘/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/packages-split/autoconf-archive/usr/share/aclocal/ax_cpu_freq.m4’: Traceback (most recent call last):
File “/home/muammer/yocto-nodejs/poky/meta/lib/oe/utils.py”, line 280, in run
ret = self._target(*self._args, **self._kwargs)
File “/home/muammer/yocto-nodejs/poky/meta/lib/oe/package.py”, line 251, in filedeprunner
output = subprocess.check_output(shlex.split(rpmdeps) + pkgfiles, stderr=subprocess.STDOUT).decode(“utf-8”)
File “/usr/lib/python3.10/subprocess.py”, line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/usr/lib/python3.10/subprocess.py”, line 503, in run
with Popen(*popenargs, **kwargs) as process:
File “/usr/lib/python3.10/subprocess.py”, line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.10/subprocess.py”, line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: ‘/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/packages-split/autoconf-archive/usr/share/aclocal/ax_cpu_freq.m4’

[Errno 13] Permission denied: ‘/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/packages-split/autoconf-archive/usr/share/aclocal/ax_type_socklen_t.m4’: Traceback (most recent call last):
File “/home/muammer/yocto-nodejs/poky/meta/lib/oe/utils.py”, line 280, in run
ret = self._target(*self._args, **self._kwargs)
File “/home/muammer/yocto-nodejs/poky/meta/lib/oe/package.py”, line 251, in filedeprunner
output = subprocess.check_output(shlex.split(rpmdeps) + pkgfiles, stderr=subprocess.STDOUT).decode(“utf-8”)
File “/usr/lib/python3.10/subprocess.py”, line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/usr/lib/python3.10/subprocess.py”, line 503, in run
with Popen(*popenargs, **kwargs) as process:
File “/usr/lib/python3.10/subprocess.py”, line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.10/subprocess.py”, line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: ‘/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/packages-split/autoconf-archive/usr/share/aclocal/ax_type_socklen_t.m4’

[Errno 13] Permission denied: ‘/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/packages-split/autoconf-archive/usr/share/aclocal/ax_check_java_home.m4’: Traceback (most recent call last):
File “/home/muammer/yocto-nodejs/poky/meta/lib/oe/utils.py”, line 280, in run
ret = self._target(*self._args, **self._kwargs)
File “/home/muammer/yocto-nodejs/poky/meta/lib/oe/package.py”, line 251, in filedeprunner
output = subprocess.check_output(shlex.split(rpmdeps) + pkgfiles, stderr=subprocess.STDOUT).decode(“utf-8”)
File “/usr/lib/python3.10/subprocess.py”, line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/usr/lib/python3.10/subprocess.py”, line 503, in run
with Popen(*popenargs, **kwargs) as process:
File “/usr/lib/python3.10/subprocess.py”, line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.10/subprocess.py”, line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: ‘/home/muammer/yocto-nodejs/poky/build-dunfell/tmp/work/all-poky-linux/autoconf-archive/2019.01.06-r0/packages-split/autoconf-archive/usr/share/aclocal/ax_check_java_home.m4’

DEBUG: Python function package_do_filedeps finished
DEBUG: Python function do_package finished


  1. ^/ ↩︎

how did you download the yocto source?
Are you following the FX30 release note?

I used
git clone -b dunfell git://git.yoctoproject.org/poky

I try again with new leaf environement and followed the release note wich is very light for me :
https://source.sierrawireless.com/-/media/support_downloads/airlink/docs/release_notes/fx30/41114679-fx30-fx30s-r15,-d-,1-crn-r2.ashx

it seems as if mdm9x06 folder is missing :

ERROR: OE-core’s config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
MACHINE=mdm9x06 is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

How did you start the compilation?

You might also first compile the yocto of wp7702 to see if your PC can do it

https://source.sierrawireless.com/resources/airprime/software/wp77xx/wp77xx-firmware-release-15,-d-,1-components/

leaf setup -p swi-wp77_6.0.1
leaf getsrc swi-linux

gives me now:
ERROR:
Profile provisioning interrupted
CAUSED BY:
Error while installing required packages (Error during sync step for swi-verify-aptdeps_1.7.210909 (command returned 100))
HINT:
try leaf profile sync to resume

I remember i need to use ubuntu 16 PC to compile

If you still find problem in leaf, you might try to compile wp77 yocto source first

https://source.sierrawireless.com/resources/airprime/software/wp77xx/wp77xx-firmware-release-15,-d-,1-components/

I still have error after make PROD=fx30

ERROR: mdm9x28-image-minimal-1.0-r0.0 do_image: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: ‘exec_func_python() autogenerated’, lineno: 2, function:
0001:
*** 0002:do_image(d)
0003:
File: ‘/home/muammer/fx30_wp77_build/swi-linux-src/poky/meta/classes/image.bbclass’, lineno: 263, function: do_image
0259:
0260: d.setVarFlag(‘REPRODUCIBLE_TIMESTAMP_ROOTFS’, ‘export’, ‘1’)
0261: pre_process_cmds = d.getVar(“IMAGE_PREPROCESS_COMMAND”)
0262:
*** 0263: execute_pre_post_process(d, pre_process_cmds)
0264:}
0265:do_image[dirs] = “${TOPDIR}”
0266:do_image[umask] = “022”
0267:addtask do_image after do_rootfs
File: ‘/home/muammer/fx30_wp77_build/swi-linux-src/poky/meta/lib/oe/utils.py’, lineno: 264, function: execute_pre_post_process
0260: for cmd in cmds.strip().split(‘;’):
0261: cmd = cmd.strip()
0262: if cmd != ‘’:
0263: bb.note(“Executing %s …” % cmd)
*** 0264: bb.build.exec_func(cmd, d)
0265:
0266:# For each item in items, call the function ‘target’ with item as the first
0267:# argument, extraargs as the other arguments and handle any exceptions in the
0268:# parent thread
File: ‘/home/muammer/fx30_wp77_build/swi-linux-src/poky/bitbake/lib/bb/build.py’, lineno: 254, function: exec_func
0250: with bb.utils.fileslocked(lockfiles):
0251: if ispython:
0252: exec_func_python(func, d, runfile, cwd=adir)
0253: else:
*** 0254: exec_func_shell(func, d, runfile, cwd=adir)
0255:
0256: try:
0257: curcwd = os.getcwd()
0258: except:
File: ‘/home/muammer/fx30_wp77_build/swi-linux-src/poky/bitbake/lib/bb/build.py’, lineno: 455, function: exec_func_shell
0451: with open(fifopath, ‘r+b’, buffering=0) as fifo:
0452: try:
0453: bb.debug(2, “Executing shell function %s” % func)
0454: with open(os.devnull, ‘r+’) as stdin, logfile:
*** 0455: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
0456: finally:
0457: os.unlink(fifopath)
0458:
0459: bb.debug(2, “Shell function %s finished” % func)
File: ‘/home/muammer/fx30_wp77_build/swi-linux-src/poky/bitbake/lib/bb/process.py’, lineno: 184, function: run
0180:
0181: if pipe.returncode != 0:
0182: if log:
0183: # Don’t duplicate the output in the exception if logging it
*** 0184: raise ExecutionError(cmd, pipe.returncode, None, None)
0185: raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
0186: return stdout, stderr
Exception: bb.process.ExecutionError: Execution of ‘/home/muammer/fx30_wp77_build/swi-linux-src/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/run.do_generate_version_file.18879’ failed with exit code 128

ERROR: Logfile of failure stored in: /home/muammer/fx30_wp77_build/swi-linux-src/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/log.do_image.18879
ERROR: Task (/home/muammer/fx30_wp77_build/swi-linux-src/meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb:do_image) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 4132 tasks of which 10 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:
/home/muammer/fx30_wp77_build/swi-linux-src/meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb:do_image
Summary: There were 17 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
meta-columbia-x/common.mk:345: recipe for target ‘image_bin’ failed
make: *** [image_bin] Error 1

you might try to compile wp77 yocto source first

https://source.sierrawireless.com/resources/airprime/software/wp77xx/wp77xx-firmware-release-15,-d-,1-components/

This can help to check whether it is your PC problem.