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 |
The following book might help you, Linux Device Drivers [3rd Ed] -- Publisher: O'REILLY: http://lwn.net/Kernel/LDD3/.
|
Quote:
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. |
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. |