Tlaciaren Samsung ML-2525 - firmware

Počítače stolní, notebooky, tablety, tiskárny, scanery a vše, co nějak souvisí s PC

Moderátor: Moderátoři

Zpráva
Autor
Uživatelský avatar
rnbw
Příspěvky: 32312
Registrován: 21 bře 2006, 01:00
Bydliště: Bratislava

#61 Příspěvek od rnbw »

Dalsi kus, v Debiane Stretch je OpenOCD 0.9.0. Konfiguracia paralelneho portu uz ma default 0, takze netreba nic menit, ak sa pouzije lp0. Treba ale upravit konfiguracny subor:

Kód: Vybrat vše

Open On-Chip Debugger 0.9.0 (2017-03-07-13:28)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Warn : Adapter driver 'parport' did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
parport port = 0x0
adapter speed: 500 kHz
embedded:startup.tcl:21: Error: -chain-position required when creating target
in procedure 'script'
at file "embedded:startup.tcl", line 60
in procedure 'target' called at file "jupiter4e.cfg", line 22
in procedure 'ocd_bouncer'
at file "embedded:startup.tcl", line 21
Parameter -variant je totiz zruseny. Takto to funguje:

Kód: Vybrat vše

adapter_khz 500

if { [info exists CHIPNAME] } {
  set  _CHIPNAME $CHIPNAME
} else {
  set  _CHIPNAME arm
}
if { [info exists ENDIAN] } {
  set  _ENDIAN $ENDIAN
} else {
  set  _ENDIAN little
}
if { [info exists CPUTAPID ] } {
  set _CPUTAPID $CPUTAPID
} else {
 # force an error till we get a good number
  #set _CPUTAPID 0xffffffff
  set _CPUTAPID 0x10940f0f
}

jtag newtap arm taptap  -irlen 4 -ircapture 0x1 -irmask 0xf
target create arm arm9tdmi -endian big -chain-position 0

reset_config trst_and_srst srst_pulls_trst

init
halt

poll off

#source scripts.cf
#dc
poll

#ic

armv4_5 reg

Uživatelský avatar
rnbw
Příspěvky: 32312
Registrován: 21 bře 2006, 01:00
Bydliště: Bratislava

#62 Příspěvek od rnbw »

Nebavilo ma uz spajkovat priamo na pin 2 procesora a odpory okolo, tak som nasiel vhodne test pointy pre JTAG (dva boli uz oznacene). TDO nema test point, ale je pristupny na pine 10 CN4 (LSU).

Je to vsetko zospodu, takze musi ist doska von. Ked je doska vonku, staci mat k nej zdroj, zvysok tlaciarne nemusi byt pripojeny. Tlacidla POWER a CANCEL potrebne pre aktivaciu boot modu, su na CN8 (OPE) - pin 2 je POWER, pin 8 CANCEL, aktivuju sa skratovanim na GND (pin 4).

OpenOCD 0.10.0 z Debianu Buster nefunguje - pada:

Kód: Vybrat vše

$ openocd -f /usr/share/openocd/scripts/interface/parport.cfg -f jupiter4e.cfg
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Warn : Adapter driver 'parport' did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
parport port = 0x0
adapter speed: 500 kHz
Warn : Specify TAP 'arm.taptap' by name, not number 0
trst_and_srst srst_pulls_trst srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
Info : clock speed 500 kHz
Info : JTAG tap: arm.taptap tap/device found: 0x10940f0f (mfg: 0x787 (<unknown>), part: 0x0940, ver: 0x1)
Info : Embedded ICE version 2
Info : arm: hardware has 2 breakpoint/watchpoint units
background polling: off
TAP: arm.taptap (enabled)
target halted in ARM state due to breakpoint, current mode: Supervisor
cpsr: 0x60000013 pc: 0x02600a78
DEPRECATED! use 'arm reg' not 'armv4_5 reg'
System and User mode registers
      r0: f000007c       r1: 00800000       r2: 00000005       r3: 0000006e
      r4: 00000000       r5: 02600000       r6: 00000001       r7: 00000000
      r8: dffdffeb       r9: dffd9bcf      r10: 00000000      r11: 55fdffaf
     r12: 00000000   sp_usr: ff99f8d3   lr_usr: fd2d9bf6       pc: 02600a78
    cpsr: 60000013

FIQ mode shadow registers
  r8_fiq: fdefbbfb   r9_fiq: 77cfffaf  r10_fiq: f5fdbbcb  r11_fiq: 5eefb9eb
 r12_fiq: fdadfbeb   sp_fiq: 02000914   lr_fiq: 55edfba3 spsr_fiq: d00000d8

Supervisor mode shadow registers
  sp_svc: 020018bc   lr_svc: 026008ec spsr_svc: 8000005a

Abort mode shadow registers
  sp_abt: 02001114   lr_abt: ffafbbcf spsr_abt: 300000dc

IRQ mode shadow registers
  sp_irq: 02000d14   lr_irq: fdfdbfcd spsr_irq: a000009e

Undefined instruction mode shadow registers
  sp_und: 02000f14   lr_und: ffff9bff spsr_und: f000007c

Secure Monitor ARM1176JZF-S mode shadow registers
Segmentation fault
Workaround: downgradovat na 0.9.0 z Debianu Stretch
Přílohy
samsung_ml2525_jtag.jpg

Odpovědět

Zpět na „Výpočetní technika“