AVR Toolchain: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Marvin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
(Section for Gentoo) |
||
(4 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
==Debian | [[Category:en]][[Category:howto]] | ||
Needed programs for running the code under debian unstable: | ==Debian/Ubuntu== | ||
* Needed programs for running the code under debian unstable: | |||
apt-get install avr-libc gcc-avr | |||
* avrdude is available in the same name: | |||
apt-get install avrdude | |||
* libusb is needed for running the host code for the flower: | |||
apt-get install libusb-1.0-0-dev | |||
(tested on debian unstable, should also run under ubuntu) | |||
==Gentoo== | |||
* You will need to install crossdev (which will do all the rest for you) and avrdude to flash your µC. | |||
* The avr toolchain is broken (for some years already [https://bugs.gentoo.org/show_bug.cgi?id=147155]), but fortunately there is a workaround in the [http://en.gentoo-wiki.com/wiki/Crossdev#AVR_Architecture Gentoo wiki]. | |||
==Udev Rules== | ==Udev Rules== | ||
if you want to connect to the device as normal user, you have to create a little udev rule. For debian like systems create a file in the folder /etc/udev/rules.d and reload udev (/etc/init.d/udev | if you want to connect to the device as normal user, you have to create a little udev rule. For debian like systems create a file in the folder /etc/udev/rules.d and reload udev (/etc/init.d/udev reload): | ||
$ cat /etc/udev/rules.d/z99_atmel.rules | $ cat /etc/udev/rules.d/z99_atmel.rules | ||
# Atmel AVR ISP mkII | # Atmel AVR ISP mkII | ||
SUBSYSTEM=="usb", | SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2104", GROUP="plugdev", MODE="0660" | ||
# usbprog bootloader | # usbprog bootloader | ||
ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c62", GROUP="plugdev", MODE="0660" | ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c62", GROUP="plugdev", MODE="0660" |
Aktuelle Version vom 20. April 2012, 19:17 Uhr
Debian/Ubuntu[Bearbeiten]
- Needed programs for running the code under debian unstable:
apt-get install avr-libc gcc-avr
- avrdude is available in the same name:
apt-get install avrdude
- libusb is needed for running the host code for the flower:
apt-get install libusb-1.0-0-dev
(tested on debian unstable, should also run under ubuntu)
Gentoo[Bearbeiten]
- You will need to install crossdev (which will do all the rest for you) and avrdude to flash your µC.
- The avr toolchain is broken (for some years already [1]), but fortunately there is a workaround in the Gentoo wiki.
Udev Rules[Bearbeiten]
if you want to connect to the device as normal user, you have to create a little udev rule. For debian like systems create a file in the folder /etc/udev/rules.d and reload udev (/etc/init.d/udev reload):
$ cat /etc/udev/rules.d/z99_atmel.rules # Atmel AVR ISP mkII SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2104", GROUP="plugdev", MODE="0660" # usbprog bootloader ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c62", GROUP="plugdev", MODE="0660" # USBasp programmer ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", GROUP="plugdev", MODE="0660" # USBtiny programmer ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c9f", GROUP="plugdev", MODE="0660"
(from http://www.mikrocontroller.net/articles/AVRDUDE#Aufruf_unter_Linux_als_user_.28non-root.29)