Optiboot / optiboot

Small and Fast Bootloader for Arduino and other Atmel AVR chips
Other
1.09k stars 401 forks source link

Adding GitHub actions workflow #362

Closed hecko closed 1 year ago

hecko commented 1 year ago

Adding GitHub actions workflow to test-compile all Arduino versions of Optiboot against GNU toolchain in Debian 11

mcuee commented 1 year ago

This is pretty good.

However, it is better not to use the avr-gcc toolchain from Debian 11 which is probably not proven. It would be good to use Microchip toolchain based on avr-gcc 5.4.0 for this github action (second choice is Microchip toolchain based on avr-gcc 7.3.0).

mcuee commented 1 year ago

The other thing is to save the result files (elf, hex and lst).

hecko commented 1 year ago

Where do i find ooficial source for microchip toolchain with avr gcc 5.4.0?

mcuee commented 1 year ago

Where do i find ooficial source for microchip toolchain with avr gcc 5.4.0?

Click Archives tab in the following link (AVR 8-bit Toolchain v3.6.2) https://www.microchip.com/en-us/tools-resources/develop/microchip-studio/gcc-compilers https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/SoftwareLibraries/Firmware/avr8-gnu-toolchain-3.6.2.1778-linux.any.x86_64.tar.gz

WestfW commented 1 year ago

Where do i find ooficial source for microchip toolchain with avr gcc 5.4.0?

beats me. Atmel was not very good at keeping a current source repository available, and by most accounts, Microchip is worse.

mcuee's links appear to be binaries only. :-(

hecko commented 1 year ago

Ill rewrite this and create a new PR.

mcuee commented 1 year ago

Where do i find ooficial source for microchip toolchain with avr gcc 5.4.0?

beats me. Atmel was not very good at keeping a current source repository available, and by most accounts, Microchip is worse.

mcuee's links appear to be binaries only. :-(

Indeed the link is binary only. Last time Atmel seems to distribute the source here (dead link now) as per Arduino and Arch Linux AUR package. https://github.com/arduino/toolchain-avr https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=avr-gcc-atmel

In any case I think @hecko is only asking the link for binary package and not the source package.

But yes Microchip has to follow the license and publish the source archive somewhere. I tend to believe it is somwhere in the Microchip website but the links are lost in the transition from Atmel to Microchip. Microchip does publish MPLAB C compilers source codes here. https://www.microchip.com/en-us/tools-resources/archives/mplab-ecosystem#Source%20Archives

mcuee commented 1 year ago

If we look at Debian testing packages, they do incorporate Atmel 3.6.2 toolchain (based on avr-gcc 5.4.0) patches. https://packages.debian.org/bookworm/gcc-avr https://packages.debian.org/bookworm/binutils-avr https://packages.debian.org/bookworm/avr-libc