tom-jerry 发表于 2011-3-30 12:16:47

请教下brjtag 对flash 8bit数据宽度的使用

感谢hugebird提供了brjtag源码以及对论坛新手的帮助。
在brjtag v1.8c遇到了一个麻烦,希望有谁能提供下帮助:我现有的bcm5354芯片无线猫,flash数据宽度被设计成8bits,直接使用该版本有问题。有谁可否提供下 void ejtag_write_h(unsigned int addr, unsigned int data)和static unsigned int ejtag_dma_read_h(unsigned int addr) 的对flash 8bit数据宽度实现修改?非常感谢~~   
我的联系信息:mydevelop@126.com

MINE 发表于 2011-3-30 17:02:55

我记得新版本brjtag有个8位开关的 ,似乎是/wx8

http://www.chinaqos.net/forum-viewthread-tid-21684-extra--page-75.html

tom-jerry 发表于 2011-3-30 19:15:46

感谢mine的指点。问题是hugebird的v1.9版本,我暂时无权下载,谁可以帮忙提供下。目前得到的v1.8c,不支持选项/wx8的。

tom-jerry 发表于 2011-3-31 15:27:51

回复 MINE 的帖子

mine,感谢您的指点。看了帖子说某些情况下有扇区被锁的情况发生。我用/showppb选项查看了,显示信息如下文。补充说明下:bcm5354芯片,S29GL128P flash(数据宽度8bit设定)。
# ./brjtag -probeonly /wiggler /fc:88 /showppb

===============================================
Broadcom EJTAG Debrick Utility v1.8c-hugebird
===============================================

Probing bus ... Done

Instruction Length set to 8

CPU assumed running under LITTLE endian

CPU Chip ID: 00110101001101010100000101111111 (3535417F)
*** Found a Broadcom manufactured BCM5354 KFBG REV 03 CPU ***

    - EJTAG IMPCODE ....... : 00000000100000010000100100000100 (00810904)
    - EJTAG Version ....... : 1 or 2.0
    - EJTAG DMA Support ... : Yes
    - EJTAG Implementation flags: R4k MIPS16 MIPS32

Issuing Processor / Peripheral Reset ... Done
Enabling Memory Writes ... Done
Halting Processor ... <Processor Entered Debug Mode!> ... Done
Clearing Watchdog ... Done
Loading CPU Configuration Code ... Skipped
*** Manually Selected a Spansion S29GL128N/P Uni(16MB) from AMD/Spansion



brjtag.c sp_check_ppb() Flash Sector Protection type 1

----enter here.
###### enter here.

Read Lock Register Status: 0111111111111111 (FFFF)

Read Globle PPB Lock Status: 0111111111111111 (FFFF)
Read Sector: 1 (addr = 1c000000) with PPB:0111111111111111 (FFFF)
Read Sector: 2 (addr = 1c020000) with PPB:0111111111111111 (FFFF)
Read Sector: 3 (addr = 1c040000) with PPB:0111111111111111 (FFFF)
Read Sector: 4 (addr = 1c060000) with PPB:0001001100111101 (267A)
Read Sector: 5 (addr = 1c080000) with PPB:0101101011010111 (B5AF)
Read Sector: 6 (addr = 1c0a0000) with PPB:0011110010010110 (792C)
Read Sector: 7 (addr = 1c0c0000) with PPB:0110101000110000 (D460)
Read Sector: 8 (addr = 1c0e0000) with PPB:0110101110100111 (D74E)
Read Sector: 9 (addr = 1c100000) with PPB:0000000000011111 (003F)
Read Sector: 10 (addr = 1c120000) with PPB:0101010101111011 (AAF6)
Read Sector: 11 (addr = 1c140000) with PPB:0100000101010101 (82AB)
Read Sector: 12 (addr = 1c160000) with PPB:0111000111011001 (E3B3)
Read Sector: 13 (addr = 1c180000) with PPB:0101111001110010 (BCE4)
Read Sector: 14 (addr = 1c1a0000) with PPB:0001001111110101 (27EB)
Read Sector: 15 (addr = 1c1c0000) with PPB:0011010110100110 (6B4D)
Read Sector: 16 (addr = 1c1e0000) with PPB:0001001100010101 (262B)
Read Sector: 17 (addr = 1c200000) with PPB:0000101100111100 (1679)
Read Sector: 18 (addr = 1c220000) with PPB:0111111100001010 (FE14)
Read Sector: 19 (addr = 1c240000) with PPB:0111110001010000 (F8A1)
Read Sector: 20 (addr = 1c260000) with PPB:0010000101111011 (42F6)
Read Sector: 21 (addr = 1c280000) with PPB:0000011010011001 (0D33)
Read Sector: 22 (addr = 1c2a0000) with PPB:0101011100111101 (AE7B)
Read Sector: 23 (addr = 1c2c0000) with PPB:0110101011011001 (D5B3)
Read Sector: 24 (addr = 1c2e0000) with PPB:0010010010010101 (492B)
Read Sector: 25 (addr = 1c300000) with PPB:0010011100011110 (4E3D)
Read Sector: 26 (addr = 1c320000) with PPB:0101100100000100 (B209)
Read Sector: 27 (addr = 1c340000) with PPB:0001110100111010 (3A75)
Read Sector: 28 (addr = 1c360000) with PPB:0100001011000101 (858A)
Read Sector: 29 (addr = 1c380000) with PPB:0110100010011100 (D138)
Read Sector: 30 (addr = 1c3a0000) with PPB:0101011111101110 (AFDC)
Read Sector: 31 (addr = 1c3c0000) with PPB:0010010110110111 (4B6F)
Read Sector: 32 (addr = 1c3e0000) with PPB:0011010001011101 (68BA)
Read Sector: 33 (addr = 1c400000) with PPB:0000011101100001 (0EC2)
Read Sector: 34 (addr = 1c420000) with PPB:0111100011011010 (F1B4)
Read Sector: 35 (addr = 1c440000) with PPB:0111110111010001 (FBA3)
Read Sector: 36 (addr = 1c460000) with PPB:0010000111111111 (43FF)
Read Sector: 37 (addr = 1c480000) with PPB:0111111111111111 (FFFF)
Read Sector: 38 (addr = 1c4a0000) with PPB:0111111111111111 (FFFF)
Read Sector: 39 (addr = 1c4c0000) with PPB:0111111111111111 (FFFF)
Read Sector: 40 (addr = 1c4e0000) with PPB:0111111111111111 (FFFF)
Read Sector: 41 (addr = 1c500000) with PPB:0111111111111111 (FFFF)
Read Sector: 42 (addr = 1c520000) with PPB:0111111111111111 (FFFF)
Read Sector: 43 (addr = 1c540000) with PPB:0111111111111111 (FFFF)
Read Sector: 44 (addr = 1c560000) with PPB:0111111111111111 (FFFF)
Read Sector: 45 (addr = 1c580000) with PPB:0111111111111111 (FFFF)
Read Sector: 46 (addr = 1c5a0000) with PPB:0111111111111111 (FFFF)
Read Sector: 47 (addr = 1c5c0000) with PPB:0111111111111111 (FFFF)
Read Sector: 48 (addr = 1c5e0000) with PPB:0111111111111111 (FFFF)
Read Sector: 49 (addr = 1c600000) with PPB:0111111111111111 (FFFF)
Read Sector: 50 (addr = 1c620000) with PPB:0111111111111111 (FFFF)
Read Sector: 51 (addr = 1c640000) with PPB:0111111111111111 (FFFF)
Read Sector: 52 (addr = 1c660000) with PPB:0111111111111111 (FFFF)
Read Sector: 53 (addr = 1c680000) with PPB:0111111111111111 (FFFF)
Read Sector: 54 (addr = 1c6a0000) with PPB:0111111111111111 (FFFF)
Read Sector: 55 (addr = 1c6c0000) with PPB:0111111111111111 (FFFF)
Read Sector: 56 (addr = 1c6e0000) with PPB:0111111111111111 (FFFF)
Read Sector: 57 (addr = 1c700000) with PPB:0111111111111111 (FFFF)
Read Sector: 58 (addr = 1c720000) with PPB:0111111111111111 (FFFF)
Read Sector: 59 (addr = 1c740000) with PPB:0111111111111111 (FFFF)
Read Sector: 60 (addr = 1c760000) with PPB:0111111111111111 (FFFF)
Read Sector: 61 (addr = 1c780000) with PPB:0111111111111111 (FFFF)
Read Sector: 62 (addr = 1c7a0000) with PPB:0111111111111111 (FFFF)
Read Sector: 63 (addr = 1c7c0000) with PPB:0111111111111111 (FFFF)
Read Sector: 64 (addr = 1c7e0000) with PPB:0111111111111111 (FFFF)
Read Sector: 65 (addr = 1c800000) with PPB:0111111111111111 (FFFF)
Read Sector: 66 (addr = 1c820000) with PPB:0111111111111111 (FFFF)
Read Sector: 67 (addr = 1c840000) with PPB:0111111111111111 (FFFF)
Read Sector: 68 (addr = 1c860000) with PPB:0111111111111111 (FFFF)
Read Sector: 69 (addr = 1c880000) with PPB:0111111111111111 (FFFF)
Read Sector: 70 (addr = 1c8a0000) with PPB:0111111111111111 (FFFF)
Read Sector: 71 (addr = 1c8c0000) with PPB:0111111111111111 (FFFF)
Read Sector: 72 (addr = 1c8e0000) with PPB:0111111111111111 (FFFF)
Read Sector: 73 (addr = 1c900000) with PPB:0111111111111111 (FFFF)
Read Sector: 74 (addr = 1c920000) with PPB:0111111111111111 (FFFF)
Read Sector: 75 (addr = 1c940000) with PPB:0111111111111111 (FFFF)
Read Sector: 76 (addr = 1c960000) with PPB:0111111111111111 (FFFF)
Read Sector: 77 (addr = 1c980000) with PPB:0111111111111111 (FFFF)
Read Sector: 78 (addr = 1c9a0000) with PPB:0111111111111111 (FFFF)
Read Sector: 79 (addr = 1c9c0000) with PPB:0111111111111111 (FFFF)
Read Sector: 80 (addr = 1c9e0000) with PPB:0111111111111111 (FFFF)
Read Sector: 81 (addr = 1ca00000) with PPB:0111111111111111 (FFFF)
Read Sector: 82 (addr = 1ca20000) with PPB:0111111111111111 (FFFF)
Read Sector: 83 (addr = 1ca40000) with PPB:0111111111111111 (FFFF)
Read Sector: 84 (addr = 1ca60000) with PPB:0111111111111111 (FFFF)
Read Sector: 85 (addr = 1ca80000) with PPB:0111111111111111 (FFFF)
Read Sector: 86 (addr = 1caa0000) with PPB:0111111111111111 (FFFF)
Read Sector: 87 (addr = 1cac0000) with PPB:0111111111111111 (FFFF)
Read Sector: 88 (addr = 1cae0000) with PPB:0111111111111111 (FFFF)
Read Sector: 89 (addr = 1cb00000) with PPB:0111111111111111 (FFFF)
Read Sector: 90 (addr = 1cb20000) with PPB:0111111111111111 (FFFF)
Read Sector: 91 (addr = 1cb40000) with PPB:0111111111111111 (FFFF)
Read Sector: 92 (addr = 1cb60000) with PPB:0111111111111111 (FFFF)
Read Sector: 93 (addr = 1cb80000) with PPB:0111111111111111 (FFFF)
Read Sector: 94 (addr = 1cba0000) with PPB:0111111111111111 (FFFF)
Read Sector: 95 (addr = 1cbc0000) with PPB:0000110011000010 (1985)
Read Sector: 96 (addr = 1cbe0000) with PPB:0000110011000010 (1985)
Read Sector: 97 (addr = 1cc00000) with PPB:0000110011000010 (1985)
Read Sector: 98 (addr = 1cc20000) with PPB:0000110011000010 (1985)
Read Sector: 99 (addr = 1cc40000) with PPB:0000110011000010 (1985)
Read Sector: 100 (addr = 1cc60000) with PPB:0000110011000010 (1985)
Read Sector: 101 (addr = 1cc80000) with PPB:0000110011000010 (1985)
Read Sector: 102 (addr = 1cca0000) with PPB:0000110011000010 (1985)
Read Sector: 103 (addr = 1ccc0000) with PPB:0000110011000010 (1985)
Read Sector: 104 (addr = 1cce0000) with PPB:0000110011000010 (1985)
Read Sector: 105 (addr = 1cd00000) with PPB:0000110011000010 (1985)
Read Sector: 106 (addr = 1cd20000) with PPB:0000110011000010 (1985)
Read Sector: 107 (addr = 1cd40000) with PPB:0000110011000010 (1985)
Read Sector: 108 (addr = 1cd60000) with PPB:0000110011000010 (1985)
Read Sector: 109 (addr = 1cd80000) with PPB:0000110011000010 (1985)
Read Sector: 110 (addr = 1cda0000) with PPB:0000110011000010 (1985)
Read Sector: 111 (addr = 1cdc0000) with PPB:0000110011000010 (1985)
Read Sector: 112 (addr = 1cde0000) with PPB:0000110011000010 (1985)
Read Sector: 113 (addr = 1ce00000) with PPB:0000110011000010 (1985)
Read Sector: 114 (addr = 1ce20000) with PPB:0000110011000010 (1985)
Read Sector: 115 (addr = 1ce40000) with PPB:0000110011000010 (1985)
Read Sector: 116 (addr = 1ce60000) with PPB:0000110011000010 (1985)
Read Sector: 117 (addr = 1ce80000) with PPB:0000110011000010 (1985)
Read Sector: 118 (addr = 1cea0000) with PPB:0000110011000010 (1985)
Read Sector: 119 (addr = 1cec0000) with PPB:0000110011000010 (1985)
Read Sector: 120 (addr = 1cee0000) with PPB:0000110011000010 (1985)
Read Sector: 121 (addr = 1cf00000) with PPB:0000110011000010 (1985)
Read Sector: 122 (addr = 1cf20000) with PPB:0000110011000010 (1985)
Read Sector: 123 (addr = 1cf40000) with PPB:0000110011000010 (1985)
Read Sector: 124 (addr = 1cf60000) with PPB:0000110011000010 (1985)
Read Sector: 125 (addr = 1cf80000) with PPB:0000110011000010 (1985)
Read Sector: 126 (addr = 1cfa0000) with PPB:0000110011000010 (1985)
Read Sector: 127 (addr = 1cfc0000) with PPB:0000000000000000 (0000)
Read Sector: 128 (addr = 1cfe0000) with PPB:0011100000011110 (703C)
----exit here.


*** REQUESTED OPERATION IS COMPLETE ***

#

帮忙看下实际如何分析?
页: [1]
查看完整版本: 请教下brjtag 对flash 8bit数据宽度的使用