Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-12-2010, 05:30 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Problems with SPI driver and spidev

Hi All,

I am using SPI driver which is part of kernel.

They have given spidev_test file i'm trying to execute it.

mknod /dev/spidev c 153 0

./spidev_test -D /dev/spidev

Its saying device file or directory not found

Do i need spidev.ko ? Because when i compile kernel with SPI, I am not getting spidev.ko file?

what should i do ? please help me out !!!!

Last edited by pixellany; 03-12-2010 at 08:39 AM.
Old 03-12-2010, 08:43 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I gave this a better title. Always try to use titles that are descriptive.

I'm not familiar with SPI, spidev, etc. but:

1. Does the mknod command create the node as expected?

2. Are you compiling SPI **into** the kernel, or creating it as a module?
Old 11-11-2011, 10:08 PM   #3
Senior Member
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
Originally Posted by asmeti View Post
Do i need spidev.ko ? Because when i compile kernel with SPI, I am not getting spidev.ko file?
You need CONFIG_SPIDEV set to either y or m. Regardless, you shouldn't need to mknod -- spidev registration will automatically populate the correct file descriptor. Also, the file should be something like /dev/spidevB.C, where B is the busnum and C is the chipselect (e.g. /dev/spidev0.1).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration