What is AVR dude ?

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello guys

I use Linux system. I want to work on 8 bit micro controllers and port any Linux OS on it if possible..
I have chosen Atmega128 for that.
I have few questions..

What is AVR dude ..
Which kernel has support for this processor.
How can i make programs in Linux, build them and hash them in Linux.. I mean, Which Tools have to be used..

Thanks in Advance..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AVRDude is a program that downloads programs and data to AVRs.

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yaswanth2008 wrote:
Hello guys

I use Linux system. I want to work on 8 bit micro controllers and port any Linux OS on it if possible..
I have chosen Atmega128 for that.
I have few questions..

What is AVR dude ..
Which kernel has support for this processor.


avrdude:
answered above.

Porting the Linux kernel to run on an ATmega128:
Not possible. Several special-purpose RTOS kernels have been ported to run on the Atmel AVR, but you will never be able to run a full Linux kernel on an 8-bit AVR.

I will guess that Linux will never be supported on any 8-bit micro controller.

Quote:
How can i make programs in Linux, build them and hash them in Linux.. I mean, Which Tools have to be used..

Thanks in Advance..


You will need a cross-compiler (avr-gcc).

Many Linux distributions include binary packages of avr-gcc that are rather obsolete and/or contain unpatched bugs. There are instructions in a sticky thread in this forum to help you build a version of avr-gcc which is reasonably up to date. ( https://www.avrfreaks.net/index.p... )

Use your cross-compiler to build your standalone applications (for starters, don't even think of running any OS at all inside the AVR).

Then use avrdude, along with a hardware programmer such as an AVRISP mkII, to transfer the program into the AVR's embedded Flash.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I will guess that Linux will never be supported on any 8-bit micro controller.

Perhaps indirectly? see recent thread in AVR Forum where someone implemented an ARM emulator on AVR then was able to boot Linux using it. Apparently it took two hours to reach the login: prompt. A work of utter genius!

I think this was it (found indirectly): http://www.linuxstall.com/gnulin...

EDIT: yes: http://dmitry.co/index.php?p=./0...

To the OP: this proves why you do NOT want Linux on an AVR, not why you do! You will probably find this list more useful if your intent is to have some form of "operating system":

https://www.avrfreaks.net/index.p...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

lfmorrison wrote:
yaswanth2008 wrote:
Hello guys

I use Linux system. I want to work on 8 bit micro controllers and port any Linux OS on it if possible..
I have chosen Atmega128 for that.
I have few questions..

What is AVR dude ..
Which kernel has support for this processor.


avrdude:
answered above.

Porting the Linux kernel to run on an ATmega128:
Not possible. Several special-purpose RTOS kernels have been ported to run on the Atmel AVR, but you will never be able to run a full Linux kernel on an 8-bit AVR.

I will guess that Linux will never be supported on any 8-bit micro controller.

Quote:
How can i make programs in Linux, build them and hash them in Linux.. I mean, Which Tools have to be used..

Thanks in Advance..


You will need a cross-compiler (avr-gcc).

Many Linux distributions include binary packages of avr-gcc that are rather obsolete and/or contain unpatched bugs. There are instructions in a sticky thread in this forum to help you build a version of avr-gcc which is reasonably up to date. ( https://www.avrfreaks.net/index.p... )

Use your cross-compiler to build your standalone applications (for starters, don't even think of running any OS at all inside the AVR).

Then use avrdude, along with a hardware programmer such as an AVRISP mkII, to transfer the program into the AVR's embedded Flash.

Well i am curious about AVRISP mkII's driver issues in Ubuntu.. Does it work without any issues in Linux systems since, the driver they provide is for windows PC.
And, is it USB programmer or Serial port programmer ? in General Laptops do not have serial port and use converters to program the device.

Thanks for your help

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You really want to run linux on an AVR?

Start here:

http://dmitry.co/index.php?p=./0...

Basically it is an ATMEGA which runs an ARM simulator to boot linux and with an old 30 pin simm for the memory.

Crasy project but it seems to be able to boot into a bash prompt in a few hours.

I saw this project on hackaday recently.
http://hackaday.com/2012/03/28/b...

Doing magic with a USD 7 Logic Analyser: https://www.avrfreaks.net/comment/2421756#comment-2421756

Bunch of old projects with AVR's: http://www.hoevendesign.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Well i am curious about AVRISP mkII's driver issues in Ubuntu.. Does it work without any issues in Linux systems since, the driver they provide is for windows PC.
And, is it USB programmer or Serial port programmer ? in General Laptops do not have serial port and use converters to program the device.

Many people here are using AVRISPmkII with avrdude on Linux and its generic libusb support so don't have any worries about that.

Unlike the JTAGICEmkII the AVRISPmkII is USB only - no serial but, as I say, it's going to work on Linux.

Quote:

You really want to run linux on an AVR?

Start here:


Wish I'd said that ... oh, wait a minute ... ;-)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cool.

Thank You Guys.