|
Edited by Almaz at 2018-2-6 18:02
Hi! I am newbie in Linux.
I booted raspbian on OrangePi zero and don't found /dev/spidevX.X to use SPI.
Dmesg shows me following:
- [ 0.469611] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
- [ 0.469803] sunxi_spi_chan_cfg()1376 - [spi-1] has no spi_regulator.
Copy code
After little Google browsing I found this:
Fex_Guide and SPIdev
I tried to put following in /boot/config.txt file:
- [spi0_para]
- spi_used = 1
- spi_cs_bitmap = 1
- spi_cs0 = port:PI10<2><default><default><default>
- spi_sclk = port:PI11<2><default><default><default>
- spi_mosi = port:PI12<2><default><default><default>
- spi_miso = port:PI13<2><default><default><default>
- [spi_devices]
- spi_dev_num = 1
- [spi_board0]
- modalias = "spidev"
- max_speed_hz = 12000000
- bus_num = 0
- chip_select = 0
- mode = 0
- full_duplex = 1
- manual_cs = 0
Copy code
After rebooting the board I don't see spidevs in /dev directory.
Dmesg also doesn't shown me any changes. Does this mean that I need to build linux kernel from sources
or I did something wrong?
|
|