nyos@nyos:~$ apt-cache search avr ava - Algebraical Virtual Assembler for Atmel's AVR MCUs avarice - use GDB with Atmel's JTAG ICE for the AVR avr-libc - Standard C library for Atmel AVR development avra - Assembler for Atmel AVR microcontrollers avrdude - software for programming Atmel AVR microcontrollers avrdude-doc - documentation for avrdude avrp - Programmer for Atmel AVR microcontrollers avrprog - Programmer for Atmel AVR microcontrollers binutils-avr - Binary utilities supporting Atmel's AVR targets gcc-avr - The GNU C compiler (cross compiler for avr) gdb-avr - The GNU Debugger for avr libgringotts2 - encapsulate data in an encrypted and compressed file sdcc - Small Device C Compiler sdcc-doc - Small Device C Compiler (documentation) sdcc-libraries - Small Device C Compiler (libraries) simulavr - Atmel AVR simulator traceroute-nanog - Determine route of packets in TCP/IP networks (NANOG variant) uisp - Micro In-System Programmer for Atmel's AVR MCUs libmjpegtools-dev - MJPEG video capture/editting/playback MPEG encoding libmjpegtools0c2a - MJPEG video capture/editting/playback MPEG encoding mjpegtools - MJPEG video capture/editting/playback MPEG encoding nyos@nyos:~$ mkdir avr nyos@nyos:~$ cd avr nyos@nyos:~/avr$ nano cimek.txt nyos@nyos:~/avr$ sudo apt-get install gcc-avr avr-libc [sudo] password for nyos: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: binutils-avr Suggested packages: task-c-devel gcc-doc gcc-4.2 The following NEW packages will be installed: avr-libc binutils-avr gcc-avr 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 9859kB of archives. After unpacking 25.9MB of additional disk space will be used. Do you want to continue [Y/n]? nyos@nyos:~/avr$ sudo apt-get install gcc-avr avr-libc gcc-doc gcc-4.2 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: binutils-avr cpp-4.2 gcc-4.1-doc libgomp1 Suggested packages: gcc-4.2-locales gcc-4.2-multilib gcc-4.2-doc task-c-devel Recommended packages: libmudflap0-4.2-dev The following NEW packages will be installed: avr-libc binutils-avr cpp-4.2 gcc-4.1-doc gcc-4.2 gcc-avr gcc-doc libgomp1 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. Need to get 14.6MB of archives. After unpacking 38.0MB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://hu.archive.ubuntu.com gutsy/main cpp-4.2 4.2.1-5ubuntu4 [2485kB] Get:2 http://hu.archive.ubuntu.com gutsy/main gcc-4.1-doc 4.1.2-16ubuntu2 [1660kB] Get:3 http://hu.archive.ubuntu.com gutsy/main libgomp1 4.2.1-5ubuntu4 [11.6kB] Get:4 http://hu.archive.ubuntu.com gutsy/main gcc-4.2 4.2.1-5ubuntu4 [584kB] Get:5 http://hu.archive.ubuntu.com gutsy/main gcc-doc 4:4.1.2-9ubuntu2 [1068B] Get:6 http://hu.archive.ubuntu.com gutsy/universe avr-libc 1:1.4.5-2 [2302kB] Get:7 http://hu.archive.ubuntu.com gutsy/universe binutils-avr 2.17 [3029kB] Get:8 http://hu.archive.ubuntu.com gutsy/universe gcc-avr 1:4.2.1-1 [4528kB] Fetched 14.6MB in 11s (1280kB/s) Selecting previously deselected package cpp-4.2. (Reading database ... 184355 files and directories currently installed.) Unpacking cpp-4.2 (from .../cpp-4.2_4.2.1-5ubuntu4_i386.deb) ... Selecting previously deselected package gcc-4.1-doc. Unpacking gcc-4.1-doc (from .../gcc-4.1-doc_4.1.2-16ubuntu2_all.deb) ... Selecting previously deselected package libgomp1. Unpacking libgomp1 (from .../libgomp1_4.2.1-5ubuntu4_i386.deb) ... Selecting previously deselected package gcc-4.2. Unpacking gcc-4.2 (from .../gcc-4.2_4.2.1-5ubuntu4_i386.deb) ... Selecting previously deselected package gcc-doc. Unpacking gcc-doc (from .../gcc-doc_4%3a4.1.2-9ubuntu2_i386.deb) ... Selecting previously deselected package avr-libc. Unpacking avr-libc (from .../avr-libc_1%3a1.4.5-2_all.deb) ... Selecting previously deselected package binutils-avr. Unpacking binutils-avr (from .../binutils-avr_2.17_i386.deb) ... Selecting previously deselected package gcc-avr. Unpacking gcc-avr (from .../gcc-avr_1%3a4.2.1-1_i386.deb) ... Setting up cpp-4.2 (4.2.1-5ubuntu4) ... Setting up gcc-4.1-doc (4.1.2-16ubuntu2) ... Setting up libgomp1 (4.2.1-5ubuntu4) ... Setting up gcc-4.2 (4.2.1-5ubuntu4) ... Setting up gcc-doc (4:4.1.2-9ubuntu2) ... Setting up avr-libc (1:1.4.5-2) ... Setting up binutils-avr (2.17) ... Setting up gcc-avr (1:4.2.1-1) ... Processing triggers for libc6 ... ldconfig deferred processing now taking place nyos@nyos:~/avr$ nano peldaprogi.c nyos@nyos:~/avr$ nano comp.sh nyos@nyos:~/avr$ chmod 755 comp.sh nyos@nyos:~/avr$ ./comp.sh cimek.txt comp.sh peldaprogi.c nyos@nyos:~/avr$ ./comp.sh peldaprogi.c avr-gcc: peldaprogi.c.c: No such file or directory avr-gcc: no input files avr-objcopy: 'peldaprogi.c.out': No such file avr-objcopy: error: the input file 'peldaprogi.c.out' is empty avr-objdump: 'peldaprogi.c.out': No such file nyos@nyos:~/avr$ ./comp.sh peldaprogi nyos@nyos:~/avr$ la total 44 drwxr-xr-x 2 nyos 4096 2008-04-08 01:26 ./ drwxr-xr-x 113 nyos 4096 2008-04-08 01:22 ../ -rw-r--r-- 1 nyos 162 2008-04-08 01:23 cimek.txt -rwxr-xr-x 1 nyos 158 2008-04-08 01:26 comp.sh* -rw-r--r-- 1 nyos 2270 2008-04-08 01:25 peldaprogi.c -rw-r--r-- 1 nyos 0 2008-04-08 01:26 peldaprogi.c.lst -rw-r--r-- 1 nyos 901 2008-04-08 01:26 peldaprogi.hex -rw-r--r-- 1 nyos 8642 2008-04-08 01:26 peldaprogi.lst -rwxr-xr-x 1 nyos 6363 2008-04-08 01:26 peldaprogi.out* nyos@nyos:~/avr$ cat peldaprogi.hex :1000000019C032C031C030C02FC02EC02DC02CC08E :100010002BC02AC029C028C027C026C025C024C0A4 :1000200023C022C04BC020C01FC01EC01DC01CC0AA :100030001BC01AC011241FBECFEFD4E0DEBFCDBF5E :1000400011E0A0E0B1E0EAE3F1E002C005900D921A :10005000A030B107D9F711E0A0E0B1E001C01D92D6 :10006000A030B107E1F701C0CBCFCDEFD4E0DEBFC8 :10007000CDBFE7E2F0E08FE38083E8E2F0E081E0EB :10008000808306D0E8E2F0E083E080837894FFCFBD :10009000CF93DF93CDB7DEB7E4ECF0E083E380836A :1000A000E5ECF0E01082E2ECF0E086E08083E1EC49 :1000B000F0E088E98083DF91CF9108951F920F923D :1000C0000FB60F9211248F939F93EF93FF93CF93CB :1000D000DF93CDB7DEB72197DEBFCDBFE6ECF0E012 :1000E00080818983898181361CF089818B3734F046 :1000F000898181343CF089818B3524F4898190E2B7 :1001000089278983E0ECF0E08081992780729070E4 :100110000097C1F3E6ECF0E0898180832196F894A2 :10012000DEBFCDBFDF91CF91FF91EF919F918F9176 :0A0130000F900FBE0F901F9018955E :00000001FF nyos@nyos:~/avr$