Closed brunosantos closed 9 years ago
Part of the error message is the following:
gyp: /root/.node-gyp/0.12.0/common.gypi not found (cwd: /home/pi/node_modules/epoll) while reading includes of binding.gyp while trying to load binding.gyp
Does file /root/.node-gyp/0.12.0/common.gypi
exist?
Does directory /root/.node-gyp/0.12.0
exist?
I just successfully installed Node.js v0.12.1 and epoll v0.1.13 on a Raspberry Pi 1 B with 256MB without issues. The Operating System being used is Raspbian 2015-05-05. Here's the output of the install:
pi@raspberrypi ~/dev/epoll $ npm install epoll
|
> epoll@0.1.13 install /home/pi/dev/epoll/node_modules/epoll
> node-gyp rebuild
child_process: customFds option is deprecated, use stdio instead.
make: Entering directory '/home/pi/dev/epoll/node_modules/epoll/build'
CXX(target) Release/obj.target/epoll/src/epoll.o
SOLINK_MODULE(target) Release/obj.target/epoll.node
SOLINK_MODULE(target) Release/obj.target/epoll.node: Finished
COPY Release/epoll.node
make: Leaving directory '/home/pi/dev/epoll/node_modules/epoll/build'
epoll@0.1.13 node_modules/epoll
├── bindings@1.2.1
└── nan@1.8.4
pi@raspberrypi ~/dev/epoll $ node -v
v0.12.1
pi@raspberrypi ~/dev/epoll $ uname -a
Linux raspberrypi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux
pi@raspberrypi ~/dev/epoll $
It's possible to simulate the error by deleting the file /home/pi/.node-gyp/0.12.1/common.gypi
. This probably means that there's something wrong with the installation. I'd suggest removing the directory /home/pi/.node-gyp/0.12.1
and all it's content and then try installing epoll again. Note that the first time an addon like epoll is being installed, it can take quite a while for node-gyp to download and decompress what it needs, so patience is required :).
I was unable to install epoll on a Pi 2 B with node 0.12.1 and a freshly installed OS with this build:
Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux
I was connecting over wifi, with an adapter using the mt7061 chipset. I tried numerous times and consistently received an error indicating an unexpected EOF during the node-gyp rebuild
.
I just attempted to install epoll on another fresh install while attached to the network via ethernet and it worked perfectly first time.
It looks like perhaps some of the files get silently truncated during download, maybe because of the crap mt7061 driver. @brunosantos , if you were connected via wifi, maybe give this a try connected to ethernet?
The only other differences between attempts (it seems unlikely that they are the cause):
gpio-admin
installed, the second time I didn'ttmux
session, the second time I wasn'tHello, thanks for your quick help. thanks @dansitu but I'm hard-wired. I'm still having issues with it after deleting the node-gyp folder.
first I tried to install node-gyp:
sudo npm install -g --unsafe-perm node-gyp
+-- tar@1.0.3 (inherits@2.0.1, block-stream@0.0.7)
+-- glob@4.5.3 (inherits@2.0.1, inflight@1.0.4, once@1.3.2, minimatch@2.0.8)
+-- npmlog@1.2.1 (ansi@0.3.0, gauge@1.2.0, are-we-there-yet@1.0.4)
+-- request@2.55.0 (caseless@0.9.0, aws-sign2@0.5.0, forever-agent@0.6.1, stringstream@0.0.4, oauth-sign@0.6.0, tunnel-agent@0.4.0, isstream@0.1.2, json-stringify-safe@5.0.1, node-uuid@1.4.3, qs@2.4.2, combined-stream@0.0.7, form-data@0.2.0, mime-types@2.0.11, bl@0.9.4, http-signature@0.10.1, tough-cookie@1.1.0, hawk@2.3.1, har-validator@1.7.0)
that looked fine. Then when I try npm install epoll, I got:
/
epoll@0.1.13 install /home/pi/node_modules/epoll node-gyp rebuild
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: socket hang up
gyp ERR! stack at createHangUpError (_http_client.js:215:15)
gyp ERR! stack at Socket.socketOnEnd (_http_client.js:293:23)
gyp ERR! stack at Socket.emit (events.js:129:20)
gyp ERR! stack at _stream_readable.js:908:16
gyp ERR! stack at process._tickCallback (node.js:355:11)
gyp ERR! System Linux 3.12.26-rpi-aufs
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/epoll
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Linux 3.12.26-rpi-aufs
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "epoll"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! epoll@0.1.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the epoll@0.1.13 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the epoll package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls epoll
npm ERR! There is likely additional logging output above.
the npm-debug.log looks like:
249 info install epoll@0.1.13
250 verbose unsafe-perm in lifecycle true
251 info epoll@0.1.13 Failed to exec install script
252 verbose unlock done using /home/pi/.npm/_locks/epoll-aa577be478f2bfb6.lock for /home/pi/node_modules/epoll
253 verbose stack Error: epoll@0.1.13 install: `node-gyp rebuild`
253 verbose stack Exit status 1
253 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
253 verbose stack at EventEmitter.emit (events.js:110:17)
253 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:14:12)
253 verbose stack at ChildProcess.emit (events.js:110:17)
253 verbose stack at maybeClose (child_process.js:1008:16)
253 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
254 verbose pkgid epoll@0.1.13
255 verbose cwd /home/pi
256 error Linux 3.12.26-rpi-aufs
257 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "epoll"
258 error node v0.12.0
259 error npm v2.5.1
260 error code ELIFECYCLE
261 error epoll@0.1.13 install: `node-gyp rebuild`
261 error Exit status 1
262 error Failed at the epoll@0.1.13 install script 'node-gyp rebuild'.
262 error This is most likely a problem with the epoll package,
262 error not with npm itself.
262 error Tell the author that this fails on your system:
262 error node-gyp rebuild
262 error You can get their info via:
262 error npm owner ls epoll
262 error There is likely additional logging output above.
263 verbose exit [ 1, true ]
Even if this was an issue with my current installation. I've flashed my card with a new Raspian and I get the same problem. I can install other npm packages but I can't manage to get epoll... which is a dependency of onoff which is the one that I was trying to get originally.
Any thoughts? Thanks.
Interesting. I'm still thinking this is a connectivity issue - your log indicates a "socket hang up". Why does the epoll build process connect to the web beyond what npm does?
One thing that comes to mind is the Pi doesn't have a hardware clock. If the clock drifts sufficiently there could be problems with any SSL connection:
Seems unlikely that this would cause the file truncation I experienced, and I'd expect a different error message than the one you experienced, but perhaps there's another time sensitive protocol involved. You could try synching with an NTP server immediately before running npm install?
I was trying to install onoff, too. It eventually worked.
On Thu, 21 May 2015 04:42 Bruno Santos notifications@github.com wrote:
Hello, thanks for your quick help. thanks @dansitu https://github.com/dansitu but I'm hard-wired. I'm still having issues with it after deleting the node-gyp folder.
first I tried to install node-gyp:
sudo npm install -g --unsafe-perm node-gyp +-- tar@1.0.3 (inherits@2.0.1, block-stream@0.0.7) +-- glob@4.5.3 (inherits@2.0.1, inflight@1.0.4, once@1.3.2, minimatch@2.0.8) +-- npmlog@1.2.1 (ansi@0.3.0, gauge@1.2.0, are-we-there-yet@1.0.4) +-- request@2.55.0 (caseless@0.9.0, aws-sign2@0.5.0, forever-agent@0.6.1, stringstream@0.0.4, oauth-sign@0.6.0, tunnel-agent@0.4.0, isstream@0.1.2, json-stringify-safe@5.0.1, node-uuid@1.4.3, qs@2.4.2, combined-stream@0.0.7, form-data@0.2.0, mime-types@2.0.11, bl@0.9.4, http-signature@0.10.1, tough-cookie@1.1.0, hawk@2.3.1, har-validator@1.7.0)
that looked fine. Then when I try npm install epoll, I got:
/
epoll@0.1.13 install /home/pi/node_modules/epoll node-gyp rebuild
gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: socket hang up gyp ERR! stack at createHangUpError (_http_client.js:215:15) gyp ERR! stack at Socket.socketOnEnd (_http_client.js:293:23) gyp ERR! stack at Socket.emit (events.js:129:20) gyp ERR! stack at _stream_readable.js:908:16 gyp ERR! stack at process._tickCallback (node.js:355:11) gyp ERR! System Linux 3.12.26-rpi-aufs gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/node_modules/epoll gyp ERR! node -v v0.12.0 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok npm ERR! Linux 3.12.26-rpi-aufs npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "epoll" npm ERR! node v0.12.0 npm ERR! npm v2.5.1 npm ERR! code ELIFECYCLE
npm ERR! epoll@0.1.13 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the epoll@0.1.13 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the epoll package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls epoll npm ERR! There is likely additional logging output above.the npm-debug.log looks like:
249 info install epoll@0.1.13 250 verbose unsafe-perm in lifecycle true 251 info epoll@0.1.13 Failed to exec install script 252 verbose unlock done using /home/pi/.npm/_locks/epoll-aa577be478f2bfb6.lock for /home/pi/node_modules/epoll 253 verbose stack Error: epoll@0.1.13 install:
node-gyp rebuild
253 verbose stack Exit status 1 253 verbose stack at EventEmitter.(/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16) 253 verbose stack at EventEmitter.emit (events.js:110:17) 253 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:14:12) 253 verbose stack at ChildProcess.emit (events.js:110:17) 253 verbose stack at maybeClose (child_process.js:1008:16) 253 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1080:5) 254 verbose pkgid epoll@0.1.13 255 verbose cwd /home/pi 256 error Linux 3.12.26-rpi-aufs 257 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "epoll" 258 error node v0.12.0 259 error npm v2.5.1 260 error code ELIFECYCLE 261 error epoll@0.1.13 install: node-gyp rebuild
261 error Exit status 1 262 error Failed at the epoll@0.1.13 install script 'node-gyp rebuild'. 262 error This is most likely a problem with the epoll package, 262 error not with npm itself. 262 error Tell the author that this fails on your system: 262 error node-gyp rebuild 262 error You can get their info via: 262 error npm owner ls epoll 262 error There is likely additional logging output above. 263 verbose exit [ 1, true ]Even if this was an issue with my current installation. I've fashed my card with a new Raspian and I get the same problem. I can install other npm packages but I can't manage to get epoll... which is a dependency of onoff which is the one that I was trying to get originally.
Any thoughts? Thanks.
— Reply to this email directly or view it on GitHub https://github.com/fivdi/epoll/issues/14#issuecomment-104238004.
This might seem as a silly question but. Can I install epoll as global (-g)? because I get a different error....
sudo npm install -g epoll
|
> epoll@0.1.13 install /usr/local/lib/node_modules/epoll
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/epoll/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: node-v0.12.0.tar.gz local checksum 8ecb2cd010d583c72f5993a67fc6dc2ae6321532aca7936939b17a73f4a873db not match remote 9700e23af4e9b3643af48cef5f2ad20a1331ff531a12154eef2bfb0bb1682e32
gyp ERR! stack at deref (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:299:20)
gyp ERR! stack at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:340:13)
gyp ERR! stack at IncomingMessage.emit (events.js:129:20)
gyp ERR! stack at _stream_readable.js:908:16
gyp ERR! stack at process._tickCallback (node.js:355:11)
gyp ERR! System Linux 3.12.26-rpi-aufs
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/epoll
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Linux 3.12.26-rpi-aufs
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "epoll"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! epoll@0.1.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the epoll@0.1.13 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the epoll package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls epoll
npm ERR! There is likely additional logging output above.
Also...I'm executing the commands via ssh using screen....could that be an issue? Thanks for the replies
I had the same error trying to install globally; not sure of an explanation.
Could try running npm install
using the bare terminal rather than
screen
? My original issues occurred within a tmux
session (similar to
screen
) so maybe there's some weird issue there. I did everything over
SSH, including when it worked.
On Thu, 21 May 2015 09:20 Bruno Santos notifications@github.com wrote:
This might seem as a silly question but. Can I install epoll as global (-g)? because I get a different error....
sudo npm install -g epoll |
epoll@0.1.13 install /usr/local/lib/node_modules/epoll node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.12.0" gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/epoll/.node-gyp" gyp WARN install got an error, rolling back install gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: node-v0.12.0.tar.gz local checksum 8ecb2cd010d583c72f5993a67fc6dc2ae6321532aca7936939b17a73f4a873db not match remote 9700e23af4e9b3643af48cef5f2ad20a1331ff531a12154eef2bfb0bb1682e32 gyp ERR! stack at deref (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:299:20) gyp ERR! stack at IncomingMessage.
(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:340:13) gyp ERR! stack at IncomingMessage.emit (events.js:129:20) gyp ERR! stack at _stream_readable.js:908:16 gyp ERR! stack at process._tickCallback (node.js:355:11) gyp ERR! System Linux 3.12.26-rpi-aufs gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/epoll gyp ERR! node -v v0.12.0 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok npm ERR! Linux 3.12.26-rpi-aufs npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "epoll" npm ERR! node v0.12.0 npm ERR! npm v2.5.1 npm ERR! code ELIFECYCLE npm ERR! epoll@0.1.13 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the epoll@0.1.13 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the epoll package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls epoll npm ERR! There is likely additional logging output above.Also...I'm executing the commands via ssh using screen....could that be an issue? Thanks for the replies
— Reply to this email directly or view it on GitHub https://github.com/fivdi/epoll/issues/14#issuecomment-104342345.
If a native module like epoll is installed with root privileges (sudo), gyp compiles as "nobody", not as "root". This can be avoided with option --unsafe-perm
Note that the checksum error this time is yet another indication that there is something wrong with the internet connection. Each time there is a different error.
Is it possible to install any native modules? For example, does npm install serialport
work?
Is the Raspberry Pi being overclocked? Has the same SD card worked successfully on the same Raspberry Pi in the past?
When a native module is installed, gyp downloads and decompresses the node tar file. This is why there is a lot more internet access when the first native module is installed.
Does dmesg
display any error messages directly after an unsuccessful install?
pi is not overclocked (but good call). When I run: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 700000
I tried to install serialport with no luck:
|
> serialport@1.7.1 install /home/pi/node_modules/serialport
> node-pre-gyp install --fallback-to-build
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: node-v0.12.0.tar.gz local checksum f47aacb7817286b5cfc457fd0f0b0eec54b5898fb774cc9d8634acea86db767d not match remote 9700e23af4e9b3643af48cef5f2ad20a1331ff531a12154eef2bfb0bb1682e32
gyp ERR! stack at deref (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:299:20)
gyp ERR! stack at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:340:13)
gyp ERR! stack at IncomingMessage.emit (events.js:129:20)
gyp ERR! stack at _stream_readable.js:908:16
gyp ERR! stack at process._tickCallback (node.js:355:11)
gyp ERR! System Linux 3.12.26-rpi-aufs
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/node_modules/serialport/build/serialport/v1.7.1/Release/node-v14-linux-arm/serialport.node" "--module_name=serialport" "--module_path=/home/pi/node_modules/serialport/build/serialport/v1.7.1/Release/node-v14-linux-arm"
gyp ERR! cwd /home/pi/node_modules/serialport
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/node_modules/serialport/build/serialport/v1.7.1/Release/node-v14-linux-arm/serialport.node --module_name=serialport --module_path=/home/pi/node_modules/serialport/build/serialport/v1.7.1/Release/node-v14-linux-arm' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:110:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:1008:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
node-pre-gyp ERR! System Linux 3.12.26-rpi-aufs
node-pre-gyp ERR! command "node" "/home/pi/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/pi/node_modules/serialport
node-pre-gyp ERR! node -v v0.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.7
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/node_modules/serialport/build/serialport/v1.7.1/Release/node-v14-linux-arm/serialport.node --module_name=serialport --module_path=/home/pi/node_modules/serialport/build/serialport/v1.7.1/Release/node-v14-linux-arm' (1)
npm ERR! Linux 3.12.26-rpi-aufs
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "serialport"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! serialport@1.7.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@1.7.1 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log
Has the same SD card worked successfully on the same Raspberry Pi in the past?
What is the output of dmesg
after an unsuccessful install?
I should have mentioned that I'm using berryboot for multiple distribs. I also have berryboot with my raspi 2 and that works fine. I was never able to install onoff, epoll or serialport in my raspi1 with this SD card. Since it's an SD card I can't test it in my raspi2. But I think (because I'm away atm) the SD card is: SDSDX-016G-X46
I was able to install rpi-gpio and to turn a led on and off with node (not sure if that is a native module).
Here is the dmesg:
$ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.12.26-rpi-aufs (max@lynx) (gcc version 4.5.3 (Buildroot 2012.05-g41d6ffe-dirty) ) #1 PREEMPT Thu Aug 14 10:48:01 CEST 2014
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: BCM2708
[ 0.000000] early_vc_cma_mem(0/0x5c00000@0x9000000)
[ 0.000000] -> initial 0, size 5c00000, base 9000000<6>[ 0.000000] cma: CMA: reserved 92 MiB at 09000000
[ 0.000000] cma: CMA: reserved 8 MiB at 06c00000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 56320
[ 0.000000] free_area_init_node: node 0, pgdat c06665a0, node_mem_map c0717000
[ 0.000000] Normal zone: 472 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 56320 pages, LIFO batch:15
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 55848
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708.boardrev=0x2 bcm2708.serial=0xf648380c smsc95xx.macaddr=B8:27:EB:48:38:0C sdhci-bcm2708.emmc_clock_freq=250000000 vc-cma-mem=0/0x5c00000@0x9000000 mem=0x8000000@0x0 mem=0x5c00000@0x9000000 vc_mem.mem_base=0xec00000 vc_mem.mem_size=0x10000000 smsc95xx.turbo_mode=N elevator=deadline quiet bootmenutimeout=10 datadev=mmcblk0p2 qmap=gb ipv4=192.168.1.42/255.255.255.0/192.168.1.1
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 105068K/225280K available (4714K kernel code, 251K rwdata, 1404K rodata, 148K init, 703K bss, 120212K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xcf000000 - 0xff000000 ( 768 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xcec00000 ( 236 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0601d7c (6120 kB)
[ 0.000000] .init : 0xc0602000 - 0xc0627134 ( 149 kB)
[ 0.000000] .data : 0xc0628000 - 0xc0666ea0 ( 252 kB)
[ 0.000000] .bss : 0xc0666eac - 0xc0716dc8 ( 704 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:394
[ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.000550] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.000571] pid_max: default: 32768 minimum: 301
[ 0.000980] Mount-cache hash table entries: 512
[ 0.001790] Initializing cgroup subsys memory
[ 0.001865] Initializing cgroup subsys devices
[ 0.001883] Initializing cgroup subsys freezer
[ 0.001896] Initializing cgroup subsys blkio
[ 0.002014] CPU: Testing write buffer coherency: ok
[ 0.002488] Setting up static identity map for 0xc047b508 - 0xc047b564
[ 0.004246] devtmpfs: initialized
[ 0.021528] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.033942] NET: Registered protocol family 16
[ 0.039302] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[ 0.039937] cpuidle: using governor ladder
[ 0.039961] cpuidle: using governor menu
[ 0.040645] bcm2708.uart_clock = 0
[ 0.042571] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.042590] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.042603] mailbox: Broadcom VideoCore Mailbox driver
[ 0.042682] bcm2708_vcio: mailbox at f200b880
[ 0.042770] bcm_power: Broadcom power driver
[ 0.042787] bcm_power_open() -> 0
[ 0.042798] bcm_power_request(0, 8)
[ 0.543508] bcm_mailbox_read -> 00000080, 0
[ 0.543526] bcm_power_request -> 0
[ 0.543701] Serial: AMBA PL011 UART driver
[ 0.543859] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[ 0.568941] bio: create slab <bio-0> at 0
[ 0.570326] SCSI subsystem initialized
[ 0.570540] usbcore: registered new interface driver usbfs
[ 0.570713] usbcore: registered new interface driver hub
[ 0.571016] usbcore: registered new device driver usb
[ 0.572585] Switched to clocksource stc
[ 0.572895] FS-Cache: Loaded
[ 0.573196] CacheFiles: Loaded
[ 0.586360] NET: Registered protocol family 2
[ 0.587447] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.587528] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.587573] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.587653] TCP: reno registered
[ 0.587677] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.587714] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.588100] NET: Registered protocol family 1
[ 0.588692] RPC: Registered named UNIX socket transport module.
[ 0.588719] RPC: Registered udp transport module.
[ 0.588729] RPC: Registered tcp transport module.
[ 0.588739] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.589064] Trying to unpack rootfs image as initramfs...
[ 0.589084] Skipping 64-byte uInitrd header...
[ 1.657904] Freeing initrd memory: 8332K (c77cc000 - c7fef000)
[ 1.663078] bcm2708_dma: DMA manager at f2007000
[ 1.663195] bcm2708_gpio: bcm2708_gpio_probe c0635e70
[ 1.663607] vc-mem: phys_addr:0x00000000 mem_base=0x0ec00000 mem_size:0x10000000(256 MiB)
[ 1.664893] audit: initializing netlink socket (disabled)
[ 1.664967] type=2000 audit(1.660:1): initialized
[ 1.845755] VFS: Disk quotas dquot_6.5.2
[ 1.846085] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.848150] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.848598] FS-Cache: Netfs 'nfs' registered for caching
[ 1.850185] NFS: Registering the id_resolver key type
[ 1.850296] Key type id_resolver registered
[ 1.850312] Key type id_legacy registered
[ 1.851941] aufs 3.12.x-20140602
[ 1.851995] msgmni has been set to 421
[ 1.854084] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 1.854411] io scheduler noop registered
[ 1.854435] io scheduler deadline registered (default)
[ 1.854759] io scheduler cfq registered
[ 1.856003] BCM2708FB: allocated DMA memory 47000000
[ 1.856069] BCM2708FB: allocated DMA channel 0 @ f2007000
[ 1.883115] Console: switching to colour frame buffer device 90x30
[ 1.899930] uart-pl011 dev:f1: no DMA platform data
[ 1.900579] vc-cma: Videocore CMA driver
[ 1.900601] vc-cma: vc_cma_base = 0x09000000
[ 1.900612] vc-cma: vc_cma_size = 0x05c00000 (92 MiB)
[ 1.900622] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 1.910142] brd: module loaded
[ 1.915619] loop: module loaded
[ 1.915890] vchiq: vchiq_init_state: slot_zero = 0xc6c00000, is_master = 0
[ 1.916898] vchiq_get_state: g_state.remote->initialised != 1 (0)
[ 1.917423] vchiq_get_state: g_state.remote->initialised != 1 (0)
[ 1.917937] vchiq: vchiq_initialise: videocore initialized after 2 retries
[ 1.917937]
[ 1.926035] Loading iSCSI transport class v2.0-870.
[ 1.927013] usbcore: registered new interface driver smsc95xx
[ 1.927094] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 2.127256] Core Release: 2.80a
[ 2.127285] Setting default values for core params
[ 2.127330] Finished setting default values for core params
[ 2.327580] Using Buffer DMA mode
[ 2.327606] Periodic Transfer Interrupt Enhancement - disabled
[ 2.327617] Multiprocessor Interrupt Enhancement - disabled
[ 2.327629] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 2.327646] Dedicated Tx FIFOs mode
[ 2.327994] WARN::dwc_otg_hcd_init:1042: FIQ DMA bounce buffers: virt = 0xc7014000 dma = 0x47014000 len=9024
[ 2.328031] FIQ FSM acceleration enabled for :
[ 2.328031] Non-periodic Split Transactions
[ 2.328031] Periodic Split Transactions
[ 2.328031] High-Speed Isochronous Endpoints
[ 2.328057] dwc_otg: Microframe scheduler enabled
[ 2.328117] WARN::hcd_init:473: FIQ at 0xc0345858
[ 2.328134] WARN::hcd_init:474: FIQ ASM at 0xc0345af0 length 36
[ 2.328164] WARN::hcd_init:500: MPHI regs_base at 0xcf006000
[ 2.328194] dwc_otg bcm2708_usb: DWC OTG Controller
[ 2.328243] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[ 2.328302] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[ 2.328340] Init: Port Power? op_state=1
[ 2.328350] Init: Power Port (0)
[ 2.328682] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.328707] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.328723] usb usb1: Product: DWC OTG Controller
[ 2.328738] usb usb1: Manufacturer: Linux 3.12.26-rpi-aufs dwc_otg_hcd
[ 2.328751] usb usb1: SerialNumber: bcm2708_usb
[ 2.329568] hub 1-0:1.0: USB hub found
[ 2.329654] hub 1-0:1.0: 1 port detected
[ 2.330149] dwc_otg: FIQ enabled
[ 2.330167] dwc_otg: NAK holdoff enabled
[ 2.330178] dwc_otg: FIQ split-transaction FSM enabled
[ 2.330197] Module dwc_common_port init
[ 2.330671] usbcore: registered new interface driver usb-storage
[ 2.330997] mousedev: PS/2 mouse device common for all mice
[ 2.331650] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[ 2.331757] bcm2835-cpufreq: switching to governor powersave
[ 2.331773] bcm2835-cpufreq: switching to governor powersave
[ 2.331855] sdhci: Secure Digital Host Controller Interface driver
[ 2.331868] sdhci: Copyright(c) Pierre Ossman
[ 2.331958] sdhci: Enable low-latency mode
[ 2.372639] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[ 2.372791] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[ 2.372884] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.375297] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.379626] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.385065] usbcore: registered new interface driver usbhid
[ 2.385090] usbhid: USB HID core driver
[ 2.390231] ashmem: initialized
[ 2.395058] TCP: cubic registered
[ 2.395085] Initializing XFRM netlink socket
[ 2.395223] NET: Registered protocol family 17
[ 2.395410] Key type dns_resolver registered
[ 2.403176] registered taskstats version 1
[ 2.404617] Freeing unused kernel memory: 148K (c0602000 - c0627000)
[ 2.462818] mmc0: new high speed SDHC card at address e624
[ 2.463499] mmcblk0: mmc0:e624 SU16G 14.8 GiB
[ 2.466231] mmcblk0: p1 p2
[ 2.522899] Indeed it is in host mode hprt0 = 00021501
[ 2.742825] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.743030] Indeed it is in host mode hprt0 = 00001101
[ 3.003089] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[ 3.003124] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.004105] hub 1-1:1.0: USB hub found
[ 3.004307] hub 1-1:1.0: 3 ports detected
[ 3.282868] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 3.383128] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 3.383162] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.386144] smsc95xx v1.0.4
[ 3.453139] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:48:38:0c
[ 3.532865] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[ 3.649274] usb 1-1.3: New USB device found, idVendor=045e, idProduct=0779
[ 3.649306] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.649322] usb 1-1.3: Product: Microsoft\xffffffc2\xffffffae\xffffffae LifeCam HD-3000
[ 3.649338] usb 1-1.3: Manufacturer: Microsoft
[ 3.785356] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 3.971078] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 3.971112] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 4.623127] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
[ 4.624923] EXT4-fs (mmcblk0p2): 3 orphan inodes deleted
[ 4.624949] EXT4-fs (mmcblk0p2): recovery complete
[ 4.854092] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 4.882024] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[ 5.485539] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 15.118072] bcm2835-cpufreq: switching to governor ondemand
[ 15.118104] bcm2835-cpufreq: switching to governor ondemand
[ 17.324272] udevd[218]: starting version 175
[ 19.000954] media: Linux media interface: v0.10
[ 19.065209] Linux video capture interface: v2.00
[ 19.156736] uvcvideo: Found UVC 1.00 device Microsoft\xffffffc2\xffffffae\xffffffae LifeCam HD-3000 (045e:0779)
[ 19.173063] input: Microsoft\xffffffc2\xffffffae\xffffffae LifeCam HD-3000 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input0
[ 19.173715] usbcore: registered new interface driver uvcvideo
[ 19.173737] USB Video Class driver (1.1.1)
[ 20.004889] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[ 25.122805] 4:3:1: cannot get freq at ep 0x82
[ 25.130450] usbcore: registered new interface driver snd-usb-audio
[ 43.685841] bcm2835-cpufreq: switching to governor ondemand
[ 43.685874] bcm2835-cpufreq: switching to governor ondemand
Is the dmesg
output posted above the output after an unsuccessful install of epoll
or serialport
?
rpi-gpio
isn't a native module, so there's much less network traffic when it's installed. epoll
and serialport
are native modules which means that there's a lot more network traffic when the first native module is installed. node-v0.12.0.tar.gz
is downloaded and decompressed. What can be seen from the error messages that you have already gotten is that node-v0.12.0.tar.gz
can't be downloaded successfully.
Once there was this error:
gyp ERR! stack Error: node-v0.12.0.tar.gz local checksum 8ecb2cd010d583c72f5993a67fc6dc2ae6321532aca7936939b17a73f4a873db not match remote 9700e23af4e9b3643af48cef5f2ad20a1331ff531a12154eef2bfb0bb1682e32
and once there was this error:
gyp ERR! stack Error: node-v0.12.0.tar.gz local checksum f47aacb7817286b5cfc457fd0f0b0eec54b5898fb774cc9d8634acea86db767d not match remote 9700e23af4e9b3643af48cef5f2ad20a1331ff531a12154eef2bfb0bb1682e32
As can be seen from the error messages, there are issues with the checksum for node-v0.12.0.tar.gz
. You need to figure out what the issue is here. It has nothing to do with epoll
or serialport
. I have never used berryboat, so I don't know if it's responsible for or plays a role in the issue.
I'm afraid I'm out of ideas for helping out now so I'm going to close the issue as it's not a problem with epoll
. Feel free to create a new issue if a concrete problem with epoll is found.
@brunosantos I just took a closer look at the dmesg
output. The following messages indicate that there is something wrong with the SD card:
[ 3.971078] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 3.971112] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 4.623127] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
[ 4.624923] EXT4-fs (mmcblk0p2): 3 orphan inodes deleted
[ 4.624949] EXT4-fs (mmcblk0p2): recovery complete
[ 4.854092] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 4.882024] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Thanks for the help @fivdi . yes I agree it's not a problem with epoll itself.
I ran the dmesg again after npm install serialport and noticed this: [98759.503781] Out of memory: Kill process 14218 (npm) score 246 or sacrifice child
could it be lack of memory during the install process?
here is the full dmesg:
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.12.26-rpi-aufs (max@lynx) (gcc version 4.5.3 (Buildroot 2012.05-g41d6ffe-dirty) ) #$
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: BCM2708
[ 0.000000] early_vc_cma_mem(0/0x5c00000@0x9000000)
[ 0.000000] -> initial 0, size 5c00000, base 9000000<6>[ 0.000000] cma: CMA: reserved 92 MiB at 09000000
[ 0.000000] cma: CMA: reserved 8 MiB at 06c00000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 56320
[ 0.000000] free_area_init_node: node 0, pgdat c06665a0, node_mem_map c0717000
[ 0.000000] Normal zone: 472 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 56320 pages, LIFO batch:15
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 55848
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708.boa$
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 105068K/225280K available (4714K kernel code, 251K rwdata, 1404K rodata, 148K init, 703K bs$
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xcf000000 - 0xff000000 ( 768 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xcec00000 ( 236 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0601d7c (6120 kB)
[ 0.000000] .init : 0xc0602000 - 0xc0627134 ( 149 kB)
[ 0.000000] .data : 0xc0628000 - 0xc0666ea0 ( 252 kB)
[ 0.000000] .bss : 0xc0666eac - 0xc0716dc8 ( 704 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:394
[ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.000550] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.000571] pid_max: default: 32768 minimum: 301
[ 0.000980] Mount-cache hash table entries: 512
[ 0.001790] Initializing cgroup subsys memory
[ 0.001865] Initializing cgroup subsys devices
[ 0.001883] Initializing cgroup subsys freezer
[ 0.001896] Initializing cgroup subsys blkio
[ 0.002014] CPU: Testing write buffer coherency: ok
[ 0.002488] Setting up static identity map for 0xc047b508 - 0xc047b564
[ 0.004246] devtmpfs: initialized
[ 0.021528] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.033942] NET: Registered protocol family 16
[ 0.039302] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[ 0.039937] cpuidle: using governor ladder
[ 0.039961] cpuidle: using governor menu
[ 0.040645] bcm2708.uart_clock = 0
[ 0.042571] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.042590] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.042603] mailbox: Broadcom VideoCore Mailbox driver
[ 0.042590] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.042603] mailbox: Broadcom VideoCore Mailbox driver
[ 0.042682] bcm2708_vcio: mailbox at f200b880
[ 0.042770] bcm_power: Broadcom power driver
[ 0.042787] bcm_power_open() -> 0
[ 0.042798] bcm_power_request(0, 8)
[ 0.543508] bcm_mailbox_read -> 00000080, 0
[ 0.543526] bcm_power_request -> 0
[ 0.543701] Serial: AMBA PL011 UART driver
[ 0.543859] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[ 0.568941] bio: create slab <bio-0> at 0
[ 0.570326] SCSI subsystem initialized
[ 0.570540] usbcore: registered new interface driver usbfs
[ 0.570713] usbcore: registered new interface driver hub
[ 0.571016] usbcore: registered new device driver usb
[ 0.572585] Switched to clocksource stc
[ 0.572895] FS-Cache: Loaded
[ 0.573196] CacheFiles: Loaded
[ 0.586360] NET: Registered protocol family 2
[ 0.587447] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.587528] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.587573] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.587653] TCP: reno registered
[ 0.587677] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.587714] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.588100] NET: Registered protocol family 1
[ 0.588692] RPC: Registered named UNIX socket transport module.
[ 0.588719] RPC: Registered udp transport module.
[ 0.588729] RPC: Registered tcp transport module.
[ 0.588739] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.589064] Trying to unpack rootfs image as initramfs...
[ 0.589084] Skipping 64-byte uInitrd header...
[ 1.657904] Freeing initrd memory: 8332K (c77cc000 - c7fef000)
[ 1.663078] bcm2708_dma: DMA manager at f2007000
[ 1.663195] bcm2708_gpio: bcm2708_gpio_probe c0635e70
[ 1.663607] vc-mem: phys_addr:0x00000000 mem_base=0x0ec00000 mem_size:0x10000000(256 MiB)
[ 1.664893] audit: initializing netlink socket (disabled)
[ 1.664967] type=2000 audit(1.660:1): initialized
[ 1.845755] VFS: Disk quotas dquot_6.5.2
[ 1.846085] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.848150] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.848598] FS-Cache: Netfs 'nfs' registered for caching
[ 1.850185] NFS: Registering the id_resolver key type
[ 1.850296] Key type id_resolver registered
[ 1.850312] Key type id_legacy registered
[ 1.851941] aufs 3.12.x-20140602
[ 1.851995] msgmni has been set to 421
[ 1.854084] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 1.854411] io scheduler noop registered
[ 1.854435] io scheduler deadline registered (default)
[ 1.854759] io scheduler cfq registered
[ 1.856003] BCM2708FB: allocated DMA memory 47000000
[ 1.856069] BCM2708FB: allocated DMA channel 0 @ f2007000
[ 1.883115] Console: switching to colour frame buffer device 90x30
[ 1.899930] uart-pl011 dev:f1: no DMA platform data
[ 1.900579] vc-cma: Videocore CMA driver
[ 1.900601] vc-cma: vc_cma_base = 0x09000000
[ 1.900612] vc-cma: vc_cma_size = 0x05c00000 (92 MiB)
[ 1.900622] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 1.910142] brd: module loaded
[ 1.900622] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 1.910142] brd: module loaded
[ 1.915619] loop: module loaded
[ 1.915890] vchiq: vchiq_init_state: slot_zero = 0xc6c00000, is_master = 0
[ 1.916898] vchiq_get_state: g_state.remote->initialised != 1 (0)
[ 1.917423] vchiq_get_state: g_state.remote->initialised != 1 (0)
[ 1.917937] vchiq: vchiq_initialise: videocore initialized after 2 retries
[ 1.917937]
[ 1.926035] Loading iSCSI transport class v2.0-870.
[ 1.927013] usbcore: registered new interface driver smsc95xx
[ 1.927094] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 2.127256] Core Release: 2.80a
[ 2.127285] Setting default values for core params
[ 2.127330] Finished setting default values for core params
[ 2.327580] Using Buffer DMA mode
[ 2.327606] Periodic Transfer Interrupt Enhancement - disabled
[ 2.327617] Multiprocessor Interrupt Enhancement - disabled
[ 2.327629] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 2.327646] Dedicated Tx FIFOs mode
[ 2.327994] WARN::dwc_otg_hcd_init:1042: FIQ DMA bounce buffers: virt = 0xc7014000 dma = 0x47014000 len=9024
[ 2.328031] FIQ FSM acceleration enabled for :
[ 2.328031] Non-periodic Split Transactions
[ 2.328031] Periodic Split Transactions
[ 2.328031] High-Speed Isochronous Endpoints
[ 2.328057] dwc_otg: Microframe scheduler enabled
[ 2.328117] WARN::hcd_init:473: FIQ at 0xc0345858
[ 2.328134] WARN::hcd_init:474: FIQ ASM at 0xc0345af0 length 36
[ 2.328164] WARN::hcd_init:500: MPHI regs_base at 0xcf006000
[ 2.328194] dwc_otg bcm2708_usb: DWC OTG Controller
[ 2.328243] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[ 2.328302] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[ 2.328340] Init: Port Power? op_state=1
[ 2.328350] Init: Power Port (0)
[ 2.328682] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.328707] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.328723] usb usb1: Product: DWC OTG Controller
[ 2.328738] usb usb1: Manufacturer: Linux 3.12.26-rpi-aufs dwc_otg_hcd
[ 2.328751] usb usb1: SerialNumber: bcm2708_usb
[ 2.329568] hub 1-0:1.0: USB hub found
[ 2.329654] hub 1-0:1.0: 1 port detected
[ 2.330149] dwc_otg: FIQ enabled
[ 2.330167] dwc_otg: NAK holdoff enabled
[ 2.330178] dwc_otg: FIQ split-transaction FSM enabled
[ 2.330197] Module dwc_common_port init
[ 2.330671] usbcore: registered new interface driver usb-storage
[ 2.330997] mousedev: PS/2 mouse device common for all mice
[ 2.331650] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[ 2.331757] bcm2835-cpufreq: switching to governor powersave
[ 2.331773] bcm2835-cpufreq: switching to governor powersave
[ 2.331855] sdhci: Secure Digital Host Controller Interface driver
[ 2.331868] sdhci: Copyright(c) Pierre Ossman
[ 2.331958] sdhci: Enable low-latency mode
[ 2.372639] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[ 2.372791] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[ 2.372884] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.375297] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.379626] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.385065] usbcore: registered new interface driver usbhid
[ 2.385090] usbhid: USB HID core driver
[ 2.390231] ashmem: initialized
[ 2.385090] usbhid: USB HID core driver
[ 2.390231] ashmem: initialized
[ 2.395058] TCP: cubic registered
[ 2.395085] Initializing XFRM netlink socket
[ 2.395223] NET: Registered protocol family 17
[ 2.395410] Key type dns_resolver registered
[ 2.403176] registered taskstats version 1
[ 2.404617] Freeing unused kernel memory: 148K (c0602000 - c0627000)
[ 2.462818] mmc0: new high speed SDHC card at address e624
[ 2.463499] mmcblk0: mmc0:e624 SU16G 14.8 GiB
[ 2.466231] mmcblk0: p1 p2
[ 2.522899] Indeed it is in host mode hprt0 = 00021501
[ 2.742825] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.743030] Indeed it is in host mode hprt0 = 00001101
[ 3.003089] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[ 3.003124] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.004105] hub 1-1:1.0: USB hub found
[ 3.004307] hub 1-1:1.0: 3 ports detected
[ 3.282868] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 3.383128] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 3.383162] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.386144] smsc95xx v1.0.4
[ 3.453139] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:$
[ 3.532865] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[ 3.649274] usb 1-1.3: New USB device found, idVendor=045e, idProduct=0779
[ 3.649306] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.649322] usb 1-1.3: Product: Microsoft\xffffffc2\xffffffae\xffffffae LifeCam HD-3000
[ 3.649338] usb 1-1.3: Manufacturer: Microsoft
[ 3.785356] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 3.971078] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 3.971112] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 4.623127] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
[ 4.624923] EXT4-fs (mmcblk0p2): 3 orphan inodes deleted
[ 4.624949] EXT4-fs (mmcblk0p2): recovery complete
[ 4.854092] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 4.882024] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[ 5.485539] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 15.118072] bcm2835-cpufreq: switching to governor ondemand
[ 15.118104] bcm2835-cpufreq: switching to governor ondemand
[ 17.324272] udevd[218]: starting version 175
[ 19.000954] media: Linux media interface: v0.10
[ 19.065209] Linux video capture interface: v2.00
[ 19.156736] uvcvideo: Found UVC 1.00 device Microsoft\xffffffc2\xffffffae\xffffffae LifeCam HD-3000 (045e:0779)
[ 19.173063] input: Microsoft\xffffffc2\xffffffae\xffffffae LifeCam HD-3000 as /devices/platform/bcm2708_usb/usb$
[ 19.173715] usbcore: registered new interface driver uvcvideo
[ 19.173737] USB Video Class driver (1.1.1)
[ 20.004889] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[ 25.122805] 4:3:1: cannot get freq at ep 0x82
[ 25.130450] usbcore: registered new interface driver snd-usb-audio
[ 43.685841] bcm2835-cpufreq: switching to governor ondemand
[ 43.685874] bcm2835-cpufreq: switching to governor ondemand
[98759.483085] restartd invoked oom-killer: gfp_mask=0x800d0, order=0, oom_score_adj=0
[98759.483125] CPU: 0 PID: 2322 Comm: restartd Not tainted 3.12.26-rpi-aufs #1
[98759.483200] [<c00147d8>] (unwind_backtrace+0x0/0xf0) from [<c0011b9c>] (show_stack+0x10/0x14)
[98759.483240] [<c0011b9c>] (show_stack+0x10/0x14) from [<c00a04d0>] (dump_header.clone.12+0x74/0x1b8)
[98759.483274] [<c00a04d0>] (dump_header.clone.12+0x74/0x1b8) from [<c00a0ae4>] (oom_kill_process+0x2fc/0x480)
[98759.483302] [<c00a0ae4>] (oom_kill_process+0x2fc/0x480) from [<c00a10f4>] (out_of_memory+0x278/0x33c)
[98759.483335] [<c00a10f4>] (out_of_memory+0x278/0x33c) from [<c00a59d0>] (__alloc_pages_nodemask+0x850/0x8b4)
[98759.483364] [<c00a59d0>] (__alloc_pages_nodemask+0x850/0x8b4) from [<c00a5aa8>] (__get_free_pages+0x10/0x3c)
[98759.483395] [<c00a5aa8>] (__get_free_pages+0x10/0x3c) from [<c013b9e4>] (proc_info_read+0x40/0xd0)
[98759.483364] [<c00a59d0>] (__alloc_pages_nodemask+0x850/0x8b4) from [<c00a5aa8>] (__get_free_pages+0x10/0x3c)
[98759.483395] [<c00a5aa8>] (__get_free_pages+0x10/0x3c) from [<c013b9e4>] (proc_info_read+0x40/0xd0)
[98759.483432] [<c013b9e4>] (proc_info_read+0x40/0xd0) from [<c00e4034>] (vfs_read+0xb0/0x180)
[98759.483460] [<c00e4034>] (vfs_read+0xb0/0x180) from [<c00e4280>] (SyS_read+0x44/0x70)
[98759.483489] [<c00e4280>] (SyS_read+0x44/0x70) from [<c000e3a0>] (ret_fast_syscall+0x0/0x30)
[98759.483500] Mem-info:
[98759.483510] Normal per-cpu:
[98759.483523] CPU 0: hi: 42, btch: 7 usd: 0
[98759.483550] active_anon:31415 inactive_anon:52 isolated_anon:0
[98759.483550] active_file:23 inactive_file:46 isolated_file:0
[98759.483550] unevictable:0 dirty:0 writeback:0 unstable:0
[98759.483550] free:15542 slab_reclaimable:502 slab_unreclaimable:1282
[98759.483550] mapped:1 shmem:67 pagetables:466 bounce:0
[98759.483550] free_cma:13500
[98759.483614] Normal free:62168kB min:8192kB low:10240kB high:12288kB active_anon:125660kB inactive_anon:208kB ac$
[98759.483629] lowmem_reserve[]: 0 0
[98759.483648] Normal: 8988*4kB (UEMC) 2431*8kB (UEC) 1*16kB (R) 1*32kB (R) 1*64kB (R) 0*128kB 0*256kB 1*512kB (R)$
[98759.483712] 136 total pagecache pages
[98759.483727] 0 pages in swap cache
[98759.483737] Swap cache stats: add 0, delete 0, find 0/0
[98759.483746] Free swap = 0kB
[98759.483753] Total swap = 0kB
[98759.501107] 56320 pages of RAM
[98759.501133] 15844 free pages
[98759.501180] 2333 reserved pages
[98759.501190] 1251 slab pages
[98759.501199] 263258 pages shared
[98759.501207] 0 pages swap cached
[98759.501217] [ pid ] uid tgid total_vm rss nr_ptes swapents oom_score_adj name
[98759.501263] [ 218] 0 218 718 128 5 0 -1000 udevd
[98759.501284] [ 361] 0 361 717 130 5 0 -1000 udevd
[98759.501302] [ 365] 0 365 717 128 5 0 -1000 udevd
[98759.501321] [ 1680] 0 1680 439 21 5 0 -1000 ifplugd
[98759.501435] [ 1697] 0 1697 439 21 5 0 -1000 ifplugd
[98759.502799] [ 2093] 0 2093 7033 148 6 0 0 rsyslogd
[98759.502834] [ 2114] 110 2114 8294 149 9 0 0 transmission-da
[98759.502854] [ 2153] 1001 2153 15983 4765 41 0 0 node
[98759.502872] [ 2188] 0 2188 951 42 4 0 0 cron
[98759.502892] [ 2193] 104 2193 796 66 5 0 0 dbus-daemon
[98759.502910] [ 2233] 109 2233 873 76 5 0 0 avahi-daemon
[98759.502929] [ 2234] 109 2234 847 56 5 0 0 avahi-daemon
[98759.502947] [ 2260] 65534 2260 558 41 4 0 0 noip2
[98759.502965] [ 2273] 102 2273 1391 97 7 0 0 ntpd
[98759.502983] [ 2322] 0 2322 454 23 5 0 0 restartd
[98759.503000] [ 2329] 108 2329 6840 174 8 0 0 redis-server
[98759.503022] [ 2347] 0 2347 1556 107 6 0 -1000 sshd
[98759.503040] [ 2372] 65534 2372 506 28 5 0 0 thd
[98759.503058] [ 2380] 0 2380 423 20 4 0 0 minissdpd
[98759.503077] [ 2391] 0 2391 985 102 6 0 0 login
[98759.503095] [ 2392] 0 2392 938 32 5 0 0 getty
[98759.503114] [ 2393] 0 2393 938 32 5 0 0 getty
[98759.503132] [ 2394] 0 2394 938 32 6 0 0 getty
[98759.503153] [ 2395] 0 2395 938 32 5 0 0 getty
[98759.503172] [ 2396] 0 2396 938 32 6 0 0 getty
[98759.503190] [ 2397] 0 2397 518 31 5 0 0 getty
[98759.503209] [ 2399] 0 2399 6935 277 11 0 0 console-kit-dae
[98759.503227] [ 2466] 0 2466 7743 132 9 0 0 polkitd
[98759.503245] [ 2477] 1000 2477 1553 457 5 0 0 bash
[98759.503265] [14201] 1000 14201 1138 101 6 0 0 screen
[98759.503284] [14202] 1000 14202 1412 316 5 0 0 bash
[98759.503265] [14201] 1000 14201 1138 101 6 0 0 screen
[98759.503284] [14202] 1000 14202 1412 316 5 0 0 bash
[98759.503302] [14218] 1000 14218 27156 13228 66 0 0 npm
[98759.503320] [14252] 1000 14252 443 20 4 0 0 sh
[98759.503338] [14253] 1000 14253 19758 5099 41 0 0 node-pre-gyp
[98759.503357] [14328] 1000 14328 20454 4375 41 0 0 node-gyp
[98759.503376] [14403] 0 14403 1504 94 5 0 0 sshd
[98759.503396] [14404] 0 14404 1504 92 6 0 0 sshd
[98759.503414] [14405] 0 14405 1483 56 5 0 0 sshd
[98759.503433] [14406] 0 14406 1483 56 5 0 0 sshd
[98759.503451] [14407] 0 14407 1059 47 5 0 0 cron
[98759.503469] [14408] 0 14408 1483 52 5 0 0 sshd
[98759.503519] [14409] 0 14409 1483 52 5 0 0 sshd
[98759.503542] [14410] 0 14410 1483 52 5 0 0 sshd
[98759.503561] [14411] 0 14411 1483 52 5 0 0 sshd
[98759.503579] [14412] 0 14412 1483 52 5 0 0 sshd
[98759.503598] [14413] 0 14413 1483 52 5 0 0 sshd
[98759.503616] [14414] 0 14414 1483 52 5 0 0 sshd
[98759.503634] [14415] 0 14415 1483 51 5 0 0 sshd
[98759.503654] [14416] 0 14416 1483 51 6 0 0 sshd
[98759.503686] [14417] 0 14417 1483 51 5 0 0 sshd
[98759.503707] [14418] 0 14418 1483 51 5 0 0 sshd
[98759.503725] [14419] 0 14419 1483 51 5 0 0 sshd
[98759.503743] [14420] 0 14420 1483 51 5 0 0 sshd
[98759.503761] [14421] 0 14421 1482 50 4 0 0 sshd
[98759.503781] Out of memory: Kill process 14218 (npm) score 246 or sacrifice child
[98759.503804] Killed process 14252 (sh) total-vm:1772kB, anon-rss:80kB, file-rss:0kB
[98759.526251] restartd invoked oom-killer: gfp_mask=0x800d0, order=0, oom_score_adj=0
[98759.526292] CPU: 0 PID: 2322 Comm: restartd Not tainted 3.12.26-rpi-aufs #1
[98759.526364] [<c00147d8>] (unwind_backtrace+0x0/0xf0) from [<c0011b9c>] (show_stack+0x10/0x14)
[98759.526410] [<c0011b9c>] (show_stack+0x10/0x14) from [<c00a04d0>] (dump_header.clone.12+0x74/0x1b8)
[98759.526440] [<c00a04d0>] (dump_header.clone.12+0x74/0x1b8) from [<c00a0ae4>] (oom_kill_process+0x2fc/0x480)
[98759.526467] [<c00a0ae4>] (oom_kill_process+0x2fc/0x480) from [<c00a10f4>] (out_of_memory+0x278/0x33c)
[98759.526499] [<c00a10f4>] (out_of_memory+0x278/0x33c) from [<c00a59d0>] (__alloc_pages_nodemask+0x850/0x8b4)
[98759.526530] [<c00a59d0>] (__alloc_pages_nodemask+0x850/0x8b4) from [<c00a5aa8>] (__get_free_pages+0x10/0x3c)
[98759.526559] [<c00a5aa8>] (__get_free_pages+0x10/0x3c) from [<c013b9e4>] (proc_info_read+0x40/0xd0)
[98759.526596] [<c013b9e4>] (proc_info_read+0x40/0xd0) from [<c00e4034>] (vfs_read+0xb0/0x180)
[98759.526624] [<c00e4034>] (vfs_read+0xb0/0x180) from [<c00e4280>] (SyS_read+0x44/0x70)
[98759.526655] [<c00e4280>] (SyS_read+0x44/0x70) from [<c000e3a0>] (ret_fast_syscall+0x0/0x30)
[98759.526667] Mem-info:
[98759.526677] Normal per-cpu:
[98759.526688] CPU 0: hi: 42, btch: 7 usd: 0
[98759.526714] active_anon:31395 inactive_anon:52 isolated_anon:0
[98759.526714] active_file:57 inactive_file:126 isolated_file:0
[98759.526714] unevictable:0 dirty:0 writeback:0 unstable:0
[98759.526714] free:15456 slab_reclaimable:502 slab_unreclaimable:1282
[98759.526714] mapped:6 shmem:67 pagetables:462 bounce:0
[98759.526714] free_cma:13411
[98759.526781] Normal free:61824kB min:8192kB low:10240kB high:12288kB active_anon:125580kB inactive_anon:208kB ac$
[98759.526795] lowmem_reserve[]: 0 0
[98759.526812] Normal: 9078*4kB (UEC) 2343*8kB (UEC) 1*16kB (R) 1*32kB (R) 1*64kB (R) 0*128kB 0*256kB 1*512kB (R) $
[98759.526876] 250 total pagecache pages
[98759.526891] 0 pages in swap cache
[98759.526903] Swap cache stats: add 0, delete 0, find 0/0
[98759.526912] Free swap = 0kB
[98759.526919] Total swap = 0kB
[98759.557755] 56320 pages of RAM
[98759.557781] 15751 free pages
[98759.557804] 2333 reserved pages
[98759.557812] 1251 slab pages
[98759.557804] 2333 reserved pages
[98759.557812] 1251 slab pages
[98759.557820] 263284 pages shared
[98759.557829] 0 pages swap cached
[98759.557839] [ pid ] uid tgid total_vm rss nr_ptes swapents oom_score_adj name
[98759.557883] [ 218] 0 218 718 128 5 0 -1000 udevd
[98759.557905] [ 361] 0 361 717 130 5 0 -1000 udevd
[98759.557923] [ 365] 0 365 717 128 5 0 -1000 udevd
[98759.557942] [ 1680] 0 1680 439 21 5 0 -1000 ifplugd
[98759.557960] [ 1697] 0 1697 439 21 5 0 -1000 ifplugd
[98759.557978] [ 2093] 0 2093 7033 149 6 0 0 rsyslogd
[98759.557996] [ 2114] 110 2114 8294 149 9 0 0 transmission-da
[98759.558029] [ 2153] 1001 2153 15983 4765 41 0 0 node
[98759.558048] [ 2188] 0 2188 951 42 4 0 0 cron
[98759.558067] [ 2193] 104 2193 796 66 5 0 0 dbus-daemon
[98759.558085] [ 2233] 109 2233 873 76 5 0 0 avahi-daemon
[98759.558106] [ 2234] 109 2234 847 56 5 0 0 avahi-daemon
[98759.558127] [ 2260] 65534 2260 558 41 4 0 0 noip2
[98759.558148] [ 2273] 102 2273 1391 97 7 0 0 ntpd
[98759.558167] [ 2322] 0 2322 454 23 5 0 0 restartd
[98759.558186] [ 2329] 108 2329 6840 173 8 0 0 redis-server
[98759.558215] [ 2347] 0 2347 1556 107 6 0 -1000 sshd
[98759.558234] [ 2372] 65534 2372 506 28 5 0 0 thd
[98759.558252] [ 2380] 0 2380 423 20 4 0 0 minissdpd
[98759.558270] [ 2391] 0 2391 985 102 6 0 0 login
[98759.558290] [ 2392] 0 2392 938 32 5 0 0 getty
[98759.558309] [ 2393] 0 2393 938 32 5 0 0 getty
[98759.558327] [ 2394] 0 2394 938 32 6 0 0 getty
[98759.558345] [ 2395] 0 2395 938 32 5 0 0 getty
[98759.558363] [ 2396] 0 2396 938 32 6 0 0 getty
[98759.558381] [ 2397] 0 2397 518 31 5 0 0 getty
[98759.558402] [ 2399] 0 2399 6935 277 11 0 0 console-kit-dae
[98759.558430] [ 2466] 0 2466 7743 132 9 0 0 polkitd
[98759.558449] [ 2477] 1000 2477 1553 457 5 0 0 bash
[98759.558467] [14201] 1000 14201 1138 101 6 0 0 screen
[98759.558485] [14202] 1000 14202 1412 316 5 0 0 bash
[98759.558504] [14218] 1000 14218 27156 13230 66 0 0 npm
[98759.558526] [14253] 1000 14253 19758 5099 41 0 0 node-pre-gyp
[98759.558545] [14328] 1000 14328 20454 4375 41 0 0 node-gyp
[98759.558565] [14403] 0 14403 1504 94 5 0 0 sshd
[98759.558583] [14404] 0 14404 1504 92 6 0 0 sshd
[98759.558600] [14405] 0 14405 1483 57 5 0 0 sshd
[98759.558636] [14406] 0 14406 1483 57 5 0 0 sshd
[98759.558658] [14407] 0 14407 1059 47 5 0 0 cron
[98759.558677] [14408] 0 14408 1483 53 5 0 0 sshd
[98759.558695] [14409] 0 14409 1483 53 5 0 0 sshd
[98759.558713] [14410] 0 14410 1483 53 5 0 0 sshd
[98759.558730] [14411] 0 14411 1483 53 5 0 0 sshd
[98759.558748] [14412] 0 14412 1483 53 5 0 0 sshd
[98759.558766] [14413] 0 14413 1483 53 5 0 0 sshd
[98759.558786] [14414] 0 14414 1483 53 5 0 0 sshd
[98759.558805] [14415] 0 14415 1483 52 5 0 0 sshd
[98759.558834] [14416] 0 14416 1483 51 6 0 0 sshd
[98759.558853] [14417] 0 14417 1483 52 5 0 0 sshd
[98759.558872] [14418] 0 14418 1483 52 5 0 0 sshd
[98759.558890] [14419] 0 14419 1483 52 5 0 0 sshd
[98759.558910] [14420] 0 14420 1483 52 5 0 0 sshd
[98759.558929] [14421] 0 14421 1482 50 4 0 0 sshd
[98759.558942] Out of memory: Kill process 14218 (npm) score 246 or sacrifice child
[98759.558962] Killed process 14218 (npm) total-vm:108624kB, anon-rss:52912kB, file-rss:8kB
I guess it could be a lack of memory and that appears to be the case here. Why it happens is the question. Normally, I wouldn't expect npm install serialport
to result in an Out of memory
error, even if there isn't enough RAM. I'd expect Raspbian to use the swap file to avoid the Out of memory
error. Does your Pi have a swap file? Check with the command swapon -s
.
At boot, the dmesg output does say Memory: 105068K/225280K available
. 105068K of 225280K available seems low to me. What's all the memory being used for? I see Memory: 226148K/245760K
on boot on my Pi 1 256MB.
I'm trying to install [epoll] on my pi(RPi 1 model B 700Mz 256MB). My node version is:v0.12.0
I'm running this command:
and getting back this error:
Any idea why? Note: All this works fine in my RPi2 model B.