-
Notifications
You must be signed in to change notification settings - Fork 0
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
linux 64 binary does not work #1
Comments
@ArminJo can you try the 32 bit version, as well? The linux build is pretty vanilla, with the exception of enabling the static build. I’m not running an x64 linux on any local hardware at the moment, but I’ll try to find somewhere I can test to repro your issue. |
I am sorry, but I have no 32 Bit Linux available. |
The CLI doesn't appear to have a way to specify the port, so I believe it scans for devices in a manner similar to USBTinyISP. I'll take a look through the source to see what it expects. |
Ok yeah, there's a method in the library behind the CLI that attempts to iterate through the attached USB devices, checking to see if they match the micronucleus USB vendor ID. This can timeout, of course. I assume the plugging in the device after starting the upload, or unplugging it and plugging it again doesn't kickoff the micronucleus detection for you? I'll see about hacking something together to enumerate the devices seen on the USB bus via the tool. That should tell us whether it's detecting things or not. It's also possible that on linux, you'll either need to run with |
Thanks, but since the original Digispark version has no problems with detecting my device, sudo or udev should not be the reason. |
Hi stonehippo, |
@ArminJo awesome. I will get to it ASAP (no later than this weekend) and ping you when the new version is available. |
@ArminJo @SpenceKonde I’ve updated the Linux 32 bit and 64 bit builds for x86 archs using the code from the main repo (since it looks like my changes to the make file got pulled into there last week). Can you give pull them down and see if they work? If these are good, I’ll rebuild the others, and finally get the Windows build done, as well. |
@stonehippo Can you look at https://github.com/ArminJo/micronucleus-firmware/runs/1798561487?check_suite_focus=true#step:7:28 ? |
@ArminJo I can't get that run. Would you mind sending the output? I'll also try getting a new static MacOS build up shortly. |
Thanks for the fast response, but what output do you mean? The executable is here |
@ArminJo I meant that link to the run doesn't work for me. Thanks for linking to the binary. |
Strange, do you get an 404?
and this is the directory listing after the build. The binary is only 54k and not >100k as your static one.
|
And every time it is build, a few bytes changed at 3 or 4 locations, This leads to overwriting the old executable even if nothing in the code has changed. Do you know a compile or link switch to suppress this? |
@ArminJo I'm not sure about the byte changes, but I'm pretty sure I know what you're not getting a static build. The changes in my fork of the repo are a bit off from the diff in my readme, and that's what got pulled into the core micronucleus repo. I'm going to do a PR to correct that. And I can see that it's not quite right in your version of the Makefile either. Try replacing the MacOS section of the CLI Makefile with this:
It's the explicit reference to |
My current commandline is: |
@ArminJo When running via Make, this is what I get.
The diff seems to be the path to I just pushed a fix to the Makefile to my fork at https://github.com/stonehippo/micronucleus, and have submitted that as a PR to the upstream repo. I'll put the latest static build in https://github.com/stonehippo/micronucleus-commandline-builds, too. |
I do not understand it! which is different from:
Don't you use the github action, do you build it manually? |
@ArminJo Nope, I'm not using the GitHub Actions. Those were inherited from the upstream repo, and I haven't had a chance to confirm that they work correctly. A quick look at I can say with certainty the build works correctly when run locally. |
@ArminJo OK, I've fixed the action so that it gets the correct libs for a static build now, too. The |
Thanks for support |
@ArminJo Glad to help out. Thanks for getting new builds set. |
Hi
I replaced the original micronucleus binary with your version, but all I got was:
When switching back to the old binary I get at least:
after attaching the digispark board.
The command is:
Launching/home/linux/sloeber//arduinoPlugin/packages/digistump/tools/micronucleus/2.0a4/launcher -cdigispark --timeout 60 -Uflash:w:/home/linux/WORKSPACE_SLOEBER/BlinkTest/Release/BlinkTest.hex:i
I am running on a 64 bit Linux Mint 20 Cinnamon
The text was updated successfully, but these errors were encountered: