Can SPI be loaded earlier?.
Options
Fernando
New Member Posts: 22 ✭
Hi!.
I am experimenting with a SPI display and fbtft driver. I want to load the kernel module fbtft_device at startup so I added it to /etc/modules-load.d and /etc/modprobe.d but I am getting the following error:
So it seems that the module was going to loaded when SPI was not available yet. So that's my question. Is there a way to get /dev/spidev2.0 available in an earlier stage?.
For the record, if I modprobe the module from /etc/rc.local, it loads fine.
Thanks. kind regards.
I am experimenting with a SPI display and fbtft driver. I want to load the kernel module fbtft_device at startup so I added it to /etc/modules-load.d and /etc/modprobe.d but I am getting the following error:
root@Up:~# dmesg | grep -i fbtft [ 3.456418] fbtft_device: spi_busnum_to_master(2) returned NULL [ 3.463075] fbtft_device: failed to register SPI device
So it seems that the module was going to loaded when SPI was not available yet. So that's my question. Is there a way to get /dev/spidev2.0 available in an earlier stage?.
For the record, if I modprobe the module from /etc/rc.local, it loads fine.
Thanks. kind regards.
Comments
-
Perhaps you could try adding the 'spi_pxa2xx_platform' module before the 'fbtft_device' module? That might ensure that the SPI controller driver gets loaded first. I haven't tested it myself though.
-
Hi Dan.
spi_pxa2xx_platform needs no parameters?
Thanks. -
No parameters needed for spi_pxa2xx_platform
-
Adding 'spi_pxa2xx_platform' to /etc/modules-load.d did the trick. Thanks.
Categories
- All Categories
- 63 Announcements & News
- 139 Product News - New Product/Product Change Notice/ End-of-life
- 112 Welcome Developers!
- 60 Unboxing & Project Sharing
- 114 Tech Updates
- 3.6K UP Products
- 119 UP 7000
- 25 UP Squared i12
- 24 UP Xtreme i12
- 14 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 24 UP Squared V2
- 65 UP 4000
- 23 UP Xtreme i11
- 34 UP Squared 6000
- 59 UP Squared Pro
- 135 UP Xtreme
- 820 UP Squared
- 1.4K UP Board
- 74 UP Core Plus
- 217 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 265 Starter Kits & Peripheral