Skip to content
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

Error during cp ./micronucleus /usr/local/bin/ #2

Open
hasenradball opened this issue Feb 9, 2022 · 7 comments
Open

Error during cp ./micronucleus /usr/local/bin/ #2

hasenradball opened this issue Feb 9, 2022 · 7 comments

Comments

@hasenradball
Copy link

hasenradball commented Feb 9, 2022

When using your installation script:

git clone https://github.com/micronucleus/micronucleus.git
cd micronucleus/commandline
sudo apt install libusb-dev
make
sudo make install

I got the following error:
cp: Das Überschreiben des Verzeichnisses '/usr/local/bin/micronucleus' mit einem Nicht‐Verzeichnis ist nicht möglich.
cp: can not overwrite a folder by an file
due to the same naming of the file and the folder.

Its comming from this part:
cp ./micronucleus /usr/local/bin/

I am wondering if this works in your system?

OK: as info I copied the git content also in /usr/local/bin :-)

@koenvervloesem
Copy link
Owner

koenvervloesem commented Feb 9, 2022

Do you have a directory micronucleus in your /usr/local/bin? What's in it?

Anyway, the make install is just a suggestion. You can install the binary manually too in any location you want.

@hasenradball
Copy link
Author

Yes I have installed the Git content into /usr/local/bin.
I have renamed the cloed Directory now it works :-)

I have an other issue.
My Digispark is not recognized as USB device on my raspberrypi with the actual 64-bit OS.
I did add the recommend udev file.

Do yu have an idea?
I can buld the code with PIO fine, but not flash due to no detected Digispark.

@koenvervloesem
Copy link
Owner

I don't remember that I needed to add a udev rule, which one did you add? I only needed the following procedure: https://koen.vervloesem.eu/blog/how-to-build-avr-code-for-the-digispark-with-platformio/

Maybe add the full path to the micronucleus binary in the upload_command of platformio.ini to make sure you're using the right binary.

@hasenradball
Copy link
Author

Or do you think the issue could be located in, that I flashed the last time the Digispark by AtmelStudio directly via ISP?

@koenvervloesem
Copy link
Owner

That could be it, I'm not sure, I never used Atmel Studio.

Have you tried upgrading the micronucleus bootloader on the Digispark? See https://koen.vervloesem.eu/blog/how-to-upgrade-the-micronucleus-bootloader-on-the-digispark/ for the procedure.

@hasenradball
Copy link
Author

Yes I did the update.
But after that I did an flash by ISP via AtmelStudio.
I think thats the root cause.

@koenvervloesem
Copy link
Owner

koenvervloesem commented Feb 10, 2022

Then I would reinstall the micronucleus bootloader first, before trying to install this Blink code to the board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants