Bug#985653: arduino: Arduino Leonardo bootloader missing (and possibly others)

2021-03-21 Thread Ryan Armstrong

On 2021-03-21 9:58 a.m., Carsten Schoenert wrote:

Control: reassign -1 arduino-core-avr

Hello Rayn,

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.

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

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.


Ah, my mistake on missing the README and wiki (and picking the wrong 
package for the report). I can't think of a better solution at the 
moment, aside from forcing the user to read the readme on install :)


I may try to get the bootloader to build myself and provide an update if 
I have any success.


Ryan



Bug#985653: arduino: Arduino Leonardo bootloader missing (and possibly others)

2021-03-21 Thread Carsten Schoenert
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



Bug#985653: arduino: Arduino Leonardo bootloader missing (and possibly others)

2021-03-21 Thread Ryan Armstrong
Package: arduino
Version: 2:1.8.13+dfsg1-2
Severity: normal

Dear Maintainer,

The Arduino package (and any related packes I can find) 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.

Ryan

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'testing-security'), (300, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-3-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages arduino depends on:
ii  arduino-builder   1.3.25-2+b1
ii  arduino-core-avr  1.8.3+dfsg1-1
ii  avrdude   6.3-20171130+svn1429-2+b1
ii  default-jre   2:1.11-72
ii  dpkg-dev  1.20.7.1
ii  libastylej-jni3.1-2+b1
ii  libbatik-java 1.12-4
ii  libbcpg-java  1.68-1
ii  libbcprov-java1.68-1
ii  libcommons-codec-java 1.15-1
ii  libcommons-compress-java  1.20-1
ii  libcommons-exec-java  1.3-2
ii  libcommons-io-java2.8.0-1
ii  libcommons-lang3-java 3.11-1
ii  libcommons-logging-java   1.2-2
ii  libcommons-net-java   3.6-1
ii  libhttpclient-java4.5.13-1
ii  libjackson2-annotations-java  2.12.1-1
ii  libjackson2-core-java 2.12.1-1
ii  libjackson2-databind-java 2.12.1-1
ii  libjaxp1.3-java   1.3.05-6
ii  libjmdns-java 3.5.5-1
ii  libjna-java   5.6.0-1
ii  libjna-platform-java  5.6.0-1
ii  libjsch-java  0.1.55-1
ii  libjssc-java  2.8.0-3
ii  liblistserialsj-dev   1.4.0-1+b1
ii  liblog4j2-java2.13.3-1
ii  librsyntaxtextarea-java   2.5.8-1
ii  librxtx-java  2.2pre2+dfsg1-2
ii  libsemver-java0.9.0-4
ii  libslf4j-java 1.7.30-1
ii  libxml-commons-external-java  1.4.01-5
ii  libxmlgraphics-commons-java   2.4-1
ii  openjdk-11-jre11.0.10+9-1

Versions of packages arduino recommends:
ii  extra-xdg-menus  1.0-5
ii  policykit-1  0.105-30

arduino suggests no packages.

-- no debconf information