ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
radxanaoki has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
warpme has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
warpme has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
cnxsoft has quit [Ping timeout: 480 seconds]
hexdump01 has joined #linux-sunxi
hexdump02 has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
Raqbit339890555233 has quit []
Raqbit339890555233 has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]
warpme has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
apritzel has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
radxanaoki has quit [Quit: radxanaoki]
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Quasar 5.2.6, revision: 5.2.6+git-7614-6f23368f1, build type: debug, sources date: 20160102, built on: 2025-03-30 13:34:35 UTC 5.2.6+git-7614-]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
kepstin has quit [Remote host closed the connection]
kepstin has joined #linux-sunxi
warpme has quit []
apritzel has joined #linux-sunxi
<pigmoral> paulk: hi, I'm trying to use jtag on A733. OpenOCD seems to recognize the chip, but I can't halt the CPU or get some useful infomation from "dap info". I'm new to bringing up OpenOCD on a new platform, so I tried some old cfgs from your repo. And here's some OpenOCD output which might be useful:
<pigmoral> Do you have any suggestions for what might be wrong or what I should check next? Thanks!
<gamiee> pigmoral : before issuing dap info, I would rather halt the core. How did you tried to halt it?
<pigmoral> Yes, I have tried "-c init -c halt", but got "Command 'halt' failed with error code -302" from openocd.
<gamiee> pigmoral: there are two options: connect to OpenOCD's server for commands, or connect to OpenOCD with GDB and issue halt with it.
<gamiee> don't do it with -c for right now
<pigmoral> got it, but I still get "error code -302" in the OpenOCD debug output, whether I use "halt" from telnet or "monitor halt" in gdb.
chewitt has joined #linux-sunxi
dsimic is now known as Guest27015
dsimic has joined #linux-sunxi
Guest27015 has quit [Ping timeout: 480 seconds]
<gamiee> pigmoral: only error code -302?
<gamiee> I never saw that openocd returning just that
<gamiee> can you show some error log or something ,because i really didnt saw such thing
apritzel has quit [Quit: Leaving]
gsz has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
<paulk> pigmoral: it's probably using adiv6, not v5 like sun50iw10
<paulk> then you need to use ARM_IDCODE_SOC_600_4BIT
<paulk> mhh or maybe I'm reading the long wrong and it's actually ARM_IDCODE_SOC_400 with adiv5
<paulk> maybe try "dap info 1"
<pigmoral> gamiee: the error code -302 appeared in the OpenOCD output with "--debug" option, twice: first when gdb connects and again when I issue "monitor halt" in gdb. Here is the detail log: https://gist.github.com/pigmoral/e3cb7d2e1fcbc74c886ca8253ee9fada
<pigmoral> I also checked OpenOCD source code, -302 happens when it times out waiting for the CPU to enter the halted state after issuing halt.
<gamiee> pigmoral: oooh, hmm, never seen this message yet, but I worked mostly with RISC-V
<pigmoral> paulk: yap, using ARM_IDCODE_SOC_600_4BIT gives me a jtag tap error, bug ARM_IDCODE_SOC_400 works fine
<pigmoral> I also tried "dap info 1", you can check it at the end of https://gist.github.com/pigmoral/87dd50b0b72a5732dcca35443550b32f
<paulk> mhh it's probably not finding the blocks on the debug apb
<pigmoral> also, I noticed something different between a527 and a733
<pigmoral> on a527, jtag auto tap only finds 1 device: 0x2ba06477 (mfg: 0x23b (ARM Ltd), part: 0xba06, ver: 0x2)
<pigmoral> but 2 on a733: 0x5ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x5) and 0x2ba06477 (mfg: 0x23b (ARM Ltd), part: 0xba06, ver: 0x2)
<pigmoral> I'm not sure if this requires any extra handling?
<paulk> mhh interesting
ftg has joined #linux-sunxi
<pigmoral> wow, It works when I add an extra tap for the second device. And I got dap info from the second tap successfully
<pigmoral> FYI, dap info for a733 and corresponding openocd cfg: https://gist.github.com/pigmoral/d24dbd800c74e6fa5f1addaa9536bd30
juanesf91 has joined #linux-sunxi
warpme has joined #linux-sunxi
gsz has quit [Quit: leaving]
juanesf91 has quit [Quit: Connection closed for inactivity]
warpme has quit []
bsvi has joined #linux-sunxi
bsvi has quit [Remote host closed the connection]
smaeul_ has joined #linux-sunxi
chewitt has quit [Quit: Zzz..]
smaeul has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
smaeul_ has quit []
smaeul has joined #linux-sunxi
radxanaoki has joined #linux-sunxi