Meraki MR18 and OpenWRT

I am trying to get OpenWRT using RPI and openocd with JTAG, but cannot perform the actual flashing. I can get the UART message:


but when I try to use the script, it halts, allows me to use telnet:

sudo openocd -f raspberrypi-native1.cfg -f mr18.cfg -c "init; halt"
Open On-Chip Debugger 0.12.0+dev-snapshot (2025-07-16-14:15)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Warn : TMS/SWDIO moved to GPIO 8 (pin 24). Check the wiring please!
Warn : DEPRECATED: auto-selecting transport "jtag". Use 'transport select jtag' to suppress this message.
Warn : Transport "jtag" was already selected
adapter speed: 500 kHz
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : clock speed 500 kHz
Info : JTAG tap: ar9344.cpu tap/device found: 0x00000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x0)
Info : [ar9344.cpu] Examination succeed
Info : [ar9344.cpu] starting gdb server on 3333
Info : Listening on port 3333 for gdb connections
Warn : target was in unknown state when halt was requested
Error: Failed to enter Debug Mode!
Error: Could not read core registers from target
Error: processor id not available, failed to read cp0 PRId register
Error: isa info not available, failed to read cp0 config register: 0
target halted in MIPS32 mode due to debug-request, pc: 0x00000000
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting 'telnet' connection on tcp/4444
Warn : target not halted

but every time I try to run any telnet command I am getting an error: target not halted

telnet localhost 4444
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> mww 0xb8060008 0x0
target not halted
1 Like

Hi,

so I guess you've opened up a second terminal, ssh session for the telnet?

It was Raspberry pi issue, couldn't make it work on 4, but once I tried 3b, worked as a charm.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.