Comments (2)
I can install spi-device without problems using Node.js v14.20.1 and node-gyp v5.1.0 on a Raspberry Pi 2 Model B Rev 1.1 with ARMv7 Processor rev 5 (v7l) with Rasbian 10 (buster).
Here is the output of npm install spi-device
:
pi@raspberrypi:~/test $ npm install spi-device
> [email protected] install /home/pi/test/node_modules/spi-device
> node-gyp rebuild
make: Entering directory '/home/pi/test/node_modules/spi-device/build'
CXX(target) Release/obj.target/spi/src/spi.o
CXX(target) Release/obj.target/spi/src/spidevice.o
CXX(target) Release/obj.target/spi/src/open.o
CXX(target) Release/obj.target/spi/src/close.o
CXX(target) Release/obj.target/spi/src/transfer.o
CXX(target) Release/obj.target/spi/src/getoptions.o
CXX(target) Release/obj.target/spi/src/setoptions.o
SOLINK_MODULE(target) Release/obj.target/spi.node
COPY Release/spi.node
make: Leaving directory '/home/pi/test/node_modules/spi-device/build'
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/test/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.
+ [email protected]
added 4 packages from 9 contributors and audited 4 packages in 65.321s
found 0 vulnerabilities
pi@raspberrypi:~/test $
And here is the output of a few command showing the system setup:
pi@raspberrypi:~/test $ node --version
v14.20.1
pi@raspberrypi:~/test $ ~/opt/node-v14.20.1-linux-armv7l/lib/node_modules/npm/bin/node-gyp-bin/node-gyp --version
v5.1.0
pi@raspberrypi:~/test $ uname -a
Linux raspberrypi 5.10.17-v7+ #1403 SMP Mon Feb 22 11:29:51 GMT 2021 armv7l GNU/Linux
pi@raspberrypi:~/test $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@raspberrypi:~/test $ cat /sys/firmware/devicetree/base/model
Raspberry Pi 2 Model B Rev 1.1
pi@raspberrypi:~/test $ cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 1
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 2
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 3
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
Hardware : BCM2835
Revision : a01041
Serial : [Removed]
Model : Raspberry Pi 2 Model B Rev 1.1
pi@raspberrypi:~/test $
Note that the Node.js v14.20.1 binaries that I used are from node-v14.20.1-linux-armv7l.tar.gz which can be found at https://nodejs.org/dist/v14.20.1/
I would imagine that the problems that you are having are related to your system setup.
from spi-device.
@pow4all I upgraded to kernel 5.10.103-v7+ which is the kernel you're using and npm install spi-device
still works:
pi@raspberrypi:~/test $ uname -a
Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
pi@raspberrypi:~/test $ node --version
v14.20.1
pi@raspberrypi:~/test $ npm install spi-device
> [email protected] install /home/pi/test/node_modules/spi-device
> node-gyp rebuild
make: Entering directory '/home/pi/test/node_modules/spi-device/build'
CXX(target) Release/obj.target/spi/src/spi.o
CXX(target) Release/obj.target/spi/src/spidevice.o
CXX(target) Release/obj.target/spi/src/open.o
CXX(target) Release/obj.target/spi/src/close.o
CXX(target) Release/obj.target/spi/src/transfer.o
CXX(target) Release/obj.target/spi/src/getoptions.o
CXX(target) Release/obj.target/spi/src/setoptions.o
SOLINK_MODULE(target) Release/obj.target/spi.node
COPY Release/spi.node
make: Leaving directory '/home/pi/test/node_modules/spi-device/build'
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/test/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.
+ [email protected]
added 4 packages from 9 contributors and audited 4 packages in 73.624s
found 0 vulnerabilities
pi@raspberrypi:~/test $
I'll go ahead and close this issue as it doesn't appear to be related to spi-device. As already mentioned above, I would imagine that the problems that you are having are related to your system setup.
from spi-device.
Related Issues (20)
- Help with spi-device and THAT5171 chip HOT 8
- Module did not self-register HOT 2
- SPI - question to control a push button with bitmap in SPI HOT 26
- Issue with Max31865 HOT 7
- can't change chipSelectHigh HOT 13
- Configure options not working HOT 16
- Fix tests HOT 1
- Uncaught Error: EINVAL, incorrect arguments passed to transferSync(message) HOT 3
- Crashed on open if options parameter is null or undefined
- node-gyp fails on armv7 32bit HOT 15
- USB to spi device
- Bump nan HOT 2
- Help Switch from Arduino sketch to Node HOT 1
- correct values for speedHz and maxSpeedHz settings on Raspberry Pi? HOT 2
- When working with spi again, a delay of at least 4 seconds is required. HOT 2
- Can you please help me with this issue not able to install spi-device module HOT 6
- Drop support for Node.js v0.10, v0.12, v5 and v7 HOT 1
- Add platform-conditional directive around spidev include HOT 2
- can't find SPI device channel arguments! HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spi-device.