【問題】mzk-w04nu? ttl? - 第5頁 - PCZONE 討論區

返回   PCZONE 討論區 > ▲ ADSL_CABLE_FTTH 寬 頻 上 網 討 論 > -- 網 路 硬 體 版


PCZONE 討論區



通知

-- 網 路 硬 體 版 "網路卡" , "HUB" ,"Switch","無線網路產品","頻寬分享器" 等網路硬體產品

FYI
會員
回覆: 【問題】mzk-w04nu? ttl?
引用:
作者: FYI 觀看文章
不過小弟並未下載韌體, 所以謹提供另一則修改Magic Number 和計算CRC32 的方法, "OpenWrt / WNDR3700 exploration", 只是小弟不確定Planex & Linksys 韌體檔頭長度是否相同, 但Magic Number 應該是不同的
引用:
作者: pc054999 觀看文章
我用UltraEdit開啟trunk版,刪除27 05 19 56前面的東西
現在換Bad Header Checksum了,這兩個方法,我在研究看看
我現在應該要找出正確的Header CRC 修改上去才會通過
那就奇怪了! 既然方法一直都是對的, 為何先前卻不成功?

14.2.16. Why is my Ethernet operation not reliable? < DULG < DENX

回覆
會員
回覆: 【問題】mzk-w04nu? ttl?
引用:
嚴格來說該指令不完全正確, 若韌體大小為0x780000, 那麼此處應該改為0x77ffde, 因為是複製 (覆蓋), 並非移動, 所以複製之後0x77ffde~0x77ffff 內容不變, 若是0x78ffde, 那麼該位置內容就是0x780000~0x780021 的內容, 可能都是0, 但根據OpenWrt 網友敘述, 該位置應該沒有重要資料, 也不影響檢查碼, 因為rootfs 事實上非常小, 所以sysupgrade.bin 檔案長度才會遠小於factory.bin
了解,所以前面把他改成
語法:
ar7100> cp.b 0xa0800022 0xa0800000 ${filesize}
也是沒有影響
需要我在測試一次嗎?

引用:
14.2.16. Why is my Ethernet operation not reliable? < DULG < DENX
有可能是網路卡問題?
我剛剛翻一下我的網路卡設定是Auto
10.03版機器開機畫面顯示100Mbps/Full duplex
所以有可能是這個喔

但是新版的也是100Mbps/Full duplex
怎麼會沒問題?

此篇文章於 2010-11-29 03:10 AM 被 pc054999 編輯。.
回覆
FYI
會員

引用:
作者: pc054999 觀看文章
需要我在測試一次嗎?
不用了, 按理說${filesize} 一定會等於tftp 載入的韌體大小, 危險性在於萬一傳錯檔案, 導致${filesize} 數值大於 "0x790000", 結果升級蓋掉 "Art", 那就不妙了 (按理說U-Boot & Art 應該都已經被鎖定才對), 所以小弟才會強調 "停看聽", 再繼續, 不過短期內新版韌體長度應該都會是 "0x780000", 直接套用數值即可, 反正也省不了多少麻煩, 怕就怕自行編譯, 那就不確定了
引用:
作者: pc054999 觀看文章
有可能是網路卡問題?
我剛剛翻一下我的網路卡設定是Auto
10.03版機器開機畫面顯示100Mbps/Full duplex
所以有可能是這個喔

但是新版的也是100Mbps/Full duplex
怎麼會沒問題?
你慢慢研究吧! 反正問題不是網路卡就是網路線, 就怕你不知何時還會遇到...

你現在已經知道iminfo & crc32 的用法, 以後就修改好再上傳, 並和Windows 所計算出的CRC32 比對, 那就不容易出錯了, 除非不知情拿到一條爛爛的網路線, 但比對CRC32 還是會立刻發現有問題...

此篇文章於 2010-11-29 04:16 AM 被 FYI 編輯。.
回覆
FYI
會員

引用:
作者: pc054999 觀看文章
這是我從u-boot開始操作的紀錄,我連erase之後也跟著做了...
所謂的printenv filesize他會隨著我tftp下的韌體而改變嗎?
假設我下載的是backfire10.03-rc3
是的, 你不妨實驗看看, 只需執行到 "printenv ${filesize}"
引用:
作者: pc054999 觀看文章
語法:
ar7100> printenv
bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7100-nor0:256k(u-boot),64k(u-boot-env),1408k(uImage),6208k(rootfs),128k(config),128k(ART)
麻煩你測試一下:
語法:
ar7100> tftp 0xa0800000 factory.bin
ar7100> cp.b 0xa0800000 0xa07fffde ${filesize}
ar7100> iminfo 0xa0800000
ar7100> iminfo 0x80800000
ar7100> md 0x80000000
ar7100> setenv bootargs console=ttyS0,9600 root=31:03
ar7100> bootm 0xbf050000
然後觀察啟動紀錄的:
語法:
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=MZK-W04NU
如果你從Serial Console 看到亂碼, 那就代表 "bootargs" 對於Kernel command line 有部份作用, 你可以ssh 登入再執行 "dmesg | grep ^Kernel" 就可以觀察到結果

此外, 小弟根據記憶體配置重新調整了刷機指令:
語法:
Top of RAM usable for U-Boot at: 82000000
Reserving 222k for U-Boot at: 81fc8000
Reserving 192k for malloc() at: 81f98000
Reserving 44 Bytes for Board Info at: 81f97fd4
Reserving 36 Bytes for Global Data at: 81f97fb0
Reserving 128k for boot params() at: 81f77fb0
Stack Pointer at: 81f77f98
Now running in RAM - U-Boot at: 81fc8000
你也可以明顯看出rootfs 實際大小 (0xbf1b0000 - 0xbf3c0000):
語法:
0x0000bf000000-0x0000bf040000 : "u-boot"
0x0000bf040000-0x0000bf050000 : "u-boot-env"
0x0000bf050000-0x0000bf1b0000 : "kernel"
0x0000bf1b0000-0x0000bf7e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=3C0000, len=420000 
0x0000bf3c0000-0x0000bf7e0000 : "rootfs_data"
0x0000bf7e0000-0x0000bf800000 : "art"
0x0000bf050000-0x0000bf7e0000 : "firmware"
語法:
RAM (32MB): 0x80000000 - 0x82000000
Flash (8MB): 0xbf000000 - 0xbf800000
U-Boot 用掉0x81f77fb0 以上的記憶體, 所以0x80000000 - 0x81f77fb0 應該是安全可用的

此篇文章於 2010-11-29 07:36 PM 被 FYI 編輯。.
回覆
FYI
會員

再進一步研究, 小弟大致得到以下結果:

U-Boot 首先檢查變數 ${bootdelay} 不為-1, 於是執行 ${bootcmd}, 內容是 "bootm 0xbf050000", 而bootm 則檢驗0xbf050000 是否正確的Image Header:
語法:
## Booting image at bf050000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.25
   Created:      2010-11-20   4:30:32 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1235039 Bytes =  1.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
然後根據 "Image Type: MIPS Linux Kernel Image (gzip compressed)" 和 "Data Size: 1235039 Bytes", 把kernel 解壓縮至Load Address: 0x80060000, 然後執行Entry Point: 0x80060000

所以如果把kernel (1235039 Bytes) 擷取出來, 命名為vmlinux-mzk-w04nu.gzip, 就可以再解壓出vmlinux-mzk-w04nu (2726604 Bytes)
回覆
會員
回覆: 【問題】mzk-w04nu? ttl?
引用:
是的, 你不妨實驗看看, 只需執行到 "printenv ${filesize}"
真的,會隨著tftp下來的檔案大小而做變更

下面是測試的結果
啟動後完全沒改變
語法:
ar7100> tftp 0xa0800000 openwrt.bin
Using eth0 device
TFTP from server 192.168.1.230; our IP address is 192.168.1.10
Filename 'openwrt.bin'.
Load address: 0xa0800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##########################################
done
Bytes transferred = 7864320 (780000 hex)
ar7100> printenv
bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7100-nor0:256k(u-boot),64k(u-boot-env),1408k(uImage),6208k(rootfs),128k(config),128k(ART)
bootcmd=bootm 0xbf050000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
filesize=780000
fileaddr=A0800000
ipaddr=192.168.1.10
serverip=192.168.1.230

Environment size: 396/65532 bytes
ar7100> iminfo 0xa0800000

## Checking Image at a0800000 ...
   Bad Magic Number
ar7100> cp.b 0xa0800000 0xa07fffde 0x780000 
ar7100> iminfo 0xa0800000

## Checking Image at a0800000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.25
   Created:      2010-11-20   4:30:32 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1235039 Bytes =  1.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
ar7100> iminfo 0x80800000

## Checking Image at 80800000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.25
   Created:      2010-11-20   4:30:32 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1235039 Bytes =  1.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
ar7100> md 0x80000000
80000000: 08000120 00008000 00080000 00000040    ... ...........@
80000010: 00000080 20000000 20000000 40000000    .... ... ...@...
80000020: 00202000 00000008 00000000 08000000    .  .............
80000030: 00000041 00000002 00000000 00010002    ...A............
80000040: 00100000 10400000 00000000 40000000    .....@......@...
80000050: 00040100 40200400 00000000 00080000    ....@ ..........
80000060: 500c0020 00000000 00000000 00000000    P.. ............
80000070: 00060800 00200000 80800000 00000020    ..... ......... 
80000080: 00000000 00000020 00000000 10600030    ....... .....`.0
80000090: 00000000 00000010 00000000 00000004    ................
800000a0: 01000000 00044010 40000000 00082000    ......@.@..... .
800000b0: 00004000 40000000 00000000 00000000    ..@.@...........
800000c0: 00000009 00000020 00801000 00201000    ....... ..... ..
800000d0: 00000000 00000000 10800000 00008000    ................
800000e0: 00000000 00000800 00100000 00000000    ................
800000f0: 00000008 40000000 00010000 00000000    ....@...........
ar7100> setenv bootargs console=ttyS0,9600 root=31:03
ar7100> printenv
bootcmd=bootm 0xbf050000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.10
serverip=192.168.1.230
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
bootargs=console=ttyS0,9600 root=31:03

Environment size: 226/65532 bytes
ar7100> bootm 0xbf050000
## Booting image at bf050000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.25
   Created:      2010-11-23   6:53:37 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1209183 Bytes =  1.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432

Starting kernel ...

Linux version 2.6.32.25 (eric@Osiris) (gcc version 4.3.3 (GCC) ) #3 Tue Nov 231:53:20 EST 2010
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 1, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,1100 board=MZK-W04NU
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)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29360k/32768k available (2063k kernel code, 3408k reserved, 394k data,52k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Planex MZK-W04NU
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
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)  © 2001-2006 Red Hat, Inc.
yaffs Nov 23 2010 01:51:22 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: m25p64 (8192 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000050000 : "u-boot-env"
0x000000050000-0x0000001b0000 : "kernel"
0x0000001b0000-0x0000007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=580000, len=260000
0x000000580000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x000000800000 : "art"
0x000000050000-0x0000007e0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth1: Atheros AG71xx at 0xba000000, irq 5
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
eth0: link up (100Mbps/Full duplex)
- preinit -
Registered led device: mzk-w04nu:green:status
Registered led device: mzk-w04nu:blue:wps
Registered led device: mzk-w04nu:green:wlan
Registered led device: mzk-w04nu:green:usb
Registered led device: mzk-w04nu:green:ap
Registered led device: mzk-w04nu:green:router
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
- init -
eth0: link down

Please press Enter to activate this console. eth0: link up (100Mbps/Full duple
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
Compat-wireless backport release: compat-wireless-2010-10-14-7-gab01eca
Backport based on wireless-testing.git master-2010-10-19
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)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ieee80211 phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a1 mem=0xb80c0000, i=2
cfg80211: Calling CRDA for country: CO
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PPP generic driver version 2.4.2
cfg80211: Regulatory domain changed to country: CO
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz @ 20000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz @ 20000 KHz), (300 mBi, 2300 mBm)
    (5735000 KHz - 5835000 KHz @ 20000 KHz), (300 mBi, 3000 mBm)
Installing knfsd (copyright (C) 1996 [email protected]).
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
nf_conntrack version 0.5.0 (461 buckets, 1844 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.
xt_time: kernel timezone is -0000
        Hooked IMQ after mangle on PREROUTING
        Hooked IMQ after nat on POSTROUTING
IMQ driver loaded successfully.
Ebtables v2.0 registered
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
fuse init (API version 7.13)
這條指令
語法:
ar7100> setenv bootargs console=ttyS0,9600 root=31:03
我改成
語法:
ar7100> setenv bootargs=console=ttyS0,9600 root=31:03
重新測一次
啟動後也沒影響?

以下是測試過程
語法:
ar7100> printenv
bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7100-nor0:256k(u-boot),64k(u-boot-env),1408k(uImage),6208k(rootfs),128k(config),128k(ART)
bootcmd=bootm 0xbf050000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.10
serverip=192.168.1.230
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 362/65532 bytes
ar7100> setenv bootargs=console=ttyS0,9600 root=31:03
ar7100> printenv
bootcmd=bootm 0xbf050000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.10
serverip=192.168.1.230
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
bootargs=console=ttyS0,9600=root=31:03

Environment size: 226/65532 bytes
ar7100> bootm 0xbf050000
## Booting image at bf050000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.25
   Created:      2010-11-23   6:53:37 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1209183 Bytes =  1.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432

Starting kernel ...

Linux version 2.6.32.25 (eric@Osiris) (gcc version 4.3.3 (GCC) ) #3 Tue Nov 23 01:53:20 EST 2010
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 1, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=MZK-W04NU
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)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29360k/32768k available (2063k kernel code, 3408k reserved, 394k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Planex MZK-W04NU
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
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)  © 2001-2006 Red Hat, Inc.
yaffs Nov 23 2010 01:51:22 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: m25p64 (8192 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000050000 : "u-boot-env"
0x000000050000-0x0000001b0000 : "kernel"
0x0000001b0000-0x0000007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=580000, len=260000
0x000000580000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x000000800000 : "art"
0x000000050000-0x0000007e0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth1: Atheros AG71xx at 0xba000000, irq 5
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
eth0: link up (100Mbps/Full duplex)
- preinit -
Registered led device: mzk-w04nu:green:status
Registered led device: mzk-w04nu:blue:wps
Registered led device: mzk-w04nu:green:wlan
Registered led device: mzk-w04nu:green:usb
Registered led device: mzk-w04nu:green:ap
Registered led device: mzk-w04nu:green:router
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
- init -
eth0: link down

Please press Enter to activate this console. eth0: link up (100Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
Compat-wireless backport release: compat-wireless-2010-10-14-7-gab01eca
Backport based on wireless-testing.git master-2010-10-19
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)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ieee80211 phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a1 mem=0xb80c0000, irq=2
cfg80211: Calling CRDA for country: CO
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PPP generic driver version 2.4.2
cfg80211: Regulatory domain changed to country: CO
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz @ 20000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz @ 20000 KHz), (300 mBi, 2300 mBm)
    (5735000 KHz - 5835000 KHz @ 20000 KHz), (300 mBi, 3000 mBm)
Installing knfsd (copyright (C) 1996 [email protected]).
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
nf_conntrack version 0.5.0 (461 buckets, 1844 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.
xt_time: kernel timezone is -0000
        Hooked IMQ after mangle on PREROUTING
        Hooked IMQ after nat on POSTROUTING
IMQ driver loaded successfully.
Ebtables v2.0 registered
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
fuse init (API version 7.13)

此篇文章於 2010-11-30 12:30 AM 被 pc054999 編輯。.
回覆
FYI
會員

引用:
作者: pc054999 觀看文章
語法:
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,1100 board=MZK-W04NU
有影響, 但是結果很奇怪, 既不是115200, 也不是9600, 不過既然你能看到結果, 代表實際上還是115200, 只是顯示錯誤, 請再試兩次:
語法:
ar7100> setenv bootargs console=ttyS0,9600
ar7100> bootm 0xbf050000
語法:
ar7100> setenv bootargs rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,9600 board=MZK-W04NU
ar7100> bootm 0xbf050000
請勿自行加上等號
回覆
會員
回覆: 【問題】mzk-w04nu? ttl?
測試一
語法:
ar7100> setenv bootargs console=ttyS0,9600
ar7100> bootm 0xbf050000
語法:
ar7100> printenv
bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7100-nor0:256k(u-boot),64k(u-boot-env),1408k(uImage),6208k(rootfs),128k(config),128k(ART)
bootcmd=bootm 0xbf050000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.10
serverip=192.168.1.230
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 362/65532 bytes
ar7100> setenv bootargs console=ttyS0,9600   
ar7100> printenv
bootcmd=bootm 0xbf050000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.10
serverip=192.168.1.230
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
bootargs=console=ttyS0,9600

Environment size: 215/65532 bytes
ar7100> setenv bootargs console=ttyS,9600
ar7100> printenv
bootcmd=bootm 0xbf050000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.10
serverip=192.168.1.230
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
bootargs=console=ttyS,9600

Environment size: 214/65532 bytes
ar7100> bootm 0xbf050000
## Booting image at bf050000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.25
   Created:      2010-11-23   6:53:37 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1209183 Bytes =  1.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432

Starting kernel ...

Linux version 2.6.32.25 (eric@Osiris) (gcc version 4.3.3 (GCC) ) #3 Tue Nov 23 01:53:20 EST 2010
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 1, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=MZK-W04NU
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)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29360k/32768k available (2063k kernel code, 3408k reserved, 394k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Planex MZK-W04NU
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
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)  穢 2001-2006 Red Hat, Inc.
yaffs Nov 23 2010 01:51:22 Installing. 
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: m25p64 (8192 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000050000 : "u-boot-env"
0x000000050000-0x0000001b0000 : "kernel"
0x0000001b0000-0x0000007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=580000, len=260000 
0x000000580000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x000000800000 : "art"
0x000000050000-0x0000007e0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth1: Atheros AG71xx at 0xba000000, irq 5
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
eth0: link up (100Mbps/Full duplex)
- preinit -
Registered led device: mzk-w04nu:green:status
Registered led device: mzk-w04nu:blue:wps
Registered led device: mzk-w04nu:green:wlan
Registered led device: mzk-w04nu:green:usb
Registered led device: mzk-w04nu:green:ap
Registered led device: mzk-w04nu:green:router
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
- init -
eth0: link down

Please press Enter to activate this console. eth0: link up (100Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
Compat-wireless backport release: compat-wireless-2010-10-14-7-gab01eca
Backport based on wireless-testing.git master-2010-10-19
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)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ieee80211 phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a1 mem=0xb80c0000, irq=2
cfg80211: Calling CRDA for country: CO
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PPP generic driver version 2.4.2
cfg80211: Regulatory domain changed to country: CO
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz @ 20000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz @ 20000 KHz), (300 mBi, 2300 mBm)
    (5735000 KHz - 5835000 KHz @ 20000 KHz), (300 mBi, 3000 mBm)
Installing knfsd (copyright (C) 1996 [email protected]).
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
nf_conntrack version 0.5.0 (461 buckets, 1844 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.
xt_time: kernel timezone is -0000
        Hooked IMQ after mangle on PREROUTING
        Hooked IMQ after nat on POSTROUTING
IMQ driver loaded successfully.
Ebtables v2.0 registered
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
fuse init (API version 7.13)
測試二
語法:
ar7100> setenv bootargs rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,9600 board=MZK-W04NU
ar7100> bootm 0xbf050000
語法:
====check reset button function====
### main_loop entered: bootdelay=4

### main_loop: bootcmd="bootm 0xbf050000"
Hit any key to stop autoboot:  0 
ar7100>                                
ar7100> printenv
bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7100-nor0:256k(u-boot),64k(u-boot-env),1408k(uImage),6208k(rootfs),128k(config),128k(ART)
bootcmd=bootm 0xbf050000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.10
serverip=192.168.1.230
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 362/65532 bytes
ar7100> setenv bootargs rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,9600 board=MZK-W04NU
ar7100> printenv
bootcmd=bootm 0xbf050000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.10
serverip=192.168.1.230
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
bootargs=rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,9600 board=MZK-W04NU

Environment size: 272/65532 bytes
ar7100> bootm 0xbf050000
## Booting image at bf050000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.25
   Created:      2010-11-23   6:53:37 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1209183 Bytes =  1.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432

Starting kernel ...

Linux version 2.6.32.25 (eric@Osiris) (gcc version 4.3.3 (GCC) ) #3 Tue Nov 23 01:53:20 EST 2010
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 1, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=MZK-W04NU
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)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29360k/32768k available (2063k kernel code, 3408k reserved, 394k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Planex MZK-W04NU
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
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)  穢 2001-2006 Red Hat, Inc.
yaffs Nov 23 2010 01:51:22 Installing. 
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: m25p64 (8192 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000050000 : "u-boot-env"
0x000000050000-0x0000001b0000 : "kernel"
0x0000001b0000-0x0000007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=580000, len=260000 
0x000000580000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x000000800000 : "art"
0x000000050000-0x0000007e0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth1: Atheros AG71xx at 0xba000000, irq 5
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
eth0: link up (100Mbps/Full duplex)
- preinit -
Registered led device: mzk-w04nu:green:status
Registered led device: mzk-w04nu:blue:wps
Registered led device: mzk-w04nu:green:wlan
Registered led device: mzk-w04nu:green:usb
Registered led device: mzk-w04nu:green:ap
Registered led device: mzk-w04nu:green:router
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
- init -
eth0: link down

Please press Enter to activate this console. eth0: link up (100Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
Compat-wireless backport release: compat-wireless-2010-10-14-7-gab01eca
Backport based on wireless-testing.git master-2010-10-19
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)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ieee80211 phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a1 mem=0xb80c0000, irq=2
cfg80211: Calling CRDA for country: CO
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PPP generic driver version 2.4.2
cfg80211: Regulatory domain changed to country: CO
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz @ 20000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz @ 20000 KHz), (300 mBi, 2300 mBm)
    (5735000 KHz - 5835000 KHz @ 20000 KHz), (300 mBi, 3000 mBm)
Installing knfsd (copyright (C) 1996 [email protected]).
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
nf_conntrack version 0.5.0 (461 buckets, 1844 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.
xt_time: kernel timezone is -0000
        Hooked IMQ after mangle on PREROUTING
        Hooked IMQ after nat on POSTROUTING
IMQ driver loaded successfully.
Ebtables v2.0 registered
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
fuse init (API version 7.13)
回覆
FYI
會員

引用:
作者: pc054999 觀看文章
語法:
ar7100> setenv bootargs console=ttyS,9600
錯了, 再一次, 請Copy & Paste (PuTTY, 右鍵)
語法:
ar7100> md 0xbf7e0000
ar7100> md 0xbf7f0000
ar7100> setenv bootargs console=ttyS0,9600
ar7100> bootm 0xbf050000
回覆
會員
回覆: 【問題】mzk-w04nu? ttl?
抱歉 剛剛打錯 沒檢查好
原來可以複製貼上啊
AP81-AR9130-RT-070614-00
這是所謂的硬體id?
語法:
ar7100> md 0xbf7e0000
bf7e0000: 41503831 2d415239 3133302d 52542d30    AP81-AR9130-RT-0
bf7e0010: 37303631 342d3030 ffffffff ffffffff    70614-00........
bf7e0020: ffffffff ffffffff ffffffff ffffffff    ................
bf7e0030: ffffffff ffffffff ffffffff ffffffff    ................
bf7e0040: ffffffff ffffffff ffffffff ffffffff    ................
bf7e0050: ffffffff ffffffff ffffffff ffffffff    ................
bf7e0060: ffffffff ffffffff ffffffff ffffffff    ................
bf7e0070: ffffffff ffffffff ffffffff ffffffff    ................
bf7e0080: ffffffff ffffffff ffffffff ffffffff    ................
bf7e0090: ffffffff ffffffff ffffffff ffffffff    ................
bf7e00a0: ffffffff ffffffff ffffffff ffffffff    ................
bf7e00b0: ffffffff ffffffff ffffffff ffffffff    ................
bf7e00c0: ffffffff ffffffff ffffffff ffffffff    ................
bf7e00d0: ffffffff ffffffff ffffffff ffffffff    ................
bf7e00e0: ffffffff ffffffff ffffffff ffffffff    ................
bf7e00f0: ffffffff ffffffff ffffffff ffffffff    ................
ar7100> md 0xbf7f0000
bf7f0000: 19852003 0000000c f060dc98 ffffffff    .. ......`......
bf7f0010: ffffffff ffffffff ffffffff ffffffff    ................
bf7f0020: ffffffff ffffffff ffffffff ffffffff    ................
bf7f0030: ffffffff ffffffff ffffffff ffffffff    ................
bf7f0040: ffffffff ffffffff ffffffff ffffffff    ................
bf7f0050: ffffffff ffffffff ffffffff ffffffff    ................
bf7f0060: ffffffff ffffffff ffffffff ffffffff    ................
bf7f0070: ffffffff ffffffff ffffffff ffffffff    ................
bf7f0080: ffffffff ffffffff ffffffff ffffffff    ................
bf7f0090: ffffffff ffffffff ffffffff ffffffff    ................
bf7f00a0: ffffffff ffffffff ffffffff ffffffff    ................
bf7f00b0: ffffffff ffffffff ffffffff ffffffff    ................
bf7f00c0: ffffffff ffffffff ffffffff ffffffff    ................
bf7f00d0: ffffffff ffffffff ffffffff ffffffff    ................
bf7f00e0: ffffffff ffffffff ffffffff ffffffff    ................
bf7f00f0: ffffffff ffffffff ffffffff ffffffff    ................
ar7100> setenv bootargs console=ttyS0,9600
ar7100> printenv
bootcmd=bootm 0xbf050000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.10
serverip=192.168.1.230
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
bootargs=console=ttyS0,9600

Environment size: 215/65532 bytes
ar7100> bootm 0xbf050000
## Booting image at bf050000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.25
   Created:      2010-11-23   6:53:37 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1209183 Bytes =  1.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432

Starting kernel ...

Linux version 2.6.32.25 (eric@Osiris) (gcc version 4.3.3 (GCC) ) #3 Tue Nov 23 01:53:20 EST 2010
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 1, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=MZK-W04NU
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)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29360k/32768k available (2063k kernel code, 3408k reserved, 394k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Planex MZK-W04NU
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
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)  © 2001-2006 Red Hat, Inc.
yaffs Nov 23 2010 01:51:22 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: m25p64 (8192 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000050000 : "u-boot-env"
0x000000050000-0x0000001b0000 : "kernel"
0x0000001b0000-0x0000007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=580000, len=260000
0x000000580000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x000000800000 : "art"
0x000000050000-0x0000007e0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth1: Atheros AG71xx at 0xba000000, irq 5
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
eth0: link up (100Mbps/Full duplex)
- preinit -
Registered led device: mzk-w04nu:green:status
Registered led device: mzk-w04nu:blue:wps
Registered led device: mzk-w04nu:green:wlan
Registered led device: mzk-w04nu:green:usb
Registered led device: mzk-w04nu:green:ap
Registered led device: mzk-w04nu:green:router
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
- init -
eth0: link down

Please press Enter to activate this console. eth0: link up (100Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
Compat-wireless backport release: compat-wireless-2010-10-14-7-gab01eca
Backport based on wireless-testing.git master-2010-10-19
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)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ieee80211 phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a1 mem=0xb80c0000, irq=2
cfg80211: Calling CRDA for country: CO
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PPP generic driver version 2.4.2
cfg80211: Regulatory domain changed to country: CO
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz @ 20000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz @ 20000 KHz), (300 mBi, 2300 mBm)
    (5735000 KHz - 5835000 KHz @ 20000 KHz), (300 mBi, 3000 mBm)
Installing knfsd (copyright (C) 1996 [email protected]).
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
nf_conntrack version 0.5.0 (461 buckets, 1844 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.
xt_time: kernel timezone is -0000
        Hooked IMQ after mangle on PREROUTING
        Hooked IMQ after nat on POSTROUTING
IMQ driver loaded successfully.
Ebtables v2.0 registered
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
fuse init (API version 7.13)



此篇文章於 2010-11-30 02:45 AM 被 pc054999 編輯。.
回覆


類似的主題
主題 主題作者 討論版 回覆 最後發表
【硬體】支援 Draft-N 與簡易 NAS 的無線網路分享器 PCI MZK-W04NU 測試分享 kiner -- 無 線 網 路 版 15 2010-08-03 12:51 AM
那埵竟纀蒂雩悇O電腦的技數名詞ex:TTL.LCD… Mr.Heart -- HELP ME 電 腦 軟 硬 體 急 救 版 3 2002-01-26 06:51 PM
TTL expired in transit xturtle -- 網 路 技 術 版 2 2001-07-19 11:44 AM
TTL expired in transit ?? 夜天使 -- 網 路 技 術 版 1 2001-02-23 06:00 PM






 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。