Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 743814

Summary: dev-embedded/micronucleus: Tool/firmware/bootloader for Atmel µCs (ebuild attached)
Product: Gentoo Linux Reporter: tbartdev
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: CONFIRMED ---    
Severity: normal CC: gentoo, jstein, tbartdev
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/micronucleus/micronucleus
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild for current version 2.04
ebuild for version 2.6

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