NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
slobodan has quit [Ping timeout: 246 seconds]
Hawk777 has quit [Quit: Leaving.]
Hawk777 has joined #openocd
MGF_Fabio has quit [Ping timeout: 276 seconds]
Hammdist has quit [Quit: Client closed]
Hammdist has joined #openocd
ayaka_ has joined #openocd
ayaka_ has quit [Ping timeout: 255 seconds]
ayaka_ has joined #openocd
ayaka_ has quit [Ping timeout: 276 seconds]
ayaka_ has joined #openocd
nerozero has joined #openocd
braunr has quit [Remote host closed the connection]
defiant has joined #openocd
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
vampi has joined #openocd
vampirefrog has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
Haohmaru has joined #openocd
MGF_Fabio has joined #openocd
RolfNoot has quit [Ping timeout: 255 seconds]
RolfNoot has joined #openocd
Hawk777 has quit [Quit: Leaving.]
firelegend has joined #openocd
ayaka_ has quit [Ping timeout: 260 seconds]
<RolfNoot> Hi. I am missing the Change-Id while I try to do a new commit. Previous time it went well.
shibboleth has joined #openocd
<RolfNoot> the hook (commit-msg) is installed in .git/hooks
<PaulFertser> RolfNoot: and what's happening now? Change-Id is just part of the commit message. If it's missing then a new one is autogenerated by commit hook locallyy.
<RolfNoot> I don't see it, only Signed-off-by...
<RolfNoot> command I used is: 'git commit -a -s'
<PaulFertser> RolfNoot: probably the hook doesn't have executable bit set or something? Also, try "git commit --amend", the hook should run again.
merethan has joined #openocd
<RolfNoot> git commit --amend just shows the previous commit with Change-Id
<RolfNoot> I like to do a new commit. I checked the permissions and they are okay. I tried to run the script manually to check but it needs arguments
<PaulFertser> RolfNoot: a new commit ok, just make it and see.
<RolfNoot> The only thing changed is that I've set the git email & username localy
<PaulFertser> It shouldn't affect.
<RolfNoot> It works, my fault!
<RolfNoot> It's added after the commit, not when the commit message opens the first time
<RolfNoot> after doing the commit and use git commit --amend I see the Change-Id added.
<RolfNoot> Thanks!
<PaulFertser> np :)
<PaulFertser> You didn't even need --amend I guess
<RolfNoot> Correct, it's added to the commit message AFTER closing it
<RolfNoot> Only my username isn't recognized by Gerrit: "Name of user not set <r.nooteboom@gmail.com>" just uploaded a new patch ..."
<PaulFertser> It's probably from your Gerrit settings.
<PaulFertser> That you can change via the web interface.
<RolfNoot> Then that might be the "Display name" setting. The other fields are filled. Will check that, thanks again!
<PaulFertser> RolfNoot: btw, normally S-o-b is supposed to have something that looks like a real name, not nick.
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #openocd
firelegend has quit [Ping timeout: 250 seconds]
MGF_Fabio has quit [Read error: Connection reset by peer]
MGF_Fabio has joined #openocd
crabbedhaloablut has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #openocd
slobodan has joined #openocd
gzlb has quit [Ping timeout: 256 seconds]
gzlb has joined #openocd
Haohmaru has quit [Quit: saionara]
vfazio has joined #openocd
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
MGF_Fabio has quit [Ping timeout: 256 seconds]
shibboleth has quit [Quit: shibboleth]
zjason` is now known as zjason
nerozero has quit [Ping timeout: 268 seconds]
bvernoux has joined #openocd
ahorvat has joined #openocd
<ahorvat> Hi guys. Does anybody has any experience with coresight on rk3399 cpu? I have connected my jlink edu to it's SWD ports but I'm not sure how to establish debuggiong session via OpenOCD.
<ahorvat> When I use rk3399.conf file it's not working. JLinkGDBServer is also not working, but I can communicate with CPU using DW-AP commands (to some extend).
<PaulFertser> Hi
<PaulFertser> Please pastebin what OpenOCD tells you.
<ahorvat> give me a minute, i need to recover my conf as i have messed with it
<PaulFertser> Also do not forget to connect target Vref to Jlink's vtref pin.
<ahorvat> Vref is connectd ( I can send commands to it and get responses )
<PaulFertser> What commands?
<ahorvat> writedp/readdp
<ahorvat> Info : SWD DPIDR 0x2ba01477
<ahorvat> actually, there are few lines I get from openocd
<ahorvat> Info : SWD DPIDR 0x2ba01477
<ahorvat> Info : VTarget = 3.296 V
<ahorvat> Info : clock speed 12000 kHz
<ahorvat> Info : SWD DPIDR 0x2ba01477
<ahorvat> Error: Could not find APB-AP for debug access
<ahorvat> Warn : target rk3399.lcore0 examination failed
<ahorvat> Read from VTarget
<ahorvat> .
<PaulFertser> Please use some pastebin the next time you paste.
<PaulFertser> ahorvat: hm, so communication is working indeed.
youthpastor has quit [Ping timeout: 260 seconds]
<ahorvat> I also managed to read access port IDR
<ahorvat> but it's value is kind of strange when I compare it with ARM Coresight-400 documentation
<ahorvat> Is it possible for firmware to partially disable AHP access port?
youthpastor has joined #openocd
<PaulFertser> Might be. BTW, ahorvat , did you check "dap info 0" and for other possible numbers?
<ahorvat> Have not, give me a second
<PaulFertser> I actually got an SD card breakout board so probably I can try to connect OpenOCD to a "pinebook pro" to check how it works.
<ahorvat> It did return something
<PaulFertser> ahorvat: hm, related https://github.com/liangdonggithub/rk3399_bare
<ahorvat> will check that out, thanks
<PaulFertser> ahorvat: are you trying to connect while the SoC is staying in its ROM bootloader?
<ahorvat> For now it's running android, but I have custom linux image which is stuck somewhere in/after u-boot
<ahorvat> So it's stuck in SPL
<ahorvat> I would like to read core0 registers to see what's happening
<PaulFertser> ahorvat: btw, what OpenOCD version are you using, is it current master?
<ahorvat> xpack-openocd-0.12.0-2
<PaulFertser> ahorvat: and the config was part of it?
<ahorvat> yes
<PaulFertser> ahorvat: are you sure there're no other devices connected, can be be certain this SWD goes to the rockchip SoC? The dap info is talking about some M3 microcontroller...
<PaulFertser> ahorvat: and there should be something on "dap info 1" according to the config.
<ahorvat> Dap info1 gives nothing
<ahorvat> Regarding other CPU I don't see it on board (but it's possible)
<PaulFertser> And designer is gigadevice, weird.
<PaulFertser> ahorvat: I wonder if you try to connect to it as if it's a cortex-m target what happens.
<ahorvat> Give me a sec
merethan has quit [Ping timeout: 264 seconds]
<ahorvat> It's working
<ahorvat> Maybe there is really M4 core on the board
<ahorvat> yep, there is
<PaulFertser> Hah
<ahorvat> sorry, it seems it was too convinient
<ahorvat> It's only marked swd port on the board
<PaulFertser> ahorvat: SWD should be multiplexed to SD card slot
<ahorvat> The issue is that I'm trying to boot from SD card :)
<PaulFertser> ahorvat: how about booting the same via USB?
<PaulFertser> Asking the ROM bootloader for it.
<ahorvat> Hm... that may just work
<PaulFertser> There're tools for rockchip SoCs to do that.
<ahorvat> It seems I have some reading to do
<ahorvat> Thanks!
<PaulFertser> ahorvat: oh and btw, have you seen "levinboot"? It's a super fast minimalistic bootloader for rk3399, works wonders.
<ahorvat> Well, we're trying to repurpose some chinese board (remove android) by installing linux.
<PaulFertser> ahorvat: of course
<ahorvat> And we're going with Yocto which ships with u-boot
<PaulFertser> Probably using levinboot for that might actually help.
<ahorvat> will look at this.
<ahorvat> One thing for u-boot that's useful is that it has support for ota
<PaulFertser> ahorvat: doesn't matter what Yocto uses by default. levinboot has enough debugging on serial port you'll see it trying to read from different locations if everything's working properly.
<PaulFertser> ahorvat: might help for debugging to try different things if you're stuck that early suspecting SPL.
<ahorvat> that's good tip
<PaulFertser> ahorvat: and it has some instructions about USB ROM startup iirc so that might help too. And another thing.
<PaulFertser> ahorvat: you might want to try to extract the DRAM init binary from original image and compile u-boot with that rather than proper free software code that it's using by default.
<ahorvat> why is that?
<ahorvat> stability thing?
<ahorvat> \/quality
<PaulFertser> ahorvat: probably rockchip not sharing enough info for properly configuring the DRAM controller.
zjason has quit [Read error: Connection reset by peer]
<ahorvat> Thanks for info
<PaulFertser> ahorvat: best of luck with liberating the silly tablet :)
zjason has joined #openocd
<ahorvat> Thanks!
RolfNoot has quit [Remote host closed the connection]
RolfNoot has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
bvernoux has quit [Quit: Leaving]
<balrog> borneoa___: "The error code should be propagated" -- the only reason I didn't do that is because the existing code is inconsistent in this regard
braunr has joined #openocd
<borneoa___> balrog: remote_bitbang_flush() only returns ERROR_OK or ERROR_FAIL. What is inconsistent?
<balrog> e.g. the result of bitbang_scan in the JTAG_SCAN case is not passed
<balrog> of bitbang_scan() *
<balrog> or the result of bitbang_path_move() in the JTAG_PATHMOVE case
<borneoa___> balrog: now I understand. You point to the fact that this file bitbang.c is not consistent in the way the error is propagated.
<borneoa___> balrog: also, retval is not used as an intermediary variable, but it's the final value returned after the loop... This loop should deserve some comment to explain how errors are managed
<balrog> borneoa___: yes... I just followed the existing pattern for the most part
<balrog> if you want this to be refactored I guess I can, but that would go beyond what the merge request covers
<borneoa___> balrog: let's keep track of this conversation in the Gerrit history. Please reply to my comment there. I will ack your change and then let's see if someone else finds it unacceptable
<balrog> borneoa___: replied
<balrog> wait, only draft. Gerrit is still a bit of a pain
<balrog> OK there you go... ahh, missed the description, sorry
Hawk777 has joined #openocd
<balrog> thanks!
slobodan has quit [Ping timeout: 260 seconds]
ahorvat has quit [Ping timeout: 268 seconds]
<karlp> I must say, I'm quite pleased to see the espressif stuff coming in!
<karlp> I can hopefully soon have one less forked variatn of oocd on my work pc :)
jybz has quit [Ping timeout: 245 seconds]
jybz has joined #openocd