[Pkg-electronics-devel] Bug#985578: arduino-core-avr: Flashing bootloader fails due to invalid size

Carsten Schoenert c.schoenert at t-online.de
Sat Mar 20 15:14:36 GMT 2021


Hello Gregor,

Am Sat, Mar 20, 2021 at 11:33:48AM +0100 schrieb Gregor Riepl:
... 
> Please ensure that this bootloader does not exceed 512 bytes when building the
> package. It's likely that the increase in size was caused by a recently updated
> avr-gcc. I don't know if there are any compiler options or patches to reduce
> the size to less than 512 bytes again. As a workaround, it may be possible to
> set the start address to 0x7c00 (from 0x7e00) and change the sizes and fuse
> bits in boards.txt to accommodate the larger bootloader.

you hit some more issue we currently have with these files.
A lot of them we can't currently rebuild at all and due this we can't
ship them.

We have written some notes about the known problems to
/usr/share/doc/arduino-core-avr/README.Debian and it seems this should
get extended about this new issue.

So far I know upstream is aware about the underlying problem that all
build targets needs to get adjusted to current avr-gcc versions, if I
remember right there is some issue about this in on GitHub within the
Git tree.
The Debian version of avr-gcc is lacking maintenance regarding newer
versions. Due this I wont spend time on potential bug fixing, it's more
efficient to pick the original .hex file from the Git tree of
arduino-core-avr. Without the help from Arduino devs or some more
experienced users I see no fixing of the reported problem in the near
future. Sorry about this probably not satisfying answer.

Regards
Carsten



More information about the Pkg-electronics-devel mailing list