タグ: WZR-HP-G302H

WZR-HP-G302H A1A0 stock -> OpenWrt (ath79)

とりあえずここまで来たのでメモ。

MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gatedesc.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = ligd.gif
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = L3FwdSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gateicfgSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gateconnSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = gateinfoSCPD.xml
MidLayer.c(544) ML_RemoveFileInDirectory :DEBUG:ent->d_name = messages
ip_nat_pptp version 3.0 unloaded
ip_conntrack_pptp version 3.1 unloaded
cgi.c(3596) UploadCgi :x:MEMORY CHECK...
MidLayer.c(1914) ML_CheckMemory :X:MemFree = 38596
MidLayer.c(1918) ML_CheckMemory :X:Buffers = 3300
MidLayer.c(1922) ML_CheckMemory :X:Cached = 11968
MidLayer.c(1926) ML_CheckMemory :X:Active = 9444
MidLayer.c(1930) ML_CheckMemory :X:Inactive = 6816
Sep 30 17:04:47 udhcpd: Request incoming from Tofu-QM77W10(len:12)
Sep 30 17:04:47 udhcpd: sending OFFER of 192.168.11.2 Tofu-QM77W10
cgi.c(2776) Check_TagVersion :INFO :pTarget = WZR-HP-G302H : a_pProduct = WZR-HP-G302H
cgi.c(2681) check_specification :DEBUG:U-bootSpecification  = M_00000001(JP)
cgi.c(2684) check_specification :DEBUG:NewFirmSpecification = M_ffffffff
cgi.c(4165) UploadCgi :INFO:(iUbootHwRev):4 (iHwVersion):4 ...tag[hwv]...
wanctl-lib.c(4937) StopPppModemSession :x:StopPppModemSession
watchdogd-ath.c(42) watchdog_stop :WD:Watchdog Stopped
watchdogd.c(11) watchdogd_term :WD:Terminate Watchdog Daemon
debug : Enter [BRCTL_ADD_IF] 
cgi.c(4203) UploadCgi :ERR:wlconfig_down() call 
rcUtil.c(2949) Wireless_Rmmod :ERR:####### Wireless_Rmmod #########
ag7240_ring_free start Freeing at 0x83ef6400
ag7240_ring_free done  Freeing at 0x0
ag7240_ring_free start Freeing at 0x83ed0000
ag7240_ring_free done  Freeing at 0x0
ag7240_cleanup Freeing at 0x810a0000
ag7240_cleanup Freeing at 0x83f34000
AG7240: cleanup done
cgi.c(4254) UploadCgi :X:begin update firmware size 7012356
MidLayerFlashNvram.c(929) MLF_WriteFirmWare :debug:

==== Firmware UPDATE (timestamp=1538327116) ====

MidLayerFlashNvram.c(1007) MLF_WriteFirmWare :debug:block size      = 131072
MidLayerFlashNvram.c(1008) MLF_WriteFirmWare :debug:write block cnt = 54/54
MidLayerFlashNvram.c(1010) MLF_WriteFirmWare :debug:verify error cnt= 0
Restarting system.
.
In:    serial
Out:   serial
Err:   serial
Memory Test
uboot use  83F6BFB0 - 84000000
Memory Test start(80000000) end(83F00000) size(03F00000)
Pattern 00000000  Writing...  Reading...
Memory Test OK
### buf_ver=[1.08] U-Boot Ver.=[1.08]
### build_date(env)=[Sep 26 2011 - 00:19:46] build_date(bin)=[Sep 26 2011 - 00:19:46]
ag7240_enet_initialize...
Reading MAC Address from ENV(0x83f8c2f8)
No valid address in Flash. Using fixed address
Virian MDC CFG Value ==> 4
: cfg1 0x7 cfg2 0x7014
eth0: 02:aa:bb:cc:dd:1a
eth0 up
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0  02:AA:BB:CC:DD:1A
, eth1  00:03:7F:09:0B:AD

dup 1 speed 1000

tftp server(receive) go, waiting:4[sec]
Load address: 0x81f00000

TftpServer Timeout;
no file was loaded.
change bootargs
console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties) mem=64M product_rev=1 UART=1
## Booting image at bf060000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.72
   Created:      2018-09-30  16:32:17 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1600513 Bytes =  1.5 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... crc32_fw: bf060040 - bf1e6c40 (len:00186c01) calc...
crc32_fw: range1 bf060040 - bf1e6c40
OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

[    0.000000] Linux version 4.14.72 (musashino205@Taiha.Net) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r0+8209-28be5abff2)) #0 Sun Sep 30 16:32:17 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is Buffalo WZR-HP-G302H A1A0
[    0.000000] SoC: Atheros AR7242 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    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] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 58272K/65536K available (3731K kernel code, 144K rwdata, 900K rodata, 1232K init, 204K bss, 7264K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 400.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007902] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.094148] pid_max: default: 32768 minimum: 301
[    0.099067] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.105670] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.119001] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.128868] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.135060] pinctrl core: initialized pinctrl subsystem
[    0.141622] NET: Registered protocol family 16
[    0.154794] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    0.161306]  MEM 0x0000000010000000..0x0000000013ffffff
[    0.166515]   IO 0x0000000000000000..0x0000000000000000
[    0.196643] PCI host bridge to bus 0000:00
[    0.200758] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    0.207675] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.213232] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.220008] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.228601] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    0.236828] clocksource: Switched to clocksource MIPS
[    0.243323] NET: Registered protocol family 2
[    0.248907] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.255884] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.262305] TCP: Hash tables configured (established 1024 bind 1024)
[    0.268866] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.274717] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.281338] NET: Registered protocol family 1
[    0.292021] Crashlog allocated RAM at address 0x3f00000
[    0.299062] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.312887] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.318756] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.340892] io scheduler noop registered
[    0.344813] io scheduler deadline registered (default)
[    0.350483] ar7200-usb-phy usb-phy: phy reset is missing
[    0.356361] pinctrl-single 18040028.pinmux: 64 pins at pa b8040028 size 8
[    0.363838] gpio-export gpio-export: 1 gpio(s) exported
[    0.370155] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.377534] console [ttyS0] disabled
[    0.381161] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 12500000) is a 16550A
[    0.389914] console [ttyS0] enabled
[    0.389914] console [ttyS0] enabled
[    0.396940] bootconsole [early0] disabled
[    0.396940] bootconsole [early0] disabled
[    0.414439] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.423161] m25p80 spi0.1: mx25l12805d (16384 Kbytes)
[    0.429819] Concatenating MTD devices:
[    0.433600] (0): "spi0.0"
[    0.436232] (1): "spi0.1"
[    0.438948] into device "virtual_flash"
[    0.442867] 5 fixed-partitions partitions found on MTD device virtual_flash
[    0.449884] Creating 5 MTD partitions on "virtual_flash":
[    0.455325] 0x000000000000-0x000000040000 : "u-boot"
[    0.461384] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.467837] 0x000000050000-0x000000060000 : "art"
[    0.473570] 0x000000060000-0x000001fc0000 : "firmware"
[    0.566161] 2 uimage-fw partitions found on MTD device firmware
[    0.572181] 0x000000060000-0x0000001f0000 : "kernel"
[    0.578268] 0x0000001f0000-0x000001fc0000 : "rootfs"
[    0.584202] mtd: device 7 (rootfs) set to be root filesystem
[    0.590005] 1 squashfs-split partitions found on MTD device rootfs
[    0.596232] 0x000000710000-0x000001fc0000 : "rootfs_data"
[    0.602709] 0x000001fc0000-0x000002000000 : "user_property"
[    0.610874] libphy: Fixed MDIO Bus: probed
[    0.957282] libphy: ag71xx_mdio: probed
[    0.963160] switch0: Atheros AR8316 rev. 1 switch registered on mdio-bus.0
[    1.308015] ar8316: Using port 4 as switch port
[    1.316999] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd041, driver=Atheros AR8216/AR8236/AR8316]
[    1.328648] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    1.337615] NET: Registered protocol family 10
[    1.347393] Segment Routing with IPv6
[    1.351217] NET: Registered protocol family 17
[    1.355740] 8021q: 802.1Q VLAN Support v1.8
[    1.368247] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    1.385592] Freeing unused kernel memory: 1232K
[    1.390178] This architecture does not have kernel memory protection.
[    2.199278] init: Console is alive
[    2.202972] init: - watchdog -
[    2.506877] random: fast init done
[    4.199341] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.433962] usbcore: registered new interface driver usbfs
[    4.439682] usbcore: registered new interface driver hub
[    4.445151] usbcore: registered new device driver usb
[    4.500580] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.520351] SCSI subsystem initialized
[    4.531126] ehci-platform: EHCI generic platform driver
[    4.536737] ehci-platform 1b000000.usb: EHCI Host Controller
[    4.542542] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    4.550595] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    4.576853] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    4.584260] hub 1-0:1.0: USB hub found
[    4.588559] hub 1-0:1.0: 1 port detected
[    4.599322] usbcore: registered new interface driver usb-storage
[    4.606620] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.616201] init: - preinit -
[    6.283016] random: jshn: uninitialized urandom read (4 bytes read)
[    6.683508] random: jshn: uninitialized urandom read (4 bytes read)
[    6.987658] random: jshn: uninitialized urandom read (4 bytes read)
[    7.944696] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.950754] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
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
[    8.055429] urandom_read: 2 callbacks suppressed
[    8.055441] random: procd: uninitialized urandom read (4 bytes read)
[    8.988068] eth0: link up (1000Mbps/Full duplex)
[    8.992781] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.999724] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   12.224097] mount_root: loading kmods from internal overlay
[   12.289121] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   12.303259] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   14.099491] block: attempting to load /etc/config/fstab
[   14.112486] block: unable to load configuration (fstab: Entry not found)
[   14.119434] block: no usable configuration
[   14.124671] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   14.195533] urandom-seed: Seed file not found (/etc/urandom.seed)
[   14.383408] procd: - early -
[   14.386436] procd: - watchdog -
[   15.072066] procd: - watchdog -
[   15.075590] procd: - ubus -
[   15.227033] eth0: link down
[   15.274096] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.282312] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.321668] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.329897] procd: - init -
Please press Enter to activate this console.
[   16.259843] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.315705] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   16.397841] u32 classifier
[   16.400573]     input device check on
[   16.404250]     Actions configured
[   16.436388] Mirror/redirect action on
[   16.471634] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   16.511505] Loading modules backported from Linux version v4.19-rc5-0-g6bf4ca7fbc85
[   16.519280] Backport generated by backports.git v4.19-rc5-1-0-g05571dcd
[   16.540955] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.768411] usbcore: registered new interface driver ums-alauda
[   16.793751] usbcore: registered new interface driver ums-cypress
[   16.829054] usbcore: registered new interface driver ums-datafab
[   16.858789] usbcore: registered new interface driver ums-freecom
[   16.872809] usbcore: registered new interface driver ums-isd200
[   16.888744] usbcore: registered new interface driver ums-jumpshot
[   16.899802] usbcore: registered new interface driver ums-karma
[   16.909492] usbcore: registered new interface driver ums-sddr09
[   16.918752] usbcore: registered new interface driver ums-sddr55
[   16.928219] usbcore: registered new interface driver ums-usbat
[   16.990244] xt_time: kernel timezone is -0000
[   17.097575] PPP generic driver version 2.4.2
[   17.105637] NET: Registered protocol family 24
[   17.172996] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[   17.183223] ath9k 0000:00:00.0: Falling back to user helper
[   17.405325] ath: phy0: Ignoring endianness difference in EEPROM magic bytes.
[   17.435119] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=11
[   17.484404] kmodloader: done loading kernel modules from /etc/modules.d/*
[   37.932217] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   38.079402] br-lan: port 1(eth0.1) entered blocking state
[   38.084848] br-lan: port 1(eth0.1) entered disabled state
[   38.090794] device eth0.1 entered promiscuous mode
[   38.095622] device eth0 entered promiscuous mode
[   38.159916] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   38.254532] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   38.988474] eth0: link up (1000Mbps/Full duplex)
[   38.993184] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   39.066992] br-lan: port 1(eth0.1) entered blocking state
[   39.072443] br-lan: port 1(eth0.1) entered forwarding state
[   39.078351] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   39.216938] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   56.456485] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   56.497036] jffs2_build_filesystem(): unlocking the mtd device... 
[   56.497054] done.
[   56.505205] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[  123.186918] random: crng init done
[  123.197880] random: 1 urandom warning(s) missed due to ratelimiting
[  259.047585] done.
[  259.049589] jffs2: notice: (2163) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  259.533926] overlayfs: upper fs does not support tmpfile.



BusyBox v1.29.3 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+8209-01bad1acb1
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#

WZR-HP-G302H

以前東久留米のハードオフで入手していたものの、シリアル (UART)が一切の信号を出力せず保留にしていたもの。久しぶりに引っ張り出してOpenWrt Wikiなどを漁ったところ、u-bootで潰されているため有効にする必要があることが判明し、設定したところ使えるようになった。

  • 型番: WZR-HP-G302H A1A0
  • 基板シルク印刷: WZR-HP-G302HV2 21514W302HV21A2 Rev:A2

Switch

zone WAN LAN
port
(WZR-HP-G302H)
INTERNET LAN4 LAN3 LAN2 LAN1
port
(AR8316)
port2 port3 port4 port5 port1

MAC

  • ART, 0x120C
  • LAN, WAN, 2.4G: xx:xx:xx:xx:xx:AF

U-Boot

U-Bootでシリアル (UART)が潰されており、stock firmwareでdebugページからtelnetdを有効化の上ログインし ubootenv set force_uart 1 を設定して有効化する必要がある

  • help
    ar7240> help
    ?       - alias for 'help'
    autoscr - run script from memory
    TFTPS   - boot image via network as TFTP server
    base    - print or set address offset
    boot    - boot default, i.e., run 'bootcmd'
    bootd   - boot default, i.e., run 'bootcmd'
    bootelf - Boot from an ELF image in memory
    bootm   - boot application image from memory
    bootp   - boot image via network using BootP/TFTP protocol
    bootvx  - Boot vxWorks from an ELF image
    cmp     - memory compare
    coninfo - print console devices and information
    cp      - memory copy
    crc32   - checksum calculation
    echo    - echo args to console
    erase   - erase FLASH memory
    exit    - exit script
    flinfo  - print FLASH memory information
    go      - start application at address 'addr'
    help    - print online help
    iminfo  - print header information for application image
    imls    - list all images found in flash
    itest   - return true/false on integer compare
    loadb   - load binary file over serial line (kermit mode)
    loads   - load S-Record file over serial line
    loady   - load binary file over serial line (ymodem mode)
    loop    - infinite loop on address range
    md      - memory display
    mii     - MII utility commands
    mm      - memory modify (auto-incrementing)
    mtest   - simple RAM test
    mw      - memory write (fill)
    nfs     - boot image via network using NFS protocol
    nm      - memory modify (constant address)
    pci     - list and access PCI Configuration Space
    phyreg - read/write phyreg
    ping    - send ICMP ECHO_REQUEST to network host
    printenv- print environment variables
    progmac - Set ethernet MAC addresses
    protect - enable or disable FLASH write protection
    rarpboot- boot image via network using RARP/TFTP protocol
    reset   - Perform RESET of the CPU
    run     - run commands in an environment variable
    saveenv - save environment variables to persistent storage
    set_mtest  - set mtest parameters. (for next bootup)
    setenv  - set environment variables
    sleep   - delay execution for some time
    test    - minimal test like /bin/sh
    tftpboot- boot image via network using TFTP protocol
    version - print monitor version
    

  • version
    ar7240> version
    
    U-Boot 1.1.4 for BUFFALO AIRSTATION (Sep 26 2011 - 00:19:46)
    

  • printenv
    force_uart=1 はUART有効化のための追加分
    ar7240> printenv
    bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties)
    bootcmd=bootm BF060000
    baudrate=115200
    ethaddr=02:AA:BB:CC:DD:1A
    ipaddr=192.168.11.1
    serverip=192.168.11.2
    tmp_ram=81F00000
    tmp_bottom=83F00000
    fw_eaddr=BF060000 BEFFFFFF
    uboot_eaddr=BF000000 BF03FFFF
    u_fw=erase $fw_eaddr; cp.fw $fileaddr BF060000 $filesize; bootm BF060000;
    ut_fw=tftp $tmp_ram firmware.bin; erase $fw_eaddr; cp.fw $fileaddr BF060000 $filesize; bootm BF060000;
    ut_uboot=tftp $tmp_ram u-boot.bin; protect off $uboot_eaddr; erase $uboot_eaddr; cp.b $fileaddr BF000000 $filesize;
    melco_id=RD_BB10085
    hw_rev=4
    tftp_wait=4
    uboot_ethaddr=02:AA:BB:CC:DD:1A
    DEF-p_wireless_ath0_11bg-authmode=psk
    DEF-p_wireless_ath0_11bg-crypto=tkip+aes
    DEF-p_wireless_ath0_11bg-authmode_ex=mixed-psk
    product_rev=1
    custom_id=0
    buf_ver=1.08
    region=JP
    build_date=Sep 26 2011 - 00:19:46
    pincode=87716498
    DEF-p_wireless_ath0_11bg-wpapsk=*************
    buf_crc=1B3A3486
    force_uart=1
    tmp_uart=1
    stdin=serial
    stdout=serial
    stderr=serial
    loadaddr=81F00000
    ethact=eth0
    
    Environment size: 1150/65532 bytes
    

  • mii device
    ar7240> mii device
    MII devices: 'eth0' 'eth1' 
    Current device: 'eth0'
    

  • md.l 0x1805002c 1
    ar7240> md.l 0x1805002c 1
    1805002c: 1c000000    ....
    

Kernel

  • uname -a
    # uname -a
    Linux AP106F3F02F6AF 2.6.15 #1 Wed May 23 16:34:49 JST 2012 mips unknown
    

  • cat /proc/version
    # cat /proc/version
    Linux version 2.6.15 (snapshot@snapshot) (gcc version 3.4.4) #1 Wed May 23 16:34:49 JST 2012
    

  • cat /proc/cpuinfo
    # cat /proc/version
    Linux version 2.6.15 (snapshot@snapshot) (gcc version 3.4.4) #1 Wed May 23 16:34:49 JST 2012
    # cat /proc/cpuinfo
    system type             : Atheros AR7240 (Python)
    processor               : 0
    cpu model               : MIPS 24K V7.4
    BogoMIPS                : 265.21
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 16
    extra interrupt vector  : yes
    hardware watchpoint     : yes
    ASEs implemented        : mips16
    VCED exceptions         : not available
    VCEI exceptions         : not available
    

  • cat /proc/meminfo
    # cat /proc/meminfo
    MemTotal:        62720 kB
    MemFree:         36052 kB
    Buffers:          3204 kB
    Cached:          11832 kB
    SwapCached:          0 kB
    Active:          10392 kB
    Inactive:         7864 kB
    HighTotal:           0 kB
    HighFree:            0 kB
    LowTotal:        62720 kB
    LowFree:         36052 kB
    SwapTotal:           0 kB
    SwapFree:            0 kB
    Dirty:               0 kB
    Writeback:           0 kB
    Mapped:           6332 kB
    Slab:             5372 kB
    CommitLimit:     31360 kB
    Committed_AS:    15632 kB
    PageTables:        548 kB
    VmallocTotal:  1048560 kB
    VmallocUsed:      2188 kB
    VmallocChunk:  1045808 kB
    

  • cat /proc/mtd
    OpenWrt ar71xx targetに既存のWZR-HP-G300NH2とは、mtdパーティションのサイズ, オフセットが一部異なる
    # cat /proc/mtd 
    dev:    size   erasesize  name
    mtd0: 00040000 00010000 "uboot"
    mtd1: 00010000 00010000 "uboot_environ"
    mtd2: 00010000 00010000 "ART"
    mtd3: 00100000 00010000 "linux"
    mtd4: 01e60000 00010000 "rootfs"
    mtd5: 00040000 00010000 "user_property"
    mtd6: 01f60000 00010000 "firmware"
    

  • bootlog
    In:    serial
    Out:   serial
    Err:   serial
    Memory Test
    uboot use  83F6BFB0 - 84000000
    Memory Test start(80000000) end(83F00000) size(03F00000)
    Pattern 00000000  Writing...  Reading...
    Memory Test OK
    ### buf_ver=[1.08] U-Boot Ver.=[1.08]
    ### build_date(env)=[Sep 26 2011 - 00:19:46] build_date(bin)=[Sep 26 2011 - 00:19:46]
    ag7240_enet_initialize...
    Reading MAC Address from ENV(0x83f8c2f8)
    No valid address in Flash. Using fixed address
    Virian MDC CFG Value ==> 4
    : cfg1 0x7 cfg2 0x7014
    eth0: 02:aa:bb:cc:dd:1a
    eth0 up
    Virian MDC CFG Value ==> 4
    : cfg1 0xf cfg2 0x7214
    eth1: 00:03:7f:09:0b:ad
    ATHRS26: resetting s26
    ATHRS26: s26 reset done
    eth1 up
    eth0  02:AA:BB:CC:DD:1A
    , eth1  00:03:7F:09:0B:AD
    
    dup 1 speed 1000
    
    tftp server(receive) go, waiting:4[sec]
    Load address: 0x81f00000
    
    TftpServer Timeout;
    no file was loaded.
    change bootargs
    console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties) mem=64M product_rev=1 UART=1
    ## Booting image at bf060000 ...
       Image Name:   Linux Rootfs Combined Image
       Created:      2012-05-23   7:54:06 UTC
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    21168064 Bytes = 20.2 MB
       Load Address: 80002000
       Entry Point:  801fc000
       Verifying Checksum ... crc32_fw: bf060040 - c048ffff (len:0142ffc0) calc...
    crc32_fw: range1 bf060040 - bfffffff, range2 be000000 - be48ffff
    OK
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 801fc000) ...
    ## Giving linux memsize in bytes, 67108864
    
    Starting kernel ...
    
    Booting AR7240(Python)...
    Linux version 2.6.15 (snapshot@snapshot) (gcc version 3.4.4) #1 Wed May 23 16:34:49 JST 2012
    flash_size passed from bootloader = 32
    arg 1: console=ttyS0,115200
    arg 2: root=31:03
    arg 3: rootfstype=jffs2
    arg 4: init=/sbin/init
    arg 5: mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties)
    arg 6: mem=64M
    arg 7: product_rev=1
    arg 8: UART=1
    use [CONFIG_CMDLINE_AR7240] = console=ttyS0,115200 root=/dev/mtdblock4 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:256k(uboot),64k(uboot_environ),64k(ART),1024k(linux),31104k(rootfs),256k(user_property),32128k@384k(firmware) mem=64M 
    CPU revision is: 00019374
    Determined physical RAM map:
     memory: 02000000 @ 00000000 (usable)
    User-defined physical RAM map:
     memory: 04000000 @ 00000000 (usable)
    Built 1 zonelists
    Kernel command line: console=ttyS0,115200 root=/dev/mtdblock4 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:256k(uboot),64k(uboot_environ),64k(ART),1024k(linux),31104k(rootfs),256k(user_property),32128k@384k(firmware) mem=64M
    Primary instruction cache 64kB, physically tagged, 4-way, linesize 32 bytes.
    Primary data cache 32kB, 4-way, linesize 32 bytes.
    Synthesized TLB refill handler (20 instructions).
    Synthesized TLB load handler fastpath (32 instructions).
    Synthesized TLB store handler fastpath (32 instructions).
    Synthesized TLB modify handler fastpath (31 instructions).
    Cache parity protection disabled
    PID hash table entries: 512 (order: 9, 8192 bytes)
    Using 200.000 MHz high precision timer.
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 62548k/65536k available (1751k kernel code, 2932k reserved, 268k data, 116k init, 0k highmem)
    Mount-cache hash table entries: 512
    Checking for 'wait' instruction...  available.
    NET: Registered protocol family 16
    PCI init:ar7240_pcibios_init
    ar7240_pcibios_init(300): PCI CMD write: 0x356
    SCSI subsystem initialized
    call pcibios_initReturning IRQ 48
    AR7240 GPIOC major 0
    squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
    squashfs: LZMA suppport for slax.org by jro
    Initializing Cryptographic API
    io scheduler noop registered
    io scheduler deadline registered
    HDLC line discipline: version $Revision: #1 $, maxframe=4096
    N_HDLC line discipline registered.
    Serial: 8250/16550 driver $Revision: #1 $ 1 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A
    PPP generic driver version 2.4.2
    PPP Deflate Compression module registered
    PPP BSD Compression module registered
    PPP MPPE compression module registered
    NET: Registered protocol family 24
    AR9100 FLASH DRIVER found device
      vendor 0x0   device-id 0x0, 0x0, 0x0
    FLASH ID: UNKNOWN SIZE: (0 KB)
    RedBoot partition parsing not available
    No partitions found on flash
    check spi banks 2
    0000 : C2 20 18
    found MX25L128-45E device on bank#0
    0000 : C2 20 18
    found MX25L128-45E device on bank#1
    SPI flash size total:32 Mbytes
    WHR-AG300N_part partition parsing not available
    WHR-HP-G300N_part partition parsing not available
    7 cmdlinepart partitions found on MTD device ar7240-nor0
    Creating 7 MTD partitions on "ar7240-nor0":
    0x00000000-0x00040000 : "uboot"
    0x00040000-0x00050000 : "uboot_environ"
    0x00050000-0x00060000 : "ART"
    0x00060000-0x00160000 : "linux"
    0x00160000-0x01fc0000 : "rootfs"
    0x01fc0000-0x02000000 : "user_property"
    0x00060000-0x01fc0000 : "firmware"
    u32 classifier
        OLD policer on 
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP reno registered
    ip_conntrack version 2.4 (512 buckets, 4096 max) - 212 bytes per conntrack
    ip_tables: (C) 2000-2002 Netfilter core team
    ipt_time loading
    TCP bic registered
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    802.1Q VLAN Support v1.8 Ben Greear 
    All bugs added by David S. Miller 
    ar7240wdt_init: Registering WDT success
    arch/mips/ar7240/gpio.c (ar7240_simple_config_init) JUMPSTART_GPIO: 12
    VFS: Mounted root (squashfs filesystem) readonly.
    Freeing unused kernel memory: 2099229k freed
    Warning: unable to open an initial console.
    rcUtil_uboot.c(261) UbootUpdate :DEBUG:Enter
    
    Please press Enter to activate this console. rcUtil_uboot.c(72) GetCurrentUbootVersion :DEBUG:CurrentVersion = 108
    rcUtil_uboot.c(104) GetMyUbootVersion :DEBUG:MyUbootVersion = 108
    rcUtil_uboot.c(144) DoesNeedtoUpdateUboot :DEBUG:nothing to be done for Update
    rc.c(765) SetUbootParam :ERR:region is not support: u-boot=JP  fw-spec=
    rc.c(806) SetUbootParam :x:MODEM-FUNCTION ENABLE
    Using /lib/modules/kernel/drivers/char/mel_initsw_ar7240.ko
    mel_initsw_ar7240: module license 'unspecified' taints kernel.
    mel_initsw initialized. 
    watchdogd.c(24) watchdogd_main :WD:Start Watchdog Daemon
    rc.c(325) VerifyParamsOfInit :x:create status sections
    rc.c(806) SetUbootParam :x:MODEM-FUNCTION ENABLE
    Using /lib/modules/2.6.15/net/ag7240_mod.ko
    AG7240: Length per segment 1536
    AG7240: Max segments per packet 1
    AG7240: Max tx descriptor count    40
    AG7240: Max rx descriptor count    252
    AG7240: fifo cfg 3 01f00140
    AG7240CHH: Mac address for unit 0
    AG7240CHH: eb:fc:f1:8d:27:30 
    [0] dev[0] eth0 make
    AG7240CHH: Mac address for unit 0
    AG7240CHH: eb:fc:f1:8d:27:30 
    [0] dev[1] eth1 make
    AG7240CHH: Mac address for unit 1
    AG7240CHH: 37:89:af:f4:45:ef 
    [1] dev[0] eth2 make
    AG7240CHH: Mac address for unit 1
    AG7240CHH: 37:89:af:f4:45:ef 
    [1] dev[1] eth3 make
    ag7240_ring_alloc Allocated 640 at 0x83ee4400
    ag7240_ring_alloc Allocated 4032 at 0x83ed2000
    Virian MDC CFG Value ==> 4
    CFG Board need PortVLAN 
    Enable Broadcast forward
    port vlan initialize...
    AbBUFFALO athrs16_reg_init complete.
    Setting PHY...
    AG7240: LAN/unit0: phy0 not up carrier 1
    rcUtil.c(2727) Wireless_Insmod :ERR:####### Wireless_Insmod #########
    Using /lib/modules/2.6.15/net/ath_hal.ko
    ath_hal: 0.9.17.1 (AR5416, DEBUG, REGOPS_FUNC, WRITE_EEPROM, 11D)
    Using /lib/modules/2.6.15/net/wlan.ko
    wlan: 0.8.4.2 (Atheros/multi-bss)
    Using /lib/modules/2.6.15/net/ath_rate_atheros.ko
    ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
    Using /lib/modules/2.6.15/net/ath_dev.ko
    ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
    v.7.3.0.387
    Using /lib/modules/2.6.15/net/ath_pci.ko
    ath_pci: 0.9.4.5 (Atheros/multi-bss)
    Allocating txfree is 512
    wifi0: Atheros 9280: mem=0x10000000, irq=48 hw_base=0xb0000000
    Using /lib/modules/2.6.15/net/wlan_xauth.ko
    Using /lib/modules/2.6.15/net/wlan_ccmp.ko
    Using /lib/modules/2.6.15/net/wlan_tkip.ko
    Using /lib/modules/2.6.15/net/wlan_wep.ko
    Using /lib/modules/2.6.15/net/wlan_acl.ko
    wlan: mac acl policy registered
    Using /lib/modules/2.6.15/net/wlan_me.ko
    wlan_me: Version 0.1
    Copyright (c) 2008 Atheros Communications, Inc. All Rights Reserved
    Using /lib/modules/2.6.15/net/ath_pktlog.ko
    Using /lib/modules/2.6.15/net/wlan_scan_ap.ko
    Using /lib/modules/2.6.15/net/wlan_scan_sta.ko
    wlctl-ath.c(867) wlconf_country_set :DEBUG:region=JP iCountryCode=4015
    Using /lib/modules/2.6.15/net/ag7240_mod.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ag7240_mod.ko': Invalid parameters (17): Invalid argument
    rc.c(806) SetUbootParam :x:MODEM-FUNCTION ENABLE
    Using /lib/modules/2.6.15/net/ag7240_mod.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ag7240_mod.ko': Invalid parameters (17): Invalid argument
    rcUtil.c(2727) Wireless_Insmod :ERR:####### Wireless_Insmod #########
    Using /lib/modules/2.6.15/net/ath_hal.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ath_hal.ko': Invalid parameters (17): Invalid argument
    rcUtil.c(3700) AtherosWirelessBaseModules_Insmod :####:insmod ath_hal : FAILED (Perhaps, [ath_hal] has already been added.)
    wlctl-ath.c(867) wlconf_country_set :DEBUG:region=JP iCountryCode=4015
    Interface doesn't accept private ioctl...
    setCountryID (8BE0): Operation not supported
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    
    s16 enet0 port4 up
    et0: unit 0: phy 4 is up...
    AG7240: enet unit:0 is up. RGMii 1000Mbps full duplex
    AG7240: done cfg2 0x7215 ifctl 0x0 miictrl  
    Using /lib/modules/2.6.15/net/ag7240_mod.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ag7240_mod.ko': Invalid parameters (17): Invalid argument
    MidLayerModDep.c(798) startModules :INFO:Starting module init
    Algorithmics/MIPS FPU Emulator v1.5
    mknod: /dev/ppp: File exists
    insmod: slhc.ko: no module by that name found
    insmod: ppp_generic.ko: no module by that name found
    insmod: ppp_mppe.ko: no module by that name found
    insmod: ppp_async.ko: no module by that name found
    insmod: ppp_synctty.ko: no module by that name found
    insmod: pppox.ko: no module by that name found
    insmod: pppoe.ko: no module by that name found
    insmod: zlib_deflate.ko: no module by that name found
    insmod: ppp_deflate.ko: no module by that name found
    Using /lib/modules/kernel/drivers/usb/core/usbcore.ko
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    Using /lib/modules/kernel/drivers/usb/host/ehci-hcd.ko
    No of Resources 2 
    hcd->regs bb000000 
    Host Capability Reg bb000100 
    Host Operational Reg bb000140 
    Port Status c000004 
    ar7240-ehci ar7240-ehci.0: ATH EHCI
    HCS Params 10011 
    
    HCC Params 6 
    ar7240-ehci ar7240-ehci.0: new USB bus registered, assigned bus number 1
    ar7240-ehci ar7240-ehci.0: irq 3, io mem 0x1b000000
    hcc_params addr 0xbb000108 val 0x6 hcs_params addr 0xbb000104 val 0x10011
    ar7240-ehci ar7240-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
    usb usb1: Product: ATH EHCI
    usb usb1: Manufacturer: Linux 2.6.15 ehci_hcd
    usb usb1: SerialNumber: ar7240-ehci.0
    hotplug.c(69) hohub 1-0:1.0: USB hub found
    tplug_main :x:HOhub 1-0:1.0: 1 port detected
    TPLUG-EVENT USB ADD(0x0000,0x0000)
    MidLayerModDep.c(810) startModules :INFO:Started  module init 1182[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_tz
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_tz 1[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_syslogd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_syslogd 88[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_klogd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_klogd 25[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_mode_check
    Using /lib/modules/2.6.15/net/ag7240_mod.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ag7240_mod.ko': Invalid parameters (17): Invalid argument
    AG7240: enet unit:0 is up. RGMii 1000Mbps full duplex
    AG7240: done cfg2 0x7215 ifctl 0x0 miictrl  
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_mode_check 1127[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_loif
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_loif 15[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_router_behavior
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_router_behavior 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module init
    MidLayerModDep.c(810) startModules :INFO:Started  module init 5[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_user_passwd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_user_passwd 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_usbmod
    Using /lib/modules/kernel/drivers/usb/storage/usb-storage.ko
    Using /lib/modules/kernel/drivers/usb/serial/usbserial.ko
    Using /lib/modules/kernel/drivers/usb/serial/option.ko
    Using /lib/modules/kernel/drivers/usb/serial/pl2303.ko
    Using /lib/modules/kernel/drivers/usb/class/cdc-acm.ko
    Using /lib/modules/kernel/drivers/net/usb/hso.ko
    Using /lib/modules/kernel/fs/xfs/xfs.ko
    Using /lib/modules/kernel/fs/nls/nls_base.ko
    Using /lib/modules/kernel/fs/fat/fat.ko
    Using /lib/modules/kernel/fs/vfat/vfat.ko
    Using /lib/modules/kernel/fs/nls/nls_cp932.ko
    Using /lib/modules/kernel/fs/nls/nls_utf8.ko
    change fat_tz_minuteswest = -540
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_usbmod 1978[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wiredlan
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wiredlan 15[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module id
    No such device
    MidLayerModDep.c(810) startModules :INFO:Started  module id 1002[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_lanif
    rcUtil.c(2727) Wireless_Insmod :ERR:####### Wireless_Insmod #########
    Using /lib/modules/2.6.15/net/ath_hal.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ath_hal.ko': Invalid parameters (17): Invalid argument
    rcUtil.c(3700) AtherosWirelessBaseModules_Insmod :####:insmod ath_hal : FAILED (Perhaps, [ath_hal] has already been added.)
    wlctl-ath.c(867) wlconf_country_set :DEBUG:region=JP iCountryCode=4015
    Interface doesn't accept private ioctl...
    setCountryID (8BE0): Operation not supported
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    Using /lib/modules/kernel/drivers/buffalo/mcsnoop.ko
    mcsnoop: flush all snoop entry
    debug : Enter [BRCTL_ADD_RULE_IF] 
    add_if 00000200 ***************************
    rc_lanif.c(399) StartOfrc_lanif :x:PPPoE Path throw?
    
    
    mcsnoop_br_ioctl_device:239: mcast_maxage 300000 / 1000
    Cannot assign requested address
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_lanif 1732[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_udhcpd
    udhcpd (v0.9.9-pre) started
    max_leases value (256) not sane, setting to 64 instead
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_udhcpd 29[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_usb_device_server
    Using /lib/modules/kernel/drivers/usb/netusb/sxuptp.ko
    Using /lib/modules/kernel/drivers/usb/netusb/sxuptp_driver.ko
    Using /lib/modules/kernel/drivers/usb/netusb/jcp.ko
    rc_usb_device_server.c(69) InsmodDeviceServer :debug-usbnet:insmod jcp_cmd product=WZR-HP-G302H
    Using /lib/modules/kernel/drivers/usb/netusb/jcp_cmd.ko
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_usb_device_server 439[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_httpd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_httpd 1029[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wireless_pre
    rcUtil.c(2727) Wireless_Insmod :ERR:####### Wireless_Insmod #########
    Using /lib/modules/2.6.15/net/ath_hal.ko
    insmod: cannot insert `/lib/modules/2.6.15/net/ath_hal.ko': Invalid parameters (17): Invalid argument
    rcUtil.c(3700) AtherosWirelessBaseModules_Insmod :####:insmod ath_hal : FAILED (Perhaps, [ath_hal] has already been added.)
    wlctl-ath.c(867) wlconf_country_set :DEBUG:region=JP iCountryCode=4015
    Interface doesn't accept private ioctl...
    setCountryID (8BE0): Operation not supported
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    wlanconfig: ioctl: Invalid argument
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wireless_pre 437[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wireless11bg
    Waiting for Wireless Events from interfaces...
    15:00:10.689532   ath0     Set ESSID:"106F3F02F6AF-1"
    15:00:10.705000   ath0     Set Frequency:2.447 GHz (Channel 8)
    15:00:10.718988   ath0     Set Mode:Master
    set Buffalo Capability = 00000009
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wireless11bg 979[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wireless11bg_mac_limit
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wireless11bg_mac_limit 91[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_as_repeater
    rc_as_repeath0: WDS Proirity mask Enable prio:3
    ater.c(183) StartOfrc_as_repeater :ina:[Start Repeater]
    rc_as_repeater.c(224) StartOfrc_as_repeater :ina:[Start Pairent Mode]
    ath0      extcmd:
    ath1: WDS Proirity mask Enable prio:3
    ath1      extcmd:
    ath3: WDS Proirity mask Enable prio:3
    ath3      extcmd:
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_as_repeater 48[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wireless_post
    thresh62=33, thresh62_ext=33
    Country ie is JP 
    thresh62=33, thresh62_ext=33
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    debug : Enter [BRCTL_ADD_RULE_IF] 
    add_if 00000100 ***************************
    rcUtil.c(1411) AddMbssidInterface_core :ERR:--------------wlconf_mbssid_up() call------------------
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    wlctl-ath.c(1408) wlconf_up_template :ERROR:buff=iwpriv (null) rxchainmask 3 i_chainmask=3
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    15:00:11.728612   ath1     Set ESSID:"106F3F02F6AF"
    15:00:11.744251   ath1     Set Frequency:2.447 GHz (Channel 8)
    15:00:11.758770   ath1     Set Mode:Master
    set Buffalo Capability = 00000009
    Country ie is JP 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    debug : Enter [BRCTL_ADD_RULE_IF] 
    add_if 00000100 ***************************
    rcUtil.c(1411) AddMbssidInterface_core :ERR:--------------wlconf_mbssid_up() call------------------
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    wlctl-ath.c(1408) wlconf_up_template :ERROR:buff=iwpriv (null) rxchainmask 3 i_chainmask=3
    (null)    no private ioctls.
    
    (null)    no private ioctls.
    
    15:00:12.660233   ath3     Set ESSID:"106F3F02F6AF-3"
    15:00:12.676077   ath3     Set Frequency:2.447 GHz (Channel 8)
    15:00:12.690325   ath3     Set Mode:Master
    wlctl-ath.c(529) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key off
    15:00:12.704923   ath3     Set Encryption key:off
    wlctl-ath.c(575) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key 4AF3ED4FEFCFAB55CCF38A3B7C [1]
    15:00:12.733427   ath3     Set Encryption key:****-****-****-****-****-****-**
    wlctl-ath.c(575) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key FFA90EF568AE17178DF6E2B60E [2]
    15:00:12.748049   ath3     Set Encryption key:****-****-****-****-****-****-** [2]
    wlctl-ath.c(575) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key D0BC10CA02078FB45A4EACE782 [3]
    15:00:12.762481   ath3     Set Encryption key:****-****-****-****-****-****-** [3]
    wlctl-ath.c(575) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key B21DF3BC1D58682378E41C50A1 [4]
    15:00:12.777528   ath3     Set Encryption key:****-****-****-****-****-****-** [4]
    wlctl-ath.c(581) wlconf_set_wep_key :setting wep:buff: iwconfig ath3 key [1]
    15:00:12.792334   ath3     Set Encryption key:on
    set Buffalo Capability = 00000009
    Country ie is JP 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    debug : Enter [BRCTL_ADD_RULE_IF] 
    add_if 00000100 ***************************
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wireless_post 2012[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_nas
    killall: hostapd: no process killed
    rcUtil.c(1882) MbssidNasUp_sub :ERR:############ wlconf_nas_up ############
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_nas 85[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_aoss_mssid
    rc_aoss_mssid.c(98) StartOfrc_aoss_mssid :ERR:StartOfrc_aoss_mssid()
    Configuration file: /tmp/hostapd.conf_ath1
    ->setpid 0x10001080
    pid: /var/run/hostapd.ath1.pid
    Configuration file: /tmp/hostapd.conf_ath0
    ->setpid 0x10001080
    pid: /var/run/hostapd.ath0.pid
    15:00:13.862576   ath1     Set Mode:Master
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_aoss_mssid 215[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ap_serv
    Using interface ath1 with hwaddr 16:6f:3f:02:f6:af and ssid '106F3F02F6AF'
    Country ie is JP 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    Flushing old station entries
    Deauthenticate all stations
    l2_packet_receive - recvfrom: Network is down
    l2_packet_receive - recvfrom: Network is down
    server.c(249)start_ap_serv_server:INFO:---- Start !! ap_servd child process (port=22359[5757]).
    server.c(101)standalone_ap_serv_server:INFO:listen device name = br0
    server.c(254)start_ap_serv_server:INFO:---- Start !! ap_servd child process (port=22616[5858]).
    server.c(101)standalone_ap_serv_server:INFO:listen device name = br0
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ap_serv 550[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanif_select
    rcUtil_usb.c(2572) UsbTtyInfo_Update :x:UsbTtyInfo_Update
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanif_select 14[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanif
    15:00:14.431838   ath0     Set Mode:Master
    Using interface ath0 with hwaddr 10:6f:3f:02:f6:af and ssid '106F3F02F6AF-1'
    Country ie is JP 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    ath_beacon_config.Configured SWBA :6,DMA resp time:4 for slotDur:100 
    Flushing old station entries
    Deauthenticate all stations
    l2_packet_receive - recvfrom: Network is down
    l2_packet_receive - recvfrom: Network is down
    Cannot assign requested address
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanif 1001[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pre
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pre 3105[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect 3089[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_dummy
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_dummy 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_dhcpcd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_dhcpcd 1[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_0
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_0 1[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_1
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_1 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_2
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_2 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_3
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_3 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_4
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_4 10[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_auto_detect_pppoecd_check
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_auto_detect_pppoecd_check 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_manual
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_manual 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_dhcpcd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_dhcpcd 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_0
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_0 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_1
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_1 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_2
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_2 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_3
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_3 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_4
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_4 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoecd_check
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoecd_check 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanif_modem
    rc_wanif_modem.c(35) StartOfrc_wanif_modem :x:SKIP Module module (StartOfrc_wanif_modem)
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanif_modem 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_modem_detect
    rc_wanctl_modem_detect.c(99) StartOfrc_wanctl_modem_detect :x:SKIP Module module (StartOfrc_wanctl_modem_detect)
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_modem_detect 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_modem_detect_dummy
    rc_wanctl_modem_detect_dummy.c(79) StartOfrc_wanctl_modem_detect_dummy :x:SKIP Module module (StartOfrc_wanctl_modem_detect_dummy)
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_modem_detect_dummy 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_ppp_modem
    rc_wanctl_ppp_modem.c(259) StartOfrc_wanctl_ppp_modem :x:SKIP Module module (StartOfrc_wanctl_ppp_modem)
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_ppp_modem 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_post
    route: SIOC[ADD|DEL]RT: No such process
    Cannot assign requested address
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_post 1178[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wanctl_pppoeroute
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wanctl_pppoeroute 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_dnrd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_dnrd 35[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_netwatchd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_netwatchd 82[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ipfilter
    iptables: Bad rule (does a matching rule exist in that chain?)
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ipfilter 706[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ipfilter_simple
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ipfilter_simple 89[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ipfilter_user
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ipfilter_user 2[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ipfilter_pptp
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ipfilter_pptp 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_nat
    Using /lib/modules/kernel/net/ipv4/netfilter/ip_conntrack_pptp.ko
    ip_conntrack_pptp version 3.1 loaded
    Using /lib/modules/kernel/net/ipv4/netfilter/ip_nat_pptp.ko
    ip_nat_pptp version 3.0 loaded
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_nat 266[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_routectl
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_routectl 50[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_lltd
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_lltd 74[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wsc
    killall: wsccmd: no process killed
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wsc 278[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_upnp
    iptables v1.3.5: Couldn't find target `UPNP-PREROUTING-CHAIN'
    
    Try `iptables -h' or 'iptables --help' for more information.
    iptables: No chain/target/match by that name
    iptables: No chain/target/match by that name
    *********************************************
    Wi-Fi Simple Config Application - Intel Corp.
    Version: Build 0.3.1d, April 24 2006
    *********************************************
    wanctl-wanstate_check.c(41) wanstate_check_main :wanctl:Start wanstate_check Daemon
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_upnp 2251[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_movie_engine
    wlctl-ath.c(2755) wlconf_chg_movie_engine_profile :x:MOVIE_ENGINE_MODE_OFF
    mcsnoop_br_ioctl_device:239: mcast_maxage 300000 / 1000
    ath0      extcmd:
    ath0      extcmd:
    set Buffalo Capability = 00000009
    ath0      extcmd:
    ath1      extcmd:
    ath1      extcmd:
    set Buffalo Capability = 00000009
    ath1      extcmd:
    ath2      extcmd:
    ath2      extcmd:
    set Buffalo Capability = 00000009
    ath2      extcmd:
    ath3      extcmd:
    ath3      extcmd:
    set Buffalo Capability = 00000009
    ath3      extcmd:
    wlctl-ath.c(2603) wlconf_modified_reset_paththrow :x:(IPv6) AS_BEHAVIOR_MODE_ROUTER
    debug : Enter [BRCTL_ADD_IF] 
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_movie_engine 623[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ntpclient
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ntpclient 42[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_eco
    Initializing stack... OK
    Now starting stack
    DEVICE PIN: 87716498
    
    ******* MODE: AP with built-in Registrar and UPnP Proxy *******
    
    checking for PUSH BUTTON
    devpwd is not setted, but start InitiateRegistrarion.
    Waiting for Client to connect(using IEs)...
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_eco 1171[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_wan_qos
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_wan_qos 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_pptp_server
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_pptp_server 0[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_pptp_server_route
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_pptp_server_route 124[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_nastorage
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_nastorage 5[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_ifilter
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_ifilter 51[msec]
    MidLayerModDep.c(798) startModules :INFO:Starting module rc_end_signal
    MidLayerModDep.c(810) startModules :INFO:Started  module rc_end_signal 10[msec]
    led_mask_11g_chip:f0
    reg:000000B0 [CC35CC35 --> CC35CC35]
    reg:000000B4 [CA35CA35 --> CA35CA35]
    ntp.jst.mfeed.ad.jp: Unknown host
    reg:000000B8 [C935C935 --> C935C935]
    cannot open connection to btpd in //.btpd (No such file or directory).
    killall: twonkymedia: no process killed
    killall: twonkymediaserver: no process killed
    rc_nastorage.c(1907) NastorageStop_BitTorrent2 :x:btpd STOP-SUCCESS (0 sec)
    rcUtil_usb.c(1343) UsbStorageInfo_Update :x:UsbStorageInfo_Update
    MidLayerLEDSW.c(1130) MLLE_WaitSwitch :x:Modified Movie Engine Switch
    wlctl-ath.c(2755) wlconf_chg_movie_engine_profile :x:MOVIE_ENGINE_MODE_OFF
    mcsnoop_br_ioctl_device:239: mcast_maxage 300000 / 1000
    ath0      extcmd:
    ath0      extcmd:
    set Buffalo Capability = 00000009
    ath0      extcmd:
    ath1      extcmd:
    ath1      extcmd:
    set Buffalo Capability = 00000009
    ath1      extcmd:
    ath2      extcmd:
    ath2      extcmd:
    set Buffalo Capability = 00000009
    ath2      extcmd:
    ath3      extcmd:
    ath3      extcmd:
    set Buffalo Capability = 00000009
    ath3      extcmd:
    wlctl-ath.c(2603) wlconf_modified_reset_paththrow :x:(IPv6) AS_BEHAVIOR_MODE_ROUTER
    debug : Enter [BRCTL_ADD_IF] 
    ARPING to 192.168.11.1 from 192.168.11.1 via br0
    Sent 1 probes (1 broadcast(s))
    Received 0 reply