[Pkg-electronics-devel] Bug#985653: arduino: Arduino Leonardo bootloader missing (and possibly others)

Carsten Schoenert c.schoenert at t-online.de
Sun Mar 21 13:58:25 GMT 2021


Control: reassign -1 arduino-core-avr

Hello Rayn,

Am 21.03.21 um 12:49 schrieb Ryan Armstrong:
> The Arduino package (and any related packes I can find)

the bootloader files doesn't belong to the Arduino IDE directly but to
the specific board support packages. In your case to arduino-core-avr.

> appear to be
> missing the bootloader for the Arduino Leonardo (technically tested
> using an Arduboy, which has the same hardware). When performing a
> "verify" operation on the board type, the build process reports the
> following message:
> 
> Bootloader file specified but missing: /usr/share/arduino/hardware/arduino/avr/bootloaders/caterina/Caterina-Leonardo.hex
> 
> I did not attempt an upload beyond this, as recovering a Leonardo/Arduboy 
> with a missing bootloader is quite tricky. I saw several .txt files in
> this folder, but no hex files at all. I also did not see any hex files
> in the atmega8, lilypad, caterina-Arduino_Robot or caterina-LilyPadUSB
> so I suspect a fair number of board types will have similar problems.

This impression is correct but also documented.
Please have a look into
/usr/share/doc/arduino-core-avr/README.Debian

---[snip]---
> 1. Bootloaders - differences between Debian and upstream on provided .hex
>    files
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> This Debian package can't provide all the various *.hex files that are
> present within the upstream archive.
> Due the DFSG [1] we are required to build all binary stuff from source, and
> also have to remove any prebuilt binary stuff from the source tarball.
> Due this circumstances there are some differences between the included *.hex
> files in /usr/share/arduino/hardware/bootloaders and data provided by
> upstream. In detail there are the following differences.
> 
> ....
> 
> Folder bootloaders/caterina,
>        bootloaders/caterina-Arduino_Robot,
>        bootloaders/caterina-LilyPadUSB
>  All the various *.hex files can't be rebuilded right now. Rebuilding
>  requires LUFA [2] as resource which isn't available as package right now
>  nor is it included as additional tarball to the source package.
---[snip]---

It's also partially documented within the Debian Wiki.

https://wiki.debian.org/Arduino#FAQ

If you can contribute more useful hints to the Wikis site please add
your additional information.

There is quite nothing we can do about this right now. We would like to
get rid of arduino-core-avr but the libary handling of the IDE isn't
supporting the dedicated installation of the AVRCore stuff in the
reklease of the 1.x version. Might be happen within 2.x.

-- 
Regards
Carsten



More information about the Pkg-electronics-devel mailing list