WN-AC1167GR

MT7620機というのをしばらく前に把握し、そのうちやりたいなーと思っていた機種。某所で偶然900円で出品されているのを見つけてしまい、衝動的に購入してしまった。
弄るのでメモ。

Switch

zone WAN LAN
port
(WN-AC1167GR)
インターネット LAN4 LAN3 LAN2 LAN1
port
(MT7530)
port0 port1 port2 port3 port4

MAC

  • Factory, 0x4 (2.4G)
  • iNIC_rf, 0x4 (5G)
  • LAN: 34:76:C5:xx:xx:9A
  • WAN: 34:76:C5:xx:xx:99
  • 2.4G: 34:76:C5:xx:xx:9A
  • 5G: 34:76:C5:xx:xx:9B

U-Boot

  • help
    MT7620 # help
    ?       - alias for 'help'
    bootm   - boot application image from memory
    elx_check      - check ELX image
    go      - start application at address 'addr'
    help    - print online help
    md      - memory display
    mdio   - Ralink PHY register R/W command !!
    mm      - memory modify (auto-incrementing)
    mw      - memory write (fill)
    nm      - memory modify (constant address)
    printenv- print environment variables
    reset   - Perform RESET of the CPU
    rf      - read/write rf register
    saveenv - save environment variables to persistent storage
    setenv  - set environment variables
    tftpboot- boot image via network using TFTP protocol
    version - print monitor version
    

  • version
    MT7620 # version
    
    U-Boot 1.1.3 (Jul 30 2014 - 21:26:23)
    

  • printenv
    MT7620 # printenv
    bootcmd=tftp
    baudrate=57600
    ethaddr="34:76:C5:**:**:9A"
    ramargs=setenv bootargs root=/dev/ram rw
    addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off
    addmisc=setenv bootargs $(bootargs) console=ttyS0,$(baudrate) ethaddr=$(ethaddr) panic=1
    flash_self=run ramargs addip addmisc;bootm $(kernel_addr) $(ramdisk_addr)
    kernel_addr=BFC40000
    u-boot=u-boot.bin
    load=tftp 8A100000 $(u-boot)
    u_b=protect off 1:0-1;era 1:0-1;cp.b 8A100000 BC400000 $(filesize)
    loadfs=tftp 8A100000 root.cramfs
    u_fs=era bc540000 bc83ffff;cp.b 8A100000 BC540000 $(filesize)
    test_tftp=tftp 8A100000 root.cramfs;run test_tftp
    ethact=Eth0 (10/100-M)
    language_code=jp
    hw_id=01040016
    domain=1
    pincode=01977608
    wlanaddr=34:76:C5:**:**:9B
    kver=1.02   
    sn=12345678901234567890123456789012
    usboot=0
    dom2=1
    wanaddr=34:76:C5:**:**:99
    bootdelay=2
    filesize=320000
    fileaddr=80A00000
    ipaddr=192.168.99.9
    serverip=192.168.99.8
    autostart=no
    bootfile=uImage_WN-AC1167GR
    op_mode=0
    bver=4.0.1.6
    stdin=serial
    stdout=serial
    stderr=serial
    
    Environment size: 1041/4092 bytes
    

Kernel

  • bootlog
    U-Boot 1.1.3 (Jul 30 2014 - 21:26:23)
    
    Board: Ralink APSoC DRAM:  64 MB
    Ralink UBoot ver: 4.0.1.0
    ELX UBoot ver: 4.0.1.6 (Jul 30 2014 21:26:23)
    Date:Jul 30 2014  Time:21:26:23
    CPU: 580 MHz, MEM: 64 MB
    #Reset_MT7530
    MT7620N disable wan port phy 0
    
    Please choose the operation: 1, 2, 3, 4, 9
                                                                                                                                   0  
       
    3: System Boot system code via Flash.
    ## Booting image at bc070000 ...
       Image Name:   Linux Kernel Image
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    1429145 Bytes =  1.4 MB
       Load Address: 80000000
       Entry Point:  80256840
       Verifying Checksum ... OK
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 80256840) ...
    ## Giving linux memsize in MB, 64
    
    Starting kernel ...
    
    Linux version 3.2.9 (root@jim-pc) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #3 Thu Oct 23 09:38:46 CST 2014
     PCIE: bypass PCIe DLL.
     disable all power about PCIe
    CPU revision is: 00019650 (MIPS 24Kc)
    Ralink MT7620   ver:2 eco:6 running at 580.00 MHz
    Determined physical RAM map:
     memory: 04000000 @ 00000000 (usable)
    Initrd not found or empty - disabling initrd
    Zone PFN ranges:
      Normal   0x00000000 -> 0x00004000
    Movable zone start PFN for each node
    early_node_map[1] active PFN ranges
        0: 0x00000000 -> 0x00004000
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
    Kernel command line:  console=ttyS1,57600 root=/dev/ram0 rootfstype=squashfs,jffs2
    PID hash table entries: 256 (order: -2, 1024 bytes)
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    Writing ErrCtl register=0001ad00
    Readback ErrCtl register=0001ad00
    Memory: 60672k/65536k available (2428k kernel code, 4864k reserved, 616k data, 1104k init, 0k highmem)
    SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:128
    console [ttyS1] enabled
    Calibrating delay loop... 385.02 BogoMIPS (lpj=770048)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    NET: Registered protocol family 16
    MIPS: machine is Ralink MT7620
    PPLL_CFG1=0xeb4000
    MT7620 PPLL lock
    PPLL_DRV =0x80080504
    start PCIe register access
    mt7620_pci_rr(MT7620_PCI_REG_PCICFG_ADDR):1000f0
    i=0,1
    registering PCI controller with io_map_base unset
    bio: create slab  at 0
    SCSI subsystem initialized
    pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
    pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
    pci 0000:00:00.0: BAR 1: set to [mem 0x20200000-0x2020ffff] (PCI address [0x20200000-0x2020ffff])
    pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
    pci 0000:01:00.0: BAR 0: set to [mem 0x20000000-0x200fffff 64bit] (PCI address [0x20000000-0x200fffff])
    pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
    pci 0000:00:00.0: PCI bridge to [bus 01-01]
    pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
    Switching to clocksource MIPS
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    JFFS2 version 2.2 (NAND) (SUMMARY) (ZLIB) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    msgmni has been set to 118
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
    serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
    loop: module loaded
    deice id : c2 20 17 c2 20 (2017c220)
    MX25L6405D(c2 2017c220) (8192 Kbytes)
    mtd .name = raspi, .size = 0x00800000 (8M) .erasesize = 0x00001000 (4K) .numeraseregions = 0
    Creating 11 MTD partitions on "raspi":
    0x000000000000-0x000000800000 : "ALL"
    0x000000000000-0x000000030000 : "Bootloader"
    0x000000030000-0x000000040000 : "Config"
    0x000000040000-0x000000048000 : "Factory"
    0x000000048000-0x000000050000 : "iNIC_rf"
    0x000000050000-0x000000070000 : "NoUsed"
    0x000000070000-0x000000744000 : "Kernel"
    0x0000001cd000-0x000000744000 : "user"
    0x000000724000-0x0000007b0000 : "manufacture"
    0x0000007b0000-0x0000007c0000 : "backup"
    0x0000007c0000-0x000000800000 : "storage"
    IMQ driver loaded successfully. (numdevs = 2, numqueues = 1)
            Hooking IMQ after NAT on PREROUTING.
            Hooking IMQ before NAT on POSTROUTING.
    SMACCR1 -- : 0x000000aa
    SMACCR0 -- : 0xbbccdd10
    Ralink APSoC Ethernet Driver Initilization. v3.1  512 rx/tx descriptors allocated, mtu = 1500!
    SMACCR1 -- : 0x000000aa
    SMACCR0 -- : 0xbbccdd10
    PROC INIT OK!
    PPP generic driver version 2.4.2
    PPP BSD Compression module registered
    PPP Deflate Compression module registered
    PPP MPPE Compression module registered
    NET: Registered protocol family 24
    Registered button device:reset, gpio:2,code:408,index:10
    Registered button device:wps, gpio:1,code:529,index:11
    Registered button device:opmode_1, gpio:12,code:263,index:7
    Registered button device:, gpio:0,code:264,index:8
    Netfilter messages via NETLINK v0.30.
    nf_conntrack version 0.5.0 (2500 buckets, 19800 max, 200 max0, 20000 reserved)
    xt_time: kernel timezone is -0000
    ip_tables: (C) 2000-2006 Netfilter Core Team
    TCP westwood registered
    NET: Registered protocol family 17
    L2TP core driver, V2.0
    8021q: 802.1Q VLAN Support v1.8
    Freeing unused kernel memory: 1104k freed
    System Init version: 1.1 date: 1
    Setting up file systems ...
    Setting up /mnt/tmpfs directory with tmpfs/16384KB
    Setting up FLASH storage partition ...
    JFFS2 notice: (320) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
    Setting up /apps directory ...apps is in FLASH ...
    Setting up loopback device ...
    FINISHED
    Start Normal Operation Mode ...
    ************************************************************************
    *                                ---ELX---                             *
    ************************************************************************
    
    KernelApp version: 1.2.1 build date: 2014/10/23 build time: 09:36:45
    cmd> ln: /sbin/./start_all: File exists
    nat_session_manager: module license 'unspecified' taints kernel.
    Disabling lock debugging due to kernel taint
    Start nat_session_reservation_init_driver
    Raeth v3.1 (Tasklet)
    
    phy_tx_ring = 0x032c6000, tx_ring = 0xa32c6000
    
    phy_rx_ring0 = 0x032dc000, rx_ring0 = 0xa32dc000
    SMACCR1 -- : 0x000000aa
    SMACCR0 -- : 0xbbccdd10
    ESW: Link Status Changed - Port5 Link UP
    CDMA_CSG_CFG = 81000000
    GDMA1_FWD_CFG = 20710000
    device eth2 entered promiscuous mode
    device eth2.1 entered promiscuous mode
    br0: port 1(eth2.1) entering forwarding state
    br0: port 1(eth2.1) entering forwarding state
    device eth2.2 entered promiscuous mode
    br0: port 2(eth2.2) entering forwarding state
    br0: port 2(eth2.2) entering forwarding state
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    0x1300 = 00064380
    device ra0 entered promiscuous mode
    br0: port 3(ra0) entering forwarding state
    br0: port 3(ra0) entering forwarding state
    device ra1 entered promiscuous mode
    br0: port 4(ra1) entering forwarding state
    br0: port 4(ra1) entering forwarding state
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
    create [wsc_5g] proc!
    device rai0 entered promiscuous mode
    br0: port 5(rai0) entering forwarding state
    br0: port 5(rai0) entering forwarding state
    ln: /etc/wsc_xml/WFAWLANConfigSCPD.xml: File exists
    route: SIOCADDRT: File exists
    
    
    
    
    
    
    
    
    
    
    
    Ebtables v2.0 registered
    Start wps_led driver
    br0: port 1(eth2.1) entering forwarding state
    br0: port 2(eth2.2) entering forwarding state
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    br0: port 3(ra0) entering forwarding state
    br0: port 4(ra1) entering forwarding state
    br0: port 5(rai0) entering forwarding state
    cat: can't open '/var/run/upnpd.pid': No such file or directory
    route: SIOCDELRT: No such process
    device ra0 left promiscuous mode
    br0: port 3(ra0) entering forwarding state
    device ra1 left promiscuous mode
    br0: port 4(ra1) entering forwarding state
    device wds0 is not a slave of br0
    device wds1 is not a slave of br0
    device wds2 is not a slave of br0
    device wds3 is not a slave of br0
    RtmpOSNetDevDetach(): RtmpOSNetDeviceDetach(), dev->name=ra0!
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    0x1300 = 00064380
    device ra0 entered promiscuous mode
    br0: port 3(ra0) entering forwarding state
    br0: port 3(ra0) entering forwarding state
    device ra1 entered promiscuous mode
    br0: port 4(ra1) entering forwarding state
    br0: port 4(ra1) entering forwarding state
    ln: /etc/wsc_xml/WFAWLANConfigSCPD.xml: File exists
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    device rai0 left promiscuous mode
    br0: port 5(rai0) entering forwarding state
    interface wds4 does not exist!
    ifconfig: SIOCGIFFLAGS: No such device
    interface wds5 does not exist!
    ifconfig: SIOCGIFFLAGS: No such device
    interface wds6 does not exist!
    ifconfig: SIOCGIFFLAGS: No such device
    interface wds7 does not exist!
    ifconfig: SIOCGIFFLAGS: No such device
    RtmpOSNetDevDetach(): RtmpOSNetDeviceDetach(), dev->name=rai0!
    Unregister PCI device driver
    create [wsc_5g] proc!
    device rai0 entered promiscuous mode
    br0: port 5(rai0) entering forwarding state
    br0: port 5(rai0) entering forwarding state
    ln: /etc/wsc_xml/WFAWLANConfigSCPD.xml: File exists
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    rt635x_tssi0_dc is 0xffffffff
    rt635x_tssi1_dc is 0x00000000
    br0: port 3(ra0) entering forwarding state
    br0: port 4(ra1) entering forwarding state
    br0: port 5(rai0) entering forwarding state
    

コメントを残す

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

WordPress.com ロゴ

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

Google フォト

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

Twitter 画像

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

Facebook の写真

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

%s と連携中