タグ: WRC-1167GHBK2-I

WRC-1167GHBK2-I

ハードオフ東久留米店で、WR9500Nと一緒に確保したもの。以前よりMT7620を搭載していることを把握していたものの、少々懸念する点があり購入は見送っていたが、ジャンクで非常に安価に出ていたので衝動的に購入してしまった。
upstreamへマージできるかは不明なものの、弄っていくのでメモ。

Switch

zone WAN LAN
port
(WRC-1167GHBK-I)
INTERNET LAN4 LAN3 LAN2 LAN1
port
(MT7530)
port0 port1 port2 port3 port4

MAC

5G (MT7612E)のEEPROMにMACアドレスが埋め込まれていないため、openwrt/openwrtへのPRは行わない。

  • LAN: BC:5C:4C:xx:xx:51 (hwconfig, HW.LAN.MAC.Address (text))
  • WAN: BC:5C:4C:xx:xx:50 (hwconfig, HW.LAN.MAC.Address (text))
  • 2G: BC:5C:4C:xx:xx:52 (hwconfig, HW.LAN.2G.0.MAC.Address (text))
  • 5G: BC:5C:4C:xx:xx:53 (hwconfig, HW.LAN.5G.0.MAC.Address (text))

U-Boot

  • help
    MT7620 # help
    ?       - alias for 'help'
    bootm   - boot application image from memory
    cp      - memory copy
    erase   - erase SPI FLASH memory
    go      - start application at address 'addr'
    help    - print online help
    loadb   - load binary file over serial line (kermit mode)
    md      - memory display
    mdio   - Ralink PHY register R/W command !!
    mm      - memory modify (auto-incrementing)
    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 (Mar 27 2015 - 15:25:08)
    

  • printenv
    MT7620 # printenv
    bootcmd=tftp
    bootdelay=3
    baudrate=57600
    ethaddr="00:AA:BB:CC:DD:10"
    ipaddr=192.168.2.81
    serverip=192.168.2.89
    stdin=serial
    stdout=serial
    stderr=serial
    
    Environment size: 151/4092 bytes
    

Kernel

パスワードが掛けられており、ログイン不可。

  • bootlog
    U-Boot 1.1.3 (Mar 27 2015 - 15:25:08)
    
    Board: Ralink APSoC DRAM:  64 MB
    relocate_code Pointer at: 83fb4000
    enable ephy clock...done. rf reg 29 = 5
    SSC disabled.
    ******************************
    Software System Reset Occurred
    ******************************
    spi_wait_nsec: 29 
    spi device id: c2 20 17 c2 20 (2017c220)
    find flash: MX25L6405D
    raspi_read: from:30000 len:1000 
    *** Warning - bad CRC, using default environment
    
    ============================================ 
    Ralink UBoot Version: 4.1.2.0
    -------------------------------------------- 
    ASIC 7620_MP (Port5GigaSW)
    DRAM component: 512 Mbits DDR, width 16
    DRAM bus: 16 bit
    Total memory: 64 MBytes
    Flash component: SPI Flash
    Date:Mar 27 2015  Time:15:25:08
    ============================================ 
    icache: sets:512, ways:4, linesz:32 ,total:65536
    dcache: sets:256, ways:4, linesz:32 ,total:32768 
    
     ##### The CPU freq = 580 MHZ #### 
     estimate memory size =64 Mbytes
    #Reset_MT7530
    
    Please choose the operation: 
       1: Load system code to SDRAM via TFTP. 
       2: Load system code then write to Flash via TFTP. 
       3: Boot system code via Flash (default).
       4: Entr boot command line interface.
       5: Load ucos code to SDRAM via TFTP Client. 
       7: Load Boot Loader code then write to Flash via Serial. 
       9: Load Boot Loader code then write to Flash via TFTP. 
                                                                                                                              0  
       
    3: System Boot system code via Flash.
    ## Booting image at bc070000 ...
    raspi_read: from:70000 len:40 
    Magic number at 0xBC070000 
    raspi_read: from:70014 len:40 
       Image Name:   Linux Kernel Image
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    4165548 Bytes =  4 MB
       Load Address: 80000000
       Entry Point:  8000c2f0
    raspi_read: from:70054 len:3f8fac 
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 8000c2f0) ...
    ## Giving linux memsize in MB, 64
    
    Starting kernel ...
    
    
    LINUX started...
    
     THIS IS ASIC
    Linux version 2.6.36 (root@localhost.localdomain) (gcc version 3.4.2) #119 Fri Mar 27 15:23:29 CST 2015
    
     The CPU feqenuce set to 580 MHz
     PCIE: bypass PCIe DLL.
     PCIE: Elastic buffer control: Addr:0x68 -> 0xB4
     disable all power about PCIe
    CPU revision is: 00019650 (MIPS 24Kc)
    Software DMA cache coherency
    Determined physical RAM map:
     memory: 04000000 @ 00000000 (usable)
    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,57600n8 root=1f05 console=ttyS0
    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-waylinesize 32 bytes.
    Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    Writing ErrCtl register=0006ee20
    Readback ErrCtl register=0006ee20
    Memory: 61840k/65536k available (2266k kernel code, 3696k reserved, 397k data, 176k init, 0k highmem)
    Hierarchical RCU implementation.
            Verbose stalled-CPUs detection is disabled.
    NR_IRQS:128
    Console: colour dummy device 80x25
    console [ttyS1] enabled
    Calibrating delay loop... 386.04 BogoMIPS (lpj=772096)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    NET: Registered protocol family 16
    RALINK_GPIOMODE = 1a301d
    RALINK_GPIOMODE = 18301d
    PPLL_CFG1=0xe50000
    MT7620 PPLL lock
    PPLL_DRV =0x80080504
    start PCIe register access
    RALINK_RSTCTRL = 2400000
    RALINK_CLKCFG1 = 75afffc0
    
    *************** MT7620 PCIe RC mode *************
    PCIE0 enabled
    init_rt2880pci done
    bio: create slab  at 0
    vgaarb: loaded
    pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
    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 [io  disabled]
    pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
    BAR0 at slot 0 = 0
    bus=0x0, slot = 0x0
    res[0]->start = 0
    res[0]->end = 0
    res[1]->start = 20200000
    res[1]->end = 2020ffff
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    bus=0x1, slot = 0x0
    res[0]->start = 20000000
    res[0]->end = 200fffff
    res[1]->start = 0
    res[1]->end = 0
    res[2]->start = 0
    res[2]->end = 0
    res[3]->start = 0
    res[3]->end = 0
    res[4]->start = 0
    res[4]->end = 0
    res[5]->start = 0
    res[5]->end = 0
    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
    Load Kernel WDG Timer Module
    Load Ralink Timer0 Module
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    msgmni has been set to 120
    io scheduler noop registered (default)
    Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    serial8250: ttyS0 at MMIO 0x10000500 (irq = 37) is a 16550A
    serial8250: ttyS1 at MMIO 0x10000c00 (irq = 12) is a 16550A
    brd: module loaded
    deice id : c2 20 17 c2 20 (2017c220)
    MX25L6405D(c2 2017c220) (8192 Kbytes)
    mtd .name = raspi, .size = 0x00800000 (0M) .erasesize = 0x00000008 (0K) .numeraseregions = 65536
    Creating 8 MTD partitions on "raspi":
    0x000000000000-0x000000030000 : "Bootloader"
    0x000000030000-0x000000040000 : "Config"
    0x000000040000-0x000000050000 : "Factory"
    0x000000050000-0x000000070000 : "nvram"
    0x000000070000-0x000000170000 : "Kernel"
    0x000000170000-0x0000007f0000 : "RootFS"
    0x0000007f0000-0x000000800000 : "hwconfig"
    0x000000070000-0x0000007f0000 : "Uimage"
    rdm_major = 254
    SMACCR1 -- : 0x0000000c
    SMACCR0 -- : 0x43762077
    Ralink APSoC Ethernet Driver Initilization. v3.0  256 rx/tx descriptors allocated, mtu = 1500!
    SMACCR1 -- : 0x0000000c
    SMACCR0 -- : 0x43762077
    PROC INIT OK!
    PPP generic driver version 2.4.2
    PPP BSD Compression module registered
    NET: Registered protocol family 24
    PPTP driver version 0.8.5
    i8042.c: i8042 controller self test timeout.
    Trying to free nonexistent resource 
    mice: PS/2 mouse device common for all mice
    Ralink APSoC Hardware Watchdog Timer
    u32 classifier
        Performance counters on
    Netfilter messages via NETLINK v0.30.
    nf_conntrack version 0.5.0 (966 buckets, 3864 max)
    ctnetlink v0.93: registering with nfnetlink.
    matchsize=264
    xt_time: kernel timezone is -0000
    GRE over IPv4 demultiplexor driver
    gre: can't add protocol
    ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Linux
    TCP cubic registered
    NET: Registered protocol family 17
    dnshijack
    802.1Q VLAN Support v1.8 Ben Greear 
    All bugs added by David S. Miller 
    VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
    Freeing unused kernel memory: 176k freed
    init started: BusyBox v1.12.1 (2015-01-27 11:57:03 CST)
    starting pid 23, tty '': '/etc/init.d/rcS sysinit'
    rc ver. 1.0.3
    Initializing...Success!
    Mounting file systems...Success!
    Creating devices...Success!
    Creating loopback device...Success!
    starting pid 30, tty '': '/etc/init.d/rcS start'
    rc ver. 1.0.3
    Initializing...Success!
    Loading dynamic libraries...Success!
    edx_gpio: module license 'unspecified' taints kernel.
    Disabling lock debugging due to kernel taint
    Initializing EDX GPIO...Done
    Acelink events notification ver. 1.6
    argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER hold=
    NVRAM access daemon Ver. 1.0 Build 2argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_UP hold=
    0150127115621
    daemonize process
    Algorithmics/MIPS FPU Emulator v1.5
    argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER hold=
    Starting L0000Config.so...binfile link OK!
    Done ! (ret=0)
    Starting L0100WLANInterface.so...Done ! (ret=0)
    Starting L0130EthInterface.so...Done ! (ret=0)
    Starting L0200LANConfig.so...Done ! (ret=0)
    1970-01-01 00:00:19: (server.c.915) can't have more connections than fds/2:  1024 824 
    start lld2d...
    udhcpd: max_leases=235 is too big, setting to 101
    start child_net...
    start Router mode accesscontrol...
    starting firewall...
    start house_keeper...
    Starting L0230LANServices.so...Done ! (ret=0)
    Starting L0300WANConfig.so...Done ! (ret=0)
    
    Please press Enter to activate this console. starting wan_event...
    wan_event done !
    Notice: caching turned off
    Notice: caching turned off
    insmod: cannot insert '/sbin/hw_nat.ko': File exists
    starting wan_event...
    wan_event done !
    starting wan_event...
    udhcpc receive a leasefail for eth2.2
    wan_event done !
    

広告