WN-AG300DGR

いつものように某フリマサイトを流し見ていた際に見つけた機種。調べてみるとAR934xらしいと思われたため、今回購入した。
弄っていくのでメモ。

Switch

zone WAN LAN
port
(WN-AG300DGR)
インターネット LAN4 LAN3 LAN2 LAN1
port
(AR8327N)
port5 port4 port3 port2 port1

MAC

  • LAN: 34:76:C5:xx:xx:78 (u-boot-env, ethaddr)
  • WAN: 34:76:C5:xx:xx:7A (u-boot-env, wanaddr)
  • 2.4G: 34:76:C5:xx:xx:78
  • 5G: 34:76:C5:xx:xx:79

U-Boot

  • help
    ar7240> help
    ?       - alias for 'help'
    autoscr - run script from memory
    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
    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
    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.2.6 (Jun 29 2012 - 16:01:45)
    

  • printenv
    ar7240> printenv
    bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs,jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART)
    bootcmd=bootm 0x9f040000
    bootdelay=4
    baudrate=115200
    ethaddr="34:76:C5:**:**:78"
    ipaddr=192.168.1.1
    serverip=192.168.1.101
    sn=000890267
    hw_ver=1.0.0
    hw_id=030A0047
    pro_id=000
    country=000
    domain=1
    wanaddr=34:76:C5:**:**:7A
    wlanaddr=00:AA:BB:CC:DD:12
    snextra=00000000B7G000890267
    bootfile=uImage
    dir=
    bc=mi124_f1e
    lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize;cp.b $fileaddr 0x9f000000 $filesize
    lf=tftp 0x80060000 ${dir}${bc}-jffs2&&erase 0x9f050000 +$filesize;cp.b $fileaddr 0x9f050000 $filesize
    lk=tftp 0x80060000 ${dir}vmlinux_${bc}.lzma.uImage&&erase 0x9f300000 +$filesize;cp.b $fileaddr 0x9f300000 $filesize
    ethact=eth0
    op_mode=0
    uboot_ver=1.2.6.351
    stdin=serial
    stdout=serial
    stderr=serial
    
    Environment size: 894/65532 bytes
    

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

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

Kernel

パスワード要求されるため、コンソールにログインできない。
→ 入れた。

  • uname -a
    # uname -a
    Linux WN-AG300DGR 2.6.34.5 #2 Thu Sep 7 16:36:28 CST 2017 mips unknown
    

  • cat /proc/version
    # cat /proc/version
    Linux version 2.6.34.5 (root@Norkay-BM6835-BM6635-BP6335) (gcc version 4.3.4 (Buildroot 2010.05) ) #2 Thu Sep 7 16:36:28 CST 2017
    
  • cat /proc/cpuinfo
    # cat /proc/cpuinfo
    system type             : Atheros AR934x
    processor               : 0
    cpu model               : MIPS 74Kc V4.12
    BogoMIPS                : 267.26
    CPUClock                : 535
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
    ASEs implemented        : mips16 dsp
    shadow register sets    : 1
    core                    : 0
    VCED exceptions         : not available
    VCEI exceptions         : not available
    
  • cat /proc/meminfo
    # cat /proc/meminfo
    MemTotal:          62020 kB
    MemFree:           25452 kB
    Buffers:            2644 kB
    Cached:            10944 kB
    SwapCached:            0 kB
    Active:             5592 kB
    Inactive:           9712 kB
    Active(anon):       2120 kB
    Inactive(anon):      144 kB
    Active(file):       3472 kB
    Inactive(file):     9568 kB
    Unevictable:         400 kB
    Mlocked:               0 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:          2128 kB
    Mapped:             2624 kB
    Shmem:               148 kB
    Slab:              16156 kB
    SReclaimable:        776 kB
    SUnreclaim:        15380 kB
    KernelStack:         528 kB
    PageTables:          372 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:       31008 kB
    Committed_AS:       6848 kB
    VmallocTotal:    1048372 kB
    VmallocUsed:        1188 kB
    VmallocChunk:    1033456 kB
    
  • cat /proc/mtd
    # cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 01000000 00010000 "ALL"
    mtd1: 00030000 00010000 "Bootloader"
    mtd2: 00010000 00010000 "Config"
    mtd3: 00f10000 00010000 "Kernel"
    mtd4: 00da0000 00010000 "apps"
    mtd5: 00040000 00010000 "manufacture"
    mtd6: 00010000 00010000 "backup"
    mtd7: 00050000 00010000 "storage"
    mtd8: 00010000 00010000 "caldata"
    
  • bootlog (op_mode=0)
    U-Boot 1.2.6 (Jun 29 2012 - 16:01:45)
    U-boot MI124
    DRAM:  
    sri
    Wasp 1.1
    wasp_ddr_initial_config(254): (16bit) ddr2 init
    64 MB
    Top of RAM usable for U-Boot at: 84000000
    Reserving 231k for U-Boot at: 83fc4000
    Reserving 192k for malloc() at: 83f94000
    Reserving 44 Bytes for Board Info at: 83f93fd4
    Reserving 36 Bytes for Global Data at: 83f93fb0
    Reserving 128k for boot params() at: 83f73fb0
    Stack Pointer at: 83f73f98
    Now running in RAM - U-Boot at: 83fc4000
    id read 0xc217
    venid=c2,devid=17
    Unknown flash device
    Flash: 16 MB
    pcie module ID is correct 0x30168c 
    In:    serial
    Out:   serial
    Err:   serial
    Net:   ag934x_enet_initialize...
    No valid address in Flash. Using fixed address
     wasp  reset mask:c03300 
    WASP  ----> S17 PHY *
    : cfg1 0x7 cfg2 0x7114
    eth0: 00:03:7f:09:0b:ad
    athrs17_reg_init: complete
    eth0 up
    eth0
    ag934x_enet_initialize...
    No valid address in Flash. Using fixed address
     wasp  reset mask:c03300 
    WASP  ----> S17 PHY *
    : cfg1 0xf cfg2 0x7114
    eth0: 00:03:7f:09:0b:ad
    eth0 up
    eth0
    
    Please choose the operation: 
       1: Load system code to SDRAM via TFTP. 
       3: Boot system code via Flash (default).
       4: Entr boot command line interface.
                                                                                                                                   0  
       
    3: System Boot system code via Flash.
    ## Booting image at 9f040000 ...
       Image Name:   Linux Kernel Image
       Created:      2017-09-07   8:36:32 UTC
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    1468045 Bytes =  1.4 MB
       Load Address: 80002000
       Entry Point:  80006110
       Verifying Checksum at 0x9f040040 ...OK
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 80006110) ...
    ## Giving linux memsize in bytes, 67108864
    
    Starting kernel ...
    
    Booting Atheros AR934x
    init started: BusyBox v1.7.5 (2017-09-07 16:33:23 CST)
    starting pid 717, tty '/dev/console': '/sbin/config_init'
    mknod: /dev/ttyS0: File exists
    mknod: /dev/ttyS1: File exists
    Config Init version: 1.07.000.52 date: 2017/09/07
    Sun Jan  1 00:00:00 UTC 2017
    ln: /lib/./modules: File exists
    starting pid 777, tty '/dev/ttyS0': '/sbin/config_term'
    ************************************************************************
    *                              WN-AG300DGR                             *
    ************************************************************************
    
    KernelApp/Ramdisk Ver:1.07.000.52                        Date:2017/09/07
    password: 
    

  • bootlog (op_mode=1)
    U-Boot 1.2.6 (Jun 29 2012 - 16:01:45)
    U-boot MI124
    DRAM:  
    sri
    Wasp 1.1
    wasp_ddr_initial_config(254): (16bit) ddr2 init
    64 MB
    Top of RAM usable for U-Boot at: 84000000
    Reserving 231k for U-Boot at: 83fc4000
    Reserving 192k for malloc() at: 83f94000
    Reserving 44 Bytes for Board Info at: 83f93fd4
    Reserving 36 Bytes for Global Data at: 83f93fb0
    Reserving 128k for boot params() at: 83f73fb0
    Stack Pointer at: 83f73f98
    Now running in RAM - U-Boot at: 83fc4000
    id read 0xc217
    venid=c2,devid=17
    Unknown flash device
    Flash: 16 MB
    pcie module ID is correct 0x30168c 
    In:    serial
    Out:   serial
    Err:   serial
    Net:   ag934x_enet_initialize...
    No valid address in Flash. Using fixed address
     wasp  reset mask:c03300 
    WASP  ----> S17 PHY *
    : cfg1 0x7 cfg2 0x7114
    eth0: 00:03:7f:09:0b:ad
    athrs17_reg_init: complete
    eth0 up
    eth0
    ag934x_enet_initialize...
    No valid address in Flash. Using fixed address
     wasp  reset mask:c03300 
    WASP  ----> S17 PHY *
    : cfg1 0xf cfg2 0x7114
    eth0: 00:03:7f:09:0b:ad
    eth0 up
    eth0
    
    Please choose the operation: 
       1: Load system code to SDRAM via TFTP. 
       3: Boot system code via Flash (default).
       4: Entr boot command line interface.
                                                                                                                                   2  
    You choosed 3
    
                                                                                                                                    0 
       
    3: System Boot system code via Flash.
    ## Booting image at 9f040000 ...
       Image Name:   Linux Kernel Image
       Created:      2017-09-07   8:36:32 UTC
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    1468045 Bytes =  1.4 MB
       Load Address: 80002000
       Entry Point:  80006110
       Verifying Checksum at 0x9f040040 ...OK
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 80006110) ...
    ## Giving linux memsize in bytes, 67108864
    
    Starting kernel ...
    
    Booting Atheros AR934x
    init started: BusyBox v1.7.5 (2017-09-07 16:33:23 CST)
    starting pid 717, tty '/dev/console': '/sbin/config_init'
    mknod: /dev/ttyS0: File exists
    mknod: /dev/ttyS1: File exists
    Config Init version: 1.07.000.52 date: 2017/09/07
    Sun Jan  1 00:00:00 UTC 2017
    ln: /lib/./modules: File exists
    starting pid 776, tty '/dev/ttyS0': '/sbin/config_term'
    ************************************************************************
    *                              WN-AG300DGR                             *
    ************************************************************************
    
    KernelApp/Ramdisk Ver:1.07.000.52                        Date:2017/09/07
    password: Application Ver:1.07.000.55            Date:2017/09/07
    
    cat: can't open '/apps/lib/modules/2.6.34/modulesApp.dep': No such file or directory
    ln: /sbin/apps_init: File exists
    ln: /sbin/factory_apps_init: File exists
    ln: /sbin/opmode.sh: File exists
    createShareMem keyid 7001 shmId 0
    Set Str value fail but len not in 1 to 32
    checkpApCfg i=29 [ap2ssid]
    Set Str value fail but len not in 1 to 32
    checkpApCfg i=47 [ap3ssid]
    checkpApCfg error!!
    MSGQ_GETID: Cannot get message queue for key[fwmanager]!
    MSGQ_CREATE: create message queue for key[fwmanager], msgQ Id 0
    CTRL_INTERFACE:[/var/sysconfd_if]  CTRL_INTERFACE_IF:[if0]
    
    System Monitoring
    *********************************************************************
    Initializing system environment
    Setting up /tmp directory ...
    Setting up loopback device ...
    ***************************************************
    Radio_1 is in   Access Point[0]
    Radio_2 is in   Access Point[0]
    System is in    AP Router[0]
    ***************************************************
    SEM_GETID got id -1
    Mac: 0, rtcTime:1483228802
    dmesg: klogctl: Function not implemented
    Open file err: /var/cpumhz!
    Starting system logging daemon ...OK
    Setting up Ethernet devices ...
    OK
    Configuring Bridge device ...          OK
    Setting the host&domain name ...Finished.
    Configuring net ...          OK
    Configuring LAN device ...          OK
    
    
    #############################################
    Initialize Radio setting ... OK
    Configuring radio1 setting ... 
    Configuring Atheros device index:0... wifiname=wifi0 , macaddr=34:76:C5:05:F9:78Encryption using WEP ...      
    Encryption using WEP ...      
     ... finished.
    Set Atheros power to 25 (dBm)
    Encryption using WPAWPA2_PSK ...
    Encryption using TKIP CCMP ...
    No WPA/WPA2 Encryption
    No WPA/WPA2 Encryption
    Starting Hostapd ...            OK
    System Debug : gWlan24GOff[-1].
    System Debug : gWlan5GOff[-1].
    System Debug : childSSIDoff[-1].
    athOpen OK
    OK
    
    
    #############################################
    Initialize Radio setting ... OK
    Configuring radio2 setting ... 
    Configuring Atheros device index:1... wifiname=wifi1 , macaddr=34:76:C5:05:F9:79Encryption using WEP ...      
     ... finished.
    Set Atheros power to 25 (dBm)
    Encryption using WPA2-PSK ...
    Encryption using AES ...
    Starting Hostapd ...            OK
    System Debug : gWlan24GOff[-1].
    System Debug : gWlan5GOff[-1].
    System Debug : childSSIDoff[-1].
    athOpen OK
    OK
    Wan Manager...
    Configuring WAN device[WAN0] ...
    Obtaining IP address from DHCP ... 
    No PHY Link
    Set Domain Routing for FLET'S Square Connection...            
    Starting DNS Proxy ...            OK
    Starting DHCP(udhcpd) server ...            FAILED
    Starting FW manager ...           OK
    Starting ntpclient ...            
    Setup tc for QoS ... Disabled
    
    SCHEDULE, ServiceWlanLowRateInit ...service_index[0].
    
    SCHEDULE, ServiceWlsRadioOffInit ...service_index[1].
    
    SCHEDULE, Service5GWlanLowRateInit ...service_index[2].
    
    SCHEDULE, Service5GWlsRadioOffInit ...service_index[3].
    
    SCHEDULE, ServiceLedOffInit ...service_index[4].
    
    SCHEDULE, ServiceLanOffInit ...service_index[5].
    
    SCHEDULE, ServiceWanOffInit ...service_index[6].
    
    SCHEDULE, ServiceLanLowRateInit ...service_index[7].
    
    SCHEDULE, ServicePowerLedInit ...service_index[8].
    
    
    Schedule starting  [scheduleOpen], ...wait result..
    Schedule result :[Disable (No rules)]. 
    
    
    New Schedule starting   .....wait result..
    scheduleOpen2 ,Do all Service init function.
    
    SCHEDULE, ServiceChildStaPassInit ...service_index[0],[do_nothing] 
    
    SCHEDULE, ServiceChildSSIDOnInit ...service_index[1]. 
    
    SCHEDULE, ServiceChildStaDataResetInit ...service_index[2],[do_nothing] 
    New Schedule starting result: OK 
    Configuring network routing and filtering ...Iptable restart VPN ACL ...VPN ACL ...
    OK
    Configuring Bridge filtering ...OK
    Starting SiteBlock server ...            
    Netpacket Filter Open ....              sysGetKernelInfo: netv :1.0
    Kernel netpkt ver netv: 1.0
    OK
    Starting DDNS  ...  Disabled
    Starting UPNPD  ...  WAN Speed = 10 Mbps
    FAILED
    IGMP Proxy is disabled...  Starting HTTPD server ...           OK
    Staring ALG...           OK
    Starting LLTD ...           OK
    Initialization has completed
    *We used 15.570000 seconds to initialize all modules*
    pSEM_GETID got id 65538
    [RMGMT DBG] RMGMT_VERSION: 3.42.32
    Best channel is 1
    Best channel is 40
    *** PROCESS MANAGER Starts ***
    Processmanager update modules
    Reload WAN: eth0.2 ...
    Close WAN: eth0.2 ...
    Configuring WAN device[WAN0] ...
    Obtaining IP address from DHCP ... 
    Err: read_to_buf failed to open file /proc/2895/status!
    No PHY Link
    VPN Disconnect ...
    Phy(eth0.2) link disconnected ...Wait for link recover
    Restarting Iptables ....Clean iptable...OK
    Configuring network routing and filtering ...Iptable restart VPN ACL ...VPN ACL ...
    OK
    OK
    Reloading dnsProxy ...            Stopping DNS Proxy ...            OK
    Set Domain Routing for FLET'S Square Connection...            
    Starting DNS Proxy ...            Err: read_to_buf failed to open file /proc/4184/status!
    Err: read_to_buf failed to open file /proc/4185/status!
    OK
    Processmanager update modules
    
    !!! wrong password !!! 
    password:
    

広告

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト /  変更 )

Google フォト

Google アカウントを使ってコメントしています。 ログアウト /  変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト /  変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト /  変更 )

%s と連携中