Differences

This shows you the differences between two versions of the page.

toh:buffalo:wbmr-g54 [2013/05/02 12:45]
toh:buffalo:wbmr-g54 [2013/11/17 20:06] (current)
Line 12: Line 12:
===== Installation ===== ===== Installation =====
-Use the [[http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar7/generic/|Attitude Adjustment (12.09) generic]] image for the TI AR7 chips (openwrt-ar7-squashfs.bin).+Use the [[http://downloads.openwrt.org/attitude_adjustment/12.09/ar7/generic/|Attitude Adjustment (12.09) generic]] image for the TI AR7 chips (openwrt-ar7-squashfs.bin).
  - -> [[doc:howto:obtain.firmware]]   - -> [[doc:howto:obtain.firmware]]
Line 43: Line 43:
=== Specific values you need === === Specific values you need ===
-| Adam2 bootloader default IPv4 address | 192.168.1.1 |+| Adam2 bootloader default IPv4 address | 192.168.1.1 or 5.8.8.8 |
| Adam2 bootloader FTP user | adam2 | | Adam2 bootloader FTP user | adam2 |
| Adam2 bootloader FTP password | adam2 | | Adam2 bootloader FTP password | adam2 |
| FTP client IPv4 address (your computer) | Anything in the 192.168.1.0/24 range* | | FTP client IPv4 address (your computer) | Anything in the 192.168.1.0/24 range* |
-* of course, your computer must not have the same IP address as the router, so anything between 192.168.1.2 and 192.168.1.254 is fine+* of course, your computer must not have the same IP address as the router, so anything between 192.168.1.2 and 192.168.1.254 is fine (resp. 5.8.8.9 to 5.8.8.254)
=== Procedure === === Procedure ===
 +0) Download original firmware
 +
 +It's not possible to download an original firmware image from Buffalo's website. So you'll need to get it from your own device, in case you ever want to reinstall it.
 +
 +I tried the [[http://ar7.wikispaces.com/ADAM2#toc15|thttpd method]], but the device would hang hard whenever I tried to retrieve a large file (mtd0 or mtd4 contents). So I used [[http://lists.busybox.net/pipermail/busybox/2003-February/007972.html|Busybox TFTP client]] instead.
 +
 +After the device had booted, my laptop got the IP address 192.168.11.5 from its DHCP server. I started tftpd on the laptop:
 +
 +<code>
 +sudo apt-get install tftpd-hpa
 +sudo mkdir -p /var/lib/tftpboot/uploads
 +sudo chmod a+w /var/lib/tftpboot/uploads
 +sudo /usr/sbin/in.tftpd -L  --user tftp --address 0.0.0.0:69 --secure --create /var/lib/tftpboot
 +</code>
 +
 +And then connected to the Buffalo and asked it to send each file by TFTP:
 +
 +<code>
 +chris@lap-x201:~/projects/openwrt$ telnet 192.168.11.1
 +Trying 192.168.11.1...
 +Connected to 192.168.11.1.
 +Escape character is '^]'.
 +
 +BusyBox on (none) login: admin
 +Password: admin
 +
 +# tftp -p -l /dev/mtdblock/0 -r uploads/mtd0.bin 192.168.11.5
 +# tftp -p -l /dev/mtdblock/1 -r uploads/mtd1.bin 192.168.11.5
 +tftp: read: Input/output error
 +# tftp -p -l /dev/mtdblock/2 -r uploads/mtd2.bin 192.168.11.5
 +# tftp -p -l /dev/mtdblock/3 -r uploads/mtd3.bin 192.168.11.5
 +# tftp -p -l /dev/mtdblock/4 -r uploads/mtd4.bin 192.168.11.5
 +</code>
 +
 +For some reason I can't get the whole of mtd1. I don't know whether it matters. I suspect it's because mtd1 isn't aligned on a block boundary:
 +
 +<code>
 +Looking for mtd device :mtd0:
 +Found a mtd0 image (0x91000), with size (0x35f000).
 +Creating 1 MTD partitions on "Physically mapped flash:0":
 +0x00091000-0x003f0000 : "mtd0"
 +mtd: partition "mtd0" doesn't start on an erase block boundary -- force read-only
 +Looking for mtd device :mtd1:
 +Found a mtd1 image (0x10090), with size (0x7ff70).
 +Creating 1 MTD partitions on "Physically mapped flash:0":
 +0x00010090-0x00090000 : "mtd1"
 +mtd: partition "mtd1" doesn't start on an erase block boundary -- force read-only
 +Looking for mtd device :mtd2:
 +Found a mtd2 image (0x0), with size (0x10000).
 +Creating 1 MTD partitions on "Physically mapped flash:0":
 +0x00000000-0x00010000 : "mtd2"
 +Looking for mtd device :mtd3:
 +Found a mtd3 image (0x3f0000), with size (0x10000).
 +Creating 1 MTD partitions on "Physically mapped flash:0":
 +0x003f0000-0x00400000 : "mtd3"
 +Looking for mtd device :mtd4:
 +Found a mtd4 image (0x10000), with size (0x3e0000).
 +Creating 1 MTD partitions on "Physically mapped flash:0":
 +0x00010000-0x003f0000 : "mtd4"
 +</code>
 +
1) Power off the device 1) Power off the device
Line 155: Line 216:
If after 2 or 3 minutes you see no hashes, just a few of them appear but they stop without printing the "226 Transfer complete." message, then something wrong happened (most probably, the image you tried to upload was not the right one). Go to step 1 and repeat the process, double checking you are uploading the right file. Retrying should not damage the device nor brick it. If after 2 or 3 minutes you see no hashes, just a few of them appear but they stop without printing the "226 Transfer complete." message, then something wrong happened (most probably, the image you tried to upload was not the right one). Go to step 1 and repeat the process, double checking you are uploading the right file. Retrying should not damage the device nor brick it.
 +
 +I found that Dropbox UDP packets going out on the ethernet interface were causing ADAM to get confused and stop the transfer in the middle of flashing. I had to use iptables to prevent all traffic not destined to ADAM from going out on the Ethernet interface to flash successfully.
If you see all the hashes and the "226 Transfer complete." message, the firmware has been successfully uploaded. The device should reboot itself immediately, but you can issue the following commands to reboot it and terminate the FTP session: If you see all the hashes and the "226 Transfer complete." message, the firmware has been successfully uploaded. The device should reboot itself immediately, but you can issue the following commands to reboot it and terminate the FTP session:
Line 178: Line 241:
<p style="padding: 10px;border:1px solid grey;height:200px;font:10px/14px Georgia, Garamond, Serif;overflow:Auto;background-color:#FFFFFF"> <p style="padding: 10px;border:1px solid grey;height:200px;font:10px/14px Georgia, Garamond, Serif;overflow:Auto;background-color:#FFFFFF">
<code> <code>
 +ADAM2 Revision 0.22.02_b04_Mar  9 2005
 +(C) Copyright 1996-2003 Texas Instruments Inc. All Rights Reserved.
 +(C) Copyright 2003 Telogy Networks, Inc.
 +Usage: setmfreq [-d] [-s sys_freq, in MHz] [cpu_freq, in MHz]
 +Memory optimization Complete!
 +
 +Adam2_AR7RD >
 +Press any key to abort OS load, or wait 7 seconds for OS to boot...
 +
 +Adam2_AR7RD > printenv
 +memsize              0x01000000
 +flashsize            0x00400000
 +modetty0              38400,n,8,1,hw
 +modetty1              38400,n,8,1,hw
 +bootserport          tty0
 +cpufrequency          150000000
 +sysfrequency          125000000
 +bootloaderVersion    0.22.02
 +Adam2_Release        0.22.02_b04_Mar  9 2005
 +ProductID            AR7RD
 +HWRevision            Unknown
 +SerialNumber          00:16:01:A1:39:77
 +my_ipaddress          5.8.8.8
 +prompt                Adam2_AR7RD
 +firstfreeaddress      0x9401d888
 +req_fullrate_freq    125000000
 +maca                  00:16:01:A1:39:77
 +mtd0                  0x90091000,0x903f0000
 +mtd1                  0x90010090,0x90090000
 +mtd2                  0x90000000,0x90010000
 +mtd3                  0x903f0000,0x90400000
 +autoload              1
 +pppoe_sid            0
 +pppoe_dmac            0:0:0:0:0:0
 +mtd4                  0x90010000,0x903f0000
 +autoload_timeout      7
 +StaticBuffer          120
 +vcc_encaps0          0.0
 +vcc_encaps1          0.0
 +vcc_encaps2          0.0
 +vcc_encaps3          0.0
 +vcc_encaps4          0.0
 +vcc_encaps5          0.0
 +vcc_encaps6          0.0
 +vcc_encaps7          0.0
 +connection0          0
 +mac_ap                00:16:01:A1:39:76
 +SW_FEATURES          0XC000
 +modulation            0xffff
 +eoc_vendor_id        0x414C504841000000
 +enable_margin_retrain  1
 +eoc_vendor_serialnum  00:16:01:A1:39:77_00000000000000
 +eoc_vendor_revision  20060721
 +HWA_0                00:15:E9:CE:69:C3
 +usb_vid              0x0
 +usb_pid              0x0
 +usb_man              N/A
 +usb_prod              N/A
 +invntry_vernum        2006072100000000
 +Adam2_AR7RD > help
 + Commands Description
 + -------- -----------
 +        h/help Displays the commands supported
 +          info Displays board information
 +          memop Memory Optimization
 +      setmfreq configures/dumps the system and cpu frequencies
 +            dm Dump memory at &lt;address&gt;
 +          erase Erase Flash except Adam2 Kernel and Env space
 +      printenv Displays Env. Variables
 +        setenv Sets Env. variable &lt;var&gt; with a value &lt;val&gt;
 +      unsetenv Unsets the Env. variable &lt;var&gt;
 +        fixenv Defragment for Env. space
 +            go Loads the image starting at address &lt;mtd1&gt;
 +
 +Adam2_AR7RD > info
 +Monitor Revision              0.22.02
 +Monitor Compilation time      Mar  9 2005, 12:45:34
 +Endianness                    Little
 +External Memory rate          Full, 16 bit wide
 +CPU Frequency                150 MHz
 +
 +Adam2_AR7RD > go
 +
 +-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/
 +
 +Launching kernel decompressor.
 +Starting LZMA Uncompression Algorithm.
 +Compressed file is LZMA format.
 +Kernel decompressor was successful ... launching kernel.
 +
 +LINUX started...
 +Config serial console: ttyS0,38400
 +Auto Detection SANGAM chip
 +This SOC has MDIX cababilities on chip.
 +WLAN 1130 chip configured.
 +CONFIG_AVALANCHE_VLYNQ_POLARITY_LOW
 +Success in setting up the VLYNQ.
 +CPU revision is: 00018448
 +Primary instruction cache 16kb, linesize 16 bytes (4 ways)
 +Primary data cache 16kb, linesize 16 bytes (4 ways)
 +Number of TLB entries 16.
 +Linux version 2.4.17_mvl21-malta-mips_fp_le (justin@TANGO) (gcc version 2.95.3 20010315 (release/MontaVista)) #1 Fri Jul 21 09:59:49 CST 2006
 +Determined physical RAM map:
 + memory: 14000000 @ 00000000 (reserved)
 + memory: 00020000 @ 14000000 (ROM data)
 + memory: 00fe0000 @ 14020000 (usable)
 +On node 0 totalpages: 4096
 +zone(0): 4096 pages.
 +zone(1): 0 pages.
 +zone(2): 0 pages.
 +Kernel command line:
 +calculating r4koff... 000b71b0(750000)
 +CPU frequency 150.00 MHz
 +Calibrating delay loop... 149.91 BogoMIPS
 +Freeing Adam2 reserved memory [0x14001000,0x0001f000]
 +Memory: 14204k/16384k available (1624k kernel code, 2180k reserved, 127k data, 64k init)
 +Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
 +Inode-cache hash table entries: 1024 (order: 1, 8192 bytes)
 +Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
 +Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
 +Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
 +Checking for 'wait' instruction...  unavailable.
 +POSIX conformance testing by UNIFIX
 +Linux NET4.0 for Linux 2.4
 +Based upon Swansea University Computer Society NET3.039
 +TI Optimizations: Allocating TI-Cached Memory Pool.
 +Using 120 Buffers for TI-Cached Memory Pool.
 +DEBUG: Using Hybrid Mode.
 +NSP Optimizations: Succesfully allocated TI-Cached Memory Pool.
 +Initializing RT netlink socket
 +Starting kswapd
 +Disabling the Out Of Memory Killer
 +devfs: v1.7 (20011216) Richard Gooch (rgooch@atnf.csiro.au)
 +devfs: boot_options: 0x1
 +Adam2 environment variables API installed.
 +pty: 32 Unix98 ptys configured
 +Serial driver version 5.05c (2001-07-08) with no serial options enabled
 +ttyS00 at 0xa8610e00 (irq = 15) is a 16550A
 +ttyS01 at 0xa8610f00 (irq = 16) is a 16550A
 +Installed misc driver vlynq0: it handles vlynq bridge0 with 1 hop(s).
 +block: 64 slots per queue, batch=16
 +DEBUG: Initializing the voice port management module.
 +DEBUG: Initialization of the voice port management module successful..
 +CPMAC Auto Detect Enabled: detected external PHY and external switch as well..
 +Error getting CPMAC Configuration params for instance:0
 +Environment Variable:MACCFG_A not set in bootloader
 +Setting Default configuration params for CPMAC instance:0
 +##### reg=0, phy=5, ChipID=1023, adm6996_ChipId=1022 #####
 +Default Asymmetric MTU for eth0 1500
 +TI CPMAC Linux DDA version 1.8 - CPMAC DDC version 0.2
 +Cpmac: Installed 1 instances.
 +Cpmac driver is allocating buffer memory at init time.
 +PPP generic driver version 2.4.1
 +avalanche flash device: 0x400000 at 0x10000000.
 + Amd/Fujitsu Extended Query Table v1.1 at 0x0040
 +number of CFI chips: 1
 +Looking for mtd device :mtd0:
 +Found a mtd0 image (0x91000), with size (0x35f000).
 +Creating 1 MTD partitions on "Physically mapped flash:0":
 +0x00091000-0x003f0000 : "mtd0"
 +mtd: partition "mtd0" doesn't start on an erase block boundary -- force read-only
 +Looking for mtd device :mtd1:
 +Found a mtd1 image (0x10090), with size (0x7ff70).
 +Creating 1 MTD partitions on "Physically mapped flash:0":
 +0x00010090-0x00090000 : "mtd1"
 +mtd: partition "mtd1" doesn't start on an erase block boundary -- force read-only
 +Looking for mtd device :mtd2:
 +Found a mtd2 image (0x0), with size (0x10000).
 +Creating 1 MTD partitions on "Physically mapped flash:0":
 +0x00000000-0x00010000 : "mtd2"
 +Looking for mtd device :mtd3:
 +Found a mtd3 image (0x3f0000), with size (0x10000).
 +Creating 1 MTD partitions on "Physically mapped flash:0":
 +0x003f0000-0x00400000 : "mtd3"
 +Looking for mtd device :mtd4:
 +Found a mtd4 image (0x10000), with size (0x3e0000).
 +Creating 1 MTD partitions on "Physically mapped flash:0":
 +0x00010000-0x003f0000 : "mtd4"
 +NET4: Linux TCP/IP 1.0 for NET4.0
 +IP Protocols: ICMP, UDP, TCP, IGMP
 +IP: routing cache hash table of 512 buckets, 4Kbytes
 +TCP: Hash tables configured (established 1024 bind 1024)
 +Linux IP multicast router 0.06 plus PIM-SM
 +ip_conntrack version 2.0 (128 buckets, 4096 max) - 364 bytes per conntrack
 +ip_tables: (c)2000 Netfilter core team
 +netfilter PSD loaded - (c) astaro AG
 +NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
 +NET4: Ethernet Bridge 008 for NET4.0
 +Initializing the WAN Bridge.
 +Please set the MAC Address for the WAN Bridge.
 +Set the Environment variable 'wan_br_mac'.
 +MAC Address should be in the following format: xx.xx.xx.xx.xx.xx
 +VFS: Mounted root (squashfs filesystem) readonly.
 +Mounted devfs on /dev
 +Freeing unused kernel memory: 64k freed
 +serial console detected.  Disabling virtual terminals.
 +console=/dev/tts/0
 +init started:  BusyBox v0.61.pre (2006.07.21-02:02+0000) multi-call binary
 +Starting pid 9, console /dev/tts/0: '/etc/init.d/rcS'
 +Algorithmics/MIPS FPU Emulator v1.5
 + Reading Standard Configuration File /etc/led.conf
 +
 + Configured 23 states
 +Using /lib/modules/2.4.17_mvl21-malta-mips_fp_le/kernel/drivers/atm/tiatm.o
 +registered device TI Avalanche SAR
 +Sangam detected
 +DSP binary filesize = 356930 bytes
 +tn7dsl_set_modulation : Setting mode to 0xffff
 +Texas Instruments ATM driver: version:[6.00.01.00]
 +Waiting for enter to start '/bin/sh' (pid 32, terminal /dev/tts/0)
 +
 +Please press Enter to activate this console.
 +###### AOSS: Wait system init time starting ######
 +
 +
 +*** diap  wait system init 35 sec start
 +exec> /usr/bin/cm_logic -m /dev/ticfg -c /etc/config.xml
 +logic: /proc/led_mod/ar7reset: [0]
 +
 +DEMO demo_register
 +vlan vlan_register
 +Logger: Setting remote_loglevel=notice (5)
 +Setting loglevel=notice (5)
 +###############
 +
 +password=admin
 +
 +===>bridge set ZIPB_MODE deactive in init
 +
 +===>bridge set ZIPB_MODE deactive in init
 +
 +
 +### open dev file result:12
 +
 +Disable_igmp_snooping_register!!!
 +DEMO demo_init
 +vlan vlan_init
 +
 +httpd_str:/usr/sbin/thttpd -g -d /usr/www -u root -p 80 -c /cgi-bin/* &
 +time_init: syncmode:1, daylight:2, timezone:22
 +time_init: ntpserver is time.nist.gov
 +
 +Save /proc/ticfg/env to /var/tmp/env.txt for PPPOE_RECONNECT_ISSUE
 +
 +
 +Eth MAC:00:16:01:A1:39:77
 +
 +init_qos_table at qos module
 +DEMO demo_start
 +tn7dsl_set_modulation : Setting mode to 0xffff
 +Upstream rate has changed(Prev=0, Curr=0).
 +
 +Default Asymmetric MTU for nas0 1500
 +DEBUG: Registering protocol inspector: 0x94163bf8 for VCC:0x9401ca00
 +assign_vcc start find dhcpc
 +
 +FIND :module->id:dhcpc0,type:dhcpc
 +
 +/sbin/ifconfig nas0 hw ether 00:16:01:A1:39:77
 +iptables -A OUTPUT -t mangle -p udp --dport 49152:49156 -j MARK --set-mark 66
 +iptables -A OUTPUT -t mangle -p udp --dport 5060:5061 -j MARK --set-mark 66
 +tc qdisc add dev nas0 root handle 66:0 prio bands 8 priomap 4 4 4 4 4 4 4 4
 +tc qdisc add dev nas0 parent 66:1 pfifo limit 20
 +tc qdisc add dev nas0 parent 66:2 pfifo limit 20
 +tc qdisc add dev nas0 parent 66:3 pfifo limit 20
 +tc qdisc add dev nas0 parent 66:4 pfifo limit 20
 +tc qdisc add dev nas0 parent 66:5 pfifo limit 20
 +tc filter add dev nas0 parent 66:0 protocol all  prio 3 handle 66  fw classid 66:1
 +
 +do SNMP now!!!
 +
 +
 +do tr069 now!!!
 +
 +exec> /usr/bin/cm_klogd /dev/klog
 +exec> /sbin/dproxy -c /etc/resolv.conf -d
 +exec> /usr/sbin/wlan/wpa_authenticator
 +exec> /usr/sbin/brctl addbr br0
 +exec> /usr/sbin/brctl addbr br1
 +exec> /usr/sbin/demod
 +exec> /usr/sbin/ddnsd
 +exec> /sbin/ifconfig eth0 up
 +exec> /usr/sbin/udhcpc -i nas0 -x
 +exec> /sbin/iptables -I FORWARD -i ! br0 -p icmp --icmp-type echo-request -m state --state NEW -j DROP
 +DDNSD msgget success  0
 +DDNSD wait order queue
 +exec> /sbin/ifconfig br0 up
 +exec> /sbin/ifconfig br1 up
 +exec> /sbin/iptables -I INPUT -p udp --dport 161 -j ACCEPT
 +===>bridge ZIPB disable
 +
 +exec> /sbin/iptables -I INPUT -p tcp --dport 8082 -j ACCEPT
 +notify kernel event successful!
 +
 +exec> /sbin/iptables -I INPUT -p igmp -j ACCEPT
 +exec> /sbin/iptables -I FORWARD -p igmp -j ACCEPT
 +exec> /sbin/iptables -I FORWARD -i ! br0 -p udp --dport 520 -j DROP
 +exec> /sbin/iptables -I INPUT -i ! br0 -p udp --dport 67 -j DROP
 +===>bridge ZIPB disable
 +
 +notify kernel event successful!
 +
 +exec> /sbin/iptables -I FORWARD -i ! br0 -p udp --dport 67 -j DROP
 +exec> /sbin/iptables -I FORWARD -i ! br0 -p udp --dport 53 -j DROP
 +exec> /sbin/iptables -I FORWARD -i ! br0 -p tcp --dport 53 -j DROP
 +exec> /sbin/ifconfig br0 up
 +exec> /sbin/insmod tiap.o
 +exec> /sbin/iptables -I INPUT -i ! br0 -p udp --dport 500 -j ACCEPT
 +exec> /sbin/ifconfig br1 up
 +exec> /usr/sbin/brctl setfilter br0 1
 +exec> /sbin/iptables -I FORWARD -i ! br0 -p udp --dport 500 -j ACCEPT
 +exec> /sbin/iptables -I FORWARD -i ! br0 -p tcp --dport 20 -j DROP
 +exec> /sbin/ifconfig br0 192.168.11.1 netmask 255.255.255.0
 +=========open==========
 +
 +gwanip = 0.0.0.0
 +
 +=========close==========
 +
 +DEMO ddnsd_ctrl msgget success 0
 +DEMO ddnsd_ctrl read /var/tmp/ddnsd.conf get IP 0.0.0.0
 +DDNSD msgrcv user UserName pass PassWord host HostName DdnsCB.enable 0 hostIp 0.0.0.0
 +DDNSD sleep 5 sec
 +DEMO ddnsd_ctrl msgsnd success
 +exec> /sbin/iptables -I FORWARD -i ! br0 -p tcp --dport 21 -j DROP
 +exec> /usr/sbin/brctl setfilter br1 1
 +exec> /sbin/ifconfig br1 0.0.0.0
 +exec> /sbin/iptables -I FORWARD -i ! br0 -p tcp --dport 23 -j DROP
 +exec> /usr/sbin/udhcpd /var/tmp/udhcpd.conf
 +exec> /sbin/route add -net 239.0.0.0 netmask 255.0.0.0 metric 1 dev br0
 +exec> /sbin/iptables -I INPUT 1 -p udp --dport 5060 -j ACCEPT
 +exec> /usr/sbin/brctl addif br0 eth0
 +exec> /sbin/iptables -I INPUT 1 -p udp --dport 5061 -j ACCEPT
 +exec> /sbin/iptables -t nat -A POSTROUTING -o ! br0 -j MASQUERADE
 +exec> /sbin/iptables -A OUTPUT -o ! br0 -p icmp --icmp-type 3 -j DROP
 +exec> /sbin/iptables -A OUTPUT -o ! br0 -p icmp -m state --state INVALID -j DROP
 +exec> /sbin/iptables -D FORWARD -i ! br0 -m state --state RELATED,ESTABLISHED -j ACCEPT
 +exec> /usr/sbin/udhcpd /var/tmp/udhcpd.conf
 +exec> /usr/sbin/brctl stp br0 off
 +exec> /sbin/iptables -A INPUT -i lo -j ACCEPT
 +exec> /usr/sbin/brctl stp br1 off
 +exec> /sbin/iptables -A INPUT -i ! br0 -j DROP
 +exec> /sbin/iptables -I INPUT -i ! br0 -m state --state RELATED,ESTABLISHED -j ACCEPT
 +exec> /sbin/iptables -I FORWARD -i ! br0 -m state --state RELATED,ESTABLISHED -j ACCEPT
 +exec> /sbin/ifconfig eth0 0.0.0.0 up
 +exec> /sbin/iptables -A FORWARD -i ! br0 -j DROP
 +exec> /sbin/iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1360
 +exec> /usr/sbin/brctl setfilter br0 1
 +DDNSD wait order queue
 +exec> /sbin/ifconfig wlan0 up
 +exec> /usr/sbin/brctl addif br0 wlan0
 +exec> /sbin/ifconfig wlan0 0.0.0.0 up
 +AOSS read LAN MAC = 00:16:01:a1:39:77
 +AOSS read AP MAC = 00:16:01:a1:39:76
 +AOSS_Cfg_Get: ApEnabled = 1
 +AOSS_Cfg_Get: Hidden = 0
 +AOSS_Cfg_Get: AccessType = 0
 +AOSS_Cfg_Get: Essid = YOUNGLINK
 +AOSS_Cfg_Get: PrivacyType = 1
 +AOSS_Cfg_Get: WepPrivacyState = 0
 +AOSS_Cfg_Get: WepAuthType = 2
 +AOSS_Cfg_Get: KeyType = 1
 +AOSS_Cfg_Get: DefkeyId = 0
 +AOSS_Cfg_Get: KeyLen[0] = 5
 +AOSS_Cfg_Get: KeyValue[0] = MELCO
 +AOSS_Cfg_Get: KeyLen[1] = 0
 +AOSS_Cfg_Get: KeyValue[1] =
 +AOSS_Cfg_Get: KeyLen[2] = 0
 +AOSS_Cfg_Get: KeyValue[2] =
 +AOSS_Cfg_Get: KeyLen[3] = 0
 +AOSS_Cfg_Get: KeyValue[3] =
 +AOSS_Cfg_Get: PskType = 2
 +AOSS_Cfg_Get: PskValue = ALISON1979
 +AOSS_Cfg_Get: Interval = 3600
 +AOSS_Cfg_Get: Cipher = 2
 +AOSS_Cfg_Get: SecurityLevel = 7
 +AOSS_Cfg_Get: Ipaddress = 0x010ba8c0 (192.168.11.1)
 +AOSS_Cfg_Get: Netmask = 0x00ffffff (255.255.255.0)
 +AOSS_Cfg_Get: NumClient = 0
 +AOSS_Cfg_Get: Client[0].StaName =
 +AOSS_Cfg_Get: Client[0].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[0].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[0].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[1].StaName =
 +AOSS_Cfg_Get: Client[1].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[1].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[1].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[2].StaName =
 +AOSS_Cfg_Get: Client[2].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[2].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[2].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[3].StaName =
 +AOSS_Cfg_Get: Client[3].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[3].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[3].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[4].StaName =
 +AOSS_Cfg_Get: Client[4].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[4].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[4].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[5].StaName =
 +AOSS_Cfg_Get: Client[5].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[5].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[5].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[6].StaName =
 +AOSS_Cfg_Get: Client[6].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[6].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[6].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[7].StaName =
 +AOSS_Cfg_Get: Client[7].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[7].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[7].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[8].StaName =
 +AOSS_Cfg_Get: Client[8].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[8].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[8].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[9].StaName =
 +AOSS_Cfg_Get: Client[9].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[9].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[9].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[10].StaName =
 +AOSS_Cfg_Get: Client[10].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[10].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[10].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[11].StaName =
 +AOSS_Cfg_Get: Client[11].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[11].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[11].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[12].StaName =
 +AOSS_Cfg_Get: Client[12].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[12].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[12].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[13].StaName =
 +AOSS_Cfg_Get: Client[13].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[13].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[13].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[14].StaName =
 +AOSS_Cfg_Get: Client[14].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[14].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[14].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[15].StaName =
 +AOSS_Cfg_Get: Client[15].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[15].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[15].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[16].StaName =
 +AOSS_Cfg_Get: Client[16].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[16].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[16].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[17].StaName =
 +AOSS_Cfg_Get: Client[17].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[17].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[17].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[18].StaName =
 +AOSS_Cfg_Get: Client[18].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[18].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[18].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[19].StaName =
 +AOSS_Cfg_Get: Client[19].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[19].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[19].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[20].StaName =
 +AOSS_Cfg_Get: Client[20].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[20].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[20].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[21].StaName =
 +AOSS_Cfg_Get: Client[21].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[21].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[21].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[22].StaName =
 +AOSS_Cfg_Get: Client[22].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[22].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[22].ConnectAllow = 1
 +AOSS_Cfg_Get: Client[23].StaName =
 +AOSS_Cfg_Get: Client[23].MacAddr = 00:00:00:00:00:00
 +AOSS_Cfg_Get: Client[23].EncryptLevel = 0
 +AOSS_Cfg_Get: Client[23].ConnectAllow = 1
 +
 +###### AOSS: Initialized OK! ######
 +
 +
 +Starting pid 32, console /dev/tts/0: '/bin/sh'
 +
-OEM bootlog not available!+BusyBox v0.61.pre (2006.07.21-02:02+0000) Built-in shell (ash) 
 +Enter 'help' for a list of built-in commands.
 +# uname -a
 +uname: No such file or directory
 +# ls
 +bin      etc      proc    usr      var.tar
 +dev      lib      sbin    var
 +#
 +*** diap  wait system init 35 sec end
 +ls -la /dev
 +drwxr-xr-x    1 0        0              0 Jan  1  1970 .
 +drwxrwxrwx    1 500      500            68 Jul 21  2006 ..
 +crw-------    1 0        0          8,  0 Jan  1  1970 .devfsd
 +crw-------    1 0        0          5,  1 Jan  1 12:00 console
 +drwxr-xr-x    1 0        0              0 Jan  1  1970 cua
 +crw-rw-rw-    1 0        0          1,  7 Jan  1  1970 full
 +srwxr-xr-x    1 0        0              0 Jan  1 12:00 klog
 +crw-r-----    1 0        0          1,  2 Jan  1  1970 kmem
 +crw-rw-rw-    1 0        0          8,  2 Jan  1  1970 led
 +srwxr-xr-x    1 0        0              0 Jan  1 12:00 log
 +crw-r-----    1 0        0          1,  1 Jan  1  1970 mem
 +drwxr-xr-x    1 0        0              0 Jan  1  1970 misc
 +drwxr-xr-x    1 0        0              0 Jan  1  1970 mtdblock
 +drwxr-xr-x    1 0        0              0 Jan  1  1970 netlink
 +crw-rw-rw-    1 0        0          1,  3 Jan  1  1970 null
 +crw-r-----    1 0        0          1,  4 Jan  1  1970 port
 +crw-------    1 0        0        108,  0 Jan  1  1970 ppp
 +crw-rw-rw-    1 0        0          5,  2 Jan  1  1970 ptmx
 +drwxr-xr-x    1 0        0              0 Jan  1  1970 pts
 +drwxr-xr-x    1 0        0              0 Jan  1  1970 pty
 +crw-r--r--    1 0        0          1,  8 Jan  1  1970 random
 +lr-xr-xr-x    1 0        0              10 Jan  1  1970 root -> mtdblock/0
 +drwxr-xr-x    1 0        0              0 Jan  1  1970 shm
 +crw-rw----    1 0        0          8,  1 Jan  1  1970 ticfg
 +drwxr-xr-x    1 0        0              0 Jan  1  1970 tts
 +crw-rw-rw-    1 0        0          5,  0 Jan  1  1970 tty
 +crw-r--r--    1 0        0          1,  9 Jan  1  1970 urandom
 +crw-rw-rw-    1 0        0          1,  5 Jan  1  1970 zero
 +# # ls -la /dev/mtdblock
 +drwxr-xr-x    1 0        0              0 Jan  1  1970 .
 +drwxr-xr-x    1 0        0              0 Jan  1  1970 ..
 +brw-rw-rw-    1 0        0        31,  0 Jan  1  1970 0
 +brw-rw-rw-    1 0        0        31,  1 Jan  1  1970 1
 +brw-rw-rw-    1 0        0        31,  2 Jan  1  1970 2
 +brw-rw-rw-    1 0        0        31,  3 Jan  1  1970 3
 +brw-rw-rw-    1 0        0        31,  4 Jan  1  1970 4
</code> </code>
</p> </p>
Line 339: Line 928:
===== Basic configuration ===== ===== Basic configuration =====
 +After installation I was unable to ping the device. I could see my ARP packets being mirrored back out on VLANs 1 and 2, but the device didn't actually respond to them:
 +
 +<code>
 +14:07:53.472495 f0:de:f1:44:49:68 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 192.168.1.1 (ff:ff:ff:ff:ff:ff) tell 192.168.1.5, length 28
 +14:07:53.473229 f0:de:f1:44:49:68 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 64: vlan 2, p 0, ethertype ARP, Request who-has 192.168.1.1 (ff:ff:ff:ff:ff:ff) tell 192.168.1.5, length 46
 +14:07:53.473243 f0:de:f1:44:49:68 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 64: vlan 1, p 0, ethertype ARP, Request who-has 192.168.1.1 (ff:ff:ff:ff:ff:ff) tell 192.168.1.5, length 46
 +</code>
 +
 +I discovered that I could work around it by removing the VLAN devices and adding them again, using the following commands:
 +
 +<code>
 +vconfig rem eth0.1
 +vconfig rem eth0.2
 +vconfig add eth0 1
 +vconfig add eth0 2
 +brctl addif br-lan eth0.1
 +brctl addif br-lan eth0.2
 +</code>
 +
 +I can't see what it changes, but this fix persists across reboots and even power off. Reflashing the firmware image breaks it again, though. Go figure.
===== Specific Configuration ===== ===== Specific Configuration =====
Line 365: Line 974:
| **[[doc:hardware:cpu|CPU]]/Speed**        | Infineon PSB7300AZDW (apparently, equivalent to TNETD7300AZDW) | | **[[doc:hardware:cpu|CPU]]/Speed**        | Infineon PSB7300AZDW (apparently, equivalent to TNETD7300AZDW) |
| **Flash-Chip:**      | [[http://www.rockbox.org/wiki/pub/Main/SansaConnect/K8D3216UBC.pdf|Samsung K8D3216UBC]] | | **Flash-Chip:**      | [[http://www.rockbox.org/wiki/pub/Main/SansaConnect/K8D3216UBC.pdf|Samsung K8D3216UBC]] |
-| **Flash size:**      | 8192 KiB |+| **Flash size:**      | 4096 KiB |
| **RAM:**            | 16 MiB  | | **RAM:**            | 16 MiB  |
-| **Wireless:**        | ? |+| **Wireless:**        | TI TNETW1130-based wireless network card, TI ACX100, acx-mac80211 |
| **Ethernet:**        | Infineon ADM6996Mwith vlan support [[doc:techref:swconfig]] | | **Ethernet:**        | Infineon ADM6996Mwith vlan support [[doc:techref:swconfig]] |
| **Internet:**        | ADSL2+ | | **Internet:**        | ADSL2+ |
Line 373: Line 982:
| **[[doc:hardware:port.serial|Serial]]:**          | [[#Serial|Yes]] | | **[[doc:hardware:port.serial|Serial]]:**          | [[#Serial|Yes]] |
| **[[doc:hardware:port.jtag|JTAG]]:**            | [[#JTAG|?]]  | | **[[doc:hardware:port.jtag|JTAG]]:**            | [[#JTAG|?]]  |
- 
==== Photos ==== ==== Photos ====
Line 400: Line 1008:
This device has a 5-pins header providing a serial port, labeled JP6. The pins are, left to right: This device has a 5-pins header providing a serial port, labeled JP6. The pins are, left to right:
-Pin 1 -> RXD (data from outside to the board) +  * Pin 1 -> RXD (data from outside to the board) 
-Pin 2 -> ? (unknown, probably not used) + * Pin 2 -> ? (unknown, probably not used) 
-Pin 3 -> VCC (+3.3 V) + * Pin 3 -> VCC (+3.3 V) **DO NOT CONNECT** 
-Pin 4 -> GND (ground) + * Pin 4 -> GND (ground) 
-Pin 5 -> TXD (data from the board to the outside)+ * Pin 5 -> TXD (data from the board to the outside)
The communication settings of the serial port are 38400 bps, 8 stop bits, 1 bit of parity, no hardware control flow, no software control flow. The communication settings of the serial port are 38400 bps, 8 stop bits, 1 bit of parity, no hardware control flow, no software control flow.
-The serial port can not be directly connected to a PC serial port, due to the different voltages they use. To connect the board to a computer via the serial port, a [[http://en.wikipedia.org/wiki/Transistor%E2%80%93transistor_logic|TTL]] to [[http://en.wikipedia.org/wiki/RS-232|RS232]] voltage level converter is required. There are many USB to TTL adaptors available, like those based on the [[http://en.wikipedia.org/wiki/MAX232|MAX232]] or the CP210 chips.+The serial port can not be directly connected to a PC serial port, due to the different voltages they use. To connect the board to a computer via the serial port, a [[http://en.wikipedia.org/wiki/Transistor%E2%80%93transistor_logic|TTL]] to [[http://en.wikipedia.org/wiki/RS-232|RS232]] voltage level converter is required. There are many USB to TTL adaptors available, like those based on the [[http://en.wikipedia.org/wiki/MAX232|MAX232]] or the [[http://www.ebay.com/sch/i.html?_nkw=cp2102|CP210 chips]].
The [[doc:hardware:port.serial]] page features general information about the serial port, serial port cables, etc. The [[doc:hardware:port.serial]] page features general information about the serial port, serial port cables, etc.
Line 415: Line 1023:
{{:media:buffalo_wbmr-g54_serial_port_pins.jpg|}} {{:media:buffalo_wbmr-g54_serial_port_pins.jpg|}}
- 
==== JTAG ==== ==== JTAG ====
Line 438: Line 1045:
===== Tags ===== ===== Tags =====
-{{tag> FastEthernet 4Port 1PHY Serial MiniPCI 802.11bg 1Radio 1Ant DetachableAntenna 16RAM 4Flash ADSL2+ MIPS AR7}}+{{tag>FastEthernet 1NIC 1WNIC 4Port Serial MiniPCI 802.11bg 1Ant DetachableAntenna 16RAM 4Flash ADSL2+ MIPS AR7}}

Back to top

toh/buffalo/wbmr-g54.1367491553.txt.bz2 · Last modified: 2013/05/02 12:45 (external edit)