LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-07-2009, 08:57 AM   #1
will_berry70
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
Can't bind my device to a driver, or get a /dev/<devname> created by udev


Hi,
I'm trying to create a SPI device on a TI DaVinci board (embedded development board). According to mt .conf file I have SPI Drivers selected, and I've called spi_register_board_info (with a struct that had 'modalias' named for the alleged driver, 'spidev') and platform_device_register in the board initialisation code.

That gets me as far as having the following:

/sys/class/spi_master and spidev folders, but no files for any devices within them.

and

/sys/devices/platform/spi_davinci.0

In udev I've tried adding various things to the rules files there and to my own rules file but it doesn't appear to do anything and I don't get any new files under /dev/ generated (as I'd like).

The latest udev rule I've tried is: KERNEL=="spi_davinci", NAME="spi"
I hoped this would find the spi_davinci device and create a /dev/spi node.

All help greatly appreciated.

Will.
 
Old 12-07-2009, 09:32 AM   #2
will_berry70
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Also /sys/bus/spi/drivers contains my 'spidev' driver file, but /sys/bus/spi/devices is empty ?!
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot create /dev/md1 using mdadm after /dev/md0 is created dwong05 Linux - Newbie 1 05-04-2009 02:37 AM
new /dev/sd* device gets created at startup msound Linux - Hardware 3 09-09-2008 09:25 AM
/dev/cdrom1,/dev/cdrw1 symlinks made at each boot by udev which i dont want deepclutch Linux - Software 2 01-04-2007 07:39 AM
Created new partition. No device node for it. udev Slack10.2 myslfkeepslippin Linux - General 5 02-01-2006 02:16 PM
udev : framebuffer device (/dev/fb0) default permissions keefaz Slackware 6 07-04-2004 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:57 PM.

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