SPI camera and kernel logs

Discussion in 'UDOO NEO' started by Gorgo, Oct 12, 2017.

Tags:
  1. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Hi everybody,
    I'm using a thermal camera wired with SPI/I2C to Udoo Neo Full.
    No problems but I have my kernel log FULL of

    mx51_ecspi_clkdiv: fin: 60000000, fspi: 10000000, post: 0, pre: 5​

    I tried "sudo dmesg -n 1" but it still logs them.
    A way to get rid of them?

    Thanks
     
  2. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118

    You need to recompile the kernel with CONFIG_SPI_DEBUG turned off it set in udoo_neo_defconfig.
     
  3. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Is it the only way? :/ No runtime workaround?
     
  4. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    You should be able to dynamically disable it , google "dynamic pr_debug".
     
  5. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    I was investigating about pr_debug...
    HERE says

    For CONFIG_DYNAMIC_DEBUG kernels, any settings given at boot-time (or enabled by -DDEBUG flag during compilation) can be disabled later via the sysfs interface if the debug messages are no longer needed:
    echo "module module_name -p" > <debugfs>/dynamic_debug/control​
    Ok. Our debugfs is mounted into /sys/kernel/debug but there we have:

    Code:
    root@udooneo:/sys/kernel/debug# ls
    202c000.ssi  audmux  bluetooth  dma_buf  extfrag  gpio  ieee80211  memblock  mmc2     pwm     regulator   suspend_stats  ubi  wakeup_sources
    asoc         bdi     clk        dri      gc       hid   iio        mmc0      pinctrl  regmap  sleep_time  ti-st          usb
    
    Where id dynamic_debug?
     
  6. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Did you enable CONFIG_DYNAMIC_DEBUG in your kernel build?
     
  7. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Disabling CONFIG_SPI_DEBUG in menuconfig solves the problem. I think it will be fixed in the next release too.
     

Share This Page