I’ve read all that I can find on these forums about NodeJS. Some people have been able to get it working on some devices but I think that is very device specific. I’m hoping I can get some help with this.
First of all, the reason I want to run NodeJS on the AXT1800 is so that I can run SignalK, a webserver that gathers instrument data from my sailboat and will store/broadcast it in various forms. I want to put all of this into my wifi router so that I don’t need multiple devices and can limit the power utilization on the sailboat.
I chose the AXT1800 as it fulfills all my other needs on the boat (wifi and a few WAN/LAN ports) and it has a sdcard slot where I could store nodejs and the database for signalk.
I’ve now done more experimentation with the AXT1800 and I’ve found that there are no packages for node on GL.iNet. I considered using OpenWRT vanilla and installing their node package but it looks like they don’t have one for armv7l which is used in the axt1800.
I tried installing nodejs using the prebuilt armv7l binaries for linux but that doesn’t work (reports node:file not found when trying to run node).
Has anyone had success with node on a wifi router, or does anyone have any suggestions on what I should be looking for if the AXT1800 isn’t the right choice?
Thanks Spitz. I saw this in another thread as well where I was considering the route of using vanilla OpenWRT however I would still have the issue of not having a NodeJS compiled for the axt1800. @solidus1983, do you know if building the nodejs and node-npm packages for your images would work?
Your kernel 5.15 wouldn’t work on the AX1800/AXT1800, right? Because the AXT1800 is v7l? Or am I missing something and I can use your 5.15 kernel from here on my AXT1800 and then use the packages from here to install the nodejs package?
Amazing! Thank you for all your help! I was able to install your firmware and the nodejs package and tldr I have signalk installed and everything is working well.
To follow up on my original post I was able to install the new firmware provided by solidus.
After installing the firmware and inserting my sdcard I followed the instructions here to set up extroot: [OpenWrt Wiki] Extroot configuration
NOTE: To install signalk I needed to use a portion of my sdcard as swap (see here
I installed the node and node-npm packages using opkg install node node-npm. Install went fine and pulled packages from solidus’s site.
I was then able to install signalk using npm install signalk-server
SignalK needs a user, so I added shadow-useradd
SignalK seems to expect /home/[signalkuser] to exist, so I created that
Started up SignalK and everything seems to work!