Table of Contents

Atmel ATNGW100

The NGW100 Network Gateway Kit is a development board for the AT32AP7000 microcontroller, a member of the AVR32 family. The NGW100 has two Ethernet ports, a SD/MMC card reader, and connectors for USB (device mode only), serial console, and JTAG.

Installation

Prerequisites

Upgrade UBoot

Since 8.09, the gzip compressed kernel is by far too large: it is about 3MB, and the flash section dedicated to it (0x20000 - 0x120000) is only 1MB.

Therefore, the lzma compressed kernel must be used for OpenWRT 8.09. Unfortunately, the preinstalled U-Boot does not support lzma compression (at least not on my board, which I bought around December 2008).

A version of U-Boot patched for lzma support can be built together with OpenWRT: in make menuconfig, choose Build U-Boot bootloader in the section Target Images. While you are at it, check also the entry jffs2 (see below). Save the configuraton and make. This should now build U-Boot along with OpenWRT.

U-Boot can then be installed with FlashUpgrade as follows: Download the Source Code of the FlashUpgrade tool (the pre-built binaries don't include the lzma patch).

Copy bin/u-boot-atngw100.bin from your OpenWRT tree into the unpacked source directory. Rename the copy to u-boot.bin. Make and install following the instructions from FlashUpgrade.

You should now have U-Boot 1.3.3 with lzma support.

Installing the Kernel and the Root Image

Besides the boot loader, you need two more items in the flash

the compressed Linux image (openwrt-avr32-uImage-lzma)

the root file system (openwrt-avr32-jffs2-64k.img)

On the NGW100, you need to flash them separately. The jffs filesystem openwrt-avr32-jffs2-64k.img is not available for download from http://downloads.openwrt.org/kamikaze/8.09.1/avr32/, so you will have to build it yourself. If you have not yet done so, go back to menuconfig, open the entry "Target Images". Make sure "jffs2" is selected. Save the confguration and make. Copy openwrt-avr32-uImage-lzma and openwrt-avr32-jffs2-64k.img to your TFTP server.

In Uboot: (bold means that this is something you have to enter, italic means that you have to put your actual value here)

jffs2_scan_eraseblock(): End of filesystem marker found at 0x420000
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
VFS: Mounted root (jffs2 filesystem).