Not able to make node for SPI
Hello,
I am working on phyCORE-iMX31 (ARM11) board. I loaded the driver for SPI (Serial Peripheral Interface)on to the board. I am not able to make node for SPI using mknod -m777 /dev/spi_0 c 153 0 After the execution of the above statement, the node is being listed in the device list. But using this node in my application code it gives error spi_0:No such file or directory Please guide me how to make a node for SPI. Thanks. |
Quote:
|
I specified it as /dev/spi_0 in my application. After loading the driver for SPI on the board and making node, it is being listed. But while using it's showing "No such device or address". Another problem is that after rebooting the board, the node get removed from the /dev directory.
|
Quote:
Quote:
|
The message "No such device or address" is generated by OS. As per your suggestion I'll look for 'udev' and 'persistent nodes'. But still the main problem is how to made that node working. Later on I'll try to make it permanent.
|
Sorry, I don't know what your problem might be. If the ls -l command shows the node as being a character node with the correct major and minor numbers, then I think the mknod command worked correctly.
This page contains a description of the meaning of the error message (and also explains why I was getting picky about exactly what it said): Quote:
|
All times are GMT -5. The time now is 09:09 AM. |