物好き者

物好き者が行ったことを載せています。

スポンサーサイト

上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。

PageTop

WZSR-AMPG144NHにOpenWRT10.03が書き込めました

ramfsのOpenWRT10.03ではWebアップグレードが出来ませんでした が、OpenWrt / Support for Marvell 88F5xx81 based routers の32 に sysupgradeコマンドで書きこむ方法がありました。

ramfsで起動してopenwrt-wrt350nv2-squashfs.imgを書き込んだのですが、起動できませんでした。
oot@OpenWrt:/tmp# sysupgrade -n openwrt-wrt350nv2-squashfs.img
Performing system upgrade...
Unlocking image ...
Writing from to image ...
Upgrade completed
Rebooting system...

cut

### JFFS2 loading 'uImage' to 0x400000
Scanning JFFS2 FS: done.
find_inode failed for name=uImage
load: Failed to find inode
### JFFS2 LOAD ERROR<0> for uImage!
# LED(0x80) Blink[2] (Please press 'Ctrl+c' to stop)

Support for Marvell 88F5xx81 based routers の31 #764 では、mtd writeで書きこむ方法がありましたので、こちらをやってみました。

フラッシュのイメージをkernel領域分とrootfs領域分に分解し、mtdコマンドで書き込みます。
再起動したところ、jffsの消去が行われ問題なくOpenWRTが起動しました。

root@OpenWrt:/tmp# dd if=openwrt-wnr854t-squashfs.img of=openwrt-wnr854t-uImage
bs=1024k count=1
1+0 records in
1+0 records out
root@OpenWrt:/tmp# dd if=openwrt-wnr854t-squashfs.img of=root.squashfs.wnr854t b
s=1024k skip=1
1+1 records in
1+1 records out
root@OpenWrt:/tmp# mtd write openwrt-wnr854t-uImage "kernel"
Unlocking kernel ...
Writing from openwrt-wnr854t-uImage to kernel ...
root@OpenWrt:/tmp# mtd write root.squashfs.wnr854t "rootfs"
Unlocking rootfs ...
Writing from root.squashfs.wnr854t to rootfs ...
root@OpenWrt:/tmp# reboot

cut

### JFFS2 loading 'uImage' to 0x400000
Scanning JFFS2 FS: . done.
### JFFS2 load complete: 889320 bytes loaded to 0x400000
## Booting image at 00400000 ...
Image Name: Linux-2.6.32.10
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 889256 Bytes = 868.4 kB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.32.10 (openwrt@wrt1.marcant.net) (gcc version 4.3.3 (GCC) ) #16 Tue Apr 6 16:58:21 CEST 2010
CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a0053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Netgear WNR854T
Clearing invalid memory bank 0KB@0xffffffff
Clearing invalid memory bank 0KB@0xffffffff
Clearing invalid memory bank 0KB@0xffffffff
Ignoring unrecognised tag 0x00000000
Ignoring unrecognised tag 0x00000000
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 29984KB available (2232K code, 137K data, 96K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:64
Calibrating delay loop... 332.59 BogoMIPS (lpj=1662976)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Orion ID: MV88F5181-Rev-B1. TCLK=166666667.
Applying Orion-1/Orion-NAS PCIe config read transaction workaround
PCI: bus0: Fast back to back transfers disabled
pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot
pci 0000:01:00.0: PME# disabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab at 0
Switching to clocksource orion_clocksource
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
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) c 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 3) is a 16550A
console [ttyS0] enabled
physmap platform flash device: 00800000 at f4000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Using physmap partition information
Creating 4 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000100000 : "kernel"
0x000000100000-0x000000760000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=290000, len=4D0000
0x000000290000-0x000000760000 : "rootfs_data"
0x000000760000-0x0000007a0000 : "uboot"
0x000000000000-0x000000760000 : "image"
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:16:01:9b:c0:92
i2c /dev entries driver
TCP westwood registered
NET: Registered protocol family 17
Distributed Switch Architecture driver version 0.1
eth0[0]: detected a Marvell 88E6131 switch
dsa slave smi: probed
802.1Q VLAN Support v1.8 Ben Greear
All bugs added by David S. Miller
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (squashfs filesystem) readonly on device 31:1.
Freeing init memory: 96K
Please be patient, while OpenWrt loads ...
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
- init -

Please press Enter to activate this console. eth0: link up, 1000 Mb/s, full duplex, flow control disabled
device lan3 entered promiscuous mode
device eth0 entered promiscuous mode
lan3: link up, 100 Mb/s, full duplex, flow control disabled
br-lan: port 1(lan3) entering forwarding state
device lan4 entered promiscuous mode
device lan1 entered promiscuous mode
device lan2 entered promiscuous mode
Generic kernel compatibility enabled based on linux-next next-20100113
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
(2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
(2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
(5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (470 buckets, 1880 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
ffs2_build_filesystem(): erasing all blocks after the end marker... done.
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay



BusyBox v1.15.3 (2010-04-06 05:15:35 CEST) 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
Backfire (10.03, r20728) --------------------------
* 1/3 shot Kahlua In a shot glass, layer Kahlua
* 1/3 shot Bailey's on the bottom, then Bailey's,
* 1/3 shot Vodka then Vodka.
---------------------------------------------------
root@OpenWrt:/#


ただし、無線NICが2.4GHzも5GHzも認識しておらず、無線ルーターとしてはまだ使えません。
2台とも取り外していたので取り付けたのですが、ドライバが無いのか認識していないだけなのか壊れているのかがわかりません。
コンパイル分でなくダウンロード分を書き込んだつもりですが、違うものを書き込んだのでしょうか。


LuCI画面からファームを書き込もうとしたのですが、エラーとなり書き込めませんでした。
The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform.
どこかでまだ書き込むことが出来ないと読んだ覚えがあるので、ファームアップデートは手作業が必要なようです。

スポンサーサイト

PageTop

コメント


管理者にだけ表示を許可する
 

承認待ちコメント

このコメントは管理者の承認待ちです

| | 2014年07月25日(Fri)07:51 [EDIT]


承認待ちコメント

このコメントは管理者の承認待ちです

| | 2014年07月26日(Sat)07:58 [EDIT]


上記広告は1ヶ月以上更新のないブログに表示されています。新しい記事を書くことで広告を消せます。