I tried to load a simple driver program. I am using RHEL5. When I tried to compile my 'driver.c' program it shows the following error:
[root@jameslee ~]# gcc -c device.c
device.c:1:25: error: linux/module.h: No such file or directory
device.c: In function 'init_module':
device.c:6: error: 'KERN_INFO' undeclared (first use in this function)
device.c:6: error: (Each undeclared identifier is reported only once
device.c:6: error: for each function it appears in.)
device.c:6: error: expected ')' before string constant
device.c: In function 'cleanup_module':
device.c:12: error: 'KERN_INFO' undeclared (first use in this function)
device.c:12: error: expected ')' before string constant
bash-4.1# ./configure checking for a BSD-compatible install... /bin/ginstall -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk
i have to find time in nanosecond of a particular process and for that i am using clock_gettime() function.i tried different codes i got from net but getting same error Quote:error: �CLOCK_PROCESS_CPUTIME_ID� undeclared (first use in this function)i have included relavent header file of time also. and complied the whole code that i got from net. that was working fine and giving output. but when i use some of the relavent code that i need it gives me this error. plz tell me am i missing something aur using the code in a wrong way?heres my code!
i m doing a program to open a file, however, there is error saying that 'File' undeclared. but I thought File is a type like int or char, isnt it? below is my codes:
I'm learning how to program kernel drivers, and I'm making a hello world module for that. But I can't find the cause of some errors... My module as three files:
all i want is loading a simple c++ program like hello world with this driver. everything works fine except it doesnt start the program. because ret returns with 0 i think the program works fine but I think i messed up something about how to start the c++ program. i used this example for my program but it doesent work too.
[URL]
is there anybody out there who can give me a hint what i messed up? i use ubuntu with 2.6.32 Kernel.
I was going through this Lex/YACC tutorial: [URL]... and I was working along with it. The Lex examples worked fine, but the YACC one quit white compiling
Every single image i try from opensuse 11.2 on usb stick i have the same error: No devices matches MBR identifier "hex number" Before asking me for fdisk or whatever, my MD5 sums are all right and i tried both unetbootin and "dd if=path of=usb_path" methods.
I have a program with a variable named current, but it is not declared. The syntax is current -> othervariable. Theoreticaly there should be no problem with this program. Just wondering what woudl cause this? Which linux include file is current supposed to be declared in?
With my limited knowledge about integrating kernel modules into the initrd image. The issues is that currently when we are trying to install the RHEL5.4 image onto a 64 bit box we need to load the megasr driver initially before the ahci driver. Hence we use a seperate diskette for the same. We want to integrate the megasr files into the RHEL image itself.
i had put my kubuntu to sleep on ram, when i powered up again i lot power, now when i boot into kubuntu i have no networkif i do an ifconfig i don't see eth0 anymorealso sudo ifup eth0 returns an error saying, 'ignoring unknown interface'
I use a RaLink RT3090 Wireless PCIe card. When I installed Slackware, the required driver was not in the Linux kernel, but a Linux driver did exist, so I downloaded, compiled, and installed it.Initially, when typing lspci -v, I got:Kernel driver in use: rt2860Kernel modules: rt2860sta, rt2800pcifor my card. The driver I compiled was named rt3090sta, and if I typed modprobe rt3090sta, it would not load. Eventually, I discovered that to get it to work, I had to type the following commands.
And yes, if I do not enter rmmod rt2800pci, and then modprobe rt2800pci at the end, it will not work. I would like to know how to get rt3090sta toload by default instead of rt2860sta. After I've done this, lspci -v gives me: Kernel driver in use: rt2860rnel modules: rt3090sta, rt2860sta, rt2800pci
I have broadcom wireless card in my system. I got the driver from broadcom site. I compiled it against my kernel and the module works fine. How could I automatically load this driver at startup. I followed the instruction found in the driver source README file. But its not working. The steps I followed are as follows:
The same steps I followd in 2.6.26 kernel and it worked fine. Now its not working in my new kernel 2.6.32.For manually loading it I have to remove the ssb driver and the download this one. Otherwise it will not work. So I tried adding ssb to /etc/modprobe.d/blacklistle. But that driver loads during startup. So each time I have to manually unload the ssb driver and insert the new one.
I've been configuring a kickstart installation of Fedora 14, and everything was working fine on a slightly older Dell Precision 490. The machines we're actually going to use, are Dell Precision T7400, and when I tried on thoseit had some issues with the SAS controller, and is unable to see the hard drive in the machine. I get the following error (see attached dmesg output for more details):
Code: [ 4.616263] sd 8:0:0:0: [sda] Attached SCSI removable disk [ 22.766118] mptbase: ioc0: WARNING - Issuing Reset from mpt_config!!
loading zd1211 linux driver after I booted up into BT4. The only command I figure out is tar zxvfZD1211LnxDrv_2_16_0_0.tar. From here I don't know what to do? Can someone give step by step commands to walk me thru the loading process?
I just recently installed a fresh copy of 9.10 server on an older machine I had laying around to use as a router and home server. Everything is setup and I'm on the net on it, except for some reason the Netgear GA311 I'm using for the internal network doesn't seem to be loading a driver. I've tried modprobing 8139 (which it says isn't found) as well as 8139too, 8139 too goes through ok, but it doesn't make any change, with lshw still claiming that it is "unclaimed". It seems that the Realtek chipset this card is based on is extremely compatible with Linux and I'm having trouble finding anyone with a similar issue with it.
I bought a new NVIDIA GeForce 6600GT video card for this PC recently and now whenever I boot Ubuntu 9.10 Live I can't change the screen resolution from 640 X 480. I get this message to the effect that the driver is restricted and not free software. When I try to download it and use it it says I can only activate it after a reboot, but I guess it means after rebooting an installation of Ubuntu, not the live cd since it never takes.
Ubuntu recommends NVIDIA accelerated graphics driver 185, so I went to NVIDIA's web site and downloaded NVIDIA-Linux-x86-185.18.36-pkg1.run (and NVIDIA-Linux-x86-190.53-pkg1.run since I think it's the newest, at least when I enter GeForce 6 Series and Linux 32-bit in the driver download search it's what comes up). I noticed that at the beginning menu of the Ubuntu 9.10 Live cd, when you press F4, the option to load from a driver disk is there. I was hoping this means I could just put one or both of the above files on a cd, insert it into the other disk drive and select that option.
I have a strange IDE device that isnt recognized during boot, so I installed via network but after the installation the DVDROm Drive is still not recognized. I found some floppy images with the driver but dont know how to install them:
Currently I am attempting to install Centos 5.2 64bit onto a Supermicro X7DCL-3 motherboard based machine. The Raid recognizes the HDD that's been installed into it, however, the drivers for the raid are not included in the install. After contacting Supermicro I've been supplied with a driver package that should fix the problem.[URL]However, I am still having trouble using the package in order to find the HDD (The only HDD in the machine) that is on the raid.I think I'm doing something that's should be fairly simple, but am screwing it up pretty bad.
I have successfully installed the Nvidia driver on my FC13 system that is using an Nvidia NV44 (Ge 6200) card. It seems to be working as I see the nvidia driver when I do a lsmod | grep nvidia and the glxgears program works as well as the nvidia-settings program.Basically, I did the following:
I have a native 64 bit 11.3 system with vmware 7.0x as an application. I have installed a win 7 guest which works fine 99% of the time. But if I try to plug usb headphones into my system after I boot win 7, it will crash entire system, but if I plug headphones into system before loading vmware, this does not happen. Is this a kernel issue?
Background: I was attempting to install new Nvidia drivers. When they didn't work, I madly attempted to uninstall, reinstall, different drivers and configuration files following advice posted on forums. There were many, many installs and restarts during this process, causing a variety of problems and errors. Currently, I have purged all the nvidia drivers except the nvidia-current ones with the xorg.conf file generated by running nvidia-xconfig.
Current problems: Boot process gets to purple Ubuntu screen with 5 changing dots beneath, but hangs there forever. Pressing esc reveals that the boot process gets to "checking battery state [ok]", but fails to load the login screen. Pressing ctrl-alt F1 allows me to log-in and startx successfully starts Xorg with the proper Nvidia drivers.Question:How can I fix things so that the system does not hang at the Ubuntu loading screen? Or, how can I diagnose what is causing the error?I suspect there may be a problem with the xorg.conf file that's being generated by nvidia-xconfig. Please take a look:
Code: # nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 1.0 (buildmeister@builder75) Thu Apr 22
I hope to get your suggestions to solve my problem. I install Ubuntu8.10 in my notebook last week.I should install drcom-1.4.7 to get through to the internet,while i tried many times but failed like this:
kernel cannot support the drcom version.so i tried to install drcom-1.4.4,but problem also occured:
readconf.c: In function __parseopt: readconf.c:489: error: LONG_MIN undeclared (first use in this function) readconf.c:489: error: (Each undeclared identifier is reported only once readconf.c:489: error: for each function it appears in.)
I've made a bootable USB with 10.3 live CD. I can boot successfully using a 10.3 live CD as long as the USB stick is not plugged in, but if I try to boot from the USB stick, or from the CD when the USB stick is plugged in, I get "No devices matches MBR identifier: !" where the bit after the colon is 2 spaces followed by the exclamation mark. I've seen this message reported elsewhere but never with a blank for the MBR id.I'm running on a Dell Insprion 9100 with 1.5G RAM.
I am looking to understand what would be the optimal or standard way to create a unique id for music files. Something like md5 sum, but taking into consideration that the music files contain some metadata that can be changed.At the end of the day I would like to create a backup database containing all my ratings for the songs. It should be independent from the filename and location.I have seen the libofa, but there does not seem to be much information about it. It is integrated into some GUI tools including Amarok, but they do not do what I want. PUID from Musicbrainz is explicitly closed source based.