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.

PROCESSOR-SDK-AM62A: log file directory

Part Number: PROCESSOR-SDK-AM62A
Other Parts Discussed in Thread: SK-AM64B

Hello,

I'm looking for where dmesg file is located in linux SDK.
In my understanding, this file is located in /var/log directory.
However, there is no dmesg file in this direcory on Linux SDK ver 09.01.00.07.

Q1. Do you have information which directory this file is located ?
Q2. Is it possible to change directory which user desire ?

BR,

  • Hi,

    dmesg is not a log file, it is a Linux command, which dumps kernel logs from a buffer in kernel.

  • Hello,

    I believe that "dmesg" command read information from "/var/log/dmesg" file in general.
    So, I'm asking which directory "dmesg" command referring to read above file.
    Or, is my understanding incorrect ?

    BR,


  • I believe that "dmesg" command read information from "/var/log/dmesg" file in general.

    Have you seen this file "/var/log/dmesg" on your AM62A board?

    I have SK-AM64B board running with SDK9.1. There is no dmesg file under /var/log/ directory.

  • Hello,

    >Have you seen this file "/var/log/dmesg" on your AM62A board?
    No, my understanding is from general linux information not for AM6x.
    Since I confirm this difference, I ask this question.
    (What dmesg do not exist under /var/log is specification of TI distributor (Arago project) or you have another reason that this difference cause...)  

    BR,

  • What dmesg do not exist under /var/log is specification of TI distributor (Arago project)

    No, it is not TI distribution or Arago specific.

    Please see the kernel documentation linked below about kernel printk() and dmesg command.

    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/core-api/printk-basics.rst?h=v6.8-rc3

    Just quote the document from the beginning of the it:

    All printk() messages are printed to the kernel log buffer, which is a ring
    buffer exported to userspace through /dev/kmsg. The usual way to read it is
    using ``dmesg``.

    dmesg itself has nothing to do with /var/log/dmesg file. Some Linux distributions have a service which generates and maintains the content of this log files. But dmesg command directly reads the log messages from kernel.

  • Hello,
    Thank you for your reply.

    >dmesg itself has nothing to do with /var/log/dmesg file. Some Linux distributions have a service which generates and >maintains the content of this log files. But dmesg command directly reads the log messages from kernel.
    Yes, understood.
    What I would like you to confirm is whether TI linux distributor support following feature or not. 
    "Some Linux distributions have a service which generates and maintains the content of this log files."

    Could you comment it ?

    BR,

  • Most modern Linux including TI Processor SDK and Arago use systemd. systemd has a service called journald for managing system logs.

    systemd is a purely open source project, how to use/customize systemd is out of the support scope on this forums. You would need to study the systemd project and figure out how to configure journald to generate system log files to /var/log/ directory.