NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
wingsorc has quit [Read error: Connection reset by peer]
wingsorc has joined #openocd
wingsorc has quit [Read error: Connection reset by peer]
wingsorc has joined #openocd
wingsorc has quit [Read error: Connection reset by peer]
wingsorc has joined #openocd
thinkfat_ has joined #openocd
thinkfat has quit [Ping timeout: 240 seconds]
tsal has quit [Ping timeout: 244 seconds]
tsal has joined #openocd
<NishanthMenon> we did however uncover a hardwired firewall rule in the architecture so for R5s, we might need to introduce an emulation mode.. but yeah, i can happily debug M4F sitting on A53, no jtag pods needed
<NishanthMenon> using /dev/mem was'nt probably the smartest of choices though.. ;)
nerozero has joined #openocd
nerozero has quit [Ping timeout: 240 seconds]
<borneoa_> NishanthMenon: OpenOCD sits in Linux userland. If you don't want to write a dedicated Linux kernel driver to access the memory, then /dev/mem is "the" way to go.
<NishanthMenon> borneoa_: yup.. https://github.com/Mellanox/rshim-user-space/blob/master/src/rshim.c -> I need to look closer as to what the folks had done..
<NishanthMenon> in kernel driver would have been nice.. but then... it would be just a single OS :D
<borneoa_> NishanthMenon: and it would be a silly duplicate of dev/mem. It would not be accepted upstream....
<NishanthMenon> more than that it'd conflict with usage of coresight drivers :(
<borneoa_> NishanthMenon: if you want to propose your new OpenOCD driver in Gerrit, I would be pleased to review it.
<NishanthMenon> borneoa_: aah thanks. I need to write up the emulation mode as well.. which I am attempting right now
<NishanthMenon> will add for review ofcourse.
Hawk777 has joined #openocd
<NishanthMenon> if there is strong pushback on /dev/mem, will consider switching over to userspace driver or other alternatives
merethan has joined #openocd
Haohmaru has joined #openocd
nerozero has joined #openocd
<borneoa_> NishanthMenon: we have already some adapter driver using /dev/mem for fast going bit banging. Should be ok using it in this driver too.
<NishanthMenon> borneoa_: thanks for the hint. Will look closer to see if I can avoid duplicating code.
Hawk777 has quit [Quit: Leaving.]
<borneoa_> NishanthMenon: I don't expect there is anything that can be shared to avoid duplications. But using the same way to open and mmap could help in the future if we add some security feature. As far as I know, today there is no per address access control on /dev/map
<NishanthMenon> Gotcha
van has joined #openocd
Bugies has joined #openocd
wingsorc__ has quit [Ping timeout: 272 seconds]
merethan has quit [Quit: Leaving]
renrelkha has quit [Quit: bye]
renrelkha has joined #openocd
tsal has quit [Ping timeout: 240 seconds]
tsal has joined #openocd
akaWolf has quit [Ping timeout: 244 seconds]
akaWolf has joined #openocd
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
nvmd has joined #openocd
nvmd has quit [Quit: WeeChat 3.6]
nvmd has joined #openocd
akaWolf has quit [Ping timeout: 276 seconds]
akaWolf has joined #openocd
Haohmaru has quit []
akaWolf has quit [Ping timeout: 272 seconds]
akaWolf has joined #openocd
c4017 has joined #openocd
erhankur has joined #openocd
Hawk777 has joined #openocd
erhankur has quit [Remote host closed the connection]
akaWolf has quit [Ping timeout: 240 seconds]
akaWolf has joined #openocd
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
cambrian_invader has quit [Ping timeout: 244 seconds]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
cambrian_invader has joined #openocd
wingsorc has quit [Quit: Leaving]
nerozero has quit [Ping timeout: 240 seconds]
akaWolf has quit [Ping timeout: 240 seconds]
akaWolf has joined #openocd
wingsorc__ has joined #openocd
wingsorc__ has quit [Quit: Leaving]
wingsorc has joined #openocd
akaWolf has quit [Ping timeout: 240 seconds]
akaWolf has joined #openocd