User Tools

Site Tools


toh:gateworks:gateworks_avila_gw2342

Gateworks Avila GW2342

A single board computer with four Type III Mini-PCI sockets, two 10/100 Base-TX Ethernet ports with ESD and EFT protection, and Compact Flash socket.

Supported Versions

Hardware Highlights

ModelVersionSoCCPU MHzFlash MBRAM MBWLAN HardwareWLAN2.4WLAN5.0100M portsGbit portsModemUSB
Avila GW2342Intel IXP4255331664Has 4 mini-PCI slots to accomodate WiFi--2-No¿

Installation

Flash Layout

FIXME Find out flash layout, then add the flash layout table here (copy, paste, modify the example).

Please check out the article Flash layout. It contains examples and explanations that describe how to document the flash layout.

Installation using the TFTP method

generic.flashing.tftp

1 - Connect your target board to your network, set ipaddress and the tftp serverip in the Redboot bootloader:

   Redboot> ip_address -l 192.168.1.1 -h 192.168.1.14

2 - Unlock flash blocks with the length param (-l 0x1000000) differing depending on the flash size of the board (8MB - 0x800000, 16MB - 0x1000000, 32MB - 0x2000000):

   Redboot> fis unlock -f 0x50000000 -l 0x1000000

3 - Initialize redboot partition table:

   Redboot> fis init -f

4 - Download kernel:

   Redboot> load -r -v -b 0x00800000 openwrt-ixp4xx-generic-avila-zImage

5 - create/write linux partition:

   Redboot> fis create linux

6 - Download rootfs:

   Redboot> load -r -v -b 0x00800000 openwrt-ixp4xx-generic-squashfs.img 

7 - Determine length parameter (-l in next command) for rootfs partition (using hex calculator subtract first number in response from second):

   Redboot> fis free

8 - create/write rootfs partition

   Redboot> fis create -l 0xe60000 rootfs

9 - create boot script:

   Redboot> fconfig
   

Specify a boot script of:

   fis load linux
   exec

Add an additional carriage return to end script.

10 - Reboot the board

   Redboot> reset

Upgrading OpenWrt

generic.sysupgrade

Although you can upgrade using sysupgrade the default sysupgrade kernel image does not contain some of the Avila specific hardware modules so re-installing will provide better support.

LuCI Web Upgrade Process

Terminal Upgrade Process

If you don't have a GUI (LuCI) available, you can alternatively upgrade via the command line.

Note: It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.

sysupgrade

  • Login as root via SSH on 192.168.1.1, then enter the following commands:

cd /tmp
wget http://downloads.openwrt.org/chaos_calmer/15.05/ixp4xx/generic/openwrt-15.05-ixp4xx-generic-squashfs-sysupgrade.bin
sysupgrade openwrt-15.05-ixp4xx-generic-squashfs-sysupgrade.bin

Debricking

Failsafe mode

Basic configuration

Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.

Specific Configuration

The default install only configures the 1st Ethernet interface. You can configure the 2nd Ethernet interface eth1 as the WAN interface.

Network interfaces

The default network configuration is:

Interface Name Description Default configuration
br-lan (eth0) J10 192.168.1.1/24
wan (eth1) J11 DHCP

Buttons

hardware.button on howto use and configure the hardware button(s). Here, we merely name the buttons, so we can use them in the above Howto.

The Gateworks Avila GW2342 has the following buttons:

BUTTON Event
Reset reset

Hardware

Info

General
Brand Gateworks
Model Avila GW2342
Versions
Device Type Single Board Computer
Availability Discontinued
Comments - general
OpenWrt Support
Supported Since Revision https://dev.openwrt.org/changeset/10866
Supported Since Release 7.06
Supported Current Release 15.05
Unsupported
Hardware
Instruction set ARM
Sub Instruction Set ARMv5
Bootloader RedBoot
Target ixp4xx
System-On-Chip Intel IXP425
CPU MHz 533
Flash MB 16
RAM MB 64
Network
Ethernet 100M ports 2
Ethernet Gbit ports -
Switch
Modem No
VLAN No
Comments - network ports
Wireless
WLAN 2.4GHz -
WLAN 5.0GHz -
WLAN Hardware
Detachable Antennas -
Comments - WLAN
Interfaces
USB ports ¿
SATA ports -
Serial Yes
JTAG Yes
Comments - USB & SATA ports
Misc
LED count 1
Button count 1
Power supply
Links
Forum Topic URL
WikiDevi URL https://wikidevi.com/wiki/Gateworks_Avila_GW2342
OEM device homepage URL
Firmware OEM Stock URL
Firmware OpenWrt Install URL http://downloads.openwrt.org/chaos_calmer/15.05/ixp4xx/generic/
Firmware OpenWrt Upgrade URL http://downloads.openwrt.org/chaos_calmer/15.05/ixp4xx/generic/openwrt-15.05-ixp4xx-generic-squashfs-sysupgrade.bin
Edit the underlying data View/Edit data

Photos

Main PCB:
Insert photo of PCB

Serial

port.serial general information about the serial port, serial port cable, etc.

The COM1 serial port connector is an industry standard female 9-pin D-shell connector. The DCE pin assignments permit a direct connection to a standard PC DTE port running terminal emulation software.

Serial connection parameters
for Gateworks Avila GW2342
115200, 8N1

JTAG

port.jtag general information about the JTAG port, JTAG cable, etc.

The JTAG programming port is available through a 14-pin header in a 2x7 configuration with 0.1-inch pin spacing.

Pin Signal Pin Signal
1 3.3V 2 COM1 RXD (3.3V)
3 JTAG RST 4 Ground
5 JTAG TDI 6 Ground
7 JTAG TMS 8 Ground
9 JTAG TCK 10 Ground
11 JTAG TDO 12 Board Reset
13 COM1 TXD (3.3V) 14 Ground

Bootloader

bootloader

The Gateworks Avila uses the RedBoot bootloader. Source code and build instructions @ http://trac.gateworks.com/wiki/avila/redboot

Bootlogs

OpenWrt bootlog

IP: 192.168.1.1/255.255.255.0, Gateway: 192.168.1.21 Default server: 192.168.1.15, DNS server IP: 0.0.0.0 RedBoot(tm) bootstrap and debug environment [ROM] Red Hat certified release, version 1.92p1 - built 16:53:03, Mar 26 2004 Platform: GW2342 Development Platform (XScale) Copyright (C) 2000, 2001, 2002, Red Hat, Inc. RAM: 0x00000000-0x04000000, 0x0001f880-0x03fd1000 available FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each. == Executing boot script in 3.000 seconds - enter ^C to abort RedBoot> fis load linux RedBoot> exec Using base address 0x00800000 and length 0x00109bf0 Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 3.18.20 (buildbot@builder1) (gcc version 4.8.3 (Ope nWrt/Linaro GCC 4.8-2014.04 r46450) ) #1 Fri Sep 4 16:52:19 CEST 2015 [ 0.000000] CPU: XScale-IXP42x Family [690541c1] revision 1 (ARMv5TE), cr=000 039ff [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine: Gateworks Avila Network Platform [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Memory: 61724K/65536K available (2398K kernel code, 133K rwdata, 332K rodata, 124K init, 183K bss, 3812K reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB) [ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc02b2d74 (2732 kB) [ 0.000000] .init : 0xc02b3000 - 0xc02d2000 ( 124 kB) [ 0.000000] .data : 0xc02d2000 - 0xc02f3478 ( 134 kB) [ 0.000000] .bss : 0xc02f3478 - 0xc03213e0 ( 184 kB) [ 0.000000] NR_IRQS:64 [ 0.000023] sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 64425153520ns [ 0.000454] Calibrating delay loop... 531.66 BogoMIPS (lpj=2658304) [ 0.050164] pid_max: default: 32768 minimum: 301 [ 0.050512] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.050543] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.051808] CPU: Testing write buffer coherency: ok [ 0.052664] Setting up static identity map for 0x10318 - 0x10368 [ 0.057089] NET: Registered protocol family 16 [ 0.058848] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.060582] IXP4xx: Using 16MiB expansion bus window size [ 0.061130] PCI: IXP4xx is host [ 0.061151] PCI: IXP4xx Using direct access for memory space [ 0.061461] PCI host bridge to bus 0000:00 [ 0.061509] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 0.061537] pci_bus 0000:00: root bus resource [mem 0x48000000-0x4bffffff] [ 0.061561] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 0.061921] pci 0000:00:03.0: dmabounce: registered device [ 0.062622] pci 0000:00:04.0: dmabounce: registered device [ 0.063055] PCI: bus0: Fast back to back transfers enabled [ 0.063194] pci 0000:00:03.0: BAR 0: assigned [mem 0x48000000-0x4800ffff] [ 0.063232] pci 0000:00:04.0: BAR 0: assigned [mem 0x48010000-0x4801ffff] [ 0.074127] i2c-gpio i2c-gpio.0: using pins 7 (SDA) and 6 (SCL) [ 0.075949] Switched to clocksource OSTS [ 0.078252] NET: Registered protocol family 2 [ 0.080309] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.080369] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.080410] TCP: Hash tables configured (established 1024 bind 1024) [ 0.080657] TCP: reno registered [ 0.080684] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.080724] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.081227] NET: Registered protocol family 1 [ 0.081844] IXP4xx Queue Manager initialized. [ 0.084114] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.087417] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.087459] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.088120] msgmni has been set to 120 [ 0.089156] io scheduler noop registered [ 0.089191] io scheduler deadline registered (default) [ 0.165179] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 0.172350] console [ttyS0] disabled [ 0.172480] serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15, base_baud = 921600) is a XScale [ 0.553718] console [ttyS0] enabled [ 0.558372] serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13, base_baud = 921600) is a XScale [ 0.568527] at24 0-0051: 1024 byte 24c08 EEPROM, writable, 16 bytes/write [ 0.791367] libphy: IXP4xx MII Bus: probed [ 0.795866] rtc-ds1672 0-0068: chip found, driver version 0.4 [ 0.803115] rtc-ds1672 0-0068: rtc core: registered rtc-ds1672 as rtc0 [ 0.810842] i2c /dev entries driver [ 0.822772] ad7418 0-0028: ad7418 chip found [ 0.827690] ad7418 0-0028: configuring for mode 1 [ 0.833844] gsp 0-0029: gsp chip found [ 0.838650] ixp4xx_wdt: timer heartbeat 60 sec [ 0.843881] TCP: cubic registered [ 0.847324] NET: Registered protocol family 17 [ 0.851976] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 0.864719] Bridge firewalling registered [ 0.868760] 8021q: 802.1Q VLAN Support v1.8 [ 0.873122] XScale DSP coprocessor detected. [ 0.877464] Unknown/missing Avila model number -- defaults will be used [ 0.886295] eth0: MII PHY 0 on NPE-B [ 0.892045] eth1: MII PHY 1 on NPE-C [ 0.897178] IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x000018 [ 0.907493] Intel/Sharp Extended Query Table at 0x0031 [ 0.912677] Intel/Sharp Extended Query Table at 0x0031 [ 0.917873] Using buffer write method [ 0.921534] cfi_cmdset_0001: Erase suspend on write enabled [ 0.927506] Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0xfe0000 [ 1.054267] 5 RedBoot partitions found on MTD device IXP4XX-Flash.0 [ 1.060661] Creating 5 MTD partitions on "IXP4XX-Flash.0": [ 1.066178] 0x000000000000-0x000000040000 : "RedBoot" [ 1.073241] 0x000000040000-0x000000160000 : "linux" [ 1.080210] 0x000000160000-0x000000fc0000 : "rootfs" [ 1.087253] mtd: device 2 (rootfs) set to be root filesystem [ 1.093003] 1 squashfs-split partitions found on MTD device rootfs [ 1.099287] 0x000000360000-0x000000fc0000 : "rootfs_data" [ 1.106850] 0x000000fc0000-0x000000fc1000 : "RedBoot config" [ 1.114486] 0x000000fe0000-0x000001000000 : "FIS directory" [ 1.131463] rtc-ds1672 0-0068: setting system clock to 2015-10-22 05:56:53 UTC (1445493413) [ 1.159805] VFS: Mounted root (squashfs filesystem) readonly on device 31:2. [ 1.167736] Freeing unused kernel memory: 124K (c02b3000 - c02d2000) [ 2.621335] init: Console is alive [ 2.625290] init: - watchdog - [ 4.671696] init: - preinit - [ 5.387462] random: mktemp urandom read with 8 bits of entropy available Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 21.319856] jffs2: notice: (773) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. [ 21.339022] mount_root: switching to jffs2 overlay [ 21.371125] procd: - early - [ 21.374359] procd: - watchdog - [ 23.599514] procd: - ubus - [ 24.740641] procd: - init - Please press Enter to activate this console. [ 28.911191] NET: Registered protocol family 10 [ 28.943354] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 28.990283] Loading modules backported from Linux version master-2015-03-09-0-g141f155 [ 28.998330] Backport generated by backports.git backports-20150129-0-gdd4a670 [ 29.018561] ip_tables: (C) 2000-2006 Netfilter Core Team [ 29.038584] nf_conntrack version 0.5.0 (966 buckets, 3864 max) [ 29.185564] xt_time: kernel timezone is -0000 [ 29.227122] cfg80211: Calling CRDA to update world regulatory domain [ 29.247207] cfg80211: World regulatory domain updated: [ 29.252373] cfg80211: DFS Master region: unset [ 29.256818] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 29.266580] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 29.274582] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 29.282600] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A) [ 29.290623] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 29.298650] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s) [ 29.308149] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 29.316254] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 29.324259] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A) [ 29.470615] PPP generic driver version 2.4.2 [ 29.490123] NET: Registered protocol family 24 [ 29.796050] ath9k 0000:00:03.0: enabling device (0340 -> 0342) [ 30.253470] ieee80211 phy0: Atheros AR5416 MAC/BB Rev:2 AR5133 RF Rev:81 mem=0xc4cc0000, irq=26 [ 30.262434] ath9k 0000:00:04.0: enabling device (0340 -> 0342) [ 31.854876] ieee80211 phy1: Atheros AR9160 MAC/BB Rev:1 AR5133 RF Rev:b0 mem=0xc4d20000, irq=25 [ 31.866061] cfg80211: Calling CRDA for country: US [ 31.871596] cfg80211: Regulatory domain changed to country: US [ 31.877553] cfg80211: DFS Master region: FCC [ 31.881737] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 31.891496] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A) [ 31.899522] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 1700 mBm), (N/A) [ 31.909016] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s) [ 31.918506] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A) [ 31.926525] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A) [ 31.962012] cfg80211: Calling CRDA for country: AM [ 31.967836] cfg80211: Current regulatory domain intersected: [ 31.973513] cfg80211: DFS Master region: unset [ 31.977954] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 31.987713] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 31.995713] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A) [ 32.003730] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 1800 mBm), (0 s) [ 48.896285] NPE-B: firmware's license can be found in /usr/share/doc/LICENSE.IPL [ 48.903706] NPE-B: firmware functionality 0x2, revision 0x2:1 [ 48.937363] device eth0 entered promiscuous mode [ 48.977979] br-lan: port 1(eth0) entered forwarding state [ 48.983471] br-lan: port 1(eth0) entered forwarding state [ 49.216307] NPE-C: firmware's license can be found in /usr/share/doc/LICENSE.IPL [ 49.223734] NPE-C: firmware functionality 0x5, revision 0x2:1 [ 50.356329] eth0: link up, speed 100 Mb/s, full duplex [ 50.361688] eth1: link up, speed 100 Mb/s, full duplex [ 50.976075] br-lan: port 1(eth0) entered forwarding state [ 77.246020] random: nonblocking pool is initialized BusyBox v1.23.2 (2015-07-24 19:09:04 CEST) built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- CHAOS CALMER (15.05, r46767) ----------------------------------------------------- * 1 1/2 oz Gin Shake with a glassful * 1/4 oz Triple Sec of broken ice and pour * 3/4 oz Lime Juice unstrained into a goblet. * 1 1/2 oz Orange Juice * 1 tsp. Grenadine Syrup ----------------------------------------------------- root@OpenWrt:/#


Notes

Tags

toh/gateworks/gateworks_avila_gw2342.txt · Last modified: 2015/12/14 20:07 by tmomas