【問題】mzk-w04nu? ttl?

第 1 頁,共 7 頁 1 2 3 ... 末頁末頁
顯示結果從第 1 筆 到 10 筆,共計 61 筆
  1. #1
    會員
    註冊日期
    2001-04-17
    討論區文章
    36

    【問題】mzk-w04nu? ttl?

    大家好:
    我這有一台刷過openwrt的mzk-w04nu
    原本好好的,因為我硬是給他dns設定上,加逗號設定第二組dns後,就無法連上網.....
    目前無法從網頁進入設定畫面,Telnet,SSH也一樣,可是ping的到
    所以我想利用ttl將他重新刷機

    現在遇到一個問題,我悍好ttl的腳座,但是我利用ttl接收不到任何訊息
    有甚麼原因為這樣?

    下面是我的設定
    Planex (PCI) MZK-W04NU Atheros AP81 platform router with USB所描述
    serial port pinout: pin 1 (square box) = +3.3V, pin 2 = RX, pin 3 = TX, pin 4 = Ground. You only need to connect pin 2,3,4 (for a total of three wires).

    這是我悍好的,圖片上敘述是正確的嗎?
    RX接(ttl線的TX),TX接(ttl線的RX),地線接(ttl線的地線)

    USB轉TTL晶片是Prolific PL2303,設定如下圖


    我利用Putty來連接ttl,設定如下圖


    連接的方法
    1.先插USB to TTL線
    2.開啟Putty軟體 連接上COM3
    3.開啟電源

    電源起動狀況
    插上電,Power燈恆亮,大約經過10-20秒後Status燈閃爍,閃爍5-10秒後恆亮

    我的設定或連接方法有沒有甚麼問題?
    麻煩大家
    謝謝


    附加圖片 附加圖片 test.jpg   test2.jpg   test3.jpg  

  2. #2
    FYI
    FYI 目前未上線
    會員
    註冊日期
    2001-06-22
    討論區文章
    7,294
    PuTTY 左下角還有個 "Serial", 更簡單的方法則是 "FailSafe mode"

    Troubleshooting - OpenWrt Wiki

  3. #3
    會員
    註冊日期
    2001-04-17
    討論區文章
    36

    回覆: 【問題】mzk-w04nu? ttl?

    我PuTTY Serial設定跟TTL driver設定一樣

    Failsafe mode
    我以前試過這個方法,一直接收不到port 4919的訊息
    這次竟然可以收到訊號.....
    安全進入Failsafe mode內

    Failsafe mode內,我可不可以針對我設定錯誤的部分進行修改並儲存?
    我進行下面的操作後,重新啟動一樣是原設定network.wan.dns=61.64.127.1,61.64.127.2
    並沒有修改成network.wan.dns=61.64.127.1
    語法:
    root@(none):/# uci -p/varstate show network.wan
    network.wan=interface
    network.wan.proto=static
    network.wan.ipaddr=xx.xx.xx.xx
    network.wan.netmask=255.255.255.0
    network.wan.gateway=xx.xx.xx.xx
    network.wan.defaultroute=0
    network.wan.peerdns=0
    network.wan.ifname=test1
    network.wan.dns=61.64.127.1,61.64.127.2
    root@(none):/# uci -p/varstate set network.wan.dns=61.64.127.1
    root@(none):/# uci -p/varstate show network.wan.dns
    network.wan.dns=61.64.127.1
    root@(none):/# sync
    root@(none):/#
    再來我試著照wiki進行firstboot
    語法:
    root@(none)# firstboot
    firstboot has already been run
    jffs2 partition is mounted, only resetting files
    MTD partition not found.
    沒辦法重置至firstboot?

    這個意思是要我用重新安裝openwrt?
    丟包進去 mtd -r write xxx.xxx嗎?

  4. #4
    FYI
    FYI 目前未上線
    會員
    註冊日期
    2001-06-22
    討論區文章
    7,294
    修改wan interface 應該不至於導致lan interface 無法初始化, 可能還有其他錯誤, 'network.wan.ifname' 不應該是 'test1', 建議徹底檢查 /etc/config/network, 是否lan interface 也設錯
    引用 作者:pc054999 瀏覽文章
    語法:
    network.wan.ifname=test1
    network.wan.dns=61.64.127.1,61.64.127.2
    語法:
    mount_root
    uci -p/varstate set network.wan.ifname=eth1
    uci -p/varstate set network.wan.dns='61.64.127.1 61.64.127.2'
    sync
    若還是找不到問題點, 那就直接
    語法:
    mtd -r erase rootfs_data

  5. #5
    會員
    註冊日期
    2001-04-17
    討論區文章
    36

    回覆: 【問題】mzk-w04nu? ttl?

    這是我原始的 /etc/config/network
    語法:
    root@(none):/# cat /etc/config/network
    
    config 'interface' 'loopback'
            option 'ifname' 'lo'
            option 'proto' 'static'
            option 'ipaddr' '127.0.0.1'
            option 'netmask' '255.0.0.0'
    
    config 'interface' 'lan'
            option 'type' 'bridge'
            option 'proto' 'static'
            option 'ipaddr' '192.168.1.1'
            option 'netmask' '255.255.255.0'
            option 'ifname' 'test1'
    
    config 'interface' 'wan'
            option 'proto' 'static'
            option 'ipaddr' 'x.x.x.x'
            option 'netmask' '255.255.255.0'
            option 'gateway' 'x.x.x.x'
            option 'defaultroute' '0'
            option 'peerdns' '0'
            option 'ifname' 'test1'
            option 'dns' '61.64.127.1,61.64.127.2'
    
    config 'route'
    我利用vi來修改/etc/config/network
    語法:
    root@(none):/# vi /etc/config/network
    
    config 'interface' 'loopback'
            option 'ifname' 'lo'
            option 'proto' 'static'
            option 'ipaddr' '127.0.0.1'
            option 'netmask' '255.0.0.0'
    
    config 'interface' 'lan'
            option 'type' 'bridge'
            option 'proto' 'static'
            option 'ipaddr' '192.168.1.1'
            option 'netmask' '255.255.255.0'
            option 'ifname' 'eth1'
    
    config 'interface' 'wan'
            option 'proto' 'static'
            option 'ipaddr' 'x.x.x.x'
            option 'netmask' '255.255.255.0'
            option 'gateway' 'x.x.x.x'
            option 'defaultroute' '0'
            option 'peerdns' '0'
            option 'ifname' 'eth1'
            option 'dns' '61.64.127.1 61.64.127.2'
    
    config 'route'
    鍵入:wq儲存
    sync 同步
    現在出現個問題,我重新啟動後一樣不能正常telnet,ssh,網頁進入系統,必須進入failsafe mode才可以telnet進去
    telnet 進去後執行cat /etc/config/network查看
    它又跑回最上面的原始設定....
    好像我設定的都沒有儲存進去?

    好吧,我試著mtd -r erase rootfs_data
    語法:
    root@(none):/# mtd -r erase rootfs_data
    Could not open mtd device: rootfs_data
    Could not open mtd device: rootfs_data
    不能打開...

    語法:
    root@(none):/# cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00040000 00010000 "u-boot"
    mtd1: 00010000 00010000 "u-boot-env"
    mtd2: 00160000 00010000 "kernel"
    mtd3: 00630000 00010000 "rootfs"
    mtd4: 00020000 00010000 "art"
    mtd5: 00790000 00010000 "firmware"
    要/proc/mtd裡面有rootfs_data才能mtd -r erase rootfs_data嗎?

    抱歉我不是學相關的,我要找一些指令用法,所以回覆的比較慢



  6. #6
    FYI
    FYI 目前未上線
    會員
    註冊日期
    2001-06-22
    討論區文章
    7,294
    eth0: Atheros AG71xx at 0xb9000000, irq 4
    eth1: Atheros AG71xx at 0xba000000, irq 5
    Atheros AR71xx SPI Controller driver version 0.2.2
    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
    Creating 6 MTD partitions on "spi0.0":
    0x00000000-0x00040000 : "u-boot"
    0x00040000-0x00050000 : "u-boot-env"
    0x00050000-0x001b0000 : "uImage"
    0x001b0000-0x007c0000 : "rootfs"
    mtd: partition "rootfs" set to be root filesystem
    mtd: partition "rootfs_data" created automatically, ofs=3E0000, len=3E0000
    0x003e0000-0x007c0000 : "rootfs_data"
    0x007c0000-0x007e0000 : "config"
    0x007e0000-0x00800000 : "art"
    ...
    br-lan: port 1(eth0) entering forwarding state
    rootfs_data 應該是第一次啟動後自動建立, 你的情形似乎第一次就不成功, 照小弟研判, lan 應該是eth0, 那麼wan 就是eth1, 除非韌體是你自己編譯的, 否則再怎麼樣也不應該是test1, 請進入FailSafe mode, 然後執行ifconfig

    建議重刷吧, 請先下載openwrt-ar71xx-generic-mzk-w04nu-squashfs-sysupgrade.bin
    安裝HTTP File Server
    進入FailSafe mode
    語法:
    root@(none):/# cd /tmp
    root@(none):/tmp# wget http://192.168.1.2/openwrt-ar71xx-generic-mzk-w04nu-squashfs-sysupgrade.bin
    root@(none):/tmp# sysupgrade -n -v /tmp/openwrt-ar71xx-generic-mzk-w04nu-squashfs-sysupgrade.bin
    或
    root@(none):/tmp# mtd -r write /tmp/openwrt-ar71xx-generic-mzk-w04nu-squashfs-sysupgrade.bin firmware
    若懶得安裝HTTP File Server, 那麼wget 就改成直接從OpenWrt 下載

  7. #7
    會員
    註冊日期
    2001-04-17
    討論區文章
    36

    回覆: 【問題】mzk-w04nu? ttl?

    error.....
    ping不到了,晚點再試試看

    語法:
    root@(none):/# cd /tmp
    root@(none):/tmp# wget http://192.168.1.11/openwrt-ar71xx-generic-mzk-w04nu-squashfs-sysupgrade.bin
    Connecting to 192.168.1.11 (192.168.1.11:80)
    openwrt-ar71xx-generic-mzk-w04nu-squashfs-sysupgrade.bin                100% |*******************************|  3009k 
    
    00:00:00 ETA
    root@(none):/tmp# mtd -r write /tmp/openwrt-ar71xx-generic-mzk-w04nu-squashfs-sysupgrade.bin firmware
    Unlocking firmware ...
    Writing from /tmp/openwrt-ar71xx-generic-mzk-w04nu-squashfs-sysupgrade.bin to firmware ...
    Rebooting ...
    sh: /sbin/reboot: Input/output error

  8. #8
    FYI
    FYI 目前未上線
    會員
    註冊日期
    2001-06-22
    討論區文章
    7,294
    再試試FailSafe mode

    把傳輸線的TX 接RX, 以PuTTY 測試功能是否正常?
    以數位電錶檢查PCB 上的TX, RX 和下面三個空焊點 (R9/R12/R3) 是否導通?
    開機時, TX 電壓是否上下變動?

    U-Boot 所設定的Baud rate 應該是115200bps, 但載入OpenWrt 之後應該必須改成9600bps

  9. #9
    會員
    註冊日期
    2001-04-17
    討論區文章
    36

    回覆: 【問題】mzk-w04nu? ttl?

    failsafe mode
    原先抓到udp.port == 4919的時機,大概是status燈亮的瞬間
    很討厭的是現在機器的status燈不會亮了
    我抓抓看時間點,點reset
    看看會不會運氣好點進去
    假如進的去,我在重新刷一次?

    單純TX,RX接在一起利用putty,可以順利看見我鍵入的英文

    TX,RX沒有跟(R9/R12/R3)導通
    需要讓他們導通嗎?

    我用電表轉(V- 20)量TX和Ground,電壓有在改變(大部分是3.29 v)
    這樣意思是他有在傳訊息?
    可是我量RX和Ground在開機後也是有在改變..?(電壓0.0x v)
    這個是不正常的嗎?

  10. #10
    FYI
    FYI 目前未上線
    會員
    註冊日期
    2001-06-22
    討論區文章
    7,294
    引用 作者:pc054999 瀏覽文章
    failsafe mode
    原先抓到udp.port == 4919的時機,大概是status燈亮的瞬間
    很討厭的是現在機器的status燈不會亮了
    我抓抓看時間點,點reset
    看看會不會運氣好點進去
    假如進的去,我在重新刷一次?
    運氣? 還沒用完嗎? 請安裝WireShark 或Packetyzer 監看廣播封包

    刷什麼得再想一下, 或許刷回原廠韌體, 若無法登入U-Boot, 萬一刷壞就麻煩了
    引用 作者:pc054999 瀏覽文章
    我用電表轉(V- 20)量TX和Ground,電壓有在改變(大部分是3.29 v)
    這樣意思是他有在傳訊息?
    這代表你的Baud rate 不正確或有設定Xon/Xoff, 所以讀不到數據, 按理說應該就是115200 (U-Boot) & 9600 (OpenWrt), 8n1, No Flow Control, 前面已經提過, PuTTY Serial 設定並非只有你貼出的那個畫面, 沒那麼困難吧! 或改用Hercules Setup Utility

    你確定傳輸線的TX/RX/GND 正確嗎? 請用數位電錶確認, 由Hercules Setup Utility 傳送檔案, TX 電壓會有變化, GND 通常應該會和USB GND 導通


    此文章於 2010-11-14 12:02 AM 被 FYI 編輯。

第 1 頁,共 7 頁 1 2 3 ... 末頁末頁

類似的主題

  1. 便宜 簡單的Qos Router MZK-WNHR
    作者:thx 所在討論版:-- 無 線 網 路 版
    回覆: 92
    最後發表: 2010-10-13, 05:06 AM
  2. 回覆: 15
    最後發表: 2010-08-03, 12:51 AM
  3. 請問TTL expired in transit的問題??
    作者:novapub 所在討論版:-- 網 路 技 術 版
    回覆: 0
    最後發表: 2002-05-29, 01:51 PM
  4. TTL expired in transit
    作者:xturtle 所在討論版:-- 網 路 技 術 版
    回覆: 2
    最後發表: 2001-07-19, 11:44 AM
  5. TTL expired in transit ??
    作者:夜天使 所在討論版:-- 網 路 技 術 版
    回覆: 1
    最後發表: 2001-02-23, 06:00 PM

 

MZK-W04NU ttl gnd tx

jffs2_scan_eraseblock() magic bitmask not found openwrt sysupgrade

PCI久森 MZK-W04NU 評價

MZK-W04NU 晶片

發表文章規則

  • 不可以發表新主題
  • 不可以回覆文章
  • 不可以上傳附加檔案
  • 不可以編輯自己的文章
  •