-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows support #1
Comments
|
LK"I OK thanks for the quick replay. looking forward to work with it with windows! Harel |
I'm not sure, but you can can try it on a virtual machine. I recommend you to try using VMware. They have a good USB support plus there are many tutorials online regarding usb on vmware. Also get the lts 6.11.2 version of node installed first to run this. Or if you can wait, this week I'll be publishing the native packages to run the app directly on Linux and OS X. |
We've talked about 2 ways to handle the Windows support issue:
|
This issue needs to be fixed ravikp7/node-beagle-boot#14 for Windows Support |
I've changed the default configuration in ether.c but still unable to open RNDIS in windows.
|
Hi @yassinjaffer , can you please share your changes in |
Hi @yassinjaffer , you also need to install the WinUSB drivers for the SPL device also through Zadig. You've probably already installed it for the ROM device. After SPL transfer, the device shows up as SPL device. |
Hi |
[ 7.810958] [00002758] libusb: debug [handle_events] poll() 2 fds with timeout in 60000ms bundle.js:20287 _timeout] no URBs, no timeout! bundle.js:20287 {"umsError":"ERROR in inTransfer"} |
high speed config #1: 2 mA, Ethernet Gadget, using RNDIS ERROR ### Please RESET the board |
On Windows and macOS, I'm not getting the default config as rndis. I set the rndis config on macOS through libusb, then it worked. On Windows, changing config isn't supported through libusb. So, the config needs to be changed in uboot for this. |
I've built commit id 524123a70761110c5cf3ccc5f52f6d4da071b959 |
Ive also tried the latest mainline u-boot |
Hi Ravi function ether_transfer(filePath, device, foundDevice){ function tftp_create() {
} function dhcp_create() { dhcp_socket.bind({host: INADDR_ANY, port:DHCP_SERVER_PORT}, () => { dhcp_socket.on('error', (error) => { dhcp_socket.on('listening', () => { dhcp_socket.on('message', (msg, rinfo) => { |
And this is the udp packet pareser |
for tftp I used the tftp module and I've done some clean up when the usb is detached |
Hi @yassinjaffer |
Hi |
Sounds good. Looking forward to it 👍 |
LK"I
Hi ,
Is there any support for windows?
when i try to :
npm run electron-rebuild
I get these errors:
x Rebuild Failed
An unhandled error occurred inside electron-rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
core.c
descriptor.c
hotplug.c
io.c
strerror.c
sync.c
poll_windows.c
threads_windows.c
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
rojects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
..\libusb\libusb\io.c(1227): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of data [C:\projects_node\test_burner\BeagleBoot\nod
..\libusb\libusb\io.c(1902): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of data [C:\projects_node\test_burner\BeagleBoot\nod
..\libusb\libusb\io.c(2435): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of data [C:\projects_node\test_burner\BeagleBoot\nod
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
[C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
windows_usb.c
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
c) [C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
[C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
windows.c) [C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
..\libusb\libusb\os\threads_windows.c(194): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of data [C:\projects_node\test_burner
]
..\libusb\libusb\os\threads_windows.c(196): warning C4244: '=': conversion from 'const time_t' to 'long', possible loss of data [C:\projects_node\test_
cxproj]
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
dows.c) [C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
usb.c) [C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
..\libusb\libusb\os\windows_usb.c(586): warning C4244: '=': conversion from '__int64' to 'unsigned int', possible loss of data [C:\projects_node\test_b
xproj]
..\libusb\libusb\os\windows_usb.c(1017): warning C4996: 'GetVersionExA': was declared deprecated [C:\projects_node\test_burner\BeagleBoot\node_modules
C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(433): note: see declaration of 'GetVersionExA'
..\libusb\libusb\os\windows_usb.c(1020): warning C4996: 'GetVersionExA': was declared deprecated [C:\projects_node\test_burner\BeagleBoot\node_modules
C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(433): note: see declaration of 'GetVersionExA'
..\libusb\libusb\os\windows_usb.c(1423): warning C4244: '=': conversion from '_int64' to 'unsigned int', possible loss of data [C:\projects_node\test
cxproj]
..\libusb\libusb\os\windows_usb.c(2558): warning C4018: '<': signed/unsigned mismatch [C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\l
gyp ERR! build error
gyp ERR! stack Error:
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1gyp ERR! stack at ChildProcess.onExit (C:\projects_node\test_burner\BeagleBoot\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\projects_node\test_burner\BeagleBoot\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
//atom.io/download/electron" "--build-from-source" "--module_name=usb_bindings" "--module_path=C:\projects_node\test_burner\BeagleBoot\node_modules
essel/node-usb/releases/download/" "--remote_path=1.2.0"
gyp ERR! cwd C:\projects_node\test_burner\BeagleBoot\node_modules\usb
gyp ERR! node -v v6.11.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Failed with exit code: 1
Error: Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
core.c
descriptor.c
hotplug.c
io.c
strerror.c
sync.c
poll_windows.c
threads_windows.c
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
rojects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
..\libusb\libusb\io.c(1227): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of data [C:\projects_node\test_burner\BeagleBoot\nod
..\libusb\libusb\io.c(1902): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of data [C:\projects_node\test_burner\BeagleBoot\nod
..\libusb\libusb\io.c(2435): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of data [C:\projects_node\test_burner\BeagleBoot\nod
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
[C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
windows_usb.c
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
c) [C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
[C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
windows.c) [C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
..\libusb\libusb\os\threads_windows.c(194): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of data [C:\projects_node\test_burner
]
..\libusb\libusb\os\threads_windows.c(196): warning C4244: '=': conversion from 'const time_t' to 'long', possible loss of data [C:\projects_node\test_
cxproj]
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
dows.c) [C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
C:\projects_node\test_burner\BeagleBoot\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (c
usb.c) [C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file ..\libusb\lib
..\libusb\libusb\os\windows_usb.c(586): warning C4244: '=': conversion from '__int64' to 'unsigned int', possible loss of data [C:\projects_node\test_b
xproj]
..\libusb\libusb\os\windows_usb.c(1017): warning C4996: 'GetVersionExA': was declared deprecated [C:\projects_node\test_burner\BeagleBoot\node_modules
C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(433): note: see declaration of 'GetVersionExA'
..\libusb\libusb\os\windows_usb.c(1020): warning C4996: 'GetVersionExA': was declared deprecated [C:\projects_node\test_burner\BeagleBoot\node_modules
C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(433): note: see declaration of 'GetVersionExA'
..\libusb\libusb\os\windows_usb.c(1423): warning C4244: '=': conversion from '_int64' to 'unsigned int', possible loss of data [C:\projects_node\test
cxproj]
..\libusb\libusb\os\windows_usb.c(2558): warning C4018: '<': signed/unsigned mismatch [C:\projects_node\test_burner\BeagleBoot\node_modules\usb\build\l
gyp ERR! build error
gyp ERR! stack Error:
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1gyp ERR! stack at ChildProcess.onExit (C:\projects_node\test_burner\BeagleBoot\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\projects_node\test_burner\BeagleBoot\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
//atom.io/download/electron" "--build-from-source" "--module_name=usb_bindings" "--module_path=C:\projects_node\test_burner\BeagleBoot\node_modules
essel/node-usb/releases/download/" "--remote_path=1.2.0"
gyp ERR! cwd C:\projects_node\test_burner\BeagleBoot\node_modules\usb
gyp ERR! node -v v6.11.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Failed with exit code: 1
at SafeSubscriber._error (C:\projects_node\test_burner\BeagleBoot\node_modules\spawn-rx\lib\src\index.js:267:84)
at SafeSubscriber.__tryOrUnsub (C:\projects_node\test_burner\BeagleBoot\node_modules\rxjs\Subscriber.js:238:16)
at SafeSubscriber.error (C:\projects_node\test_burner\BeagleBoot\node_modules\rxjs\Subscriber.js:197:26)
at Subscriber._error (C:\projects_node\test_burner\BeagleBoot\node_modules\rxjs\Subscriber.js:128:26)
at Subscriber.error (C:\projects_node\test_burner\BeagleBoot\node_modules\rxjs\Subscriber.js:102:18)
at MapSubscriber.Subscriber._error (C:\projects_node\test_burner\BeagleBoot\node_modules\rxjs\Subscriber.js:128:26)
at MapSubscriber.Subscriber.error (C:\projects_node\test_burner\BeagleBoot\node_modules\rxjs\Subscriber.js:102:18)
at SafeSubscriber._next (C:\projects_node\test_burner\BeagleBoot\node_modules\spawn-rx\lib\src\index.js:241:65)
at SafeSubscriber.__tryOrUnsub (C:\projects_node\test_burner\BeagleBoot\node_modules\rxjs\Subscriber.js:238:16)
at SafeSubscriber.next (C:\projects_node\test_burner\BeagleBoot\node_modules\rxjs\Subscriber.js:185:22)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "electron-rebuild"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] electron-rebuild:
electron-rebuild
npm ERR! Exit status 4294967295
npm ERR!
npm ERR! Failed at the [email protected] electron-rebuild script 'electron-rebuild'.
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 beagleboot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron-rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs beagleboot
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls beagleboot
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\projects_node\test_burner\BeagleBoot\npm-debug.log
The text was updated successfully, but these errors were encountered: