设为首页收藏本站

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย

 找回密码
 立即注册
img_loading
智能检测中

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888广告投放联系QQ68610888
glinet
查看: 6170|回复: 7

【已解决】841V7换8M flash后TTL刷机不能擦除数据!!!SOS!!!!

[复制链接]
发表于 2011-8-27 11:31 | 显示全部楼层 |阅读模式
本帖最后由 choifyken 于 2011-9-8 20:25 编辑

tftp传完bin固件以后,擦除就出错了,为什么呢???
用的kasimir版主发的uboot
见6楼,谢谢大家
U-Boot 1.1.4 (Nov 22 2010 - 10:59:05)

AP99 (ar7241 - Virian) U-boot mod by Eison 201011
DRAM:  
sri
ar7240_ddr_initial_config(133): virian ddr1 init
#### TAP VALUE 1 = 0xf, 2 = 0x10 [0x0: 0x1f]
32 MB
id read 0x100000ff
sector count = 128
Flash:  8 MB
Using default environment

BOARD IS NOT CALIBRATED!!!
In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7014
eth0: 00:03:7f:09:0b:ad
eth0 up
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Eison's autobooting in 5 seconds
ar7241> setenv serverip 192.168.1.254; setenv ipaddr 192.168.1.1
ar7241> tftp 0x80800000   841v7.bin
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.1.254; our IP address is 192.168.1.1
Filename '841v7.bin'.
Load address: 0x80800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################################################
done
Bytes transferred = 3932160 (3c0000 hex)
ar7241> erase 0xbf020000 +0x3c0000
Error: end address (0xbf3dffff) not in flash!
Bad address format
ar7241>

擦除不了也就写不了新的固件啊!!!
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
发表于 2011-8-27 12:46 | 显示全部楼层
0x9f......       ?
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
 楼主| 发表于 2011-8-27 13:13 | 显示全部楼层
本帖最后由 choifyken 于 2011-8-27 15:39 编辑

是0x9f020000 +0x3c0000
原来是因为DD不支持启动不了,换回OP就可以了
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
 楼主| 发表于 2011-8-27 15:48 | 显示全部楼层
一下是刷DD的启动信息,高人帮忙分析??
  1. .

  2. U-Boot 1.1.4 (Nov 22 2010 - 10:59:05)

  3. AP99 (ar7241 - Virian) U-boot mod by Eison 201011
  4. DRAM:  
  5. sri
  6. ar7240_ddr_initial_config(133): virian ddr1 init
  7. #### TAP VALUE 1 = 0xf, 2 = 0x10 [0x0: 0x1f]
  8. 32 MB
  9. id read 0x100000ff
  10. sector count = 128
  11. Flash:  8 MB
  12. Using default environment

  13. BOARD IS NOT CALIBRATED!!!
  14. In:    serial
  15. Out:   serial
  16. Err:   serial
  17. Net:   ag7240_enet_initialize...
  18. No valid address in Flash. Using fixed address
  19. No valid address in Flash. Using fixed address
  20. Virian MDC CFG Value ==> 4
  21. : cfg1 0xf cfg2 0x7014
  22. eth0: 00:03:7f:09:0b:ad
  23. eth0 up
  24. Virian MDC CFG Value ==> 4
  25. : cfg1 0xf cfg2 0x7214
  26. eth1: 00:03:7f:09:0b:ad
  27. ATHRS26: resetting s26
  28. ATHRS26: s26 reset done
  29. eth1 up
  30. eth0, eth1
  31. Eison's autobooting in 5 seconds
  32. ## Booting image at 9f020000 ...
  33.    Uncompressing Kernel Image ... OK

  34. Starting kernel ...

  35. [    0.000000] Linux version 2.6.34.9-svn17089 (root@dd-wrt) (gcc version 4.5.2 (Linaro GCC 4.5-2011.02-0) ) #6046 Tue Jun 14 13:06:48 CEST 2011
  36. [    0.000000] flash_size passed from bootloader = 8
  37. [    0.000000] bootconsole [early0] enabled
  38. [    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
  39. Booting AR7240(Python)...
  40. .
  41. [    0.000000] Determined physical RAM map:
  42. [    0.000000]  memory: 02000000 @ 00000000 (usable)
  43. [    0.000000] Zone PFN ranges:
  44. [    0.000000]   Normal   0x00000000 -> 0x00002000
  45. [    0.000000] Movable zone start PFN for each node
  46. [    0.000000] early_node_map[1] active PFN ranges
  47. [    0.000000]     0: 0x00000000 -> 0x00002000
  48. [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
  49. [    0.000000] Kernel command line: console=ttyS0,115200 root=1f02 rootfstype=squashfs noinitrd init=/sbin/init
  50. [    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
  51. [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
  52. [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
  53. [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
  54. [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
  55. [    0.000000] Writing ErrCtl register=00000000
  56. [    0.000000] Readback ErrCtl register=00000000
  57. [    0.000000] Memory: 29756k/32768k available (1931k kernel code, 3012k reserved, 352k data, 144k init, 0k highmem)
  58. [    0.000000] NR_IRQS:128
  59. [    0.000000] Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
  60. [    0.240000] Mount-cache hash table entries: 512
  61. [    0.240000] NET: Registered protocol family 16
  62. [    0.500000] registering PCI controller with io_map_base unset
  63. [    0.510000] bio: create slab <bio-0> at 0
  64. [    0.510000] pci 0000:00:00.0: invalid calibration data
  65. [    0.520000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
  66. [    0.520000] pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x1000ffff 64bit] (PCI address [0x10000000-0x1000ffff]
  67. [    0.530000] PCI: mapping irq 48 to pin1@0000:00:00.0
  68. [    0.530000] fixup irq: got 48
  69. [    0.530000] Switching to clocksource MIPS
  70. [    0.540000] NET: Registered protocol family 2
  71. [    0.540000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  72. [    0.550000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
  73. [    0.560000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
  74. [    0.560000] TCP: Hash tables configured (established 1024 bind 1024)
  75. [    0.570000] TCP reno registered
  76. [    0.570000] UDP hash table entries: 256 (order: 0, 4096 bytes)
  77. [    0.580000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  78. [    0.580000] NET: Registered protocol family 1
  79. [    0.590000] gpio_proc: module loaded and /proc/gpio/ created
  80. [    0.600000] wl0gpio_proc: module loaded and /proc/wl0gpio/ created
  81. [    0.600000] init_vdso successfull
  82. [    0.610000] squashfs: version 3.0 (2006/03/15) Phillip Lougher
  83. [    0.610000] msgmni has been set to 58
  84. [    0.620000] io scheduler noop registered
  85. [    0.620000] io scheduler deadline registered (default)
  86. [    0.630000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
  87. [    0.640000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 19) is a 16550A
  88. [    0.640000] console [ttyS0] enabled, bootconsole disabled
  89. [    0.640000] console [ttyS0] enabled, bootconsole disabled
  90. [    0.650000] guessed flashsize = 8M
  91. [    0.660000] scanning for root partition
  92. [    0.660000] tplink uboot detected
  93. [    0.670000] guessed bootloader size = 20000
  94. [    0.670000]
  95. [    0.670000] found squashfs at 160000
  96. [    0.680000] Creating 8 MTD partitions on "ar7240-nor0":
  97. [    0.680000] 0x000000000000-0x000000020000 : "RedBoot"
  98. [    0.690000] 0x000000020000-0x0000007e0000 : "linux"
  99. [    0.700000] 0x000000160000-0x0000003d0000 : "rootfs"
  100. [    0.700000] mtd: partition "rootfs" set to be root filesystem
  101. [    0.710000] 0x0000003d0000-0x0000007e0000 : "ddwrt"
  102. [    0.710000] 0x0000007e0000-0x0000007f0000 : "nvram"
  103. [    0.720000] 0x0000007f0000-0x000000800000 : "board_config"
  104. [    0.730000] 0x000000000000-0x000000800000 : "fullflash"
  105. [    0.730000] 0x000000000000-0x000000020000 : "fullboot"
  106. [    0.740000] PPP generic driver version 2.4.2
  107. [    0.740000] PPP Deflate Compression module registered
  108. [    0.750000] PPP BSD Compression module registered
  109. [    0.750000] PPP MPPE Compression module registered
  110. [    0.760000] NET: Registered protocol family 24
  111. [    0.760000] PPPoL2TP kernel driver, V1.0
  112. [    0.770000] IMQ driver loaded successfully.
  113. [    0.770000]         Hooking IMQ before NAT on PREROUTING.
  114. [    0.780000]         Hooking IMQ after NAT on POSTROUTING.
  115. [    0.780000] tun: Universal TUN/TAP device driver, 1.6
  116. [    0.790000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
  117. [    0.790000] AG7240: Length per segment 1544
  118. [    0.800000] AG7240: Max segments per packet 1
  119. [    0.800000] AG7240: Max tx descriptor count    80
  120. [    0.810000] AG7240: Max rx descriptor count    252
  121. [    0.810000] AG7240: fifo cfg 3 01f00140
  122. [    0.820000] AG7240CHH: Mac address for unit 0
  123. [    0.820000] AG7240CHH: ff:ff:ff:ff:ff:ff
  124. [    1.030000] AG7240CHH: Mac address for unit 1
  125. [    1.030000] AG7240CHH: ff:ff:ff:ff:ff:ff
  126. [    1.240000] Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60 sec (nowayout= 0)
  127. [    1.240000] u32 classifier
  128. [    1.250000]     input device check on
  129. [    1.250000]     Actions configured
  130. [    1.250000] Netfilter messages via NETLINK v0.30.
  131. [    1.260000] nf_conntrack version 0.5.0 (464 buckets, 1856 max)
  132. [    1.270000] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
  133. [    1.270000] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
  134. [    1.280000] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
  135. [    1.290000] nf_conntrack_rtsp v0.6.21 loading
  136. [    1.290000] nf_nat_rtsp v0.6.21 loading
  137. [    1.300000] ip_tables: (C) 2000-2006 Netfilter Core Team
  138. [    1.300000] IPP2P v0.8.2 loading
  139. [    1.300000] TCP westwood registered
  140. [    1.310000] TCP hybla registered
  141. [    1.310000] TCP vegas registered
  142. [    1.310000] NET: Registered protocol family 17
  143. [    1.320000] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
  144. [    1.330000] All bugs added by David S. Miller <davem@redhat.com>
  145. [    1.370000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
  146. [    1.370000] Freeing unused kernel memory: 144k freed
  147. start service
  148. starting Architecture code for wr741
  149. starting hotplug
  150. Jan  1 00:00:02 udevtrigger[179]: parse_config_file: can't open '/etc/udev/udev.conf' as config file: No such file or directory

  151. done
  152. load ATH Ethernet Driver
  153. configure eth0 to ff:ff:ff:ff:ff:ff
  154. ifconfig: SIOCSIFHWADDR: Cannot assign requested address
  155. configure eth1 to FF:FF:FF:00:00:00
  156. ifconfig: SIOCSIFHWADDR: Cannot assign requested address
  157. load ATH 802.11 a/b/g Driver
  158. load ATH 802.11n Driver
  159. [    4.100000] ath_mimo_hal: module license 'Proprietary' taints kernel.
  160. [    4.110000] Disabling lock debugging due to kernel taint
  161. [    4.130000] ath_mimo_hal: 0.9.17.1 (AR5416, REGOPS_FUNC)
  162. [    4.670000] ath_mimo_pci: 0.9.4.5 (Atheros/multi-bss)
  163. [    4.670000] ath_mimo_pci: CR-LSDK-1.4.0.152-DDWRT
  164. [    4.670000] wlan: 0.8.4.2 (Atheros/multi-bss)
  165. [    4.680000] wlan: mac acl policy registered
  166. [    4.680000] ath_rate_atheros: Version 2.0.1
  167. [    4.680000] Copyright (c) 2001-2004 Atheros Communications, Inc, All Rights Reserved
  168. [    4.700000] IRQ 48/wifi%d: IRQF_DISABLED is not guaranteed on shared IRQs
  169. [    4.700000] device id FF1C
  170. [    4.710000] wifi%d: unable to attach hardware; HAL status 7

复制代码
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
 楼主| 发表于 2011-8-27 15:48 | 显示全部楼层
  1. configure wifi0 to FF:FF:FF:00:00:FF
  2. ifconfig: SIOCSIFHWADDR: No such device
  3. /bin/sh: can't create /proc/sys/dev/wifi0/ledpin: nonexistent directory
  4. /bin/sh: can't create /proc/sys/dev/wifi0/softled: nonexistent directory
  5. /bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-arptables: nonexistent directory
  6. /bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-ip6tables: nonexistent directory
  7. /bin/sh: can't create /proc/sys/net/bridge/bridge-nf-call-iptables: nonexistent directory
  8. [    6.440000] device br0 entered promiscuous mode
  9. [    6.460000] device br0 left promiscuous mode
  10. [    6.470000] device br0 entered promiscuous mode
  11. [    6.480000] device br0 left promiscuous mode
  12. [    6.480000] device br0 entered promiscuous mode
  13. [    6.690000] bonding: Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
  14. [    6.700000] bonding: MII link monitoring set to 100 ms
  15. br0: No such process
  16. SIOCGIFFLAGS: No such device
  17. SIOCGIFFLAGS: No such device
  18. SIOCGIFFLAGS: No such device
  19. SIOCGIFFLAGS: No such device
  20. connect: Network is unreachable
  21. connect: Network is unreachable
  22. connect: Network is unreachable
  23. gethostbyname: Network is unreachable
  24. SIOCGIFFLAGS: No such device
  25. SIOCGIFFLAGS: No such device
  26. SIOCGIFFLAGS: No such device
  27. SIOCGIFFLAGS: No such device
  28. SIOCGIFFLAGS: No such device
  29. SIOCGIFFLAGS: No such device
  30. SIOCGIFFLAGS: No such device
  31. SIOCGIFFLAGS: No such device
  32. [   19.850000] etherip: Ethernet over IPv4 tunneling driver
  33. connect: Network is unreachable
  34. connect: Network is unreachable
  35. connect: Network is unreachable
  36. gethostbyname: Network is unreachable
复制代码
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
发表于 2011-8-28 13:50 | 显示全部楼层
是0x9f020000 +0x3c0000
原来是因为DD不支持启动不了,换回OP就可以了
choifyken 发表于 2011-8-27 13:13



8M flash 是:

erase 0x9f020000 +0x7c0000
cp.b 0x80000000 0x9f020000 0x7c0000
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
发表于 2011-8-30 23:05 | 显示全部楼层
楼主用了941V2的命令,当然不行啦。应该是6楼的才对,但长度要根据固件改(0x3c0000对应4M的,0x7c0000对应8M的)

erase 0x9f020000 +0x3c0000
cp.b 0x80000000 0x9f020000 0x3c0000
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
 楼主| 发表于 2011-9-8 20:24 | 显示全部楼层
谢谢,再试试看
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛

Only talk about technology, not politics! Don't broadcast rumors! For you and for others.
Only talk about technology, not politics! (Click for details) Remember not to spread rumors at will, just live your life stably, for your own good and for everyone's good. Enshan Wireless Forum welcomes your visit, please respect each other, communicate in a friendly manner, it is recommended to maintain a normal heart to look at netizens' comments, and do not overreact.

View »

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2025-10-9 07:37

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表