Over the past few days I attempted to upgrade the u-boot, root, and usr images on my NGW100 but ended up loosing power after erasing the u-boot partition (doh, major fail!). I ended up realizing that Mouser Electronics was pretty close to me in Ft Worth so I ran over there earlier this week and plunked down the $300 (another doh!) for a JTAG ICE MKII Programmer. I really didn’t want to spend that much money, but I figure it will come in handy during future development.

So this post starts out with a wiped NGW100 board, a JTAG ICE MKII, and a spare computer I had laying around. I decided to use the spare computer to setup a proper development platform as I really needed to get away from Windows. I did try to run the Atmel Ubuntu VMWare image, but it ran very slow and VMware Player somehow killed the drivers for my wireless card on my laptop. So for this post, I will go over the steps I took to setup Ubuntu and install all of the necessary files needed to setup an AVR development environment.

Installing Ubuntu

  1. Went to Ubuntu.com and downloaded a copy of Ubuntu 9.04 Desktop.
  2. Once finished, I burned the ISO to a CD and booted the install disk up on the desktop.
  3. As long as you do not have a strange setup on your computer, the install should be a breeze. It felt like I was installing Windows (as in very little options I had to screw with).
    Note: I’m not going to go into the details of setting up Ubuntu as I am wanting to concentrate on the AVR board here.

Installing The AVR Development Environment

The following information was found off of the AVR Freaks Wiki::Documentation:AVR32 General/Installing tools on Ubuntu Linux. I have sort of repeated it due to a few differences I noticed on my machine.

  1. Start by adding deb http://www.atmel.no/avr32/ubuntu/hardy binary/ to your /etc/apt/sources.list file.
  2. Then run sudo apt-get update to grab the package lists off of the atmel site.
  3. Note: Now I had to install libxerces27 but was unable to find it through the default apt sources nor the atmel site. This may be due to my setup running Ubuntu 9.04 Desktop vs the AVR Freak directions being for 8.04.

    To get this file, go to the Ubuntu Packages site and download libxerces27 here.

  4. Once it is downloaded, go to the directory and run dpkg -i libxerces27-dev_2.7.0-5_i386.deb to install libxerces27.
  5. Once that is done, you need to install some prerequisite tools. Run sudo apt-get install avr32program avr32gdbproxy avr32trace avrfwupgrade libavr32ocd libavrtools libelfdwarfparser to get the needs packages.
  6. And finally, we install the AVR32 Toolchain by running sudo apt-get install avr32-gnu-toolchain.
  7. We’re done. Optionally, you may want to create a local repository of the BSP CD.

I will be coming back to this in a bit to build my first NGW100 image, so this info may change.

del.icio.us:Setting Up Ubuntu For AVR32 Development digg:Setting Up Ubuntu For AVR32 Development spurl:Setting Up Ubuntu For AVR32 Development wists:Setting Up Ubuntu For AVR32 Development simpy:Setting Up Ubuntu For AVR32 Development newsvine:Setting Up Ubuntu For AVR32 Development blinklist:Setting Up Ubuntu For AVR32 Development furl:Setting Up Ubuntu For AVR32 Development reddit:Setting Up Ubuntu For AVR32 Development fark:Setting Up Ubuntu For AVR32 Development blogmarks:Setting Up Ubuntu For AVR32 Development Y!:Setting Up Ubuntu For AVR32 Development smarking:Setting Up Ubuntu For AVR32 Development magnolia:Setting Up Ubuntu For AVR32 Development segnalo:Setting Up Ubuntu For AVR32 Development

Trackback URI | Comments RSS

Leave a Reply