Results 1 to 3 of 3
Hi,
I have written drivers for EEprom serial port address and interrupt configuration program for PCI card ,this PCI card get configures when i run this program.I wanted to run ...
- 11-13-2006 #1Just Joined!
- Join Date
- Nov 2006
- Posts
- 1
suse linux kernal programming
Hi,
I have written drivers for EEprom serial port address and interrupt configuration program for PCI card ,this PCI card get configures when i run this program.I wanted to run this program when kernal boots up ,Please specify the way to do under suse linux.
I tried several options like placing .exe file in /etc/init.d/rc5.d or /etc/init.d/rc3.d based on runlevel in /etc/inittab and rebooted system it didnot work,secondly by placing path of .exe file in /etc/rc.d/boot.local rebooted ,it didnot work.
- 11-13-2006 #2
you can't run .exe file in Linux. use Wine to execute .exe files.
But i dont think its possible to run .exe at boot up through wine.
casperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 11-13-2006 #3Just Joined!
- Join Date
- Sep 2005
- Location
- China
- Posts
- 37
Your driver is a executable file? The Linux kernel only support the build-in driver or modules. The modules is named with “.o” extention. You can find them @ /lib/modules/<your kernel version>/. The configuration file is /etc/modprobe.conf.
1)You can download a kernel from kernel.org.
2)Extract it to /usr/src/ Copy your driver source ".c" file to the /usr/src/kernel-2.6.x.x/drivers/char(if it is a char device or it is a block device you may cp it to ../block).
3)And then edit the file ./config.in file to add your driver to the config file then you can see them in the menuconfig later. Add the lines seems like this "dep_tristate <name> CONFIG_VARname $dependence" You can copy the lines of other devices and make some change here.
4)Edit the /kernel/drivers/char(or block)/Makefile. Add “obj-$<VAR> +=module_name.o”, of course you can copy the style of other lines.
5) make menuconfig, you can make your driver as build-in or mudule. Mudules is suggested. It is easier for you to debug. You can use insmod or rmmod to insert it or remove it from kernel.
6) make dep
7) make modules
8) Find your driver has been compiled here /kernel/drivers/char/<your_driver_name>.o
9) Insmod to insert it to kernel to verify if it works.
10) CP it to /lib/modules/<your kernel version>/<proper folder>/
11) Edit the /etc/modprobe.conf, add your modules to be loaded automatically by kernel.
For more details, you may search other paragraph with google.


Reply With Quote