EmbLogic's Blog

Category Archives: Device Drivers

Character device driver status by Vijay Partap

I have done 1. open and release function 2. node creation

Posted in Character Driver | Leave a comment

Character Device Driver status by Vijay Partap

I have done following things in initialization function: alloc_chrdev_region and  register_chrdev_region kmalloc and memset cdev_init and cdev_add I have done following things in cleanup function: unregister_chrdev_region

Posted in Character Driver | Leave a comment

Character device driver status by Vijay Partap

I have done module_param successfully.

Posted in Character Driver | Leave a comment

character device driver status

Done assignment No. 1 Done assignment No. 2 In assignment No. 3, unable to use module_param Done assignment No. 4 Also I have done rcs with various commands. Please guide me regarding module_param.

Posted in Character Driver | Leave a comment

problem in character driver —errors and warnings

these are the errors and warnings quoted by the kernel [root@averma nd1]# make make -C /lib/modules/2.6.38.8/build M=/home/amit/averma/drivers/nd1 modules make[1]: Entering directory `/usr/src/linux-2.6.38.8′ CC [M] /home/amit/averma/drivers/nd1/lk.o /home/amit/averma/drivers/nd1/lk.c: In function ‘scull_open’: /home/amit/averma/drivers/nd1/lk.c:26:68: warning: initialization makes pointer from integer without a cast [enabled … Continue reading →

Posted in Character Driver | Leave a comment

Project Status.

Working fine for singal Writer(Machine 1), Singal Reader(Machine 2), open/close file(Machine 3), and server(Machine 4). using sockets for IPC.

Posted in Character Driver, Uncategorized | Leave a comment

Thread synchronization done.

Running 100 applications in background writing and reading on Device… working absolutely fine.  

Posted in Character Driver, Linux Internals and System Programming | Leave a comment

driver’s problem…

driver is registered when i tried it in single file… but when i split the file in start.o and stop.o then it gives error ” -1 file exist “

Posted in Device Drivers | 1 Comment

todays work…

Implemented Drivers (Initialization & Registration), Implemented Posix Threads.  

Posted in Device Drivers | Leave a comment

Writing device drivers in Linux

Pre-requisites In order to develop Linux device drivers, it is necessary to have an understanding of the following: C programming. Some in-depth knowledge of C programming is needed, like pointer usage, bit manipulating functions, etc. Microprocessor programming. It is necessary … Continue reading →

Posted in Character Driver | Leave a comment

loop counting 1 extra…why?

char *a,*b; int c,n,i; printf(“enter the word to be find: “); a=malloc(10*sizeof(char)); b=malloc(100*sizeof(char)); printf(“Address of b %d”,b); fgets(a,10,stdin); puts(a); i=0; printf(“len of the str:%d \n”,strlen(a)); //for(i=0;*(a+i)!=”;i++) while(*(a+i)!=”) { printf(“length= %d\n”,i); printf(“length======== %c\n”,*(a+i)); i++; }

Posted in Device Drivers | 1 Comment

Serial Port Driver

Following is the code prepared by me.Only interrupt is left working on it.It is done for a loop back process.Any mistake … leave the comments #include”header.h” static int my_proc (char * buf, char ** start,off_t off, int count) { int … Continue reading →

Posted in Serial Port Driver | Leave a comment

Stepper Motor Interfacing with Parallel Port

We have Successfully Interfaced stepper motor with parallel port and tested following modes of operation: 1. Half step sequence Clockwise and Anti-clockwise. 2.Full step sequence Clockwise and Anti-clockwise. 3.Eight step sequence Clockwise and Anti-clockwise and successfully controlled the speed of motor … Continue reading →

Posted in Parallel Port Driver | Tagged | 5 Comments

Update of assignment

I have completed the 3 modes of parallel device driver i.e compatibility mode, byte mode and nibble mode. Working on the ECP and EPP mode. Successfully implemented man page creation and development. Working on customizing them as per the needs. … Continue reading →

Posted in Parallel Port Driver | Leave a comment

What is Device Drivers

People new to Linux often hear that it has excellent support for all kinds of cards and that the device drivers are stable and fast. Sometimes, though, setting up devices under Linux is often not all plug-and-play. Everything is a … Continue reading →

Posted in Device Drivers | Tagged , , | 1 Comment