No, pins open, no device no loop. Thatâs why i wonder about rxâŚand anything in your Kernel is different
tried my spidev_test-binary in your buildroot:
# ./spidev_test
./spidev_test: line 1: syntax error: unexpected word (expecting ")")
both binaries are elf-binaries (beginning with ?ELFAAA)
since file-command not available i cannot compare the binaries more than simply read out the first bytes
my binary seems to need /lib/ld-linux-armhf.so.3 which is not present in buildroot, your binary uses /lib/ld-uClibc.so.0
is SPI attached to any other controller/bus (like internal wifi is attached via btif)? so we are missing any other driver? the only SPI-Option we are missing is SPI_DEBUG
is it possible to define a default SPIDEV-Device without a special driver in dts?? simply use it as SPI without kerneldriver or with a driver loaded after booting the kernel
for (ret = 0; ret < ARRAY_SIZE(tx); ret++) {...
printf("%.2X ", rx[ret]);
a dangerous access in my eyesâŚmake a loop over items in tx and read that position in rxâŚwho says that rx is same length as tx? imho it should use ARRAY_SIZE(rx) if reading from rxâŚ
in this discussion main-point should be overlay-dts, but no info how to use themâŚmust they compiled, how to use them (where to place) at runtime and how to load (bpi does not use /boot/config.txt and uboot maybe donât know dtparam)
it is a sample program to test spi interface in linux kernel source tree. I will suggest you trace the source code if you have any questions about the test result.
In my opinion, test procedure on BPI-R2 is the same as other platform.
i have not tried something because of missing time. I guess we need overlay-dts for the specific device (or define it in dtsâŚeach user have to do this for his device)
SPI is functioning properly as I could enable the SPI panel.
I donât really understand the problem explanation here. Something
doesnât look right as we shouldnât have to change anything, but I
just donât get what you a
@Ryder.Lee I am struck up with SPI communication on BPI-R2 for long time. Can you please point the right kernel for BPI-R2 with working SPI communication.
@asprakash imho you need to add your device with matching driver in your dts. I have not found a way for low-level spi yet (without define driver in dts).
@Ryder.Lee I am currently using the prebuilt kernel from Frank. I was not able to proceed with testing since there was no SPI device present on this kernel. Shall I use BPI official kernel 4.4.70?.
@frank-w I am intended to use LORA radio with SPI communication on BPI-R2 board. It wont required any special driver since I am using the same way with other boards like RPI.