{"id":93,"date":"2008-08-13T17:39:42","date_gmt":"2008-08-13T15:39:42","guid":{"rendered":"http:\/\/bohrium.homelinux.org\/wordpress\/?p=93"},"modified":"2011-05-27T17:38:53","modified_gmt":"2011-05-27T15:38:53","slug":"installing-avr-stuff","status":"publish","type":"post","link":"https:\/\/blog.louic.nl\/?p=93","title":{"rendered":"Installing avrdude on a Gentoo box"},"content":{"rendered":"<p>This post describes how to install avrdude on Gentoo Linux. Avrdude is software to \"burn\" a program on a microcontroller. I am using a MyAVR programmer board that is connected to the parallel port. I started out by following the (gentoo specific) instructions on <a href=\"http:\/\/tobias.preclik.de\/codeblog\/?page_id=51\">this website<\/a>, but got some error messages.<\/p>\n<p>Fortunately, the <a href=\"http:\/\/forums.gentoo.org\/viewtopic-t-703655-highlight-avr.html\">solution to this problem<\/a> is described on the gentoo-forums. So I looked up my gcc-version and used it as a command line parameter for crossdev:<\/p>\n<pre lang=\"text\">louic@carbon ~ $ gcc-config -l\r\n [1] i686-pc-linux-gnu-3.3.6\r\n [2] i686-pc-linux-gnu-4.1.2 *\r\n [3] i686-pc-linux-gnu-4.2.4\r\n [4] i686-pc-linux-gnu-4.3.1\r\n\r\nlouic@carbon ~ $ sudo crossdev -t avr --g 4.1.2<\/pre>\n<p>There were no more error messages. Crossdev creates a portage overlay and installs it right away, so now everything should be ok.<\/p>\n<pre lang=\"text\">louic@carbon ~ $ sudo emerge -va avrdude<\/pre>\n<p>To set up avrdude to work with my microcontroller programmer (The MyAVR programmer), I needed to add an entry to \/etc\/avrdude.conf<\/p>\n<pre lang=\"text\">programmer\r\n  id    = \"myavr\";\r\n  desc  = \"MyAVR.de programmer\";\r\n  type  = par;\r\n  sck   = 2;\r\n  reset = 3;\r\n  mosi  = 9;\r\n  miso  = 11;\r\n;<\/pre>\n<p>This entry describes the pin-layout, which you should be able to find in the manual that comes with the programmer. The \"type = par\" directive is used to tell avrdude that the programmer is connected to the parallel port. Time to test!<\/p>\n<pre lang=\"text\">louic@carbon ~ $ avrdude -p m8 -c myavr\r\n\r\navrdude: AVR device initialized and ready to accept instructions\r\n\r\nReading | ################################################## | 100% 0.00s\r\n\r\navrdude: Device signature = 0x1e9307\r\n\r\navrdude: safemode: Fuses OK\r\n\r\navrdude done.  Thank you.<\/pre>\n<p>Cool! Let's program! How to compile programs and my first experiments with the Atmega8 AVR, will be described in different posts. Have fun!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post describes how to install avrdude on Gentoo Linux. Avrdude is software to \"burn\" a program on a microcontroller. I am using a MyAVR programmer board that is connected to the parallel port. I started out by following the &hellip; <a href=\"https:\/\/blog.louic.nl\/?p=93\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[40,35,34],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/posts\/93"}],"collection":[{"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":60,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":571,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions\/571"}],"wp:attachment":[{"href":"https:\/\/blog.louic.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.louic.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}