La Fonera に Kamikaze 8.09 をインストール

| コメント(0) | トラックバック(0)
前に La Fonera FON2100E を買って、Kamikaze 7.09 をインストールした。

今回 OpenWrt の最新安定板 Kamikaze 8.09 のインストールを試みる。


Poor TFTP を用意して、同じフォルダに OpenWrt のファームウェアを入れます。

Poor TFTP Server for WIN32
http://www.vector.co.jp/soft/win95/net/se174412.html
ptftpw10.zip → ptftp32.exe

OpenWrt のファームウェアを PC にダウンロードします。
http://downloads.openwrt.org/kamikaze/8.09/atheros/
openwrt-atheros-root.squashfs
openwrt-atheros-vmlinux.lzma

Poor TFTP の Authorized Directory を指定する。

これから先は超長く成るので・・・・


シリアル・ケーブルを PC の USB に接続して、システムのプロパティ→ハードウェア→デバイスマネージャ
ポート(COM と LPT)で USB Serial Port で COM ポート名、COM6 とか成っている、何番なのか確認しておく。
アイコンを右クリックしてプロパティを開き確認して、Telnet も同様に下記の様に設定

Telnet PuTTY の設定

カテゴリ → 接続 → シリアル

接続先のシリアルポート : COM6
ボー・レート : 9600
データ長 : 8ビット
ストップビット : 1
パリティ : 無し
フロー制御 : 無し

セッション → 接続タイプを Serial にする。


PC のネットワーク設定を
IPアドレス         192.168.1.10
サブネットマスク   255.255.255.0

にして、ptftp32.exe を実行する。
TELNET(PuTTY) 「開く」ボタンをクリックして、 FON の電源を入れる。


FONルーターの電源を入れて、何か文字が出始める、すぐに Ctrl+C を押す。
RedBoot のプロンプトがダーっと出てくる。

以下の様にコマンドを実行する、各行では Enter キーを押すと何か反応が色々ある。


取りあえず接続待ち時間の変更、次回楽になる。

RedBoot> fconfig boot_script_timeout 10
boot_script_timeout: Setting to 10
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot>


これからが本番

RedBoot> ip_address -l 192.168.1.1/24 -h 192.168.1.10
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.10
RedBoot> fis init
~  - continue (y/n)? y

RedBoot> load -r -v -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma

RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7


RedBoot> fis free

RedBoot> load -r -v -b %{FREEMEMLO} openwrt-atheros-root.squashfs

RedBoot> fis create -l 0x006F0000 rootfs



RedBoot> reset


ここから色々やったので、正確な記憶では無いんですが、確か何も反応が無かったので Ctrl+C として再度 reset としたら、ダーって始まった。
何もしなくて良かったかも・・・・・・ (^^ゞ

+PHY ID is 0022:5521
Ethernet eth0: MAC address 00:18:84:29:fd:80
IP: 0.0.0.0/255.255.255.255, Gateway: 0.0.0.0
Default server: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version v1.3.0 - built 16:57:58, Aug  7 2006

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: ap51
RAM: 0x80000000-0x81000000, [0x80040450-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 10.000 seconds - enter ^C to abort
RedBoot> fis load -l vmlinux.bin.l7
Image loaded from 0x80041000-0x80282085
RedBoot> exec
Now booting linux kernel:
 Base address 0x80030000 Entry 0x80041000
 Cmdline :
Linux version 2.6.26.5 (nbd@baustelle) (gcc version 4.1.2) #21 Sat Feb 14 23:12:28 CET 2009
CPU revision is: 00019064 (MIPS 4KEc)
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     4096
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     4096
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 64 (order: 6, 256 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13564k/16384k available (1876k kernel code, 2820k reserved, 310k data, 124k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 644 bytes
NET: Registered protocol family 16
Radio config found at offset 0xf8(0x1f8)
AR531x PCI init...
done
PCI: fixing up device 0,3,0
PCI: Failed to allocate mem resource #1:4000000@84000000 for 0000:00:00.0
PCI: Failed to allocate mem resource #1:4000000@84000000 for 0000:00:03.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
ar531x: Registering GPIODEV device
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  息 2001-2006 Red Hat, Inc.
msgmni has been set to 26
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A
eth0: Atheros AR231x: 00:18:84:29:fd:80, irq 4
ar2313_eth_mii: probed
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:00)
cmdlinepart partition parsing not available
Searching for RedBoot partition table in spiflash at offset 0x7d0000
Searching for RedBoot partition table in spiflash at offset 0x7e0000
6 RedBoot partitions found on MTD device spiflash
eth0: Configuring MAC for full duplex
Creating 6 MTD partitions on "spiflash":
0x00000000-0x00030000 : "RedBoot"
0x00030000-0x000f0000 : "vmlinux.bin.l7"
0x000f0000-0x007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=270000, len=570000
0x00270000-0x007e0000 : "rootfs_data"
0x007e0000-0x007ef000 : "FIS directory"
0x007ef000-0x007f0000 : "RedBoot config"
0x007f0000-0x00800000 : "boardconfig"
Registered led device: gpio1
Registered led device: wlan
Registered led device: gpio3
Registered led device: gpio4
Registered led device: gpio7
TCP vegas registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 124k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
- init -

Please press Enter to activate this console. device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
br-lan: port 1(eth0) entering disabled state
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2008-10-02 (AR5212, AR5312, RF5111, RF5112, RF2316, RF2317, REGOPS_FUNC, TX_DESC_SWAP, DFS, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_ahb: trunk
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_ahb: wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3


で、ここで止まったままに成った、再度 Ctrl+C

Please press Enter to activate this console.


BusyBox v1.11.2 (2009-01-05 06:34:55 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  ________                                     _________            __
 |              | .------.--------.--------.|    |   |   |.-----. |    |_
 |      --     | |   _   |    --_ |         ||    |   |   ||    _| |     _|
 |________| |    __|_____|__|__||________||__|   |____|
                   |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (8.09, r14511) ----------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/#


やっと OpenWrt のプロンプトに入った。
Telnet で 192.168.1.1 から入れる。

mini_fo: using storage directory: /jffs
の所で止まった場合は、Telnet で 192.168.1.1 にアクセス出来ます。


パスワードの設定をします。

root@OpenWrt:/# passwd
Changing password for root
New password:*********
Retype password:*********
Password for root changed by root

root のパスワードを設定すると、OpenWrt の SSH サーバー dropbear が動作して、Telnet ではアクセス出来なく成り、SSH でアクセスする事に成ります。

dropbear で、SSH 公開鍵を設定してログインする、と日経LINUXに書いて有ったので、その様にする。

root@OpenWrt:/# uci set dropbear.@dropbear[0].PasswordAuth=off
root@OpenWrt:/# uci commit dropbear
root@OpenWrt:/# /etc/init.d/dropbear restart

ここで、Tenet の SSH モードではアクセス出来なく成ってしまった。
PuTTY でも Tera Term でも、試行錯誤したが出来ない。
仕方が無いので、LuCI から 192.168.1.1 で入って、 Dropbear SSHd から設定したら、上手く行った。

luci.jpg
LuCI を立ち上げて、普通にログインし、右側に有る Administration をクリック、
Services → Dropbear SSHd に入り Password authentication をチェック、 Save & Apply ボタンをクリック。

これで、Telnet の SSH モードから入れる。
login as: root
root@192.168.1.1's password:*********

パスワードは、ある程度長いのにした方が良いみたい。

トラックバック(0)

トラックバックURL: http://midforce.net/mt/mt-tb.cgi/96

コメントする

ランダムな画像

Now loading... Now loading...

このブログ記事について

このページは、allerが2009年7月10日 23:38に書いたブログ記事です。

ひとつ前のブログ記事は「DD-WRTの動作設定」です。

次のブログ記事は「OpenWrt の動作設定」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。