node.js on vocore
Posted: Fri May 15, 2015 4:35 am
by Peter
Did anybody got node.js running on the vocore?
I am a bit worried about memory consumption. Not sure if it will work. Will also be tight to fit it in the flash.
Will try to crosscompile and update my findings.
Re: node.js on vocore
Posted: Fri May 15, 2015 8:27 am
by Peter
I just used this script to build a mips version of node.js:
https://github.com/nneves/openwrt_mips_ar9331_nodejsWhen I start it on the vocore I get the following error:
root@OpenWrt:/node# ./node
./node: line 1: syntax error: unexpected "("
So I am wondering: is the AR9331 mips cpu not binary compatible to the RT5350?
Re: node.js on vocore
Posted: Sat May 16, 2015 5:54 am
by Peter
Ok, I think I figured it out.
- Code: Select all
file node
tells me
- Code: Select all
node: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1, dynamically linked (uses shared libs), not stripped
i.e. it is a MSB/big endian binary. But I need a LSB binary for the RT5350/vocore.
Re: node.js on vocore
Posted: Sat May 16, 2015 6:40 pm
by noblepepper
I imagine you have found this since you got that far but if not; searching that github repository for endian finds this in the .config:
- Code: Select all
CONFIG_BIG_ENDIAN=y
the 5350 is definitely little endian, I had to deal with the same when porting pepe2k's work for the AR9331 to the VoCore
Re: node.js on vocore
Posted: Sat May 23, 2015 2:09 pm
by brad
Use this one:
https://github.com/majklovec/wrtnode-packagesit works out of the box. I also posted a new thread about some details specific to compiling this in a vocore image. Works on openwrt 14.07 with vocore.