找回密码
 立即注册

QQ登录

只需一步,快速开始

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

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

[复制链接]
 楼主| 发表于 2010-5-23 10:50 | 显示全部楼层
本帖最后由 jiuweiljp 于 2010-5-23 10:51 编辑

[quote]
2、ATHEROS 的内部存储是32字节翻转的。
FLASH        复制后的存储结构 2042 5355 5245 5441 334C 574D 0030 3530 (BSURETA3LWM.050)
FIRMWARE 文件的存储结构   5553 4220 4154 4552 4D57 4C33 3035 3000 (USB ATERMWL3050)
如果想改称REDBOOT的BOOT必须将BIN文件翻转过来,方法有两种
[quote]

补充一下以上结论不准确

  这个于mips的cpu 的工作模式有关系,与就是大端(Big Endian)与小端(Little Endian)之分
据我所知
atheros 的 cpu 是 Big Endian
Broadcom 的 cpu 是 Little Endian

大端(Big Endian)与小端(Little Endian) 相关介绍
http://hi.baidu.com/%CE%DE%D6%C7 ... c3fb37b1351db8.html
http://hi.baidu.com/xshaonan/blo ... 880358f819b8c4.html
http://hi.baidu.com/bangbangcai0 ... c42f38b1351de6.html
 楼主| 发表于 2010-5-25 01:02 | 显示全部楼层
花了星期天的时间搞代码移植结果如下
以太网卡还是好像没有驱动成功(不知道为什么)希望有人来指点我
+Reset button pressed - switching to rescue mode.
MANID:C2 DEVID1:22A7 DEVID2:0 DEVID3:19
**Warning** FLASH configuration checksum error or invalid key
Use 'fconfig -i' to [re]initialize database
enet_mac_address_get:Mac addr failed sanity check.
Couldn't find valid MAC address for enet1. Using default!
Ethernet eth1: MAC address 00:03:7f:e0:02:bf
IP: 192.168.1.1, Default server: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 23:28:24, May 24 2010

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2009 NewMedia-NET GmbH

Board: ap30
RAM: 0x80000400-0x81ff0400, [0x80000400-0x81fdd400] available
FLASH: 0xbfc00000 - 0xbffe0000, 64 blocks of 0x00010000 bytes each.
Starting RESCUE script...
== Executing boot script in 10.000 seconds - enter ^C to abort
RedBoot> tftpd
Warning: memory buffer for uploaded file may be on reserved RAM area.
TFTPD is running (using memory ranges: 0x80002000 - 0x80800400, 0x80800400 - 0x80fe0400).
 楼主| 发表于 2010-5-28 00:13 | 显示全部楼层
本帖最后由 jiuweiljp 于 2010-5-28 00:14 编辑

重大消息:这个主板被我弄好了,网卡没有驱动的原因是
网卡供电模块烧了,简单修复了一下
插在wan口上就能ping通192.168.1.1了哈哈终于有了结果

现在的请熟悉刷redboot的朋友告诉我下一步怎样做???
发表于 2010-5-28 00:35 | 显示全部楼层
拜倒

真能玩,WGR614v8是4个字节翻转下顺序,Atheros很多也是
发表于 2010-5-28 01:05 | 显示全部楼层
看完了。。。redboot没概念,fon重来没去升级他
 楼主| 发表于 2010-5-29 13:32 | 显示全部楼层
终于找到办法了
redboot 启动了终端服务端口号是 9000
启动后可用
  1. telnet 192.168.1.1 9000
复制代码
进入终端模式
tftp 灌入 dd-wrt  过程略
执行结果如下
+MANID:C2 DEVID1:22A7 DEVID2:0 DEVID3:19
Ethernet eth1: MAC address cb:99:8f:91:ca:23
IP: 192.168.1.1, Default server: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 12:58:24, May 28 2010

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2009 NewMedia-NET GmbH

Board: ap30
RAM: 0x80000400-0x81ff0400, [0x80000400-0x81fdd400] available
FLASH: 0xbfc00000 - 0xbffe0000, 64 blocks of 0x00010000 bytes each.
== Executing boot script in 3.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.15 (root@dd-wrt) (gcc version 4.1.2) #186 Mon Aug 6 06:05:46 CEST 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 noinitrd
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: 29664k/32768k available (1962k kernel code, 3104k reserved, 289k data, 128k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
WARNING: No board configuration data found!
CPU 0 Unable to handle kernel paging request at virtual address 0000004c, epc == 80279724, ra == 802796cc
Oops[#1]:
Cpu 0
$ 0   : 00000000 1000c000 0000000a 00000002
$ 4   : 80260920 0000057b 00000000 802a8dd4
$ 8   : 80297a30 80260000 80290000 802a0000
$12   : 80290000 00000e00 80297994 00000000
$16   : 80290000 80292150 00000000 00000000
$20   : 00000000 00000000 00000000 00000000
$24   : 00000000 00000000                  
$28   : 81064000 81065f58 00000000 802796cc
Hi    : 0000006d
Lo    : d869e800
epc   : 80279724     Not tainted
ra    : 802796cc Status: 1000c003    KERNEL EXL IE
Cause : 00801008
BadVA : 0000004c
PrId  : 00018009
Modules linked in:
Process swapper (pid: 1, threadinfo=81064000, task=81063838)
Stack : 00000000 00000000 80288924 8028872c 80290000 80292150 00000000 00000000
        800414c4 800414c4 00000000 00000000 00000000 00000000 00000000 00000000
        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        00000000 00000000 00000000 80045108 1000c003 00000000 00000000 00000000
        00000000 800450f8 ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
        ...
Call Trace:[<80288924>][<8028872c>][<800414c4>][<800414c4>][<80045108>][<800450f8>]

Code: 3c028029  0809e5d1  ac435680 <8e42004c> 30422000  10400004  3c038029  24020001  0809e5d1
Kernel panic - not syncing: Attempted to kill init!
<0>Rebooting in 1 seconds.


还是出错了,不知道有没有人知道这是什么原因
发表于 2010-5-31 22:48 | 显示全部楼层
还是我帮你解决吧,你需要准备主板的配置信息。。。。无法实现主板的信息,是不能更新的
发表于 2010-5-31 22:49 | 显示全部楼层
或者你直接在内核编译的时候,指定的芯片类型。。。。
发表于 2010-5-31 22:56 | 显示全部楼层
本帖最后由 lintel 于 2010-5-31 23:00 编辑

21# jiuweiljp

问题的出现很简单,就是你擦除了整个flash,把Borad Info一起擦除了。

在FLASH起始地址之后的的0X3E0000处,你可以找到你芯片配置信息以及MAC地址。下面是我的AR2313的芯片信息。型号是DWL-2100AP。

本帖子中包含更多资源

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

×
发表于 2010-5-31 23:04 | 显示全部楼层
高手。高技术,看到头也痛。好贴,要顶下。
 楼主| 发表于 2010-6-2 21:08 | 显示全部楼层
"intel"
能不能将你的固件发给我一份,还有Borad Info 从偏移量 0X3E0000处开始
到0x??????处结束呢?盼佳音!
528375@qq.com
我备份了一个flash(这个是还没有动手前备份的)
这个flash启动不是用的redboot已发到
intel77@qq.com ,烦请帮我看看
发表于 2010-6-15 22:26 | 显示全部楼层
"intel"
能不能将你的固件发给我一份
57068368@qq.com
发表于 2010-9-6 14:29 | 显示全部楼层
帮顶起。目前也有两个NEC wr6650s 在手里,没法改成DD-WRT 或UBNT。期待有高手解决。
发表于 2010-9-8 17:02 | 显示全部楼层
楼主,我得dir-300就是 Atheros 的,TFTP刷成DD了,你看看这个贴子,有没有帮助http://tw.network01.net/modules/ ... c_id=73&forum=2
 楼主| 发表于 2010-12-10 10:04 | 显示全部楼层
本帖最后由 jiuweiljp 于 2010-12-17 01:53 编辑

终于弄好了,过程比较复杂,还有一些偶然性,有一些问题没有解决,也得到lintel的协助,有时间我详细发帖----------------------------------------------------
非正常启动信息
----------------------------------------------------
+MANID:C2 DEVID1:22A7 DEVID2:0 DEVID3:19
Ethernet eth1: MAC address 00:80:c8:53:11:02
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 10.000 seconds - enter ^C to abort
RedBoot> fis load -l linux
too long file.
lzma_decode failed. res=1
RedBoot> exec
Now booting linux kernel:
Base address 0x80030000 Entry 0x80100000
Cmdline :
Linux version 2.6.20.15 (root@dd-wrt) (gcc version 4.1.2) #186 Mon Aug 6 06:05:46 CEST 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 noinitrd
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: 29664k/32768k available (1962k kernel code, 3104k reserved, 289k data, 128k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Radio config found at offset 0x1000(0x100)
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
MPPE/MPPC encryption/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 physmap-flash.0: map_probe failed
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: Cannot open root device "mtdblock1" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
<0>Rebooting in 1 seconds..
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

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

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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