Skip to content

Instantly share code, notes, and snippets.

@apgiorgi
Last active May 1, 2017 20:11
Show Gist options
  • Select an option

  • Save apgiorgi/8867558 to your computer and use it in GitHub Desktop.

Select an option

Save apgiorgi/8867558 to your computer and use it in GitHub Desktop.
Building and upgrading Node.js on Beaglebone Black with VFPv3 and NEON
Resources:
http://fastr.github.io/articles/Node.js-on-OpenEmbedded.html
http://processors.wiki.ti.com/index.php/Cortex-A8
Flags:
"-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp"
So, in a nutshell:
$ wget http://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz
$ tar -zxf node-v0.10.25.tar.gz
$ cd node-v0.10.25
$ export CC='gcc -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp'
$ export CXX='g++ -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp'
$ ./configure && make && sudo make install
Then remove old node and link new one:
$ rm /usr/bin/node /usr/bin/node-waf
$ ln -s /usr/local/bin/node /usr/bin/node
OR(absolutely unsafe):
$ export PATH=/usr/local/bin:$PATH
Check with:
$ node -v
@apgiorgi

apgiorgi commented Feb 7, 2014 •

Copy link
Copy Markdown
Author

Probably this works on any source build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment