Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- playdoh:node-beagle-boot jason$ sudo npm start
- > beagle-boot@1.0.4 start /Users/jason/workspace/node-beagle-boot
- > node test.js
- { description: 'Connected to {"busNumber":20,"deviceAddress":25,"deviceDescriptor":{"bLength":18,"bDescriptorType":1,"bcdUSB":512,"bDeviceClass":2,"bDeviceSubClass":0,"bDeviceProtocol":0,"bMaxPacketSize0":64,"idVendor":1105,"idProduct":24897,"bcdDevice":0,"iManufacturer":33,"iProduct":37,"iSerialNumber":0,"bNumConfigurations":1},"portNumbers":[1,1]}',
- complete: 0 }
- { description: 'spl =>', complete: 0 }
- { description: 'Interface claimed', complete: 5 }
- { Error: LIBUSB_TRANSFER_STALL errno: 4 }
- <Buffer 02 00 00 80 34 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 2c 06 00 00 00 00 00 00 00 00 00 00 00 00 ... >
- { Error: LIBUSB_TRANSFER_STALL errno: 4 }
- <Buffer 05 00 00 80 10 00 00 00 17 00 00 00 00 00 00 00>
- { description: 'BOOTP received', complete: 10 }
- { description: 'BOOTP reply done', complete: 15 }
- { description: 'ARP request received', complete: 20 }
- { description: 'ARP response sent', complete: 25 }
- { description: 'TFTP request received', complete: 30 }
- { description: 'spl transfer starts', complete: 35 }
- { description: 'spl transfer complete', complete: 40 }
- { description: 'Connected to {"busNumber":20,"deviceAddress":26,"deviceDescriptor":{"bLength":18,"bDescriptorType":1,"bcdUSB":512,"bDeviceClass":2,"bDeviceSubClass":0,"bDeviceProtocol":0,"bMaxPacketSize0":64,"idVendor":1317,"idProduct":42146,"bcdDevice":789,"iManufacturer":1,"iProduct":2,"iSerialNumber":0,"bNumConfigurations":2},"portNumbers":[1,1]}',
- complete: 0 }
- { description: 'uboot =>', complete: 45 }
- /Users/jason/workspace/node-beagle-boot/main.js:90
- if(interface.isKernelDriverActive()){
- ^
- TypeError: Cannot read property 'isKernelDriverActive' of undefined
- at EventEmitter.<anonymous> (/Users/jason/workspace/node-beagle-boot/main.js:90:21)
- at emitThree (events.js:116:13)
- at EventEmitter.emit (events.js:195:7)
- at Timeout.setTimeout [as _onTimeout] (/Users/jason/workspace/node-beagle-boot/main.js:59:37)
- at ontimeout (timers.js:365:14)
- at tryOnTimeout (timers.js:237:5)
- at Timer.listOnTimeout (timers.js:207:5)
- npm ERR! Darwin 16.6.0
- npm ERR! argv "/usr/local/Cellar/node/7.5.0/bin/node" "/usr/local/bin/npm" "start"
- npm ERR! node v7.5.0
- npm ERR! npm v4.1.2
- npm ERR! code ELIFECYCLE
- npm ERR! beagle-boot@1.0.4 start: `node test.js`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the beagle-boot@1.0.4 start script 'node test.js'.
- npm ERR! Make sure you have the latest version of node.js and npm installed.
- npm ERR! If you do, this is most likely a problem with the beagle-boot package,
- npm ERR! not with npm itself.
- npm ERR! Tell the author that this fails on your system:
- npm ERR! node test.js
- npm ERR! You can get information on how to open an issue for this project with:
- npm ERR! npm bugs beagle-boot
- npm ERR! Or if that isn't available, you can get their info via:
- npm ERR! npm owner ls beagle-boot
- npm ERR! There is likely additional logging output above.
- npm ERR! Please include the following file with any support request:
- npm ERR! /Users/jason/workspace/node-beagle-boot/npm-debug.log
- playdoh:node-beagle-boot jason$ git diff
- diff --git a/main.js b/main.js
- index 6d216f5..071a15d 100644
- --- a/main.js
- +++ b/main.js
- @@ -50,6 +50,7 @@ exports.usbMassStorage = function(){
- // Connect to BeagleBone
- usb.on('attach', function(device){
- + emitterMod.emit('progress', {"description": "Connected to " + JSON.stringify(device), "complete": 0});
- if(device === usb.findByIds(ROMVID, ROMPID))
- emitter.emit('init', 'spl', device, 0x02);
- @@ -74,6 +75,10 @@ emitter.on('init', function(file, device, outEnd){
- emitterMod.emit('progress', {description: description, complete: percent});
- percent += 5;
- + if(platform == 'darwin' && file == 'uboot') {
- + device.open(false);
- + device.setConfiguration(1);
- + }
- device.open();
- var interface = device.interface(1); // Select interface 1 for BULK tran
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement