softtip 发表于 2016-3-12 15:24:33

请教华为HG8245光猫JTAG的问题

本帖最后由 softtip 于 2016-3-12 15:27 编辑

我有台HG8245千兆板,改硬件配置文件不小心挂了,TTL线连上发现系统不能完成完整启动,基本算是陷入死循环,PING不通,ONT使能工具也没用,根据UBOOT启动信息基本判断是配置文件改错,系统未配置好内部网卡,完全不能跟外部通信
现在的问题是UBOOT太新了,没有中断UBOOT启动的提示,不像其他人可以按D键中断
只好研究使用JTAG来救砖
8245的JTAG是10针的,根据查询的标准资料

TCK12GND
TDO34VREF/VCC
TMS56nSRST
-78nTRST
TDI910GND
万用表测试TCK TDO 对地电压0 TMS TDI VCC对地电压3.26V
TCK对地电阻1000欧
TDO TMS TDI TRST对地电阻无限大
跟并口WIGGLER线和J-LINK线连接都无法使用ZJTAG BRJTAG等读取出CPU ID(不管支不支持至少连接正确应该是可以读取出CPUID的)
同样的链接 RG100A-AA在WIGGER和J-LINK上都没问题RG100A-AA的TCK TDO TMS TDI对地电压都是3.2V左右

请问问题出在哪里呢?
JTAG口测得的电压不正常,是JTAG没有做上拉电阻吗?因为没有华为的资料,没电路图,不知道到底是不是这个问题?

还是说芯片击穿了?(UBOOT启动一切正常)

是不是真的 发表于 2016-3-12 15:41:55

坐等高人来指导..

阿祖_nGue7 发表于 2016-3-12 16:38:04

帮楼主顶顶,楼主在我眼里已经是高手,说的我云里雾里的

tm5880891 发表于 2016-3-12 21:41:47

改错硬件不是可以TTL修复吗,多找下方法

softtip 发表于 2016-3-12 22:15:30

tm5880891 发表于 2016-3-12 21:41
改错硬件不是可以TTL修复吗,多找下方法

不能!新版uboot关闭了输入控制,TTL只能看,不能操作,旧版的UBOOT才可以打断

qwxren 发表于 2016-3-12 22:22:32

能看一下你的ttl焊接处的图片么?

tm5880891 发表于 2016-3-12 22:57:51

softtip 发表于 2016-3-12 22:15
不能!新版uboot关闭了输入控制,TTL只能看,不能操作,旧版的UBOOT才可以打断

你不打断他,让他跑完,然后试着清除以前配置错的

softtip 发表于 2016-3-12 23:18:43

tm5880891 发表于 2016-3-12 22:57
你不打断他,让他跑完,然后试着清除以前配置错的

/*..............
System start ...
.............*/

U-Boot 1.1.4 (Jul 31 2013 - 16:25:21)

U-Boot code: 90500000 -> 9051FC94BSS: -> 9054658C
RAM Configuration:
Bank #0: 90000000 64 MB
Flash: 16 MB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial

Extend LSW IS AR8316
Initialize broadcast table ... ok
CPURTx Driver For Pilot <Board-A>!
### JFFS2 loading 'fsok' to 0x904bfe84
Scanning JFFS2 FS: . done.
### JFFS2 load complete: 2 bytes loaded to 0x904bfe84
No board type file!
ui_board_id = 1
::Magic1:0x5a5a5a5a, magic2 0xa5a5a5a5, count 2, flag 0, MainAreaOK 0, slaveAreaOK 0
Start from normal system!
Magic1:0x5a5a5a5a, magic2 0xa5a5a5a5, count 3, flag 0
Addr:0x0,Addr:0x40000,Addr:0x41000,Addr:0x60000,Addr:0x1e0000,Addr:0xae0000,Addr:0xe60000
Start copy data from 0x201e0054 to 0x91000000 with sizeof 0x00865040 ....................Done!
Start system with ram disk and set bootcmd to
BootArgs:noalign mem=50M console=ttyAMA0,115200 root=/dev/ram0 rootfstype=squashfs mtdparts=hisilicon:0x40000(boot)ro,0x1000(flashcfg)ro,0x1f000(syspara)ro,0x180000(krnl)ro,0x8fffac@0x1e0054(rootfs)ro,0x248fe0@0xc17020(minisystem)ro,0x180000(jffs2cfg),-(reserved) user_debug=0x1f panic=1

U-boot Start from NORMAL Mode !
## Booting image at 20060054 ...
   Image Name:   Linux-2.6.21.7-hrt1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1456776 Bytes =1.4 MB
   Load Address: 90008000
   Entry Point:90008000
   Loading Kernel Image ... OK
## Loading Ramdisk Image at 91000000 ...
   Image Name:   squashfs
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    8802304 Bytes =8.4 MB
   Load Address: 00000000
   Entry Point:00000000

Starting kernel ...

Uncompressing Linux............................................................................................ done, booting the kernel.
Kernel Early-Debug on Level 0
iotable information:
virtual: 4093640704physical: 262144length: 4096    type: 0
virtual: 4145283072physical: 90432length: 4096    type: 0
virtual: 4145295360physical: 90435length: 4096    type: 0
virtual: 4145340416physical: 90446length: 4096    type: 0
virtual: 4145344512physical: 90447length: 4096    type: 0
virtual: 4093706240physical: 262160length: 4096    type: 0
virtual: 4093771776physical: 262176length: 4096    type: 0
virtual: 4145307648physical: 90438length: 32768    type: 0
virtual: 4145287168physical: 90433length: 4096    type: 0
virtual: 4145348608physical: 90448length: 4096    type: 0
virtual: 4076863488physical: 196608length: 4096    type: 0
virtual: 4145291264physical: 90434length: 4096    type: 0
virtual: 4145299456physical: 90436length: 4096    type: 0
virtual: 4145303552physical: 90437length: 4096    type: 0
hisilicon_map_io      281   
hisilicon_init_irq      108   
hisilicon_timer_init    228   
hi_kernel_wdt_init      216   
hisilicon_init_machine175   
hi_kernel_pci_preinit   390   
pci clock is on!
hi_kernel_pci_postinit488   
hi_kernel_pci_postinit on!
hi_kernel_pci_map_irq   367   
Linux version 2.6.21.7-hrt1 (root@vsut193167) (gcc version 4.1.2 (Wind River Linux Sourcery G++ 4.1-84)) #2 Wed Jul 31 16:31:00 CST 2013
CPU: ARMv6-compatible processor revision 7 (ARMv6TEJ), cr=00c5387f
Machine: SD5113-V100-PILOT-B01
Memory policy: ECC disabled, Data cache writeback
Get mem size 0x3200000;
CPU0: D VIPT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists.Total pages: 12700
Kernel command line: noalign mem=50M console=ttyAMA0,115200 root=/dev/ram0 rootfstype=squashfs mtdparts=hisilicon:0x40000(boot)ro,0x1000(flashcfg)ro,0x1f000(syspara)ro,0x180000(krnl)ro,0x8fffac@0x1e0054(rootfs)ro,0x248fe0@0xc17020(minisystem)ro,0x180000(jffs2cfg),-(reserved) user_debug=0x1f panic=1
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 50MB = 50MB total
Memory: 39080KB available (2636K code, 200K data, 108K init)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Hisilicon clock system V0.01
   AHBCLK
   ARMCORECLK
   UARTCLK
PCI: device 0000:00:03.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:04.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:05.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:06.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:07.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:08.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:09.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:0a.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:0b.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:0c.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:0d.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:0e.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:0f.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:10.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:11.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:12.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:13.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:14.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:15.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:16.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:17.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:18.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:19.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:1a.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:1b.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:1c.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:1d.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:1e.0 has unknown header type 1c, ignoring.
PCI: device 0000:00:1f.0 has unknown header type 1c, ignoring.
PCI: bus0: Fast back to back transfers enabled
istatus and imask 16777216
istatus and imask 0
map irq: slot 0, pin 1, devslot 2, irq: 21
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 8596K
Registering GDB sysrq handler
squashfs: version 3.4 (2008/08/26) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
JFFS2 version 2.2. (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: dwuart driver
dev:f2: ttyAMA0 at MMIO map 0x1614f000 mem 0xf714f000 (irq = 17) is a AMBA/DW
dev:f1: ttyAMA1 at MMIO map 0x1614e000 mem 0xf714e000 (irq = 16) is a AMBA/DW
RAMDISK driver initialized: 4 RAM disks of 23000K size 1024 blocksize
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
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
CSLIP: code copyright 1989 Regents of the University of California.
SLIP linefill/keepalive option.
Start to set chip MaxBufWriteSize.
!Not find NUMONYX JS28F128M29EWHA chip.
hisilicon: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
hisilicon: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Hisilicon flash: registering whole flash at once as master MTD
8 cmdlinepart partitions found on MTD device hisilicon
Creating 8 MTD partitions on "hisilicon":
0x00000000-0x00040000 : "boot"
0x00040000-0x00041000 : "flashcfg"
0x00041000-0x00060000 : "syspara"
0x00060000-0x001e0000 : "krnl"
0x001e0054-0x00ae0000 : "rootfs"
0x00c17020-0x00e60000 : "minisystem"
0x00e60000-0x00fe0000 : "jffs2cfg"
0x00fe0000-0x01000000 : "reserved"
usb clock is on!
h2v100-ehci h2v100-ehci.0: h2v100-ehci
h2v100-ehci h2v100-ehci.0: new USB bus registered, assigned bus number 1
h2v100-ehci h2v100-ehci.0: irq 23, io mem 0x40010000
h2v100-ehci h2v100-ehci.0: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
h2v100-ohci h2v100-ohci.0: h2v100-ohci
h2v100-ohci h2v100-ohci.0: new USB bus registered, assigned bus number 2
h2v100-ohci h2v100-ohci.0: irq 24, io mem 0x40020000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
Netfilter messages via NETLINK v0.30.
ip_tables: (C) 2000-2006 Netfilter Core Team
arp_tables: (C) 2002 David S. Miller
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
RAMDISK: squashfs filesystem found at block 0, block number 8596
RAMDISK: Loading 8596KiB into ram disk... done.
VFS: Mounted root (squashfs filesystem) readonly.
Freeing init memory: 108K

                        -=#DOPRA LINUX 1.0#=-
                        -=#EchoLife WAP 0.1#=-
                        -=#Huawei Technologies Co., Ltd #=-

mount file system
Loading the kernel modules:
/etc/rc.d/rc.sysinit: line 37: sed: not found
Making device instances:
Setting console log message level:
Setting hostname:
Settingup the sysctl configurations:
Setting up interface lo:
Running local startup scripts.

*******************************************
--==      Welcome To EchoLife WAP      ==--
--==   Huawei Technologies Co., Ltd.   ==--
*******************************************
WAP Ver:V100R005C00B010
WAP Timestamp:2013/07/31 16:42:59
*******************************************

Mount the JFFS2 file system:
Start init EchoLife WAP process debug module ......
Start lunch kmsgread ...
Pid of kmsgrread is: 147
Set kmsgread process pid to:147;
Rootfs time stamp:2013-07-31_16:46:59
fuse init (API version 7.8)
SCSI subsystem initialized
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
User init start......
Loading the SD5113V100 modules:
ETH install success!

g_dp_GLB_reg_s->VERSION = 0x0, ui_version = 0x0, ui_spec_index = 1

SD511XDPV2.0 is installed !

SD511x MDIO ID V1.0 is installed

SD511x GPIO VERSION 1.0 is installed

SD511x GPIO_INT ID 1.0 is installed

SD511x I2C ID V1.0 is installed

SD511x TIMER ID V1.0 is installed

SD511X SPI ID v1.0 is installed

SD511XSYSCTLV1.0 is installed

SD511x UART ID V1.0 is installed
<6>
SD511X HWID v1.0 is installed

SD511x EXT_INT ID 1.0 is installed
ifconfig eth0 hw ether BC:62:0E:C9:0A:66
Loading the EchoLife WAP modules: LDSP
SSP For LDSP Install Successfully...
HLP For LDSP Install Successfully...
CHIPADP-PHY For LDSP Install Successfully...
Get version through hardware!
CHIPADP-SD5113 For LDSP Install Successfully...
GPIO For LDSP Install Successfully...
HIGHWAY For LDSP Install Successfully...
I2C For LDSP Install Successfully...
MDIO For LDSP Install Successfully...
LSW For LDSP Install Successfully...

aui_receive = 0 aui_receive = 0 aui_receive = 0 aui_receive = 0
DEV For LDSP Install Successfully...
CHIPADP-AR8316 LSW For LDSP Install Successfully...
TOPO hw_topo_init Successfully...
hw_topo_pdt_sep_eth_port_init...
End hw_topo_wap_init...
TOPO PDT For SSMP Install Successfully...
Read Topo Info Product Des:EchoLife HG8245
Read MemInfo Des: 47844
SPI For LDSP Install Successfully...
UART For LDSP Install Successfully...
BATTERY For LDSP Install Successfully...
PLOAM For LDSP Install Successfully...
GMAC For LDSP Install Successfully...
KEY For LDSP Install Successfully...
LED For LDSP Install Successfully...
OPTIC For LDSP Install Successfully...
RF For LDSP Install Successfully...
le88226 For LDSP install successfully...
USB For LDSP Install Successfully...
Loading BBSP L2 modules:
Common HLP For BBSP Install Successfully...

ont is not in Equip Mode:g_fw_equip=0
FLOW For BBSP Install Successfully...
VETH For LDSP Install Successfully...
hw_pkt_tunnel Install Successfully...
EMAC For LDSP Install Successfully...
MPCP For LDSP Install Successfully...
Loading DSP temporary modules:
linux kernel dopra is installed!

dsp sdkinsmod success!
DSP For LDSP Install Successfully...
Loading BBSP L2_extended modules:
WIFI For BBSP Install Successfully...
ipv6 Install Successfully...
hw_dhcp Install Successfully...
hw_ethoam_kernel Install Successfully...
hw_pppoe Install Successfully...
hw_igmp_kernel Install Successfully...
mfw pkt per second: 80...
mfw Install Successfully...
hw_bind_init...
KARP Install Successfully...
Loading BBSP L3_basic modules:
nf_conntrack version 0.5.0 (400 buckets, 3200 max)
netdown replace to nf_ct_iterate_cleanup2

install success
Pktdump init Install Successfully...
ACl For BBSP Install Successfully...
Dosflt For BBSP Install Successfully...
Loading BBSP L3_extended modules:
napt register conntrack_handler
NAPT For BBSP Install Successfully...

_init_session SUCCESS
table_sizhw_ker_ffwd_ipv4install
e =3040 hash_size = 760
ffwd register conntrack_handler
hw_ker_ffwd_coreinstall
Portal For BBSP Install Successfully...
User device for bbsp Install Successfully...
NO ipv6!
NO hw_rout!
Configure Word   : GZCT
GZCT:not BT mode
device eth0 entered promiscuous mode
br0: port 1(eth0) entering learning state
CODEC For LDSP Install Successfully...
Start ldsp_user...0
<LDSP>HW_LdspCfg_XponProc start from auto, uiUpMode=4.
<LDSP cfg>Set uiUpMode=1.
<LDSP>Hardware board id is 1 !
<LDSP>Hardware pcb id is 2 !
SD5113 test self OK
Lsw test self OK
Optic test self OK
PHY test self OK
PHY test self OK
PHY test self OK
PHY test self OK
PHY test self NoCheck
PHY test self NoCheck

FILE = /home/zhengjisheng/r1c01/sdk_optimize/sd511x_sdk/driver/src/./interface/i2c/hi_drv_i2c.c,
LINE = 151, FUNC = hi_kernel_i2c_burst_read_bytes
read data is over time
Optic calMode 0
GPON opened success !
usb1 gpio clock open
ssmp bbsp igmp amp vspa omci
root.reserved: fe0000 20000
Start start pid=369; uiProcNum=6;
Start VSPA ...InitFrame amp; PID=373; state=0; 12.136;
InitFrame amp; PID=373; in state=0; 12.137;
InitFrame amp; PID=373; out state=0; 12.683;
InitFrame omci; PID=374; state=0; 12.749;
InitFrame igmp; PID=375; state=0; 12.786;
InitFrame igmp; PID=375; in state=0; 12.787;
PID USER       VSZ STAT COMMAND
InitFrame ssmp; PID=370; state=0; 12.976;
InitFrame ssmp; PID=370; in state=0; 12.977;
InitFrame omci; PID=374; in state=0; 13.101;
InitFrame omci; PID=374; out state=0; 13.102;
InitFrame igmp; PID=375; out state=0; 13.112;
    1 root      2132 S    init
    2 root         0 SWN
    3 root         0 SW   
    4 root         0 SW<
    5 root         0 SW<
    6 root         0 SW<
   29 root         0 SW<
   32 root         0 SW<
   46 root         0 SW   
   47 root         0 SW   
   48 root         0 SW<
   49 root         0 SW<
   64 root         0 SW   
111 root      2136 S    /bin/sh /etc/rc.d/rc.sysinit
141 root         0 SWN
144 root         0 DW<
145 root         0 DW<
147 root      1960 S    kmsgread
151 root      2136 S    /bin/sh /etc/rc.d/rc.start/1.sdk_init.sh start
286 root         0 SW   
291 root         0 SW<
338 root         0 SW   
367 root   10752 S    hw_ldsp_user
369 root      2012 S    start ssmp bbsp igmp amp vspa omci
370 root      4036 S    ssmp
372 root      4516 R    bbsp
373 root      3764 R    amp
374 root      5468 R    omci
VSPA pri from 0 to 10
InitFrame vspa_h248; PID=376; state=0; 13.254;
InitFrame vspa_h248; PID=376; in state=0; 13.255;
InitFrame vspa_h248; PID=376; out state=0; 13.256;
375 root      4028 S    igmp
376 root      6464 R Nvspa_h248
379 root   10744 S    smp_usb
380 root      2136 S    /bin/sh /etc/rc.d/rc.start/1.sdk_init.sh start
384 root      2000 S    sleep 1
385 root      2136 S    /bin/sh /etc/rc.d/rc.start/1.sdk_init.sh start
386 root      2000 S    sleep 30
387 root      2136 S    /bin/sh /etc/rc.d/rc.start/1.sdk_init.sh start
388 root      2000 S    sleep 40
389 root      2136 S    /bin/sh /etc/rc.d/rc.start/1.sdk_init.sh start
390 root      2000 S    sleep 30
391 root      2136 S    /bin/sh /etc/rc.d/rc.start/1.sdk_init.sh start
392 root      2000 S    sleep 1
393 root      2308 R    ps
394 root      2132 S    sh -c rm -f /mnt/jffs2/Updateflag
395 root       832 R    rm -f /mnt/jffs2/Updateflag
telnet: can't connect to remote host (127.0.0.1): Connection refused
InitFrame bbsp; PID=372; state=0; 13.773;
InitFrame bbsp; PID=372; in state=0; 13.775;
InitFrame bbsp; PID=372; out state=0; 13.777;
telnet: can't connect to remote host (127.0.0.1): Connection refused
iFileDescryption::0x1
file is encrypt !
Start HW_DM_PDT_Init....
HW_DM_GetBoardInfo failed.uiRet = 0xf710e059
Init dm data err, uiRet = 0xf710e059
Init DM Error! Return=0xf710e059;
Deinit SMP Successfully!
SSMP init ManageModule .....................

ssmp InitFrame Err,err state = 0

Get signal:0 backtrace ...
/lib/libhw_ssp_basic.so(HW_OS_SignalTrapUser1+0x2c)

SSMP HW_Init_Frame error. uiReturn=-149888935;
telnet: can't connect to remote host (127.0.0.1): Connection refused
Start ProcMonitor with h248 ...
telnet: can't connect to remote host (127.0.0.1): Connection refused
telnet: can't connect to remote host (127.0.0.1): Connection refused

softtip 发表于 2016-3-12 23:19:00

进不了WAP>的TTL无解,所以才折腾JTAG

l15572758 发表于 2016-3-13 00:00:45

我有一个8311 改板号改错了 也是这样ttl跑完了就是重启在跑在重启在跑死循环无解了
页: [1] 2 3 4
查看完整版本: 请教华为HG8245光猫JTAG的问题