Skip to contentSkip to conversation

Getting started with AVR32

DISCUSSION [email protected] 2 participants 2 messages Apr 23, 2008

lore
Share & tools
lore
#0 lore raw

Hi there,

I'd like to build OE for Atmel's ATNGW100 board.

Can you give me some hints where to start?
Which distro, branch, etc. should I use?

Best regards,
Dave

#1 lore raw
Quoted 4 lines · On Wednesday 23 April 2008 04:07:16 am [email protected] wrote:

I'd like to build OE for Atmel's ATNGW100 board.

Can you give me some hints where to start?
Which distro, branch, etc. should I use?

The org.openembedded.dev branch should be able to build an AVR32 image for you. I submitted some patches which haven't been applied yet that will give you a newer toolchain. See
http://bugs.openembedded.net/show_bug.cgi?id=4178. With these patches applied, I can build x11-image (haven't gotten a chance to try X out yet, though).

I had an AT32STK1000 board. This board came with an ancient version of u-boot that had the wrong architecture number for the AVR32. If the ATNGW100 ships the same way, you'll need to upgrade u-boot before it will boot any recent image. The 2.0.0 BSP CD contains a bootloader that will work
(http://www.atmel.com/dyn/resources/prod_documents/AVR32_Linux_BSP_CD_Image_2.0.0.zip).
Beware, everything else on this CD is horribly outdated.

I'm writing the OE generated image to an SD card, and then having u-boot boot from the SD card.

Here's my local.conf file for my custom AVR32 board, minus comments and blank lines:
--begin--
DL_DIR = "${PRJROOT}/sources"
BBFILES = "${PRJROOT}/org.openembedded.dev/packages/*/*.bb" BBMASK = ""
PREFERRED_PROVIDERS = "virtual/qte:qte virtual/libqpe:libqpe-opie" PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-x11" PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial" PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross" PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross" PREFERRED_VERSION_linux = "2.6.23"
MACHINE = "at32stk1000"
TARGET_OS = "linux-uclibc"
DISTRO = "angstrom-2008.1"
ANGSTROM_MODE = "uclibc"
IMAGE_FSTYPES = "ext3 jffs2 tar"
BBDEBUG = "yes"
PARALLEL_MAKE = "-j 3"
BBINCLUDELOGS = "yes"
--end--

You'll need to change the MACHINE to "atngw100". This also assumes you have PRJROOT defined in your environment. Eiether edit out the references to PRJROOT, or export PRJROOT before you run bitbake.

Good luck!
---
Geoffrey