Skip to contentSkip to conversation

Why I dont' see spidev device entry under /dev

DISCUSSION Ned Forrester 2 participants 2 messages Nov 18, 2008 3 messages not in the archive SPI

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 7 lines · Bill Cuffley

As far as I can tell, the dev files aren't created automagically. To do it manually : find out the major and minor numbers for your device ('dmesg' should help here, otherwise 'cat /proc/devices' should give you the Major number (and use 0 for minor)), and if it should be a block device or a character device, then use mknod to create your /dev node. ('man mknod' on any *nix system or google to help you here)

If that does not solve the problem (try it first), you might want to ask your question on <[email protected]>. There are a number of people there that have used spidev, and even the original author, Andrea Paterniani <[email protected]>, is active there.

You can subscribe to spi-devel-general at:

https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Signature · 14 lines
Ned Forrester                                       [email protected]
Oceanographic Systems Lab                                  508-289-2226
Applied Ocean Physics and Engineering Dept.
Woods Hole Oceanographic Institution          Woods Hole, MA 02543, USA
http://www.whoi.edu/sbl/liteSite.do?litesiteid=7212
http://www.whoi.edu/hpb/Site.do?id=1532
http://www.whoi.edu/page.do?pid=10079


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
#4 lore raw
In reply to a message not in the archive
Quoted 1 line
Quoted 1 line

As far as I can tell, the dev files aren't created automagically.

They would be if udev (or even mdev) were in use.

The sysfs class nodes have a "dev" file with the major and minor numbers to use with "mknod".

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/