Pirelli Alice Gate W2+
This page is about the above mentioned device also know as AG3 or "Vela".
There are several models of Alice Gate out there.
Hardware Highlights
| CPU | Ram | Flash | Network | USB | Serial | JTag |
|---|---|---|---|---|---|---|
| Broadcom BCM6348KFBG | 16MiB | 8MiB | 4 x 100Mbps | No* | No* | No* |
*Not provided, but support can be added via HW modification. See below
Installation
This section deals with how you install OpenWrt on the device.
You will need a serial adapter!! Don't even try to go further without a serial adapter!!
Support for Alice Gate W2+ is achieved applying the patch below against the svn (tested as far as rev. 33981). https://dl.dropbox.com/u/39223193/OpenWRT_AGA_Vela/Attitude_Adjustment_rev_33981/AGW2%2B_AliceGateW2%2B_20121009.patch
Optionally, you may download the pre-built image based on Attitude Adjustmet rev. 33981 https://dl.dropbox.com/u/39223193/OpenWRT_AGA_Vela/Attitude_Adjustment_rev_33981/openwrt-AliceGateW2%2B-squashfs-cfe.bin
- Power on the router and stop it at CFE prompt
- type "e a" and press enter (to clean up everything and force writing of FW in the first image position)
- Connect your PC to the ethernet (Eth4) port closer to power plug and set an address in 192.168.1.2-254/24 range (e.g. 192.168.1.100/24)
- Browse to http://192.168.1.1/
- Upload .bin file to router
- Wait for it to reboot (allow first boot to up to 5 minutes)
- Telnet to 192.168.1.1 and set a root password
Due to limited resources, LuCI is NOT installed by default. After setting the pw for root, you'll access via ssh
OPTIONAL Image above is built with zram support. To take advantage of it, save the following as zram.sh and run from root (/):
!/bin/bash cd / wget http://downloads.openwrt.org/attitude_adjustment/12.09-beta/brcm63xx/generic/packages/swap-utils_2.21.2-1_brcm63xx.ipk tar -xvzf swap-utils_2.21.2-1_brcm63xx.ipk tar -xvzf data.tar.gz wget http://downloads.openwrt.org/attitude_adjustment/12.09-beta/brcm63xx/generic/packages/libblkid_2.21.2-1_brcm63xx.ipk tar -xvzf libblkid_2.21.2-1_brcm63xx.ipk tar -xvzf data.tar.gz wget http://downloads.openwrt.org/attitude_adjustment/12.09-beta/brcm63xx/generic/packages/libuuid_2.21.2-1_brcm63xx.ipk tar -xvzf libuuid_2.21.2-1_brcm63xx.ipk tar -xvzf data.tar.gz rm -r data.tar.gz control.tar.gz debian-binary swap-utils_2.21.2-1_brcm63xx.ipk libuuid_2.21.2-1_brcm63xx.ipk libblkid_2.21.2-1_brcm63xx.ipk
and add the following lines to /etc/rc.local
echo 100000000 > /sys/block/zram0/disksize mkswap /dev/zram0 swapon -p 5 /dev/zram0
Flash Layout
| Device | Size | Erasesize | Name |
|---|---|---|---|
| mtd0 | 00010000 | 00010000 | CFE |
| mtd1 | 000eff00 | 00010000 | kernel |
| mtd2 | 006f0000 | 00010000 | rootfs |
| mtd3 | 00590000 | 00010000 | rootfs_data |
| mtd4 | 00010000 | 00002000 | nvram |
| mtd5 | 007e0000 | 00010000 | linux |
Terminal Upgrade Process
- Login as root via SSH
- Use the following commands to upgrade.
cd /tmp/ wget <url of new image> mtd -r write <newimage.bin> linux
Bootlogs
OEM bootlog
CFE version 1.0.37-3.1 P6 for BCM96348 (32bit,SP,BE)
Build Date: lun gen 30 13:13:30 CET 2006 (root@linux_gpaolo)
Copyright (C) 2000-2005 Broadcom Corporation.
Boot Address 0xbf000000
Initializing Arena.
Initializing Devices.
Parallel flash device: name AM29LV320MT, id 0x2201, size 8192KB
CPU type 0x29107: 256MHz, Bus: 128MHz, Ref: 32MHz
Total memory: 16777216 bytes (16MB)
Total memory used by CFE: 0x80401000 - 0x805254A0 (1197216)
Initialized Data: 0x8041CD00 - 0x8041EC40 (8000)
BSS Area: 0x8041EC40 - 0x804234A0 (18528)
Local Heap: 0x804234A0 - 0x805234A0 (1048576)
Stack Area: 0x805234A0 - 0x805254A0 (8192)
Text (code) segment: 0x80401000 - 0x8041CCF4 (113908)
Boot area (physical): 0x00526000 - 0x00566000
Relocation Factor: I:00000000 - D:00000000
Board IP address : 192.168.1.1:ffffff00
Host IP address : 192.168.1.100
Board IP address : 192.168.1.1:ffffff00
Host IP address : 192.168.1.100
Gateway IP address :
Run from flash/host (f/h) : f
Default host run file name : vmlinux
Default host flash file name : bcm963xx_fs_kernel
Boot delay (0-9 seconds) : 3
Boot image (0=latest, 1=previous) : 0
Board Id Name : Alice Gate W2+
Psi size in KB : 24
Number of MAC Addresses (1-32) : 13
Base MAC Address : 00:13:xx:xx:xx:xx
Ethernet PHY Type : Internal
Memory size in MB : 16
OpenWrt bootlog
[ 0.000000] Linux version 3.3.8 (xxxx@xxxx) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Thu Nov 1 16:49:28 CET 2012
[ 0.000000] Detected Broadcom 0x6348 CPU revision b0
[ 0.000000] CPU frequency is 256 MHz
[ 0.000000] 16MB of RAM installed
[ 0.000000] registering 37 GPIOs
[ 0.000000] gpiochip_add: registered GPIOs 0 to 36 on device: bcm63xx-gpio
[ 0.000000] board_bcm963xx: Boot address 0xbf000000
[ 0.000000] board_bcm963xx: CFE version: 1.0.37-3.1
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00029107 (Broadcom BMIPS3300)
[ 0.000000] board_bcm963xx: board name: Alice Gate W2+
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 01000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00001000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00001000
[ 0.000000] On node 0 totalpages: 4096
[ 0.000000] free_area_init_node: node 0, pgdat 802a5c80, node_mem_map 8031d000
[ 0.000000] Normal zone: 32 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 4064 pages, LIFO batch:0
[ 0.000000] Reserving 0MB of memory at 0MB for crashkernel
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064
[ 0.000000] Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[ 0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[ 0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
[ 0.000000] Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
[ 0.000000] Memory: 12996k/16384k available (2242k kernel code, 3388k reserved, 406k data, 200k init, 0k highmem)
[ 0.000000] NR_IRQS:128
[ 0.000000] Calibrating delay loop... 254.46 BogoMIPS (lpj=508928)
[ 0.036000] pid_max: default: 32768 minimum: 301
[ 0.040000] Mount-cache hash table entries: 512
[ 0.056000] NET: Registered protocol family 16
[ 0.080000] registering PCI controller with io_map_base unset
[ 0.112000] bio: create slab
Basic configuration
→ Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.
Specific Configuration
Interfaces
The default network configuration is:
| Interface Name | Description | Default configuration |
|---|---|---|
| br-lan | LAN & WiFi | 192.168.1.1/24 |
| eth0 | LAN port (Eth1) | None |
| eth1 | LAN port (Eth2 to 4) | None |
| wl0 | WiFi | Disabled |
Failsafe mode
Hardware
Info
| Architecture: | MIPS |
| Vendor: | Broadcom |
| Bootloader: | CFE |
| System-On-Chip: | brcm63xx |
| CPU/Speed | BCM6348 256 Mhz |
| Flash-Chip: | Macronix MX29LV640MTTC |
| Flash size: | 8192 KiB |
| RAM: | 16 MiB |
| Wireless: | BCM94318MPG (Chipset BCM4318) |
| Ethernet: | Broadcom BCM5325EKQMG w/ vlan support swconfig |
| Internet: | no xDSL driver |
| USB: | Yes 1x 1.1 device. Optional USB 1.1 Master via mod |
| Serial: | Yes, via mod |
| JTAG: | Yes, via mod |
Photos
Opening the case
Serial
→ port.serial general information about the serial port, serial port cable, etc.
How to connect to the Serial Port of this specific device:
Different from other devices AliceGate W2+ needs some HW mods to enable serial port. Serial connector is not present but can be soldered (on the side of the smartcard connector, beside JTAG connector). In addition to solder the serial connector, we have to make some short-circuits (or solder 0 ohms resistors) beside serial connector itself:
R257 R276 R277
Following pictures show the point to short-circuit
Once done, you'll have the serial signals on the connector as per this pinout:
JTAG
→ port.jtag general information about the JTAG port, JTAG cable, etc.
How to connect to the JTAG Port of this specific device:
Similar to the serial port, we need HW mods to anable JTAG also. JTAG connector is not present, but can be soldered (on the side of the smartcard connector, identified as CN3). In addition to solder the connector, we have to make some short-circuits (or solder 0 ohms resistors) to route JTAG signals to the JTAG connector. The resistor to short are on the rear side of the board:
R55 R56 R57 R105 R108
The picture shows the short-circuits.
This is a standard MIPS EJTAG and this is the pinout, when looked from the top.
| Signal | PIN | PIN | Signal |
|---|---|---|---|
| TRST | 1 | 2 | GND |
| TDI | 3 | 4 | GND |
| TDO | 5 | 6 | GND |
| TMS | 7 | 8 | GND |
| TCK | 9 | 10 | GND |
| SRST | 11 | 12 | GND |
Debricking
Hardware mods
- as a beginner, you really should inform yourself about soldering in general and then obtain some practical experience!
Adding a USB 1.1 Master port USB%20HOST%20su%20MODEM%20ROUTER%20WiFi%20Pirelli%20Gate%20W2+%20(Vela).pdf
Notes
Tags
toh/pirelli/alicegatew2.txt · Last modified: 2012/11/01 23:52 by gianfranco74



