Spi-dev on Portenta X8 documentation is wrong !

Dear Arduino Team according to the documentation on Portenta X8 I found the following statement:

see image

but if I try to do it from CLI I get the following error:

modprobe: FATAL: Module spi-dev not found in directory /lib/modules/5.4.134-lmp-standard

Please could you clarify how it should work with a simple example?
Thank you
Maria

ciao @loffym
probably you have v399

so , just after the code snippet you pasted , there's a tip

In the current version, please create a

/etc/modules-load.d/spi-dev.conf
and restart the board.

echo "spi-dev" | sudo tee > /etc/modules-load.d/spi-dev.conf2sudo 
systemctl reboot

newer version of the image will have the module loaded.

(BTW thanks for spotting a madprobe typo :slight_smile: )

Thank you for the reply but despite the mistyping on "modprobe" and your suggested operations nothing is changed. When I try to load the module related to spi I get the same message error:

root@portenta-x8-2c17c209dab7022b:/dev#modprobe spi-dev
modprobe: FATAL: Module spi-dev not found in directory /lib/modules/5.4.134-lmp-standard
root@portenta-x8-2c17c209dab7022b:/dev#

just as remark of this, if I try the same on i2c bus it works and after the modprobe command I can see the /dev/ i2c-x .... properly created and i2c_dev module is in the list of loaded modules.

Any help to understand what is not working on my side is welcome.

Thank you
Maria

Still the same even after the sw upgrade to v674

I have obtained a board for my organisation recently and I am struggling with the lack of documentation to help with a quick to market product. Erroneous documentation makes it even harder.

I concur that the documentation does not match the device config in modules-load.d.

The documentation says "spi-dev" - the device is "spidev.conf".

This should be easy to confirm and correct.

Additionally, in the same documentation the example shows:

  • spi-1
  • spi-2
  • spi-3

Actual devices seem to be:

  • spidev0.0
  • spidev1.0

Where did the third spi device go?