Everything runs well except I define a serial-port node then deploy it, then segment fault occurs,
I tried everything as far as I know, still unable to solve it, hope anyone of you can help me.
ps. character device /dev/ttyAMA1 is working fine with minicom connection test, so I thing H/W allocations should be O.K. I also add the permission to it by chmod 777, but it still occur segment fault error.
npm rebuild node-red-node-serialport --verbose
--> build result: OK and Situation is same, segmentation fault.
npm uninstall node-red-node-serialport
npm install node-red-node-serialport --build-from-source
--> lots of error came out, attached files are the rebuild logs for those 2 commands.
Hi, Sir:
I updated python tp 3.10.4 and do npm install node-red-node-serialport --build-from-source again,
still not success and came out errors, log is as attached.
Please have a look.
thanks again.
Right so you also need the rest of the build tools. Usually gcc and make. There is probably a package that includes them all for openwrt , you can remove them once we get this to work if you need the space back.
dear dceejay sir:
I'v tried my best to install the required package for openwrt, there was some progresses, however, there is still errors (
npm ERR! code 1
npm ERR! path /root/.node-red/node_modules/@serialport/bindings-cpp
.......
)
so I can't finish the rebuild process, may you take a look and help...
regards,
Vincent
Hi, Sir:
I finally finish npm install node-red-node-serialport --build-from-source process and complete from the message.
But ....
How come segmentation fault still happens....
Any idea or hint is much helpful
Vincent
the make command seemed to say it couldn't find libpthread - is that installed ?
but yes - you are into territory I have not explored so not sure how I can help much more.