Anyone good at using OpenOCD?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spork Schivago
    Badcaps Legend
    • Mar 2012
    • 4734
    • United States of America

    #1

    Anyone good at using OpenOCD?

    Hello,

    I have an ARM-USB-OCD-H JTAG device and I'm trying to use OpenOCD to read the flash from this old Linksys WPS54G V1 Wireless Print Server. The processor is a Marvel 88W8510. I tried getting a datasheet for it but could only get a two page summary. When I went to contact Marvel for a full datasheet, there was some text that said they couldn't give out any documentation until I had this thing called a non-disclosure agreement and to contact my local authorized seller to get one. I've contacted the one closest to me asking for one. Not really sure what they're for or why I need it to read a datasheet.

    Anyway, the flash chip is a NOR Macronix MX29LV800TTC-70 1MB flash chip. I believe I've successfully created a board.cfg file and a target.cfg file but I'm not sure how to setup the flash stuff. I've read that I need the base address but cannot find this information in the datasheet for the flash. Here are my board.cfg and target.cfg files.

    # linksys-wps54gv1.cfg file
    Code:
    #
    # Linksys WPS54G v1
    #
    # Boards may override chip names, perhaps based on role,
    # but the default should match what the vendor uses
    if { [info exists CHIPNAME] } {
      set _CHIPNAME $CHIPNAME
    } else {
      set _CHIPNAME 88w8510
    }
    
    # ONLY use ENDIAN with targets that can change it.
    if { [info exists ENDIAN] } {
      set _ENDIAN $ENDIAN
    } else {
      set _ENDIAN little
    }
    
    # TAP identifiers may change as chips mature, for example with
    # new revision fields (the "3" here). Pick a good default; you
    # can pass several such identifiers to the "jtag newtap" command.
    if { [info exists CPUTAPID ] } {
      set _CPUTAPID $CPUTAPID
    } else {
      set _CPUTAPID 0x159463d3
    }
    
    source [find target/88w8510.cfg]
    # 88w8510 target .cfg file
    Code:
    telnet_port 4444
    gdb_port 3333
    
    # interface 0
    
    reset_config trst_only
    
    jtag newtap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
    
    set _TARGETNAME $_CHIPNAME.cpu
    target create $_TARGETNAME arm9tdmi -chain-position $_TARGETNAME
    
    flash bank MX29LV800 mrvlqspi 0x0 0 0 0 $_TARGETNAME 0x46010000
    I got the reset_config trst_only command from someone elses .cfg file. They had the same processor so I thought it was okay to borrow it. Any idea how I'm supposed to figure out the base address? I tried using the Marvel flash driver but I think maybe I should be using cfi because when I halt the 88w8510 and try auto-probing the flash, it fails horribly.

    This is the error message I get:
    Code:
    #0 : MX29LV800 (mrvlqspi) at 0x00000000, size 0x00000000, buswidth 0, chipwidth 0
     flash info bank_id
    
    Warn : memory read caused data abort (address: 0x46010004, size: 0x4, count: 0x1)
    Error: auto_probe failed
    
    {name mrvlqspi base 0 size 0 bus_width 0 chip_width 0}
    Any suggestions? Thank you!
    -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

Related Topics

Collapse

  • ekozeko333
    [Help] Lenovo Yoga Slim 7-14ARE05 (DA0LS3MBAF0) – 25Q80DVN1G Flash Is All FF, USB-C PD Stuck at 5V
    by ekozeko333
    Hi all,
    I’m trying to recover a Lenovo Yoga Slim 7-14ARE05 with board DA0LS3MBAF0 Rev:F. I’ve run into an unusual issue where USB-C PD is stuck at 4.7–5V and the system won’t boot (keyboard lights flash briefly, then nothing).
    🔥 The Problem Started After Suspected ESD/PD Fault
    I experienced a power issue or ESD event through a USB-C charger
    After that, the NX20P5090 power switch was visibly burned and was replaced
    Now the PD controller always negotiates 5V @ 2A, even with known-good chargers
    🧠 What I’ve Done So Far
    Flashed...
    06-21-2025, 02:48 AM
  • corrize
    Nikon D800 camera - flash don’t work and capacitor don’t charge
    by corrize
    Hello, I'm stuck in troubleshooting…
    The flash system works like that : when the (mechanic) flash button is pressed, the flash mecanically pop up, and a circuit buck boost elevate 7v (batt) to 200-300v (?) for charging the big capacitor. And when the photo shoot button is pressed, the capacitor is discharged in the xeon light.

    In the D800, there is a first « power board » close to the battery. 2 wires (batt 7v) goes to another little « flash board ». I measured 7v, so ok.
    When I press the flash button, it's detected by the system, flash icon appear on LDC display....
    10-01-2022, 10:02 AM
  • abajor
    Canon VIXIA HF S10 A read data from inernal flash memory.
    by abajor
    Hello I've had somebody bring in one of these charming little cameras to attempt retrieving data from the internal 32GB flash.
    Something is damaged inside the cameras lens assembly I can hear it clunking around and it has probably dislodged the sensor, powering up the camera gives a blank screen and the focus motor sounds like it's having a fit.
    The camera will not connect to a computer via USB in this state, I have no options no navigation, just power up and focus/zoom motor noises.

    I think my best shot is to figure out a way to read the internal flash memory outside...
    07-20-2024, 12:04 AM
  • Ihandyrepair
    4 red flash led 65X950G boot Sony and android logo but then black
    by Ihandyrepair
    HI guys

    I got here a Sony 65X950G - I tried to find any repairs guides for this model but not many online

    here is the issue
    I have Sony and android logo. but then 4 led red flash lights front of the tv

    I have 3.3v ref. 12v reg then T con 12v when I press the power on button
    but then I get black screen and 4 red flash light at the front LED
    but I get 3 led flash on the LED driver board.

    I check that few X900F or C YouTube repairs, seems that if you have 4 led red flash it could be due of LED black light error
    so I tried...
    07-11-2024, 01:45 AM
  • abhorsen
    Help Disabling Flash Protection Range Registers on Lenovo P360 Tiny BIOS
    by abhorsen
    Hey guys,

    Hope you all are doing well. I come here from Win-Raid because I am having issues disabling Flash Protection Range Registers so I can flash my BIOS from within Windows using Intel's IFW tool/using flashrom within Linux, however I cannot due to the above mentioned error.

    Here is my thread on Win-Raid detailing the whole process I went through: https://winraid.level1techs.com/t/re...h-gen/95478/27

    Essentially I managed to boot into Windows while shorting PINs 1+5 of my audio chip to disable the HAP bit...
    07-06-2023, 10:22 AM
  • Loading...
  • No more items.
Working...