follow me

ELECOM WRH-300CRをOpenWrt化する

ELECOM WRH-300CRをOpenWrt化する。
搭載SoCはMT7620N、RAM 64MB、SPI Flash 16MB。
USBが付いてるのがいい感じかな。

OpenWrt対応は、r49211からになります。(snapshot buildも始まってます。)
https://dev.openwrt.org/changeset/49211

naobsdさんのサイトに情報あるから、あまり書く事もないのですが、ほんの少しだけパッチ作成に関わったので実機入手してみました。


既にぱかっとなぁ。してますが開封記しておきます。

USBケーブルが付属しています。
個人的にUSBが内臓してるか、電源内臓が好みです。(2個になると持ち運びが面倒なので)
本体とケーブルが別だと、ケーブルが傷んだらケーブルだけ交換できる利点はあるんだけど。


microSDとSDの両方が刺さる。
製品としてこうなってるけど、OpenWrtで使うオモチャとしてはmicroSDだけでいいなぁ。と個人的。。。(製品としてそのまま使う気がまったくない発言)


爪は凄く弱くて柔らかい。
ぱかっと簡単に開いた。
開くのに困る事は無さそう。カッターでウニウニすれば簡単に開く。


SDスロットでかいな。


USB、有線Ethernetが1個づつ。


基板は2枚構成。
SDが無ければ1枚構成に出来るんじゃないかなぁと思う。


このピッチのコネクタでの2枚構成の場合、バラすの難しいんだよね。
剥がす時にバターンが持たない事がある。


microSDとSDスロットにかなりのスペースを取られている。
また、MT7620NからUSBを複数取る必要が出てしまっているので、USBハブ(AU6259)を間に付ける形となり基板サイズがまた大きくなってしまっている。
搭載SoCがMT7620Nではなく、MT7620Aであれば、SD-XCが生えているのでUSBハブは不要となった筈ではあるが。
MT7620Nを採用しているのは、チップ単価、チップサイズ、発熱量を意識したのだろうか。


みんなが大好きなシリアルはスルーホールで出ている。
写真右下の4ピンがシリアルにあたる。
基板外側から、RX、TX、GND、VCCになります。(naobsdさんのサイトにある写真が解りやすい。)


こんな感じでシリアル使ってます。


ピッチが狭いので、サンハヤトのテスト用ジャンパとかは入りません。
ストロベリーリナックスのテストクリップが利用できます。(お値段高いのが難点ですが。送料もかかるし。アキバで売って欲しいな。)


一応最後に純正ファームのログを張付。
U-Boot 1.1.3 (Mar 13 2014 - 20:21:36)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb8000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29 
spi device id: c2 20 18 c2 20 (2018c220)
find flash: MX25L12805D
raspi_read: from:30000 len:1000 
*** Warning - bad CRC, using default environment

############################################# 
WiFi-DAS UBoot Version: 339_u4.0.1
--------------------------------------------- 
============================================ 
Ralink UBoot Version: 4.2.S.1
-------------------------------------------- 
ASIC 7620_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Mar 13 2014  Time:20:21:36
============================================ 
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

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 recover system code then write to Flash via TFTP. 
   6: Boot recover system code via Flash.
   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 bc210000 ...
raspi_read: from:210000 len:40 
   Image Name:   Linux Kernel Image
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    6586000 Bytes =  6.3 MB
   Load Address: 80000000
   Entry Point:  8000c2f0
raspi_read: from:210040 len:647e90 
   Verifying Checksum ... OK
   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@ubuntu) (gcc version 3.4.2) #1 Mon Feb 9 17:34:45 CST 2015

 The CPU feqenuce set to 580 MHz

 MIPS CPU sleep mode enabled.
 PCIE: bypass PCIe DLL.
 PCIE: Elastic buffer control: Addr:0x68 -> 0xB4
 disable all power about PCIe
 PCIE: PLL power down for MT7620N
CPU revision is: 00019650 (MIPS 24Kc)
Software DMA cache coherency
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,57600n8 root=/dev/ram0 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=0001f9e8
Readback ErrCtl register=0001f9e8
Memory: 55728k/65536k available (2885k kernel code, 9808k reserved, 716k data, 5320k init, 0k highmem)
NR_IRQS:128
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 = 1ab11d
RALINK_GPIOMODE = 18b11d
PPLL_CFG1=0x4010000
MT7620 PPLL unlock
bio: create slab  at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource Ralink Systick timer
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
RT3xxx EHCI/OHCI init.
squashfs: version 4.0 (2009/01/31) Phillip Lougher
fuse init (API version 7.15)
msgmni has been set to 108
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered (default)
Ralink gpio driver initialized
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 18 c2 20 (2018c220)
MX25L12805D(c2 2018c220) (16384 Kbytes)
mtd .name = raspi, .size = 0x01000000 (0M) .erasesize = 0x00000010 (0K) .numeraseregions = 65536
Creating 6 MTD partitions on "raspi":
0x000000000000-0x000001000000 : "ALL"
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Config"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000210000 : "Recover"
0x000000210000-0x000001000000 : "Kernel"
rdm_major = 253
SMACCR1 -- : 0x00000090
SMACCR0 -- : 0xfee5ac33
Ralink APSoC Ethernet Driver Initilization. v3.0  256 rx/tx descriptors allocated, mtu = 1500!
SMACCR1 -- : 0x00000090
SMACCR0 -- : 0xfee5ac33
PROC INIT OK!
ESW: Link Status Changed - Port4 Link Down
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPTP driver version 0.8.5
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
rt3xxx-ehci rt3xxx-ehci: Ralink EHCI Host Controller
rt3xxx-ehci rt3xxx-ehci: new USB bus registered, assigned bus number 1
rt3xxx-ehci rt3xxx-ehci: irq 18, io mem 0x101c0000
rt3xxx-ehci rt3xxx-ehci: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
rt3xxx-ohci rt3xxx-ohci: RT3xxx OHCI Controller
rt3xxx-ohci rt3xxx-ohci: new USB bus registered, assigned bus number 2
rt3xxx-ohci rt3xxx-ohci: irq 18, io mem 0x101c1000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
MTK MSDC device init.
mtk-sd: MediaTek MT6575 MSDC Driver
nf_conntrack version 0.5.0 (870 buckets, 3480 max)
IPVS: Registered protocols ()
IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
IPVS: ipvs loaded.
GRE over IPv4 demultiplexor driver
gre: can't add protocol
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Restricted Cone
TCP cubic registered
NET: Registered protocol family 10
NET: Registered protocol family 17
Bridge firewalling registered
L2TP core driver, V2.0
PPPoL2TP kernel driver, V2.0
802.1Q VLAN Support v1.8 Ben Greear 
All bugs added by David S. Miller 
msdc0 -> ops_get_cd return<0> <- msdc_ops_get_cd() : L<2307> PID<0x17>
Freeing unused kernel memory: 5320k freed
init started: BusyBox v1.12.1 (Algorithmics/MIPS FPU Emulator v1.5
2014-06-10 20:25:46 PDT)
starting piddevpts: called with bogus options
 32, tty '': '/etc_ro/rcS'
Welcome to
    _______  _______  ___     __  ____   _  _   ___
    |  ___  \|   __  ||   |   |__||    \ | || | /  /
    | |___| ||  |__| ||   |__  __ |     \| || |/  /
    |   _   usb 1-1: new high speed USB device using rt3xxx-ehci and address 2
/|   _   ||      ||  || |\     ||     \
    |__| \__\|__| |__||______||__||_| \____||_|\___\

   	             =System Architecture Department=

goahead: waiting for nvram_daemon starting pid 50, tty '/dev/ttyS1': '/bin/sh'


BusyBox v1.12.1 (2014-06-10 20:25:46 PDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.1: new high speed USB device using rt3xxx-ehci and address 3
scsi0 : usb-storage 1-1.1:1.0
scsi 0:0:0:0: Direct-Access     Generic- Multiple Reader  1.07 PQ: 0 ANSI: 4
sd 0:0:0:0: Attached scsi generic sg0 type 0
scsi 0:0:0:1: Direct-Access     Generic- MicroSD/M2       1.08 PQ: 0 ANSI: 4 CCS
sd 0:0:0:1: Attached scsi generic sg1 type 0
sd 0:0:0:0: [sda] Attached SCSI removable disk
sd 0:0:0:1: [sdb] Attached SCSI removable disk
internet.sh
/dev/gpio: No such file or directory
/dev/gpio: No such file or directory
Push reset button!! 
/dev/gpio: No such file or directory
/dev/gpio: No such file or directory
Password for 'admin' changed

##### disable 1st wireless interface #####
rmmod: rt2860v2_ap_net: No such file or directory
rmmod: rt2860v2_ap: No such file or directory
rmmod: rt2860v2_ap_util: No such file or directory
rmmod: rt2860v2_sta_net: No such file or directory
rmmod: rt2860v2_sta: No such file or directory
rmmod: rt2860v2_sta_util: No such file or directory
insmod: rt2860v2_ap_util.ko: module not found
rt2860v2_ap: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint


=== pAd = c05a6000, size = 891568 ===

<-- RTMPAllocTxRxRingMemory, Status=0
<-- RTMPAllocAdapterBlock, Status=0
AP Driver version-2.7.2.0
insmod: rt2860v2_ap_net.ko: module not found
RX DESC a05b5000  size = 2048
RTMP_TimerListAdd: add timer obj c06412a8!
RTMP_TimerListAdd: add timer obj c060aafc!
RTMP_TimerListAdd: add timer obj c060d75c!
RTMP_TimerListAdd: add timer obj c060d81c!
RTMP_TimerListAdd: add timer obj c060d8dc!
RTMP_TimerListAdd: add timer obj c060d99c!
RTMP_TimerListAdd: add timer obj c060da5c!
RTMP_TimerListAdd: add timer obj c060db1c!
RTMP_TimerListAdd: add timer obj c060dbdc!
RTMP_TimerListAdd: add timer obj c060dc9c!
RTMP_TimerListAdd: add timer obj c060dd5c!
RTMP_TimerListAdd: add timer obj c060de1c!
RTMP_TimerListAdd: add timer obj c060dedc!
RTMP_TimerListAdd: add timer obj c060df9c!
RTMP_TimerListAdd: add timer obj c060e05c!
RTMP_TimerListAdd: add timer obj c060e11c!
RTMP_TimerListAdd: add timer obj c060e1dc!
RTMP_TimerListAdd: add timer obj c060e29c!
RTMP_TimerListAdd: add timer obj c060aad0!
RTMP_TimerListAdd: add timer obj c060ab28!
RTMP_TimerListAdd: add timer obj c060d730!
RTMP_TimerListAdd: add timer obj c060d7f0!
RTMP_TimerListAdd: add timer obj c060d8b0!
RTMP_TimerListAdd: add timer obj c060d970!
RTMP_TimerListAdd: add timer obj c060da30!
RTMP_TimerListAdd: add timer obj c060daf0!
RTMP_TimerListAdd: add timer obj c060dbb0!
RTMP_TimerListAdd: add timer obj c060dc70!
RTMP_TimerListAdd: add timer obj c060dd30!
RTMP_TimerListAdd: add timer obj c060ddf0!
RTMP_TimerListAdd: add timer obj c060deb0!
RTMP_TimerListAdd: add timer obj c060df70!
RTMP_TimerListAdd: add timer obj c060e030!
RTMP_TimerListAdd: add timer obj c060e0f0!
RTMP_TimerListAdd: add timer obj c060e1b0!
RTMP_TimerListAdd: add timer obj c060e270!
RTMP_TimerListAdd: add timer obj c060aaa4!
RTMP_TimerListAdd: add timer obj c060d788!
RTMP_TimerListAdd: add timer obj c060d848!
RTMP_TimerListAdd: add timer obj c060d908!
RTMP_TimerListAdd: add timer obj c060d9c8!
RTMP_TimerListAdd: add timer obj c060da88!
RTMP_TimerListAdd: add timer obj c060db48!
RTMP_TimerListAdd: add timer obj c060dc08!
RTMP_TimerListAdd: add timer obj c060dcc8!
RTMP_TimerListAdd: add timer obj c060dd88!
RTMP_TimerListAdd: add timer obj c060de48!
RTMP_TimerListAdd: add timer obj c060df08!
RTMP_TimerListAdd: add timer obj c060dfc8!
RTMP_TimerListAdd: add timer obj c060e088!
RTMP_TimerListAdd: add timer obj c060e148!
RTMP_TimerListAdd: add timer obj c060e208!
RTMP_TimerListAdd: add timer obj c060e2c8!
RTMP_TimerListAdd: add timer obj c05ae554!
RTMP_TimerListAdd: add timer obj c05add9c!
RTMP_TimerListAdd: add timer obj c05ae524!
RTMP_TimerListAdd: add timer obj c05ae8bc!
RTMP_TimerListAdd: add timer obj c05ae61c!
RTMP_TimerListAdd: add timer obj c05ae64c!
RTMP_TimerListAdd: add timer obj c05ae7fc!
RTMP_TimerListAdd: add timer obj c05b1b28!
RTMP_TimerListAdd: add timer obj c05b1370!
RTMP_TimerListAdd: add timer obj c05b1af8!
RTMP_TimerListAdd: add timer obj c05b1e90!
RTMP_TimerListAdd: add timer obj c05b1bf0!
RTMP_TimerListAdd: add timer obj c05b1c20!
RTMP_TimerListAdd: add timer obj c05b1dd0!
RTMP_TimerListAdd: add timer obj c05b50fc!
RTMP_TimerListAdd: add timer obj c05b4944!
RTMP_TimerListAdd: add timer obj c05b50cc!
RTMP_TimerListAdd: add timer obj c05b5464!
RTMP_TimerListAdd: add timer obj c05b51c4!
RTMP_TimerListAdd: add timer obj c05b51f4!
RTMP_TimerListAdd: add timer obj c05b53a4!
RTMP_TimerListAdd: add timer obj c05b86d0!
RTMP_TimerListAdd: add timer obj c05b7f18!
RTMP_TimerListAdd: add timer obj c05b86a0!
RTMP_TimerListAdd: add timer obj c05b8a38!
RTMP_TimerListAdd: add timer obj c05b8798!
RTMP_TimerListAdd: add timer obj c05b87c8!
RTMP_TimerListAdd: add timer obj c05b8978!
RTMP_TimerListAdd: add timer obj c05bbca4!
RTMP_TimerListAdd: add timer obj c05bb4ec!
RTMP_TimerListAdd: add timer obj c05bbc74!
RTMP_TimerListAdd: add timer obj c05bc00c!
RTMP_TimerListAdd: add timer obj c05bbd6c!
RTMP_TimerListAdd: add timer obj c05bbd9c!
RTMP_TimerListAdd: add timer obj c05bbf4c!
RTMP_TimerListAdd: add timer obj c05bf278!
RTMP_TimerListAdd: add timer obj c05beac0!
RTMP_TimerListAdd: add timer obj c05bf248!
RTMP_TimerListAdd: add timer obj c05bf5e0!
RTMP_TimerListAdd: add timer obj c05bf340!
RTMP_TimerListAdd: add timer obj c05bf370!
RTMP_TimerListAdd: add timer obj c05bf520!
RTMP_TimerListAdd: add timer obj c05c284c!
RTMP_TimerListAdd: add timer obj c05c2094!
RTMP_TimerListAdd: add timer obj c05c281c!
RTMP_TimerListAdd: add timer obj c05c2bb4!
RTMP_TimerListAdd: add timer obj c05c2914!
RTMP_TimerListAdd: add timer obj c05c2944!
RTMP_TimerListAdd: add timer obj c05c2af4!
RTMP_TimerListAdd: add timer obj c05c5e20!
RTMP_TimerListAdd: add timer obj c05c5668!
RTMP_TimerListAdd: add timer obj c05c5df0!
RTMP_TimerListAdd: add timer obj c05c6188!
RTMP_TimerListAdd: add timer obj c05c5ee8!
RTMP_TimerListAdd: add timer obj c05c5f18!
RTMP_TimerListAdd: add timer obj c05c60c8!
RTMP_TimerListAdd: add timer obj c060d324!
RTMP_TimerListAdd: add timer obj c060cb6c!
RTMP_TimerListAdd: add timer obj c060d2f4!
RTMP_TimerListAdd: add timer obj c060d68c!
RTMP_TimerListAdd: add timer obj c060d3ec!
RTMP_TimerListAdd: add timer obj c060d41c!
RTMP_TimerListAdd: add timer obj c060d354!
RTMP_TimerListAdd: add timer obj c060d384!
RTMP_TimerListAdd: add timer obj c060d3b4!
RTMP_TimerListAdd: add timer obj c0617c14!
RTMP_TimerListAdd: add timer obj c0617d30!
RTMP_TimerListAdd: add timer obj c0617c40!
RTMP_TimerListAdd: add timer obj c060f48c!
RTMP_TimerListAdd: add timer obj c05ab668!
RTMP_TimerListAdd: add timer obj c05aec3c!
RTMP_TimerListAdd: add timer obj c05b2210!
RTMP_TimerListAdd: add timer obj c05b57e4!
RTMP_TimerListAdd: add timer obj c05b8db8!
RTMP_TimerListAdd: add timer obj c05bc38c!
RTMP_TimerListAdd: add timer obj c05bf960!
RTMP_TimerListAdd: add timer obj c05c2f34!
RTMP_TimerListAdd: add timer obj c060f198!
APSDCapable[0]=0
APSDCapable[1]=0
APSDCapable[2]=0
APSDCapable[3]=0
APSDCapable[4]=0
APSDCapable[5]=0
APSDCapable[6]=0
APSDCapable[7]=0
APSDCapable[8]=0
APSDCapable[9]=0
APSDCapable[10]=0
APSDCapable[11]=0
APSDCapable[12]=0
APSDCapable[13]=0
APSDCapable[14]=0
APSDCapable[15]=0
default ApCliAPSDCapable[0]=0
Key1Str is Invalid key length(0) or Type(1)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
RTMPSetDefaultChannel() : default channel to 1 
1. Phy Mode = 9
2. Phy Mode = 9
E2PROM: D0 target power=0xff20 
E2PROM: 40 MW Power Delta= 0 
3. Phy Mode = 9
RTMP_TimerListAdd: add timer obj c05ab264!
AntCfgInit: primary/secondary ant 0/1
Initialize RF Central Registers for E2 !!!
Initialize RF Central Registers for E3 !!!
Initialize RF Channel Registers for E2 !!!
Initialize RF Channel Registers for E3 !!!
Initialize RF DCCal Registers for E2 !!!
Initialize RF DCCal Registers for E3 !!!
D1 = 2, D2 = 9, CalCode = 16 !!!
RT6352_Temperature_Init : BBPR49 = 0x2
RT6352_Temperature_Init : TemperatureRef25C = 0xfffffff8
Current Temperature from BBP_R49=0xfffffffa
RT6352_TssiTableAdjust: upper_bound = 0x7F decimal: 127
RT6352_TssiTableAdjust: lower_bound = 0xFFFFFF80 decimal: -128
*** RT6352_TssiTableAdjust: G Tssi[-7 .. +7] = -128 -1 -1 -1 -128 -1 -1
 - -1 - -1 -1 -1 -1 -1 -1 -1, offset=-8, tuning=0
RT6352_TssiTableAdjust: G Tssi[-7 .. +7] = -128 -9 -9 -9 -128 -9 -9 - -9 - -9 -9 -9 -9 -9 -9 -9, offset=-8, tuning=0
mp_temperature=0xffffffff, step = +7
E2PROM: G Tssi[-7 .. +7] = -128 -9 -9 -9 -128 -9 -9 - -9 - -9 -9 -9 -9 -9 -9 -9, offset=-8, tuning=0
 TX BW Filter Calibration !!!
 RX BW Filter Calibration !!!
LOFT Calibration Done!
IQCalibration Start!
IQCalibration Done! CH = 0, (gain= 1, phase= 2)
IQCalibration Start!
IQCalibration Done! CH = 1, (gain= f, phase=3d)
TX IQ Calibration Done!
internal ALC is not enabled in NVM !
bAutoTxAgcG = 0
MCS Set = ff ff 00 00 01
SYNC - BBP R4 to 20MHz.l
The 2-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 2
Main bssid = 00:90:fe:e5:ac:33
<==== rt28xx_init, Status=0
0x1300 = 00064380
ifconfig: ioctl 0x8913 failed: No such device
brctl: bridge br0: No such device or address
Raeth v3.0 (Tasklet,SkbRecycle)

phy_tx_ring = 0x004c7000, tx_ring = 0xa04c7000

phy_rx_ring0 = 0x004c8000, rx_ring0 = 0xa04c8000
SMACCR1 -- : 0x00000090
SMACCR0 -- : 0xfee5ac33
CDMA_CSG_CFG = 81000000
GDMA1_FWD_CFG = 20710000
vconfig: ioctl error for rem: No such device
vconfig: ioctl error for rem: No such device
rmmod: 8021q: No such file or directory
device eth2 entered promiscuous mode
##### config Ralink ESW vlan partition (LLLLW) #####
switch reg write offset=2004, value=ff0003
switch reg write offset=2104, value=ff0003
switch reg write offset=2204, value=ff0003
switch reg write offset=2304, value=ff0003
switch reg write offset=2404, value=ff0003
switch reg write offset=2504, value=ff0003
switch reg write offset=2010, value=810000c0
switch reg write offset=2110, value=810000c0
switch reg write offset=2210, value=810000c0
switch reg write offset=2310, value=810000c0
switch reg write offset=2410, value=810000c0
switch reg write offset=2510, value=810000c0
switch reg write offset=2610, value=81000000
switch reg write offset=2710, value=81000000
switch reg write offset=2604, value=20ff0003
switch reg write offset=2704, value=20ff0003
Special Tag Disabled
switch reg write offset=2610, value=81000000
switch reg write offset=2014, value=10001
switch reg write offset=2114, value=10001
switch reg write offset=2214, value=10001
switch reg write offset=2314, value=10001
switch reg write offset=2414, value=10002
switch reg write offset=2514, value=10001
device ra0 entered promiscuous mode
device eth2.1 entered promiscuous mode
udhcpc (v1.12.1) started
br0: port 2(eth2.1) entering learning state
br0: port 2(eth2.1) entering learning state
br0: port 1(ra0) entering learning state
br0: port 1(ra0) entering learning state
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
br0: port 2(eth2.1) entering forwarding state
br0: port 1(ra0) entering forwarding state
killall: udhcpd: no process killed
udhcp server (v0.9.8) started
Set: phy[0].reg[0] = 3900
Set: phy[1].reg[0] = 3900
Set: phy[2].reg[0] = 3900
Set: phy[3].reg[0] = 3900
Set: phy[0].reg[0] = 3300
Set: phy[1].reg[0] = 3300
Set: phy[2].reg[0] = 3300
Set: phy[3].reg[0] = 3300
ADDRCONF(NETDEV_UP): apcli0: link is not ready
####==== fix elecoms issue 15 ====####
#//Blue,2014-10-23 for elecoms request issue 15. Close all tcp ports under router mode
ifconfig: ioctl 0x8913 failed: No such device
rm: cannot remove '/etc/radvd.conf': No such file or directory
echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
killall rt2860apd 1>/dev/null 2>&1
iptables -F -t filter 1>/dev/null 2>&1
iptables -D FORWARD -j macipport_filter 1>/dev/null 2>&1
iptables -F macipport_filter 1>/dev/null 2>&1
iptables -D FORWARD -j web_filter  1>/dev/null 2>&1
iptables -F web_filter  1>/dev/null 2>&1
iptables -D FORWARD -j malicious_filter 1>/dev/null 2>&1
iptables -F malicious_filter  1>/dev/null 2>&1
iptables -D INPUT -j malicious_input_filter 1>/dev/null 2>&1
iptables -F malicious_input_filter  1>/dev/null 2>&1
iptables -t filter -D FORWARD -j port_trigger 1>/dev/null 2>&1
iptables -t filter -F port_trigger 1>/dev/null 2>&1
iptables -t nat -D PREROUTING -j trigger_prerouting 1>/dev/null 2>&1
iptables -t nat -F trigger_prerouting  1>/dev/null 2>&1; iptables -t nat -X trigger_prerouting  1>/dev/null 2>&1
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t filter -N web_filter 1>/dev/null 2>&1
iptables -t filter -N macipport_filter 1>/dev/null 2>&1
iptables -t filter -N malicious_filter 1>/dev/null 2>&1
iptables -t filter -N synflood_filter 1>/dev/null 2>&1
iptables -t filter -N malicious_input_filter 1>/dev/null 2>&1
iptables -t filter -N synflood_input_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j web_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j macipport_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j malicious_filter 1>/dev/null 2>&1
iptables -t filter -A malicious_filter -p tcp --syn -j synflood_filter 1>/dev/null 2>&1
iptables -t filter -A INPUT -j malicious_input_filter 1>/dev/null 2>&1
iptables -t filter -A malicious_input_filter -p tcp --syn -j synflood_input_filter 1>/dev/null 2>&1
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 1>/dev/null 2>&1
iptables -t filter -N port_trigger 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j port_trigger 1>/dev/null 2>&1
iptables -t nat -N trigger_prerouting 1>/dev/null 2>&1
iptables -t nat -A PREROUTING -j trigger_prerouting 1>/dev/null 2>&1
iptables -A malicious_input_filter -i eth2.2 -p tcp --dport 80 -j DROP
iptables -A malicious_input_filter -i eth2.2 -p icmp -j DROP
iptables -t nat -D PREROUTING -j port_forward 1>/dev/null 2>&1
iptables -t nat -F port_forward  1>/dev/null 2>&1; iptables -t nat -X port_forward  1>/dev/null 2>&1
iptables -t nat -D PREROUTING -j DMZ 1>/dev/null 2>&1
iptables -t nat -F DMZ 1>/dev/null 2>&1; iptables -t nat -X DMZ  1>/dev/null 2>&1
cat /proc/sys/net/netfilter/nf_conntrack_udp_timeout > /var/.udpbackup
echo 0 > /proc/sys/net/netfilter/nf_conntrack_udp_timeout
cat /var/.udpbackup > /proc/sys/net/netfilter/nf_conntrack_udp_timeout; rm -f /var/.udpbackup
cat /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established > /var/.tcpbackup
echo 0 > /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established
cat /var/.tcpbackup > /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established; rm -f /var/.tcpbackup
iptables -t nat -N port_forward 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 1 -j port_forward 1>/dev/null 2>&1
iptables -t nat -N DMZ 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 2 -j DMZ 1>/dev/null 2>&1
iptables -I INPUT -i eth2.2 -p tcp -j DROP 1>/dev/null 2>&1
iptables -A INPUT -i eth2.2 -p udp --dport 53 -j DROP 1>/dev/null 2>&1
ntp.sh
ddns.sh
iwpriv ra0 set WscConfMode=0 1>/dev/null 2>&1
iwpriv ra0 set WscConfMode=7
route add -host 239.255.255.250 dev br0 1>/dev/null 2>&1
miniupnpd.sh init
Unknown option: -I
Unknown option: ra0
Jan  1 00:00:36 miniupnpd[8124]: WPS listening on port 7777
killall -q klogd
killall -q syslogd
syslogd -C8 1>/dev/null 2>&1
klogd 1>/dev/null 2>&1
killall -q zebra
killall -q ripd
webs: Listening for HTTP requests at address 192.168.2.1
AntCfgInit: primary/secondary ant 0/1
Initialize RF Central Registers for E2 !!!
Initialize RF Central Registers for E3 !!!
Initialize RF Channel Registers for E2 !!!
Initialize RF Channel Registers for E3 !!!
Initialize RF DCCal Registers for E2 !!!
Initialize RF DCCal Registers for E3 !!!
switch register base addr to 0xb0000600
write offset 0x7c, value 0x1

なんかポートがぽろぽろ開いてるなぁ。ってのは見なかった事にしておきましょう。
# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
tcp        0      0 0.0.0.0:7777            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      
tcp        0      0 :::8080                 :::*                    LISTEN      
tcp        0      0 :::53                   :::*                    LISTEN      
tcp        0      0 :::23                   :::*                    LISTEN      
udp        0      0 0.0.0.0:53              0.0.0.0:*                           
udp        0      0 0.0.0.0:67              0.0.0.0:*                           
udp        0      0 0.0.0.0:1900            0.0.0.0:*                           
udp        0      0 192.168.2.1:40598       0.0.0.0:*                           
udp        0      0 0.0.0.0:47528           0.0.0.0:*                           
udp        0      0 :::53                   :::*                                
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  3      [ ]         DGRAM                      4347 /var/syslogd
unix  2      [ ]         DGRAM                      4350 
unix  2      [ ]         DGRAM                      1372 
unix  3      [ ]         STREAM     CONNECTED       1258 
unix  3      [ ]         STREAM     CONNECTED       1257 
ELECOM WRH-300CRをOpenWrt化する | 0 件のコメント | アカウント登録
サイト管理者はコメントに関する責任を負いません。