node.js on vocore

Peter
 
Posts: 14
Joined: Sat Dec 06, 2014 6:00 am

node.js on vocore

Fri May 15, 2015 4:35 am

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.

Peter
 
Posts: 14
Joined: Sat Dec 06, 2014 6:00 am

Re: node.js on vocore

Fri May 15, 2015 8:27 am

I just used this script to build a mips version of node.js:
https://github.com/nneves/openwrt_mips_ar9331_nodejs

When 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?

Peter
 
Posts: 14
Joined: Sat Dec 06, 2014 6:00 am

Re: node.js on vocore

Sat May 16, 2015 5:54 am

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.

noblepepper
 
Posts: 240
Joined: Sat Nov 29, 2014 3:22 pm

Re: node.js on vocore

Sat May 16, 2015 6:40 pm

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

brad
 
Posts: 31
Joined: Tue Jan 06, 2015 5:19 am

Re: node.js on vocore

Sat May 23, 2015 2:09 pm

Use this one:
https://github.com/majklovec/wrtnode-packages

it 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.

Return to VoCore & VoCore+Dock

Who is online

Users browsing this forum: No registered users and 4 guests