|
Hi, I have a OrangePI Lite and use armbian.I want to send through SPI 12288 bytes. Can't.So I reduced the amount of bytes that I send and finally sending 4032 bytes, it worked!!
Searching in google and find that the answer is that the buffer size of the SPI is 4096
So I was trying to find the way to increase the buffer size. I tryed this:
- modprobe spidev bufsiz=32768
- creating the file /etc/modprobe.d/spidev.conf and adding to it the line "options spidev bufsiz=32768"
when I do "cat /sys/module/spidev/parameters/bufsiz", it gives me "4096".
I don't know what to do.
My question is: Is there any thing can I do to increase the buffer size of the SPI?
Or I have to recompile armbian changing in "linux/spidev.c" the line 91:"static unsigned bufsiz = 4096;"
Thanks in advance!!!
|
|