LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   adding vortual driver for mini2440 (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/adding-vortual-driver-for-mini2440-903776/)

kasimMCA 09-19-2011 02:03 AM

adding vortual driver for mini2440
 
i upload the kernel into mini2440...its working good....
rootfs.jffs2
uImage
u-boot-256M.bin....al ae wroking fine..but....a sall doubt..


now i want to install a new dirver for mcp2515.c into that board ....actuvaly its a char drvier..and i want cxontrol through
"ioctl".. how i can add anfd execute...


for this any referebcve ,,book is there....

and when i plugged ausb into biard..dmesg..it will show..but how to open the usb,,i donot know...plases tell me....................



with regards..kasim

nini09 09-27-2011 02:25 PM

The following book might help you, Linux Device Drivers [3rd Ed] -- Publisher: O'REILLY: http://lwn.net/Kernel/LDD3/.

saichaitanya 09-28-2011 08:07 AM

Quote:

Originally Posted by nini09 (Post 4483731)
The following book might help you, Linux Device Drivers [3rd Ed] -- Publisher: O'REILLY: http://lwn.net/Kernel/LDD3/.

After reading that you can go through - "Essential Linux Device Drivers" by Sreekrishnan Venkateswaran || Publisher - Prentice Hall. You can find a ebook download link online.
This contains more driver structures including I2C,SPI,UART,PCMCIA,PCI,Video,Audio,Network and Flash Drivers. It even basically covers Wi-Fi, Bluetooth Interfacing and Radio and VoIP.
It revolves around Embedded Linux so it fits ur case.

theNbomr 10-01-2011 03:05 PM

The version of 'mcp2515.c' that I was able to find doesn't seem to be a kernel-mode driver. It is either what is often called a 'userspace driver' (a code fragment that accesses a device using only userspace resources, usually requiring root privileges), or is a sample of code which you might use to incorporate into a kernel-mode device driver that you write. In the latter case, it would require a lot of other supporting code, which would be well described in the books previously mentioned. I either case, it will require the use of an existing driver or library to access the chip through its SPI interface. The SPI interface may or may not be already supported in your kernel.

--- rod.


All times are GMT -5. The time now is 11:08 AM.