SSブログ

IODATA WN-G300DGR OpenWrt #2 [OpenWRT/DD-WRT]

WN-G300DR が wr512-3gn の OpenWrt イメージで動いているとの情報をいただいた。
WN-G300DGR は,WN-G300DR のギガビット版。 WN-G300DGR #1
DGR では,tftp ブートでOpenWrt の起動は成功したが,LANが使用できない状況となった。以下がその経緯である。

シリアル接続では,tftp ブートの選択のみ可能で,ファームウェアのフラッシュ書き込みができない。
また,オリジナルの Web管理画面にあるファームウェア更新では「ファイルが正しくありません」でエラーとなった。

openwrt-ramips-rt305x-wr512-3gn-4M-initramfs-uImage.bin を ImageWN-G300DGR にリネームして,/tftpboot にコピーした。
つぎに,DGR にシリアルとLANで接続した。

minicom –s
/dev/ttyUSB0, 57600 8N1, no, no

すぐに1を押して,tftpブートを選んだ。

U-boot Ver:1.0.5.17 2010/06/10


Board: Ralink APSoC DRAM: 32 MB 2*16 MB
============================================
ASIC 3052_MP2 (Port5<->GigaSW)
Product Name: WN-G300DGR
SDRAM CAS = 3(d1835272)
============================================

Please choose the operation:
1: Load system code to SDRAM via TFTP.
UbootDate[2010/06/10]UbootDate
UbootVer[1.0.5]UbootVer

1: System Load Linux to SDRAM via TFTP.
Please Input new ones /or Ctrl-C to discard
Input device IP (192.168.99.9) ==:

Input server IP (192.168.99.8) ==:

Input Linux Kernel filename (uImageWN-G300DGR) ==:

Using Eth0 device
TFTP from server 192.168.99.8; our IP address is 192.168.99.9
Filename 'uImageWN-G300DGR'.
Loading: *
ArpTimeoutCheck
Got ARP REPLY, set server/gtwy eth addr (b8:88:e3:54:7c:a6)
Got it
TftpTimeoutCount=0,max_retry:10
T #
first block received
################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################Got ARP REQUEST, return our IP
################################################
#################
done
Bytes transferred = 2745461 (29e475 hex)




LAN接続は,PCを 192.168.99.8 にして,atftpd を起動した。

ifconfig eth0 192.168.99.8

atftpd –demon /tftpboot

tftpブートで,以下OpenWrtの起動メッセージが表示された。


[    0.000000] Linux version 3.7.5 (atc500@bt) (gcc version 4.6.4 20121210 (prerelea3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[ 0.000000] Ralink RT3052 id:1 rev:3 running at 384.00 MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x01ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x01ffffff]
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8
[ 0.000000] Kernel command line: board=WR512-3GN console=ttyS1,57600 mtdparts=ph2
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] Writing ErrCtl register=0003005e
[ 0.000000] Readback ErrCtl register=0003005e
[ 0.000000] Memory: 27840k/32768k available (1969k kernel code, 4928k reserved, 4)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:48
[ 0.000000] console [ttyS1] enabled, bootconsole disabled
[ 0.000000] console [ttyS1] enabled, bootconsole disabled
[ 0.010000] Calibrating delay loop... 255.59 BogoMIPS (lpj=1277952)
[ 0.090000] pid_max: default: 32768 minimum: 301
[ 0.100000] Mount-cache hash table entries: 512
[ 0.110000] NET: Registered protocol family 16
[ 0.120000] MIPS: machine is WR512-3GN-like router
[ 0.140000] bio: create slab <bio-0> at 0
[ 0.150000] Switching to clocksource MIPS
[ 0.160000] NET: Registered protocol family 2
[ 0.170000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.180000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.200000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.210000] TCP: reno registered
[ 0.220000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.230000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.240000] NET: Registered protocol family 1
[ 4.020000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 4.030000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (.
[ 4.060000] msgmni has been set to 54
[ 4.060000] io scheduler noop registered
[ 4.070000] io scheduler deadline registered (default)
[ 4.080000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 4.100000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
[ 4.110000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
[ 4.130000] physmap platform flash device: 00800000 at bf000000
[ 4.140000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufactu7
[ 4.160000] Amd/Fujitsu Extended Query Table at 0x0040
[ 4.170000] Amd/Fujitsu Extended Query version 1.1.
[ 4.180000] physmap-flash.0: Swapping erase regions for top-boot CFI table.
[ 4.190000] number of CFI chips: 1
[ 4.200000] 6 cmdlinepart partitions found on MTD device physmap-flash.0
[ 4.210000] Creating 6 MTD partitions on "physmap-flash.0":
[ 4.230000] 0x000000000000-0x000000030000 : "u-boot"
[ 4.240000] 0x000000030000-0x000000040000 : "u-boot-env"
[ 4.250000] 0x000000040000-0x000000050000 : "factory"
[ 4.270000] 0x000000050000-0x000000130000 : "kernel"
[ 4.280000] 0x000000130000-0x000000400000 : "rootfs"
[ 4.290000] mtd: partition "rootfs" set to be root filesystem
[ 4.300000] split_squashfs: no squashfs found in "physmap-flash.0"
[ 4.310000] 0x000000050000-0x000000400000 : "firmware"
[ 4.340000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 33, using3
[ 4.350000] TCP: cubic registered
[ 4.360000] NET: Registered protocol family 17
[ 4.370000] 8021q: 802.1Q VLAN Support v1.8
[ 4.390000] Freeing unused kernel memory: 1972k freed
[ 5.090000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/i0
[ 5.120000] Button Hotplug driver version 0.4.1
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
- init -

Please press Enter to activate this console. [ 7.720000] Compat-drivers backport 3
[ 7.730000] Backport based on wireless-testing.git master-2013-01-07
[ 7.740000] compat.git: wireless-testing.git
[ 7.780000] cfg80211: Calling CRDA to update world regulatory domain
[ 7.790000] cfg80211: World regulatory domain updated:
[ 7.800000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, m)
[ 7.820000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 m)
[ 7.830000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 m)
[ 7.850000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 m)
[ 7.870000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 m)
[ 7.880000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 m)
[ 8.040000] usbcore: registered new interface driver usbfs
[ 8.050000] usbcore: registered new interface driver hub
[ 8.060000] usbcore: registered new device driver usb
[ 8.330000] PPP generic driver version 2.4.2
[ 8.390000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 8.530000] NET: Registered protocol family 24
[ 8.560000] nf_conntrack version 0.5.0 (465 buckets, 1860 max)
[ 8.800000] dwc_otg: version 2.72a 24-JUN-2008
[ 8.810000] dwc_otg: Core Release: 2.66a
[ 9.020000] dwc_otg: Periodic Transfer Interrupt Enhancement - disabled
[ 9.030000] dwc_otg: Multiprocessor Interrupt Enhancement - disabled
[ 9.050000] dwc_otg: Using DMA mode
[ 9.050000] dwc_otg: Device using Buffer DMA mode
[ 9.060000] dwc_otg dwc_otg.0: DWC OTG Controller
[ 9.070000] dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 1
[ 9.090000] dwc_otg dwc_otg.0: irq 26, io mem 0x101c0000
[ 9.100000] dwc_otg: Init: Port Power? op_state=1
[ 9.110000] dwc_otg: Init: Power Port (0)
[ 9.120000] hub 1-0:1.0: USB hub found
[ 9.120000] hub 1-0:1.0: 1 port detected
[ 12.470000] device eth0.1 entered promiscuous mode
[ 12.480000] device eth0 entered promiscuous mode
[ 12.500000] br-lan: port 1(eth0.1) entered forwarding state
[ 12.510000] br-lan: port 1(eth0.1) entered forwarding state
[ 13.530000] ramips-wdt: timeout value 60 must be 0 < timeout <= 33, using 33
[ 14.510000] br-lan: port 1(eth0.1) entered forwarding state



BusyBox v1.19.4 (2013-02-02 15:43:46 JST) 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
-----------------------------------------------------
BARRIER BREAKER (Bleeding Edge, r35420)
-----------------------------------------------------
* 1/2 oz Galliano Pour all ingredients into
* 4 oz cold Coffee an irish coffee mug filled
* 1 1/2 oz Dark Rum with crushed ice. Stir.
* 2 tsp. Creme de Cacao
-----------------------------------------------------
root@OpenWrt:/# cd /proc
root@OpenWrt:/proc# cat mtd
dev: size erasesize name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 000e0000 00010000 "kernel"
mtd4: 002d0000 00010000 "rootfs"
mtd5: 003b0000 00010000 "firmware"




OpenWrt起動後,LANが不通だった。 

ビルド時にカーネルモジュール RTL8366RB の組み込みも行っている。

mtdレイアウトは,192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),2880k(rootfs),3776k@0x50000(firmware)
GENERIC_4M と同じ,標準的なレイアウトだった。



nice!(3)  コメント(0)  トラックバック(1) 

nice! 3

コメント 0

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

Facebook コメント

トラックバック 1

Linux Software RAID ..IODATA WN-G300DGR Op.. ブログトップ

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。