I'm using kernel 4.1.13
uname output:
Linux bbbi-ohl-1 4.1.13-ti-r30 #1 SMP PREEMPT Fri Nov 13 21:54:17 UTC 2015 
armv7l GNU/Linux
Is there a way to disable logging?
Still don't know who is setting the clock back to 16MHz.
The capemgr?


Am Mittwoch, 28. März 2018 20:25:08 UTC+2 schrieb Wulf Man:
>
> what version kernel are you using. 4.9 had logging turned on and it made a 
> lot of noise
>
> On 3/28/2018 5:56 AM, joerg...@ims.fraunhofer.de <javascript:> wrote:
>
> Hi,  
> I'm trying to use the spi device on my beaglebone black with a C program.
> For setup I use something like:
>
> uint8_t SPImode |= SPI_CPOL;
> uint8_t bits = 8;
> uint16_t delay = 0;
> uint32_t speed = 500000;
> fd = open("spidev1.0", O_RDWR);
> ret = ioctl(fd, SPI_IOC_WR_MODE, &SPImode);
>
> ret = ioctl(fd, SPI_IOC_RD_MODE, &SPImode);
>
> ret = ioctl(fd, SPI_IOC_WR_BITS_PER_WORD, &bits);
>
> ret = ioctl(fd, SPI_IOC_RD_BITS_PER_WORD, &bits);
>
> ret = ioctl(fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed);
>
> ret = ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, &speed);
>
> For transfer I use something like:
>
>  struct spi_ioc_transfer tr = {
>  .tx_buf = (unsigned long)dataWrite,
>  .rx_buf = (unsigned long)dataRead,
>  .len = len,
>  .delay_usecs = 0,
>  .speed_hz = 500000,
>  .bits_per_word = 8,
>  };
>
>  ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr);
>
> Unfortunately my log files (syslog, kern.log, debug) gets flooded with SPI 
> messages:
>
> Mar 28 14:25:28 bbbi-ohl-1 kernel: [ 9846.393284] spidev spi1.0: setup: 
> speed 500000, sample trailing edge, clk normal
> Mar 28 14:25:28 bbbi-ohl-1 kernel: [ 9846.393337] spidev spi1.0: setup: 
> speed 16000000, sample trailing edge, clk normal
> Mar 28 14:25:28 bbbi-ohl-1 kernel: [ 9846.393440] spidev spi1.0: setup: 
> speed 500000, sample trailing edge, clk normal
> Mar 28 14:25:28 bbbi-ohl-1 kernel: [ 9846.393492] spidev spi1.0: setup: 
> speed 16000000, sample trailing edge, clk normal
> Mar 28 14:25:28 bbbi-ohl-1 kernel: [ 9846.394007] spidev spi1.0: setup: 
> speed 500000, sample trailing edge, clk normal
> Mar 28 14:25:28 bbbi-ohl-1 kernel: [ 9846.394062] spidev spi1.0: setup: 
> speed 16000000, sample trailing edge, clk normal
>
> Looks like somebody tries to reset the SPI clock to the maximum of 16 MHz?
> And the SPI driver logs everthing in each log file.
> Somebody knows a solution for this?
> Because my flash gets filled in just a few seconds :-(
>
>
>
> -- 
> For more options, visit http://beagleboard.org/discuss
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to beagleboard...@googlegroups.com <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beagleboard/5f22720b-4050-4395-9d1e-74ea193a97e5%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/beagleboard/5f22720b-4050-4395-9d1e-74ea193a97e5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/59016306-1e69-425c-b6cd-ffadfef98bb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to