找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: jiuweiljp

关于 Atheros 类型 jtag 接口的一些见解和疑问

[复制链接]
 楼主| 发表于 2010-12-10 10:04 | 显示全部楼层
本帖最后由 jiuweiljp 于 2010-12-10 17:20 编辑

----------------------------------------------------
这是正常启动信息
-----------------------------------------------------
+MANID:C2 DEVID1:22A7 DEVID2:0 DEVID3:19
Ethernet eth1: MAC address 00:13:46:60:cb:7c
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified-Build-ljp release, version AP30 - built 23:18:38, Jun  4 2010

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2007 NewMedia-NET GmbH (DD-WRT build)

Board: ap30
RAM: 0x80000400-0x80ff0400, [0x80000400-0x80fdd400] available
FLASH: 0xbe000000 - 0xbe3e0000, 64 blocks of 0x00010000 bytes each.
== Executing boot script in 5.000 seconds - enter ^C to abort
RedBoot> fis load linux
RedBoot> exec
Now booting linux kernel:
Base address 0x80030000 Entry 0x80100000
Cmdline :
Linux version 2.6.20 (root@linux) (gcc version 4.1.1) #25 Tue Feb 13 16:03:22 CET 2007
CPU revision is: 00018009
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Built 1 zonelists.  Total pages: 8128
Kernel command line: console=ttyS0,115200 root=/dev/mtdblock1 rootfstype=squashfs,jffs2
Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 128 (order: 7, 512 bytes)
Using 110.000 MHz high precision timer.
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29748k/32768k available (1936k kernel code, 3020k reserved, 283k data, 128k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Radio config found at offset 0xf8
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 1024 bind 512)
TCP reno registered
gpio_proc: module loaded and /proc/gpio/ created
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
io scheduler noop registered (default)
Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60 sec (nowayout= 0)
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xbc000003 (irq = 37) is a 16550A
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
IMQ starting with 2 devices...
IMQ driver loaded successfully.
        Hooking IMQ before NAT on PREROUTING.
        Hooking IMQ after NAT on POSTROUTING.
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
physmap platform flash device: 00400000 at 1e000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
physmap-flash.0: Swapping erase regions for broken CFI table
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
Searching for RedBoot partition table in physmap-flash.0 at offset 0x3d0000
6 RedBoot partitions found on MTD device physmap-flash.0
Creating 6 MTD partitions on "physmap-flash.0":
0x00000000-0x00030000 : "RedBoot"
0x00040000-0x003c0000 : "rootfs"
0x002e0000-0x003b0000 : "linux"
0x003b0000-0x003c0000 : "nvram"
0x003c0000-0x003c1000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't end on an erase block -- force read-only
0x003d0000-0x003e0000 : "FIS directory"
u32 classifier
    OLD policer on

Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (256 buckets, 2048 max)
ctnetlink v0.93: registering with nfnetlink.
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
IPP2P v0.8.2 loading
ClusterIP Version 0.8 loaded successfully
TCP bic registered
TCP cubic registered
TCP westwood registered
TCP highspeed registered
TCP hybla registered
TCP htcp registered
TCP vegas registered
TCP scalable registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Welcome to PF_RING 3.2.1
(C) 2004-06 L.Deri <deri@ntop.org>
NET: Registered protocol family 27
PF_RING: bucket length    128 bytes
PF_RING: ring slots       4096
PF_RING: sample rate      1 [1=no sampling]
PF_RING: capture TX       No [RX only]
PF_RING: transparent mode Yes
PF_RING initialized correctly.
PF_RING: registered /proc/net/pf_ring/
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
Time: MIPS clocksource has been installed.
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing firmware memory: 0kb freed
Freeing unused kernel memory: 128k freed
ath0
ath1
Interface doesn't accept private ioctl...
mode (8BE2): Network dropped connection on reset
wl: No such file or directory
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
Key is a RSA key
Wrote key to '/tmp/root/.ssh/ssh_host_rsa_key'
Key is a DSS key
Wrote key to '/tmp/root/.ssh/ssh_host_dss_key'
udhcpc (v0.9.9-pre) started
Jan  1 00:00:31 udhcpc[1312]: udhcpc (v0.9.9-pre) started

sh: /tmp/.rc_startup: not found
: /etc/init.d/rcS: /etc/init.d/rcS: 4: /etc/init.d/S*: not found

/etc/config/pptpd_client.startup: /etc/config/pptpd_client.startup: 14: /tmp/pptpd_client/virtual**: not found
Sending discover...
Jan  1 00:00:34 udhcpc[1312]: Sending discover...

Sending select for 192.168.0.4...
Jan  1 00:00:34 udhcpc[1312]: Sending select for 192.168.0.4...

Lease of 192.168.0.4 obtained, lease time 3600
Jan  1 00:00:34 udhcpc[1312]: Lease of 192.168.0.4 obtained, lease time 3600

eth1: No such process
IGMP Error: Unable to add router membership for net:br0 Error:22
IGMP Error: Unable to add router membership for net:br0:0 Error:22
IGMP Error: Adding VIF failed for network:br0:0 Error:125.
SIOCGIFFLAGS: No such device
发表于 2010-12-10 10:11 | 显示全部楼层
我的起不了,有ap48的RAM吗?
 楼主| 发表于 2010-12-10 10:12 | 显示全部楼层
本帖最后由 jiuweiljp 于 2010-12-10 11:12 编辑

系统信息


2.4g和5g两个无线接口已经驱动了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
 楼主| 发表于 2010-12-10 10:17 | 显示全部楼层
我的起不了,有ap48的RAM吗?
raaaaa 发表于 2010-12-10 10:11



qq联系我
发表于 2010-12-10 12:52 | 显示全部楼层
我是看不懂啊!这长时间,真是不容易!
发表于 2010-12-15 00:28 | 显示全部楼层
佩服 顶起
 楼主| 发表于 2010-12-17 01:44 | 显示全部楼层
本帖最后由 jiuweiljp 于 2010-12-18 12:03 编辑

完全搞定,我以前发图说还有问题,问题就是不能web升级,并且手动灌固件也无法正常启动到dd,总是重启,现在终于搞定了。太晚了,有时间再写吧,还是上图。
请大家注意:看了老外的文章好像ag108 在rc6.2后才能通过web升级没有动手能力的朋友在rc6.2以下的版本不要通过web升级(我没有时间证实它)。我是手刷rc6.2后才通过web升到v24sp1、v24sp2-14896的。

这是v24sp1 web 升级过程中 串口反馈信息 这个升级信息与以前的反馈信息大不一样
  1. =========[RedBoot]===========
  2. flash base BE000000
  3. mem base BE000000
  4. size 30000
  5. entry_point 0
  6. data_length 0
  7. desc_cksum 0
  8. file_cksum 0
  9. ==========[RedBoot config]===========
  10. flash base BE3C0000
  11. mem base BE3C0000
  12. size 1000
  13. entry_point 0
  14. data_length 0
  15. desc_cksum 0
  16. file_cksum 0
  17. ==========[FIS directory]===========
  18. flash base BE3D0000
  19. mem base BE3D0000
  20. size 10000
  21. entry_point 0
  22. data_length 0
  23. desc_cksum 0
  24. file_cksum 0
  25. ==========[rootfs]===========
  26. flash base BE030000
  27. mem base BE030000
  28. size 2A0000
  29. entry_point 0
  30. data_length 2A0000
  31. desc_cksum 0
  32. file_cksum 7926D72C
  33. ==========[linux]===========
  34. flash base BE2D0000
  35. mem base 80100000
  36. size D0000
  37. entry_point 80100000
  38. data_length D0000
  39. desc_cksum 0
  40. file_cksum 0
  41. ==========[nvram]===========
  42. flash base BE3B0000
  43. mem base BE3B0000
  44. size 10000
  45. entry_point 0
  46. data_length 10000
  47. desc_cksum 0
  48. file_cksum 6563EF7A
  49. fixing up redboot partitions
  50. Unlocking FIS directory ...
  51. Writing from /tmp/fisdir to FIS directory ... [w]
  52. freeram=[16306176] bufferram=[1687552]
  53. The free memory is enough, writing image once.
  54. write=[3551232]
  55. rootfs: CRC OK1309]
  56. Writing image to flash, waiting a moment...
  57. uploading [3551309]
  58. erase[65536]
复制代码


注意看图











本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
 楼主| 发表于 2010-12-18 09:23 | 显示全部楼层
本帖最后由 jiuweiljp 于 2010-12-18 10:14 编辑

今天有空就总结一下过程吧!
重点:
干没有把握的事情前都要备份,这是很总要的。

本人自从收到这个板子后从找jtag口-〉做jtag线-〉刷网上现成redboot-〉自编redboot-〉灌dd-〉用别人board infomation-〉改board infomation-〉成功
经历了大量的失败。

这次我说说网上基本没有提到过的atheros的board infomation(简称 bdinfo)
1、本人自从编译了redboot后无法载入dd启动信息如下

  1. Board: ap30
  2. RAM: 0x80000400-0x81ff0400, [0x80000400-0x81fdd400] available
  3. FLASH: 0xbfc00000 - 0xbffe0000, 64 blocks of 0x00010000 bytes each.
  4. == Executing boot script in 3.000 seconds - enter ^C to abort
  5. RedBoot> fis load linux
  6. RedBoot> exec
  7. Now booting linux kernel:
  8. Base address 0x80030000 Entry 0x80100000
  9. Cmdline :
  10. Linux version 2.6.20.15 (root@dd-wrt) (gcc version 4.1.2) #186 Mon Aug 6 06:05:46 CEST 2007
  11. CPU revision is: 00018009
  12. Determined physical RAM map:
  13. memory: 02000000 @ 00000000 (usable)
  14. Built 1 zonelists.  Total pages: 8128
  15. Kernel command line: console=ttyS0,115200 root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd
  16. Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
  17. Primary data cache 16kB, 4-way, linesize 16 bytes.
  18. Synthesized TLB refill handler (20 instructions).
  19. Synthesized TLB load handler fastpath (32 instructions).
  20. Synthesized TLB store handler fastpath (32 instructions).
  21. Synthesized TLB modify handler fastpath (31 instructions).
  22. PID hash table entries: 128 (order: 7, 512 bytes)
  23. Using 110.000 MHz high precision timer.
  24. Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
  25. Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
  26. Memory: 29664k/32768k available (1962k kernel code, 3104k reserved, 289k data, 128k init, 0k highmem)
  27. Mount-cache hash table entries: 512
  28. NET: Registered protocol family 16
  29. WARNING: No board configuration data found!
  30. CPU 0 Unable to handle kernel paging request at virtual address 0000004c, epc == 80279724, ra == 802796cc
  31. Oops[#1]:
  32. Cpu 0
  33. $ 0   : 00000000 1000c000 0000000a 00000002
  34. $ 4   : 80260920 0000057b 00000000 802a8dd4
  35. $ 8   : 80297a30 80260000 80290000 802a0000
  36. $12   : 80290000 00000e00 80297994 00000000
  37. $16   : 80290000 80292150 00000000 00000000
  38. $20   : 00000000 00000000 00000000 00000000
  39. $24   : 00000000 00000000                  
  40. $28   : 81064000 81065f58 00000000 802796cc
  41. Hi    : 0000006d
  42. Lo    : d869e800
  43. epc   : 80279724     Not tainted
  44. ra    : 802796cc Status: 1000c003    KERNEL EXL IE
  45. Cause : 00801008
  46. BadVA : 0000004c
  47. PrId  : 00018009
  48. Modules linked in:
  49. Process swapper (pid: 1, threadinfo=81064000, task=81063838)
  50. Stack : 00000000 00000000 80288924 8028872c 80290000 80292150 00000000 00000000
  51.         800414c4 800414c4 00000000 00000000 00000000 00000000 00000000 00000000
  52.         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  53.         00000000 00000000 00000000 80045108 1000c003 00000000 00000000 00000000
  54.         00000000 800450f8 ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
  55.         ...
  56. Call Trace:[<80288924>][<8028872c>][<800414c4>][<800414c4>][<80045108>][<800450f8>]

  57. Code: 3c028029  0809e5d1  ac435680 <8e42004c> 30422000  10400004  3c038029  24020001  0809e5d1
  58. Kernel panic - not syncing: Attempted to kill init!
  59. <0>Rebooting in 1 seconds.
复制代码
经lintel提示是没有cpu信息,经过联系才知道只要是atheros的主板在flash后部都有一个保留区,存储的是bdinfo,
bdinfo 一般大小为64k 或128k,bdinfo主要包含你的主板信息,cpu类型、mac地址、radio info等。很重要!
这是dwl-2100ap 的bdinfo片段


这是7800h原始的bdinfo

这是dir-300 bdinfo


发现7800h的bdinfo 与别的不一样,(dwl-2100ap 用的是vxwork)
-----------------------------------------------------------------
有意思的是我查到dd的论坛上有一个帖子 “how to recover board config for dir-300”
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=39290&postdays=0&postorder=asc&start=0&sid=3c481cf3ad60b07d894788979aa956d8

提到一个网页能生成board info
http://www.shadowandy.net/2009/02/generating-dir-300s-board-config.htm
http://www.shadowandy.net/wp/wp-content/uploads/dir300generator.php
有dir-300的朋友可以看看
------------------------------------------------------------------

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
 楼主| 发表于 2010-12-18 10:21 | 显示全部楼层
我就将dwl-2100ap 的头信息嫁接到7800上启动成功,但是只能在特定的版本下这些版本是07年编制的0331前的版本
下面是启动信息
  1. Linux version 2.6.20.4 (root@dd-wrt) (gcc version 4.1.2) #45 Thu Mar 29 09:56:07 CEST 2007
  2. CPU revision is: 00018009
  3. Determined physical RAM map:
  4. memory: 02000000 @ 00000000 (usable)
  5. Built 1 zonelists. Total pages: 8128
  6. Kernel command line: console=ttyS0,115200 root=/dev/mtdblock1 rootfstype=squashfs,jffs2
  7. Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
  8. Primary data cache 16kB, 4-way, linesize 16 bytes.
  9. Synthesized TLB refill handler (20 instructions).
  10. Synthesized TLB load handler fastpath (32 instructions).
  11. Synthesized TLB store handler fastpath (32 instructions).
  12. Synthesized TLB modify handler fastpath (31 instructions).
  13. PID hash table entries: 128 (order: 7, 512 bytes)
  14. Using 110.000 MHz high precision timer.
  15. Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
  16. Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
  17. Memory: 29756k/32768k available (1930k kernel code, 3012k reserved, 282k data, 128k init, 0k highmem)
  18. Mount-cache hash table entries: 512
  19. NET: Registered protocol family 16
  20. Radio config found at offset 0x10000
  21. NET: Registered protocol family 2
  22. IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  23. TCP established hash table entries: 1024 (order: 0, 4096 bytes)
  24. TCP bind hash table entries: 512 (order: -1, 2048 bytes)
  25. TCP: Hash tables configured (established 1024 bind 512)
  26. TCP reno registered
  27. gpio_proc: module loaded and /proc/gpio/ created
  28. devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
  29. devfs: boot_options: 0x1
  30. squashfs: version 3.0 (2006/03/15) Phillip Lougher
  31. io scheduler noop registered (default)
  32. Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60 sec (nowayout= 0)
  33. Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
  34. serial8250: ttyS0 at MMIO 0xbc000003 (irq = 37) is a 16550A
  35. PPP generic driver version 2.4.2
  36. PPP Deflate Compression module registered
  37. PPP BSD Compression module registered
  38. PPP MPPE Compression module registered
  39. NET: Registered protocol family 24
  40. IMQ starting with 2 devices...
  41. IMQ driver loaded successfully.
  42. Hooking IMQ before NAT on PREROUTING.
  43. Hooking IMQ after NAT on POSTROUTING.
  44. tun: Universal TUN/TAP device driver, 1.6
  45. tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
  46. physmap platform flash device: 00400000 at 1e000000
  47. physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
  48. Amd/Fujitsu Extended Query Table at 0x0040
  49. physmap-flash.0: Swapping erase regions for broken CFI table.
  50. number of CFI chips: 1
  51. cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
  52. cmdlinepart partition parsing not available
  53. Searching for RedBoot partition table in physmap-flash.0 at offset 0x3d0000
  54. 6 RedBoot partitions found on MTD device physmap-flash.0
  55. Creating 6 MTD partitions on "physmap-flash.0":
  56. 0x00000000-0x00030000 : "RedBoot"
  57. 0x00030000-0x003b0000 : "rootfs"
  58. 0x002d0000-0x003a0000 : "linux"
  59. 0x003b0000-0x003c0000 : "nvram"
  60. 0x003c0000-0x003c1000 : "RedBoot config"
  61. mtd: partition "RedBoot config" doesn't end on an erase block -- force read-only
  62. 0x003d0000-0x003e0000 : "FIS directory"
  63. u32 classifier
  64. OLD policer on
  65. Netfilter messages via NETLINK v0.30.
  66. nf_conntrack version 0.5.0 (256 buckets, 2048 max)
  67. ctnetlink v0.93: registering with nfnetlink.
  68. IPv4 over IPv4 tunneling driver
  69. GRE over IPv4 tunneling driver
  70. ip_tables: (C) 2000-2006 Netfilter Core Team
  71. IPP2P v0.8.2 loading
  72. ClusterIP Version 0.8 loaded successfully
  73. TCP bic registered
  74. TCP cubic registered
  75. TCP westwood registered
  76. TCP highspeed registered
  77. TCP hybla registered
  78. TCP htcp registered
  79. TCP vegas registered
  80. TCP scalable registered
  81. NET: Registered protocol family 1
  82. NET: Registered protocol family 17
  83. Welcome to PF_RING 3.2.1
  84. (C) 2004-06 L.Deri <deri@ntop.org>
  85. NET: Registered protocol family 27
  86. PF_RING: bucket length 128 bytes
  87. PF_RING: ring slots 4096
  88. PF_RING: sample rate 1 [1=no sampling]
  89. PF_RING: capture TX No [RX only]
  90. PF_RING: transparent mode Yes
  91. PF_RING initialized correctly.
  92. PF_RING: registered /proc/net/pf_ring/
  93. 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
  94. All bugs added by David S. Miller <davem@redhat.com>
  95. Time: MIPS clocksource has been installed.
  96. VFS: Mounted root (squashfs filesystem) readonly.
  97. Mounted devfs on /dev
  98. Freeing firmware memory: 0kb freed
  99. Freeing unused kernel memory: 128k freed
  100. eth0: Dropping NETIF_F_SG since no checksum feature.
  101. eth0: Atheros AR2313: 00:13:46:60:cb:7c, irq 3
  102. eth1: Dropping NETIF_F_SG since no checksum feature.
  103. eth1: Atheros AR2313: 00:13:46:60:cb:7d, irq 4
  104. eth0: Configuring MAC for full duplex
  105. Algorithmics/MIPS FPU Emulator v1.5
  106. Unlocking nvram ...
  107. Writing from /tmp/nvram/nvram.tar.gz to nvram ... [w]
  108. device eth0 entered promiscuous mode
  109. Error for wireless request "Set Frequency" (8B04) :
  110. SET failed on device ath0 ; Invalid argument.
  111. Interface doesn't accept private ioctl...
  112. mode (8BE2): Network dropped connection on reset
  113. Error for wireless request "Set Frequency" (8B04) :
  114. SET failed on device ath0 ; Invalid argument.
  115. Error for wireless request "Set Frequency" (8B04) :
  116. SET failed on device ath0 ; Invalid argument.
  117. device ath0 entered promiscuous mode
  118. Error for wireless request "Set Frequency" (8B04) :
  119. SET failed on device ath1 ; Invalid argument.
  120. Interface doesn't accept private ioctl...
  121. mode (8BE2): Network dropped connection on reset
  122. Error for wireless request "Set Frequency" (8B04) :
  123. SET failed on device ath1 ; Invalid argument.
  124. Error for wireless request "Set Frequency" (8B04) :
  125. SET failed on device ath1 ; Invalid argument.
  126. device ath1 entered promiscuous mode
  127. Unlocking nvram ...
  128. Writing from /tmp/nvram/nvram.tar.gz to nvram ... [w]
  129. br0: port 3(ath1) entering learning state
  130. br0: port 2(ath0) entering learning state
  131. br0: port 1(eth0) entering learning state
  132. br0: topology change detected, propagating
  133. br0: port 3(ath1) entering forwarding state
  134. br0: topology change detected, propagating
  135. br0: port 2(ath0) entering forwarding state
  136. br0: topology change detected, propagating
  137. br0: port 1(eth0) entering forwarding state
  138. SIOCGIFFLAGS: No such device
复制代码
 楼主| 发表于 2010-12-18 10:22 | 显示全部楼层
后面的版本不是启动后无法正确识别flash芯片就是load linux 后直接重启
2007-08-06的版本(无法正确识别flash芯片)

  1. Now booting linux kernel:
  2. Base address 0x80030000 Entry 0x80100000
  3. Cmdline :
  4. Linux version 2.6.20.15 (root@dd-wrt) (gcc version 4.1.2) #186 Mon Aug 6 06:05:46 CEST 2007
  5. CPU revision is: 00018009
  6. Determined physical RAM map:
  7. memory: 02000000 @ 00000000 (usable)
  8. Built 1 zonelists. Total pages: 8128
  9. Kernel command line: console=ttyS0,115200 root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd
  10. Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
  11. Primary data cache 16kB, 4-way, linesize 16 bytes.
  12. Synthesized TLB refill handler (20 instructions).
  13. Synthesized TLB load handler fastpath (32 instructions).
  14. Synthesized TLB store handler fastpath (32 instructions).
  15. Synthesized TLB modify handler fastpath (31 instructions).
  16. PID hash table entries: 128 (order: 7, 512 bytes)
  17. Using 110.000 MHz high precision timer.
  18. Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
  19. Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
  20. Memory: 29664k/32768k available (1962k kernel code, 3104k reserved, 289k data, 128k init, 0k highmem)
  21. Mount-cache hash table entries: 512
  22. NET: Registered protocol family 16
  23. Radio config found at offset 0xf8(0x1f8)
  24. NET: Registered protocol family 2
  25. IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  26. TCP established hash table entries: 1024 (order: 0, 4096 bytes)
  27. TCP bind hash table entries: 512 (order: -1, 2048 bytes)
  28. TCP: Hash tables configured (established 1024 bind 512)
  29. TCP reno registered
  30. gpio_proc: module loaded and /proc/gpio/ created
  31. devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
  32. devfs: boot_options: 0x1
  33. squashfs: version 3.0 (2006/03/15) Phillip Lougher
  34. io scheduler noop registered (default)
  35. Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60 sec (nowayout= 0)
  36. Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
  37. serial8250: ttyS0 at MMIO 0xbc000003 (irq = 37) is a 16550A
  38. PPP generic driver version 2.4.2
  39. PPP Deflate Compression module registered
  40. PPP BSD Compression module registered
  41. MPPE/MPPC encryption/compression module registered
  42. NET: Registered protocol family 24
  43. IMQ starting with 2 devices...
  44. IMQ driver loaded successfully.
  45. Hooking IMQ before NAT on PREROUTING.
  46. Hooking IMQ after NAT on POSTROUTING.
  47. tun: Universal TUN/TAP device driver, 1.6
  48. tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
  49. physmap platform flash device: 00400000 at 1e000000
  50. physmap-flash physmap-flash.0: map_probe failed
  51. u32 classifier
  52. OLD policer on
  53. Netfilter messages via NETLINK v0.30.
  54. nf_conntrack version 0.5.0 (256 buckets, 2048 max)
  55. ctnetlink v0.93: registering with nfnetlink.
  56. IPv4 over IPv4 tunneling driver
  57. GRE over IPv4 tunneling driver
  58. ip_tables: (C) 2000-2006 Netfilter Core Team
  59. IPP2P v0.8.2 loading
  60. ClusterIP Version 0.8 loaded successfully
  61. TCP bic registered
  62. TCP cubic registered
  63. TCP westwood registered
  64. TCP highspeed registered
  65. TCP hybla registered
  66. TCP htcp registered
  67. TCP vegas registered
  68. TCP scalable registered
  69. NET: Registered protocol family 1
  70. NET: Registered protocol family 17
  71. Welcome to PF_RING 3.2.1
  72. (C) 2004-06 L.Deri <deri@ntop.org>
  73. NET: Registered protocol family 27
  74. PF_RING: bucket length 128 bytes
  75. PF_RING: ring slots 4096
  76. PF_RING: sample rate 1 [1=no sampling]
  77. PF_RING: capture TX No [RX only]
  78. PF_RING: transparent mode Yes
  79. PF_RING initialized correctly.
  80. PF_RING: registered /proc/net/pf_ring/
  81. 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
  82. All bugs added by David S. Miller <davem@redhat.com>
  83. Time: MIPS clocksource has been installed.
  84. VFS: Cannot open root device "mtdblock1" or unknown-block(0,0)
  85. Please append a correct "root=" boot option
  86. Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
  87. <0>Rebooting in 1 seconds.
复制代码
 楼主| 发表于 2010-12-18 10:46 | 显示全部楼层
本帖最后由 jiuweiljp 于 2010-12-18 11:52 编辑

这些信息也让我走了很多弯路觉得可能以后的版本没有支持我的flash
差点准备重新编译dd了但是我想到编译redboot的经历,我就后怕(代码复杂,有很多看不懂。现在很佩服那些老外dd这个东西是怎么编出来的)
也就准备这么样了不就是用老版本的dd吗总比砖块好些吗。
山穷水尽疑无路?
无意中发现了些东西 (atheros 主要芯片演进史)
http://oldwiki.openwrt.org/AtherosPort.html?highlight=%28CategoryOpenWrtPort%29
http://www.linux-mips.org/wiki/Atheros_SOC#Atheros_WiSoC_generations.2Fevolution

我的主板信息应该为
AR5002AP-2X (AR5312 CPU + AR5112 2.4/5GHz RoC + AR2112 2.4GHz RoC)
AR5002AP-2X 这个与dwl-2100的信息不太一样,修改我的bdinfo,然后写进主板,结果就是目前的结果了,可以用高版本的dd。
现在修改的结果

我也简单讲讲这里面的内容(都是试出来的)
开头必须为5311 这是bdinfo的标志代码,不然在redboot中bdmove 和bdrestore两个命令无法识别bdinfo
那个$在dir-300中是}我不知道是什么,Atheros AR5002-2X就是cpu信息了 default 一个字不能少,
在偏移量0x23-0x5f我不知道有什么作用但是不能少,0x60后就是mac 地址了在这个主板上
0x60后前6个字节是wlan0的mac,7-12是lan的mac,13-18是wan的mac,23-28是wlan1的mac

关于保存与刷写bdinfo的方法:
1、保存
   在dd中我暂时没有找到办法保存,可以用jtag,但是我想到了在redboot中一个笨办法用 d -b 0xbe3e0000 -l 0x20000 命令redboot会显示bdinfo的信息,找一个有历史记录的telnet 软件,将显示的16进制代码写进一个文件就可以保存了(我没有用过这个办法)
2、刷写
   2.1 用jtag
   2.2在redboot中可以对任意地址位操作但是redboot在正常编译中是有保留地址的,这个保留地址也没有办法写,但是可以编译一个没有保留地址的redboot,然后在redboot中写bdinfo。
       我的操作方法是编译一个没有保留地址的redboot 的ram版本然后在redboot ram版本中写bdinfo,写完后重启就好了,我嫌jtag太慢了。
       注:这个方法对有一定能力的朋友适用

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
 楼主| 发表于 2010-12-18 11:30 | 显示全部楼层
本帖最后由 jiuweiljp 于 2010-12-18 12:18 编辑

在128k的bdinfo中后64k可能是radio info
这是7800h的原始信息

这是dwl-2100的信息



我不知道里面的含义,有知道请提供。

经过长时间的弄这个东西(中间有段时间放弃了,不就100多元钱吗(还不是我花的))
在没有这个主板的jtag接口信息,没有现成redboot,没有正确的board info的情况下最终弄成我朋友想要的dd,实在是太费事了,有点累了。
我现在真的很想知道taobao上把7800h刷成dd的是怎么弄的,难道是将一个ag108的flash拷贝出来,然后写进7800h中?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
发表于 2010-12-18 11:40 | 显示全部楼层
太强了,要支持!!!!!
发表于 2010-12-18 15:17 | 显示全部楼层
这个东西的中继,我一直都没搞明白怎么用,跟Broadcom的中继感觉有太多不一样。你先试着用一段时间吧。
220的CPU,应该比你手上的850G速度要快!
发表于 2011-1-14 21:05 | 显示全部楼层
强帖留名+收藏!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

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

GMT+8, 2024-7-7 01:19

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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