Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Orangepi Zero SPI buffer

Featured Replies

Hello,

 

first post here, so sorry if did not provide enough information. I need to change spi buffer length to 8192. So far tried:

1) modprobe spidev bufsiz=8192

creating the file /etc/modprobe.d/spidev.conf and adding to it the line "options spidev bufsiz=8192"

When I do "cat /sys/module/spidev/parameters/bufsiz", it gives me "4096".

 

2) Add to /boot/cmdline.txt:

spidev.bufsiz=8192

When I do "cat /sys/module/spidev/parameters/bufsiz", it gives me "4096".

 

3) cd /sys/module/spidev/parameters
chmod 666 bufsiz
echo 65536  > bufsiz

did nothing.

 

4) /boot/armbianEnv.txt

added options spidev bufsiz=8192

When I do "cat /sys/module/spidev/parameters/bufsiz", it gives me "4096".

 

I don't know anything else what to try. Is it possible.

Also facing SPI issues.  Trying to flash my laptop using a soic clip connected to spidev1.0 as well as Mizy on spidev0.0. Unlike some others in the forum I was able to activate both successfully. After using flashrom, however, my flashed laptop or orange pi zero won't boot from the SPI chip yet. 

 

My armbianEnv.txt:

 

Quote

verbosity=1

bootlogo=false

console=serial

disp_mode=1920x1080p60

overlay_prefix=sun8i-h3

overlays=spi-jedec-nor spi-spidev usbhost2 usbhost3

param_spidev_spi_bus=0

param_spidev_spi_cs=0

param_spidev_max_freq=1000000

rootdev=UUID=9f347494-581e-4ce3-8848-05016ce8b9c9

rootfstype=ext4

user_overlays=spi-double-spidev-cs

usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

 

My report from flashrom:

Quote

$ sudo flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -w /home/hardheid/Lenovo_T460_backup.bin

flashrom on Linux 5.10.12-sunxi (armv7l)

flashrom is free software, get the source code at https://flashrom.org                                                                                                  

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).

Found Winbond flash chip "W25Q128.V" (16384 kB, SPI) on linux_spi.

Reading old flash chip contents... done.

Erasing and writing flash chip... Erase/write done.

Verifying flash... VERIFIED.

 

Same with the Mizy images, write but not working in the end. Could this be the result of a bad buffer? Am I doing something wrong? 

Hi.
Have you found a solution for you spidedv buffer size issue? I am facing the same problem with nothing to be found online... 
Thanks

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.