Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 743814 - dev-embedded/micronucleus: Tool/firmware/bootloader for Atmel µCs (ebuild attached)
Summary: dev-embedded/micronucleus: Tool/firmware/bootloader for Atmel µCs (ebuild att...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL: https://github.com/micronucleus/micro...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-20 19:20 UTC by tbartdev
Modified: 2024-02-18 22:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for current version 2.04 (micronucleus-2.04.ebuild,830 bytes, text/plain)
2020-09-20 19:20 UTC, tbartdev
Details
ebuild for version 2.6 (micronucleus-2.6.ebuild,1.30 KB, application/vnd.gentoo.ebuild)
2024-02-18 22:39 UTC, tbartdev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbartdev 2020-09-20 19:20:02 UTC
Created attachment 661680 [details]
Ebuild for current version 2.04

Micronucleus is a handy tool/firmware/bootloader for Atmel µCs.

My foremost use (and maybe that of others?) is to fix broken firmware on chinese digispark (ATTiny85) clones (that don't keep their program after disconnecting from the PC/Arduino IDE).

Use

micronucleus --run /var/lib/micronucleus/upgrade-t85_default.hex

for that.
Comment 1 Jonas Stein gentoo-dev 2020-09-20 21:03:37 UTC
Thank you for your contribution. I had a short look on the ebuild. 
Here a few ideas:

* Please test the ebuild with repoman full -d -x https://wiki.gentoo.org/wiki/Repoman and pkgcheck
* A bot can look for additional mistakes, if you upload a PR via github
* "die" is missing for lines with cd

see also:
https://github.com/micronucleus/micronucleus/issues/188
Comment 2 tbartdev 2024-02-18 22:38:40 UTC
I know I should have done the mentioned things years ago.
Sorry, my spare time should in fact be called sparse time :)

I tried to at least improve the ebuild regarding the currently needed udev functions, patched the configure step as this was necessary for it to compile, fixed the missing "die" statements when cd'ing and upgraded to v2.6.

I read up on repoman and found it's deprecated now and I should use pkgdev. This led me to the dev handbook which in turn showed I'd need more infrastructure/preparations than I can currently make time for.
Times may come where my free time will again be more ample.

Until then, I'm attaching my current version that works for me.
Maybe it helps someone!
(Though I found it is bundled now with the Arduino IDE if you use ATTinyCore, so it might not be of big use; still, this version is a little newer)
Comment 3 tbartdev 2024-02-18 22:39:20 UTC
Created attachment 885382 [details]
ebuild for version 2.6