View: 5493|Reply: 2

SPI Buffer Size

[Copy link]

1

threads

2

posts

17

credits

Novice

Rank: 1

credits
17
Published in 2017-5-12 03:43:42 | Show all floors |Read mode
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!!!

1

threads

2

posts

17

credits

Novice

Rank: 1

credits
17
 Author| Published in 2017-5-15 20:00:21 | Show all floors
I got the solution!!!
tnx anyway...

3

threads

27

posts

156

credits

Registered member

Rank: 2

credits
156
Published in 2017-5-18 06:15:56 | Show all floors
if could you share the solution, we will be glad to learn!
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list