This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: Enable dynamic debug

Part Number: AM5728


Tool/software: Linux

Hello, I was wondering how I enable the dynamic debug kernel feature for the AM572x-EVM?  I tried mounting the debugfs filesystem, to no avail the results are below:

root@am57xx-evm:/sys/kernel/debug# mount -t debugfs none /sys/kernel/debug
mount: none is already mounted or /sys/kernel/debug busy

Is there any way to enable the dynamic debug so I can enable kernel messages for the VPE kernel module?

Thank you,

Tom Wallis

  • Hi Tom,

    Try adding the highlighted line in /etc/fstab:
    # stock fstab - you probably want to override this with a machine specific one

    /dev/root             /                               auto           defaults                        1  1
    proc                    /proc                        proc           defaults                        0  0
    devpts                /dev/pts                    devpts       mode=0620,gid=5        0  0
    usbdevfs            /proc/bus/usb           usbdevfs   noauto                          0  0
    tmpfs                  /run                          tmpfs         mode=0755,nodev,nosuid,strictatime  0  0
    tmpfs                  /var/volatile              tmpfs         defaults,size=50M        0  0
    tmpfs                  /media/ram              tmpfs         defaults,size=16M        0  0
    debugfs             /sys/kernel/debug     debugfs     defaults                        0  0

    # uncomment this if your device has a SD/MMC/Transflash slot
    #/dev/mmcblk0p1 /media/card auto defaults,sync,noauto 0 0

    And run mount -a. This should mount debugfs on /sys/kernel/debug.

    Best Regards,
    Yordan

  • In the end I wound up just doing it by make menuconfig and recompiling the kernel via this guide.

    processors.wiki.ti.com/.../Linux_Core_VPE_User's_Guide

    I'll keep your solution for further debugging. Thank you :)