question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not work on latest Tessel2 firmware

See original GitHub issue

Trying to use this module on a tessel2, and it completely fails me. Which is strange, because I have a running tessel2 with an older fw which works with usb@1.2.0 perfectly as I write these lines.

Environment:

node -v
v6.10.3
npm -v 
3.10.10
node-pre-gyp INFO t2-cli: 0.1.17
node-pre-gyp INFO t2-firmware: 0.1.0
node-pre-gyp INFO Node.js: 6.10.3

When I try to run a simple example on tessel,

var usb = require('usb');
var list = usb.getDeviceList();

console.log(list);

I got the following error

module.js:471
    throw err;
    ^

Error: Cannot find module '/tmp/remote-script/node_modules/usb/src/binding/usb_bindings.node'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/tmp/remote-script/node_modules/usb/usb.js:1:452)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

Additionally, here’s the version info from the tessel, where the 1.2.0 works like a charm

node-pre-gyp INFO t2-cli: 0.1.17
node-pre-gyp INFO t2-firmware: 0.0.16
node-pre-gyp INFO Node.js: 4.5.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kevinmehallcommented, Feb 27, 2018

I don’t know why it wouldn’t work on T2 if you cross-compiled it, but the error you have is just that the binary module is missing.

I haven’t been following the status of the effort to pre-compile common binary modules for Tessel’s MIPS processor, but node-usb should probably be included in that set to support USB devices like fadecandy plugged into T2’s USB port.

0reactions
kmegoryccommented, Oct 23, 2018

@rwaldron how did you do that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

tessel/t2-firmware - GitHub
dfu-util is a command line utility to update the firmware on T2. See their website for installation instructions ( brew install dfu-util works)....
Read more >
Tessel 2 Technical Overview
Tessel 2 Technical Overview. This guide is intended to help code contributors understand how relevant system components of Tessel 2 work, where to...
Read more >
Getting Started with the Tessel 2 - SparkFun Learn
Installing the t2-cli software tool; Connecting the Tessel 2 with a USB cable; Finding, renaming and provisioning the Tessel; Updating the Tessel's firmware...
Read more >
4. The Tessel 2 - Node.js for Embedded Systems [Book]
Tessel 2 is a completely open source project, so all of its hardware and ... can quickly upload code, configure network settings, or...
Read more >
Using Tessel's Wifi
This command will check for a new version of the Tessel 2 firmware. If there is an update available, it will be downloaded...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found