[Pkg-electronics-devel] [Arduino] Uncompilable firmware

Geert Stappers stappers at stappers.nl
Tue Apr 10 14:54:17 BST 2018


Summary: attempt to catch up

On Mon, Apr 09, 2018 at 03:59:22PM -0300, Ignacio Losiggio wrote:
> Hi! I'm currently working to package the latest version of
> Arduino[1][2][3]
> (wanting to comply with debian standards when it's ready).
> 
> After some time working with the IDE[1] i've put that on pause and
> started
> work on the avr core[4][5].
> 
> I've managed to compile (almost) all the bootloaders, but the firmwares
> require an specific and old version of LUFA (that even downloading and
> hardcoding paths fails to build).

The "require a specific and old version of LUFA" is the real challenge.


> Does anyone have any knowledge on LUFA?

Text from http://www.fourwalledcubicle.com/LUFA.php
   LUFA, Lightweight USB Framework for AVRs, formerly known as MyUSB. It
   is an open-source complete USB stack for the USB-enabled Atmel AVR8
   and (some of the) AVR32 microcontroller series, released under the
   permissive MIT License.

> Is adding LUFA as a origin of my package a good solution?

I think the question is: "What is a proper solution for 
   providing firmware BLOBs?"

And think that the answer is like "Separate package, architecture all,
source available, contains the BLOBs at upload to Debian"

> Is it wrong if i have to heavily edit the build system?

Choose clean build for debian above
build same as upstream needs to do for various platforms.


> The arduino-avr-core has binary files (.hex, .elf) and sourcecode
> mixed. Is /usr/share/arduino-hardware a good place for the cores?

Yes


> (arduino uses a hardware folder relative to it's instalation)

Indeed,  /usr/bin/hardware/ would be bad.


 
> Thanks in advance
> Ignacio
> 
> [1] [pkg-arduino](https://github.com/HuayraLinux/pkg-arduino)
> [2] [pkg-arduino-ctags (an exuberant-ctags
> fork)](https://github.com/HuayraLinux/pkg-arduino-ctags)
> [3] [pkg-arduino-avr-core](https://github.com/HuayraLinux/pkg-arduino-avr-core)
> [4] [ArduinoCore-avr](https://github.com/arduino/ArduinoCore-avr)
> [5] [avr-core PKGBUILD (used as packaging reference)](https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/arduino-avr-core)
> 

Groeten
Geert Stappers
-- 
Leven en laten leven



More information about the Pkg-electronics-devel mailing list