Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:atmel:atngw100 [2015/05/26 18:29] – [Hardware Highlights] CPU, USB + Wired ports updated according OEM website tmomas | toh:atmel:atngw100 [2018/06/08 16:36] – link to oldwiki removed tmomas | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Atmel ATNGW100 ====== | ||
| + | The [[http:// | ||
| + | |||
| + | ===== Supported Versions ===== | ||
| + | ^ Version/ | ||
| + | | - | N/A | 7.09 | | | ||
| + | | - | N/A | 8.09.1 | Issues installing Squashfs. Alternate method described here | | ||
| + | |||
| + | ===== Hardware Highlights ===== | ||
| + | ^ CPU ^ Ram ^ Flash ^ Network | ||
| + | | AT32AP7000 | ||
| + | |||
| + | ===== Installation ===== | ||
| + | ==== Prerequisites ==== | ||
| + | The following description assumes that you have | ||
| + | * a working TFTP server | ||
| + | * a [[docs: | ||
| + | * a serial cable to connect the serial port | ||
| + | |||
| + | ==== 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, | ||
| + | |||
| + | A version of U-Boot patched for lzma support can be built together with OpenWRT: in '' | ||
| + | |||
| + | U-Boot can then be installed with [[http:// | ||
| + | |||
| + | git clone git:// | ||
| + | |||
| + | Copy '' | ||
| + | |||
| + | 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 ('' | ||
| + | * the root file system ('' | ||
| + | |||
| + | On the NGW100, you need to flash them separately. The jffs filesystem '' | ||
| + | |||
| + | In Uboot: (**bold** means that this is something you have to enter, //italic// means that you have to put your actual value here) | ||
| + | |||
| + | === Erase the flash === | ||
| + | Before we can flash anything, first erase the flash:\\ | ||
| + | Uboot> **erase 20000 7effff**\\ | ||
| + | ............................................................................... done\\ | ||
| + | Erased 125 sectors | ||
| + | |||
| + | === Flashing the images === | ||
| + | Flashing is a two step process | ||
| + | * first load the file to RAM via TFTP | ||
| + | * then copy the loaded contents to the flash | ||
| + | |||
| + | This must be done for both the kernel and the root file system. | ||
| + | |||
| + | **Details: | ||
| + | |||
| + | Give your board an IP address\\ | ||
| + | Uboot> **set ipaddr // | ||
| + | |||
| + | Load the kernel into RAM at address 0x10000000: | ||
| + | Uboot> **tftpboot 0x10000000 // | ||
| + | |||
| + | note the message:\\ | ||
| + | Bytes transferred = 659998 (a121e hex) | ||
| + | |||
| + | The length in hex must be included in the next command | ||
| + | |||
| + | Copy to flash: | ||
| + | |||
| + | Uboot> **cp.b 10000000 20000 // | ||
| + | |||
| + | You can check whether U-Boot agrees with you: | ||
| + | |||
| + | Uboot> **imls**\\ | ||
| + | should give something like: | ||
| + | < | ||
| + | Image Name: | ||
| + | Image Type: AVR32 Linux Kernel Image (lzma compressed) | ||
| + | Data Size: 659934 Bytes = 644.5 kB | ||
| + | Load Address: 10000000 | ||
| + | Entry Point: | ||
| + | | ||
| + | Verify that the image type is "lzma compressed" | ||
| + | |||
| + | Now load the root file system into RAM at address 0x10000000: | ||
| + | Uboot> **tftpboot 0x10000000 // | ||
| + | |||
| + | note the message:\\ | ||
| + | Bytes transferred = 4390912 (430000 hex) | ||
| + | |||
| + | Copy to flash: | ||
| + | |||
| + | Uboot> **cp.b 10000000 120000 // | ||
| + | |||
| + | === Setting boot parameters === | ||
| + | **__IMPORTANT__**\\ | ||
| + | Uboot> **set bootargs console=ttyS0, | ||
| + | Uboot> **set bootcmd bootm 0x20000**\\ | ||
| + | Uboot> **saveenv** | ||
| + | |||
| + | You may now boot the board. | ||
| + | |||
| + | === First boot === | ||
| + | On the first boot (and only then), you will see messages like these: | ||
| + | < | ||
| + | jffs2_scan_eraseblock(): | ||
| + | jffs2_scan_eraseblock(): | ||
| + | jffs2_scan_eraseblock(): | ||
| + | |||
| + | Empty flash at 0x000115fc ends at 0x00011600</ | ||
| + | (Many more messages like these) | ||
| + | |||
| + | I don't know whether this is a bug or a feature ;-) | ||
| + | |||
| + | You should finally see: | ||
| + | < | ||
| + | jffs2_build_filesystem(): | ||
| + | jffs2_build_filesystem(): | ||
| + | VFS: Mounted root (jffs2 filesystem).</ | ||
| + | |||
| + | === Result === | ||
| + | You should now have a working OpenWRT on AVR32 | ||
| + | < | ||
| + | Enter ' | ||
| + | |||
| + | _______ | ||
| + | | ||
| + | | ||
| + | | ||
| + | |__| W I R E L E S S F R E E D O M | ||
| + | | ||
| + | * 10 oz Vodka Shake well with ice and strain | ||
| + | * 10 oz Triple sec mixture into 10 shot glasses. | ||
| + | * 10 oz lime juice Salute! | ||
| + | | ||
| + | root@OpenWrt:/# | ||
| + | Filesystem | ||
| + | rootfs | ||
| + | / | ||
| + | tmpfs 15584 28 | ||
| + | tmpfs 512 | ||
| + | root@OpenWrt:/#</ | ||
| + | |||
| + | ===== Hardware ===== | ||
| + | |||
| + | ==== Info ==== | ||
| + | |||
| + | ^ Architecture | ||
| + | ^ Vendor | ||
| + | ^ Bootloader | ||
| + | ^ System-On-Chip | ||
| + | ^ CPU Speed | 210 MHz | | ||
| + | ^ Flash-Chip | ||
| + | ^ Flash size | 8 MB parallel + 8 MB serial | ||
| + | ^ RAM | 32 MB | | ||
| + | ^ Wireless | ||
| + | ^ Ethernet | ||
| + | ^ USB | Yes (device) | ||
| + | ^ Serial | ||
| + | ^ JTAG | Yes | | ||
| + | |||
| + | ==== Photos ==== | ||
| + | |||
| + | See [[http:// | ||
| + | Note: The expansion headers are not present on the board, but it is possible to add them. | ||
| + | |||
| + | ===== Basic configuration ===== | ||
| + | Since this part is identical for all devices, see [[docs: | ||
| + | |||
| + | ===== Connect stuff to the USB port ===== | ||
| + | To connect stuff to the USB port, please see [[docs: | ||
| + | |||
| + | ===== Tags ===== | ||
| + | [[meta: | ||
| + | {{tag> | ||