Skip to content

Commit e800cfd

Browse files
committed
stm32mp1: Add log command
1 parent 9d708eb commit e800cfd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

run_arduino_gen.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ case "$1" in
218218
# Reference: https://elixir.bootlin.com/linux/v5.5.6/source/drivers/rpmsg/virtio_rpmsg_bus.c#L581
219219
dd if="$2" bs=496 of=$RPMSG_DIR
220220
;;
221+
log)
222+
cat /sys/kernel/debug/remoteproc/remoteproc0/trace0
223+
;;
221224
minicom)
222225
autodetect_board
223226
TERM=xterm minicom -D $RPMSG_DIR
@@ -234,7 +237,8 @@ case "$1" in
234237
*)
235238
echo "Usage: $0 [start|stop|restart]"
236239
echo " $0 [install|uninstall]"
237-
echo " $0 [monitor|send-msg|send-file|minicom]"
240+
echo " $0 [monitor|minicom|log]"
241+
echo " $0 [send-msg|send-file] ..."
238242
echo " $0 [generate]"
239243
echo ""
240244
echo "$0 is a helper script that helps managing an Arduino binary"
@@ -269,6 +273,9 @@ case "$1" in
269273
echo "$0 minicom"
270274
echo " Launch minicom interactive serial communication program."
271275
echo ""
276+
echo "$0 log"
277+
echo " Print debugging log in OpenAMP trace buffer."
278+
echo ""
272279
echo "$0 stop"
273280
echo " Stop the coprocessor."
274281
echo ""

0 commit comments

Comments
 (0)