VIM3 KDGB over serial

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu 20.4

Which version of system do you use? Please provide the version of the system here:

Kernel 4.9

Please describe your issue below:

cmdline :

(system_a)root@B60P212-11361:~# cat /proc/cmdline
rootfstype=ext4 rootflags=data=writeback rw fsck.repair=yes net.ifnames=0 jtag=disable console=ttyS0,115200n8 consoleblank=0 kgdboc=ttyS0,115200 kgdbwait 

KCONFIG


# CONFIG_SERIAL_KGDB_NMI is not set
CONFIG_HAVE_ARCH_KGDB=y
CONFIG_KGDB=y
CONFIG_KGDB_SERIAL_CONSOLE=y
# CONFIG_KGDB_TESTS is not set
# CONFIG_KGDB_KDB is not set

Post a console log of your issue below:

# echo g > /proc/sysrq-trigger
[  919.916177] sysrq: HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) dis intr to riggger wdt rst(x) dump-ftrace-buffer(z)


Are there any documents / support for KGDB over serial for VIM3? Did anyone have experience with it? .I expect the kernel to wait for my dgb session, but it just goes through .

Hi @Ehsan2754

We don’t maintian 4.9 kernel anymore, could you check on latest 5.15 kernel image?

https://dl.khadas.com/products/vim3/firmware/ubuntu/emmc/ubuntu-24.04/vim3-ubuntu-24.04-gnome-linux-5.15-fenix-1.7.4-250423-emmc.img.xz

Regards,
Nick