さすらいのエンジニア

きずいたこと

フォン FON 2405e 個人専用 ルータに 改造 する

2012-03-10 20:59:06 | Windws

FONルータはソフトバンクからiPhone購入者に3G回線圧迫の回避策として

ルータが無償配布されていますが、そのまま利用するとFON利用者は誰でも利用可能となり

悪用される可能性もあります、そこでファームを書き換えて自分専用にしてみましょう。

ただし、装置の保証はありませんし自己責任になります。

実は改造しなくてもブリッジとして利用する方法はあるようでしたが

今回は Royal Windows さんのページを参考にファームの入れ替えに挑戦してみました。

http://royalwin.blog.so-net.ne.jp/2011-12-20

当然 順風に行くはずもありませんが。

ちなみに Royal Windows さんのページは完璧でした。。失敗は私の読み込み不足です。

まずは、ルータのネジを外します、特殊ネジを外す工具を入手します

私は コーナン で購入しました

専用のドライバ 400円程度

ネジは4カ所、丸い部分を取り外すと出てきます。

次に必要なのは、シリアルポートへの接続ですが当初直接太い線を半田で付けたため

線が外れて二度と使えなくなってしまいました。

線と共にパターンが取れて使えなくなった状態です。

そこで2号機にはピンを半田しました、そして線も一時的な接続なので

わに口クリップで接続しました。

 

結線方法はRoyal Windowsを参照して欲しいと思います。

注意しないといけないのは、シリアルIFはTTLレベルでPCのRS−232Cではないこと

ここも私は勘違いしました、PCのシリアルIFに接続しましたがレベルが低すぎて文字化けしました

さらに、コマンドの受信が出来なくなってしまった模様です。

そこで、Royal Windowsでも使われてる秋月電子のシリアルーUSBインターフェースを購入しました。

そしてルータもyahooオークションで安く入手しなおし。

FT232RL USBシリアル変換モジューhttp://akizukidenshi.com/catalog/g/gK-01977/

950円

未検証ですがMAC用のドライバもHPにはありました。

シリアルIFが接続できたら電源を入れてみましょう

Teraterm などのターミナル(設定はHP見てね)に起動シーケンスが出ます。

 

起動するとターミナルに起動メッセージが表示されたらOKです
 
U-Boot 1.1.3 (Jan  6 2010 - 07:10:30)

Board: Fonera
DRAM:  32 MB
relocate_code Pointer at: 81fac000
spi_wait_nsec: 3e
spi deice id: c2 20 15 c2 20 (2015c220)
find flash: mx25l1605d
raspi_read: from:41030000 len:1000
Using default environment


 ##### The CPU freq = 320 MHZ ####

 

SDRAM bus set to 16 bit
 SDRAM size =32 Mbytes

Please choose the operation:
   1: Boot system code via Flash (default).
   2: Load system code then write to Flash via TFTP.
   3: Entr boot command line interface.

booting from flash
## Booting image at bf020000 ...
raspi_read: from:20000 len:40
   Image Name:   MIPS OpenWrt Linux-2.6.21
   Created:      2010-02-11   8:09:34 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    613723 Bytes = 599.3 kB
   Load Address: 80000000
   Entry Point:  80000000
raspi_read: from:20040 len:95d5b
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 32

Starting kernel ...


LINUX started...

 THIS IS ASIC
Linux version 2.6.21 (blogic@blap4) (gcc version 4.1.2) #143 Thu Feb 11 09:09:18 CET 2010

 The CPU feqenuce set to 320 MHz
CPU revision is: 0001964c
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Built 1 zonelists.  Total pages: 8128
Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock4 init=/sbin/preinit
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB, 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
cause = 80800040, status = 1100ff00
PID hash table entries: 128 (order: 7, 512 bytes)
calculating r4koff... 0030d400(3200000)
CPU frequency 320.00 MHz
Using 160.000 MHz high precision timer.
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 30416k/32768k available (1689k kernel code, 2352k reserved, 186k data, 100k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Generic PHY: Registered new driver
NET: Registered protocol family 2
Time: MIPS clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
was not able to assign mahjor 200 to button chardev
ramips_gpio: done
squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
io scheduler noop registered
io scheduler deadline registered (default)
ramips_wdt: loaded
Serial: 8250/16550 driver $Revision: 1.3 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A
serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A
PPP generic driver version 2.4.2
NET: Registered protocol family 24
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky 
deice id : c2 20 15 c2 20 (2015c220)
mx25l3205d(c2 20160000) (4096 Kbytes)
mtd .name = raspi, .size = 0x00400000 (4M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
ramips_mtd: kernel size is 613787
padded kernel is 00096000
Creating 6 MTD partitions on "raspi":
0x00000000-0x00010000 : "uboot"
0x00010000-0x00020000 : "boardconfig"
0x00020000-0x00200000 : "image"
0x00020000-0x000b6000 : "linux"
mtd: partition "linux" doesn't end on an erase block -- force read-only
0x000b6000-0x001f0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
mtd: partition "rootfs" set to be root filesystem
0x001f0000-0x00200000 : "uci_overlay"
Registered led device: power
Registered led device: wps
Registered led device: wlan
nf_conntrack version 0.5.0 (256 buckets, 2048 max)
IPv4 over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Linux
TCP cubic 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 
ramips: ethernet loaded
ramips_eth: loaded
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 100k freed
Warning: unable to open an initial console.
Preinit complete, spawning microd
found uci_overlay -> /dev/mtd5
i found OPENWRT_UCI_OVERLAY inside /dev/mtd5
loading file zepttho 275
loading file wireless 728
loading file user 70
loading file system 107
loading file reg 39
loading file network 473
loading file led 342
loading file lang 33
loading file form 4768
loading file fonsmcd 290
loading file fon Algorithmics/MIPS FPU Emulator v1.5
407
loading file firewall 907
loading file passwd 149
loading file chilli.conf 582
loading file whitelist 506
loading fon config
Spawning syslogd
registering led wps -> /sys/class/leds/wps/
registering led wlan -> /sys/class/leds/wlan/
registering led power -> /sys/class/leds/power/
loading base firewall ...iptables: Chain already exists
done
adding zone wannet
adding zone lan
adding zone wan
adding zone hotspotwifi
adding zone hotspot
adding forwarding lan->wan
adding forwarding hotspot->wan
interface loopback
  proto = static
  ipaddr = 127.0.0.1
  netmask = 255.0.0.0
  ifname = lo
interface lan
  proto = static
  ipaddr = 192.168.10.1
  netmask = 255.255.255.0
  ifname = eth0.1
  type = bridge
interface wan
  proto = dhcp
  ifname = eth0.2
interface hotspot
  ifname = tun0
interface hotspotwifi
  proto = none
  ifname = ra1
net event up loopback ...bringing up lo
done
net event up lan ...bringing up eth0.1
eth0.1: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device eth0.1 entered promiscuous mode
br-lan: port 1(eth0.1) entering learning state
adding br-lan to zone lan
done
net event up wan ...bringing up eth0.2
Spawning udhcpc for eth0.2
udhcpc (v0.9.9-pre) started
adding eth0.2 to zone wan
Trying to connect...
sending -> "udhcpc|deconfig|eth0.2|"
Sending discover...
done
wifi device rt305x
  type = rt305x
  channel = 11
  mode = 9
wifi interface public
  ifname = ra1
  ssid = FON_FREE_INTERNET
  encryption = none
  network = hotspotwifi
  device = rt305x
  isolate = 1
  auto = 1
wifi interface private
  ifname = ra0
  ssid = MyPlace
  encryption = wpa-wpa2
  key = 4141414141
  password = aitaidahxe
  wpa_crypto = mixed
  network = lan
  device = rt305x
  channel = 0
  mode = bgn
  txpower = 100
br-lan: topology change detected, propagating
br-lan: port 1(eth0.1) entering forwarding state
rt2860v2_ap: module license 'unspecified' taints kernel.
Sending discover...
WSending discover...
0x1300 = 00064380
bringing up rt30device ra0 entered promiscuous mode
5x ...done
br-lan: port 2(ra0) entering learning state
Terminate the task(RtmpCmdQTask) with pid(202)!
Terminate the task(RtmpWscTask) with pid(203)!
br-lan: port 2(ra0) entering disabled state
W0x1300 = 00064380
br-lan: port 2(ra0) entering learning state
Trying to connect...
sending -> "udhcpc|leasefail|eth0.2|"
br-lan: topology change detected, propagating
br-lan: port 2(ra0) entering forwarding state
bringing up private ...done
configured coova for mac 00:18:84:5F:F5:D5
Spawning dnsmasq
DHCP server is enabled
Spawning fonsmcd
Spawning zepttho
Spawning Onlined
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r3313) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
I booted userland in 13 seconds
System bring up complete
syslogd: Jan  1 00:00:03 udhcpc[183]: udhcpc (v0.9.9-pre) started
deconfigure eth0.2
syslogd: Jan  1 00:00:03 udhcpc[183]: Sending discover...
syslogd: Jan  1 00:00:05 udhcpc[183]: Sending discover...
syslogd: Jan  1 00:00:07 udhcpc[183]: Sending discover...
syslogd: Nov  5 20:07:16 syslog: starting onlined

syslogd: Nov  5 20:07:16 dnsmasq[208]: started, version 2.45 cachesize 150
syslogd: Nov  5 20:07:16 dnsmasq[208]: compile time options: IPv6 GNU-getopt ISC-leasefile no-DBus no-I18N no-TFTP
syslogd: Nov  5 20:07:16 dnsmasq[208]: DHCP, IP range 192.168.10.50 -- 192.168.10.250, lease time 12h
syslogd: Nov  5 20:07:16 syslog: whitelist file: /etc/fon/whitelist.dnsmasq
syslogd: Nov  5 20:07:16 dnsmasq[208]: using local addresses only for domain lan
syslogd: Nov  5 20:07:16 dnsmasq[208]: reading /tmp/resolv.conf
syslogd: Nov  5 20:07:16 dnsmasq[208]: using nameserver 192.168.1.1#53
syslogd: Nov  5 20:07:16 dnsmasq[208]: using local addresses only for domain lan
syslogd: Nov  5 20:07:16 dnsmasq[208]: read /etc/hosts - 2 addresses
syslogd: Nov  5 20:07:16 dnsmasq[208]: failed to read /etc/ethers:No such file or directory
Now serving files from /www on :80
fonsmcd[209]: (Main)  WARNING: SMC_find_boarddata: found board config /dev/mtd1ro
SMC_init(): called
fonsmcd[209]: (Main)  MESSAGE: SMC_reload()
.W.....W.....fonsmcd[209]: (Main)  WARNING: SMC_add_host: Error resolving host [cthulhu.fon.com], will try later
fonsmcd[209]: (Main)  MESSAGE: SMC_retrieve_query_data()
fonsmcd[209]: (Main)  WARNING: SMC_find_boarddata: found board config /dev/mtd1ro
wlanmac [00-18-84-5f-f5-d5]
key_number [de309e46806e70d871c6200bf473d9e94aa43baeb9df1f17074187ea7ab05dbf]
fonsmcd[209]: (Main)  WARNING: SMC_find_boarddata: found board config /dev/mtd1ro
W.....W.....W..fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]

.
..W..
...W.....W...fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
..W..
-------
load 10656 3648 1152
ram 24068096/31248384
uptime 0 - 00:00:59
...W..
...W....fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
.WSending discover...
syslogd: Nov  5 20:08:13 udhcpc[183]: Sending discover...
..Sending discover...
syslogd: Nov  5 20:08:15 udhcpc[183]: Sending discover...
..Sending discover...
syslogd: Nov  5 20:08:17 udhcpc[183]: Sending discover...
W....Trying to connect...
sending -> "udhcpc|leasefail|eth0.2|"
.W.....fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
W.....W.....W.....W.fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
Trying to connect...
sending -> "hotspot|stop|"
hotspot event stop
....W.....W...
-------
load 4128 2944 800
ram 24072192/31248384
uptime 0 - 00:01:55
..W..fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
...W.....W.....W...fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
..W...Sending discover...
syslogd: Nov  5 20:09:21 udhcpc[183]: Sending discover...
.W.Sending discover...
syslogd: Nov  5 20:09:23 udhcpc[183]: Sending discover...
.Sending discover...
syslogd: Nov  5 20:09:24 udhcpc[183]: Sending discover...
...W.Trying to connect...
sending -> "udhcpc|leasefail|eth0.2|"
...fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
.W.....W.....W.....fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
W.....
-------
load 1376 2176 416
ram 24072192/31248384
uptime 0 - 00:02:52
W.....W.....W.fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
....W.....W.....W..fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
...W.....W.Sending discover...
syslogd: Nov  5 20:10:28 udhcpc[183]: Sending discover...
..Sending discover...
syslogd: Nov  5 20:10:30 udhcpc[183]: Sending discover...
..Sending discover...
syslogd: Nov  5 20:10:32 udhcpc[183]: Sending discover...
W...fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
.Trying to connect...
sending -> "udhcpc|leasefail|eth0.2|"
.W.....W.....W.
-------
load 416 1696 64
ram 24072192/31248384
uptime 0 - 00:03:48
...fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
.W.....W.....W.....fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
W.....W.....W.....W.fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
....W.....W....Sending discover...
syslogd: Nov  5 20:11:36 udhcpc[183]: Sending discover...
.W.Sending discover...
syslogd: Nov  5 20:11:38 udhcpc[183]: Sending discover...
.fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com]
fonsmcd[209]: (Main)  MESSAGE: TRIGGER [offline]
.Sending discover...
syslogd: Nov  5 20:11:40 udhcpc[183]: Sending discover...
..W..Trying to connect...
sending -> "udhcpc|leasefail|eth0.2|"

 ファームウエアーの書き換えをします、手順はHPの通りですが実行結果のみなので

何点かコマンドを打つ必要があるので注意がいります。

最初は起動直後の2を選択する部分、ボタンを押しながら起動してボタンを話して2を押すようなので

すがここで反応しない場合もあり、はなす前に入れたりと何回かチャレンジして成功しました。

何が良かったのかは不明です??

それ以外に ポイントはIPアドレスのOK リターンキーと押す部分と

読み込むイメージファイルにあわせて書き換える必要がある点です。

以下のコンソールログに赤く色を付けた部分を参照ください。

 

U-Boot 1.1.3 (Jan  6 2010 - 07:10:30)

Board: Fonera
DRAM:  32 MB
relocate_code Pointer at: 81fac000
spi_wait_nsec: 3e
spi deice id: c2 20 15 c2 20 (2015c220)
find flash: mx25l1605d
raspi_read: from:41030000 len:1000
Using default environment


 ##### The CPU freq = 320 MHZ ####

SDRAM bus set to 16 bit
 SDRAM size =32 Mbytes

Please choose the operation:
   1: Boot system code via Flash (default).
   2: Load system code then write to Flash via TFTP.
   3: Entr boot command line interface.
reset pressed for 2 seconds

You selected 2

 0



2: System Load Linux Kernel then write to Flash via TFTP.
 Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
 Please Input new ones /or Ctrl-C to discard
        Input device IP (10.10.10.200) ==:10.10.10.200
        Input server IP (10.10.10.3) ==:10.10.10.3
        Input Linux Kernel filename (fonita.img) ==:ralink-custom-20100813.img 
 netboot_common, argc= 3

 NetTxPacket = 0x81FE4DC0
Trying Eth0 (10/100-M)

 ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.200
Filename 'ralink-custom-20100813.img'.

 TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:30:67:39:ea:b8)
Got it
T #
 first block received
################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###############################################
done
Bytes transferred = 1900544 (1d0000 hex)
NetBootFileXferSize= 001d0000
raspi_erase_write: offs:20000, count:1d0000
raspi_erase: offs:20000 len:1d0000
raspi_write: to:20000 len:1d0000
Done!
## Booting image at bf020000 ...
raspi_read: from:20000 len:40
   Image Name:   Linux Kernel Image
   Created:      2010-08-13  12:18:23 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1898297 Bytes =  1.8 MB
   Load Address: 80000000
   Entry Point:  802a9000
raspi_read: from:20040 len:1cf739
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 802a9000) ...
## Giving linux memsize in MB, 32

Starting kernel ...


LINUX started...

 THIS IS ASIC
Linux version 2.6.21 (root@krishna-desktop) (gcc version 3.4.2) #63 Fri Aug 13 21:18:04 JST 2010

 The CPU feqenuce set to 320 MHz
CPU revision is: 0001964c
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Built 1 zonelists.  Total pages: 8128
Kernel command line: console=ttyS1,57600n8 root=/dev/ram0
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB, 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
cause = 80800000, status = 1100ff00
PID hash table entries: 128 (order: 7, 512 bytes)
calculating r4koff... 00138800(1280000)
CPU frequency 320.00 MHz
Using 160.000 MHz high precision timer.
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 28544k/32768k available (2410k kernel code, 4224k reserved, 309k data, 1116k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
detected lzma initramfs
detected lzma initramfs
initramfs: LZMA lc=3,lp=0,pb=2,dictSize=1048576,origSize=4492800
LZMA initramfs by Ming-Ching Tiew .....................................................................Load RT2880 Timer Module(Wdg/Soft)
squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
io scheduler noop registered (default)
Ralink gpio driver initialized
HDLC line discipline: version $Revision: 1.1.1.1 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: 1.3 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A
serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
PPP generic driver version 2.4.2
PPP BSD Compression module registered
NET: Registered protocol family 24
AP Driver version-2.3.0.0
deice id : c2 20 15 c2 20 (2015c220)
mx25l3205d(c2 20160000) (4096 Kbytes)
mtd .name = raspi, .size = 0x00400000 (4M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
Creating 4 MTD partitions on "raspi":
0x00000000-0x00010000 : "Bootloader"
0x001f0000-0x00200000 : "Config"
0x00010000-0x00020000 : "Factory"
0x00020000-0x001f0000 : "Kernel"
nf_conntrack version 0.5.0 (256 buckets, 2048 max)
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Linux
TCP cubic 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 
GDMA1_MAC_ADRH -- : 0x00000000
GDMA1_MAC_ADRL -- : 0x00000000
Ralink APSoC Ethernet Driver Initilization. v2.00  256 rx/tx descriptors allocated, mtu = 1500!
GDMA1_MAC_ADRH -- : 0x00000018
GDMA1_MAC_ADRL -- : 0x845ff5d6
PROC INIT OK!
Freeing unused kernel memory: 1116k freed
init started: BusyBox v1.12.1 (2010-08-13 20:31:31 JST)
startAlgorithmics/MIPS FPU Emulator v1.5
ing pid 595, tty '': '/etc_ro/rcS'
devpts: called with bogus options
mount: mounting none on /proc/bus/usb failed: No such file or directory
Welcome to
     _______  _______  ___     __  ____   _  _   ___
    |  ___  \|   __  ||   |   |__||    \ | || | /  /
    | |___| ||  |__| ||   |__  __ |     \| || |/  /
    |   _   /|   _   ||      ||  || |\     ||     \
    |__| \__\|__| |__||______||__||_| \____||_|\___\

                     =System Architecture Department=

starting pid 606, tty '/dev/ttyS1': '/bin/sh'


BusyBox v1.12.1 (2010-08-13 20:31:31 JST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# . . . Commit crc = 87dad2d8
. . . internet.sh
Password for 'admin' changed
/sbin/internet.sh: line 313: insmod: not found
/sbin/internet.sh: line 314: insmod: not found
/sbin/internet.sh: line 315: insmod: not found

phy_tx_ring0 = 01f83000, tx_ring0 = a1f83000, size: 16 bytes

phy_tx_ring1 = 01f84000, tx_ring1 = a1f84000, size: 16 bytes

phy_tx_ring2 = 01f85000, tx_ring2 = a1f85000, size: 16 bytes

phy_tx_ring3 = 01f86000, tx_ring3 = a1f86000, size: 16 bytes

phy_rx_ring = 0x00000000, rx_ring = 0x00000000
RT305x_ESW: Link Status Changed
CDMA_CSG_CFG = 81000007
GDMA1_FWD_CFG = 710000
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
ifconfig: ioctl 0x8913 failed: No such device
/sbin/internet.sh: line 319: rmmod: not found
/sbin/internet.sh: line 320: rmmod: not found
Commit crc = 7e0efb80
/sbin/internet.sh: line 329: insmod: not found
/sbin/vpn-passthru.sh: line 20: rmmod: not found
/sbin/vpn-passthru.sh: line 20: rmmod: not found
/sbin/vpn-passthru.sh: line 20: rmmod: not found
/sbin/vpn-passthru.sh: line 20: rmmod: not found
RX DESC a1fbf000  size = 2048
/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 -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 -A FORWARD -j web_filter 1>/dev/null 2>&1
iptables -t filter -A FORWARD -j macipport_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 -A INPUT -i eth2.2 -p tcp --dport 80 -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
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
ntp.sh
ddns.sh
route delete 239.255.255.250 1>/dev/null 2>&1
killall wscd 1>/dev/null 2>&1
killall -9 wscd 1>/dev/null 2>&1
iwpriv ra0 set WscConfMode=0 1>/dev/null 2>&1
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
/bin/qos_run
webs: Listening for HTTP requests at address 10.10.10.254
br0: topology change detected, propagating
br0: port 2(eth2.1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(ra0) entering forwarding state
killall -q -USR1 udhcpd
・
 書き換えが終わったら 10.10.10.254 にアクセスして以下の画面が出ればOK
 
 
ちなみにWiFi設定はOFFになっていて
設定変更の度に再起動が行われま
 
 
 
 
 
 
設定を変更する度に再起動が走りますが、内容によってはエラーに成る場合があります。
コンソールを繋げていないと解りません
webs: Listening for HTTP requests at address 10.10.10.254
br0: topology change detected, propagating
br0: port 2(eth2.1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(ra0) entering forwarding state
ShowMeshState: ioctl -> OID_802_11_MESH_LIST error !
 
動作がおかしかったら再起動してみたほうが良いと思います。
LAN側の設定は勝手にされますのですが
WiFiは初期設定でOFFとなっているので、個別に設定が必要です。
スピードの参考値です。
 
 
 

 
 
 
 

ios5.1 に iPhone iPad appleTV のバージョンアップ出来ない

2012-03-10 00:48:00 | iphone 研究

3月8日に新しいIOS 5.1 が登場したが。

iPhone4S iPad appleTV までも更新が出来ない・・・

原因はルータのDNS でした

うちのルータはWZR2-G300N Ver.1.55 (R1.02/B1.11)です

ファームのアップデートはありませんでした。

Macで接続すると上記の表示のまま延々と完了しません。

3月9日に会社のWiFiであっさりiPhoneは更新OKでした

Twitter をみているとDNSに問題がある事が解りました。

 

インターノット崩壊論者の独り言

http://www.e-ontap.com/blog/20120309.html#p01

ありがとうございました。

早速確認してみると、エラーが発覚

Mac のLanchpad->ユーティリティー>ターミナル を起動

nslookup  appldnld.apple.com を確認

解決策にある google DNS を登録

Mac のLanchpad->システム環境設定ー>ネットワークー>詳細

ルータのIPアドレスから8.8.8.8に変更

結果成功 

しかし、問題がルータにあるのかISPにあるのか確認するために

DNS を ISP のDNS を設定 して実行したらOKになりました。

結局 ルータのDNSの問題の様です、appleTVは手動でネットワーク設定画面で

DNSを登録して実行出来ました。

 

8日に更新を逃したので、Siriはしばらくお預けになってしまった・・・悲しい

9日にSiri利用可能になっていました、メールとかかなり便利です。