You can enable SPI function via overlay, what you need to do is to edit file /boot/dtb/amlogic/kvim1s.dtb.overlay.env and add spi0 to fdt_overlays, it should be like this:
Ok. Thanks a loro, I’ll try.
Only a question
Usually I use Fenix GitHub suorces and build Debian 11 system, I Have ro update the kernel or I can only follow next step?.
I mean, if tomorrof I download Fenix sources I find new updates supportinf spi protocol or I Have ro follow all descrivere step by step?
Thanks again.
cannot test, cos
sudo dpkg -i khadas-vim1s-linux-5.4-dt-overlays_1.3~7215e3c_arm64.deb
command give error on decompress “control.tar.zst”
dpkg-deb: errore: l’archivio “khadas-vim1s-linux-5.4-dt-overlays_1.3~7215e3c_arm64.deb” utilizza una compressione sconosciuta per l’elemento “control.tar.zst”, operazione annullata
if you can check, I build fenix Debian Bullseye release for my VIM1S.
Thanks.
EDITED:
no problem instead with last fenix UBUNTU 22.04 release, all seems to work, only have to try real SPI device attacked (adxl345 accelerometer module)
btw nothing to do with Klipper (3D printer firmware), while enabling i2c with different hardware module (not SPI adxl345, but I2C GY-521) all works well, and I can make input shaper tests with them. So, in some ways, I solved for tests, but SPI not seems to work at 100%, klipper revognizes SPI module, but on test, give comunication error:
on command: accelerometer_query
error appears: Invalid adxl345 id (got ff vs e5).
This is generally indicative of connection problems
(e.g. faulty wiring) or a faulty adxl345 chip.
the module was tested and working on a RP2040.
btw, test with spi.c works well, and “hello world” is written correctly.
checked, and create spidev0.1, but loose “gpio readall” (unknown comand), but with gpioinfo installed, I can see spi pin, but isn’t PINZ_3, but PINX_10, as in image.
but maybe I’m wrong, also on raspberry the spi pins are marked as “unused” but accelerometer works… tomorriw I’ll retry to cinnect it to SPIZ pins to test if works…
no, just checked and on raspberry with SPI enabled thay are marked in this way:
We suggest you to use Ubuntu to check the full fucntions, the debian image may have many functions missing, we don’t provide much support on Debian just can bootup.
Originally we telling about Ubuntu, no spi Port enabled, tried also new .Deb files on Ubuntu, nothing to do. Tried on Debian with Debian .Deb file , nothing…
No problem for me to use Ubuntu instead of Debian, but the results are same, missing spi Port. Also on VIM3L, where I’ve tried both Ubuntu and Debian Fenix releases, no spi Port.
You tell me what to do, and I’ll do It, hopeing we, finally, found what described into docs, in this case, SPI Port!