Ubuntu :: Debugging Device Driver In Kernel Mode
Nov 10, 2010
I am writing a device driver on x86 machine,Ubuntu distribution,kernel version 2.6.35.I want to debug my driver in kernel mode.I tried KGDB(Kernel Level Source Debugger).But support is given for kernel version 2.6.13.But I want to make KGDB work on version 2.6.35.Could anyone help me where can I get help to make KGDB work on 2.6.35 version?Or is there any other method to debug my driver using some other tool?
View 1 Replies
ADVERTISEMENT
Jul 23, 2010
I just got finished installing Ubuntu on 2 computers. I muddled my way thro the panels not installing. Now I would like to hook up a dual mode camera. Vivatar V15 . I know very little about Linux, but as having fought with Microsoft Windows for years I find it refreshing to see Ubuntu. I need to know about device drivers. Ubuntu does not auto detect the camera. The Model of the Camera isV15 Freelance.
View 1 Replies
View Related
Jul 9, 2010
Quote:
Originally Posted by anishakaul
When you copy paste the Makefile from post 7, make sure you delete the spaces shown in RED below by Backspace key and then press TAB
Code:
obj-m += hello.o
all:
........make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
........make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
how to write a device driver for USB
View 9 Replies
View Related
Oct 11, 2010
I have created a Radius startup script in /etc/init.d for Debian which looks like this:
Now this works but when I boot my server it shows as ready to process requests and it doesnt login. I cant get a login prompt. If I do a CTRL C to try close this it doesnt work and just shows CTRL C on the screen, I can type in kill radius but nothing happens.
I guess its because my script is in debugging mode, most of the suggestions for a script said I should use:
However the radiusd a doesnt work and if I try to run using command radiusd in it comes up and says invalid command and I dont have the option to use
So if this script runs on my server, I could connect to the server through a putty session via port 22 and log on fine and do what I need too, but if I try to connect to the server directly after boot its just sitting on ready to process requests and I cannot do anything when directly at the server. On one particular server I didnt have the network confg right so I couldnt putty to it and now Im a bit stuck. Will I need to rebuild my server? As I canït break out of this ready to process requests and I cannot login as its just sitting there, I have tried connecting through serial management via my laptop but I cant do anything this way either the only way I could do anything was if I could get through to the server on putty.
There must be a way when directly at the server to cancel the radius and get logged in? As Ive mentioned CTRL C doesnt work. I can get to the ok prompt but not sure what command to use and if I could change the network config at the ok prompt or if I could somehow cancel the startup script at the ok prompt? I thought I could use the init commands to start the server without the script starting but the init commands don�t work and the server just sits there.
Also I guess I shouldnt be using radius X in my startup script, to prevent this problem is there something else I should be using? I tried using radius x (the small x) and I hit enter and then no process for radius starts .
View 1 Replies
View Related
Apr 27, 2011
i am trying learn to program linux kernel modules and smoothly transition in device driver programming. I have a year and a half worth of programming in C and have been using linux for years!! But my question is how do i compile a module? I got as far as coding it but am stuck as of now.
View 2 Replies
View Related
Dec 24, 2010
I am trying to do remote debugging of kernel 2.6.30 form fedora 11 (2.6.29).For this gdb and kgdb are there in the kernels. But am not able to use it.I have not any manual for this.so plz tell me the procedure of remote debugging.
View 7 Replies
View Related
Jun 13, 2011
I need to debug "ls". I downloaded coreutils and compiled them in debug mode."ls" uses readdir() kernel API to fetch files/directories from a file system. readdir() fetch data from any file system (suppose FAT or ext3).I have debug version of FAT/ext3 and installed, I also have debug version of coreutils (ls) as well.Now I want to debug from "ls" to "FAT/ext3 readdir()".How to do that?
View 6 Replies
View Related
Dec 3, 2009
I'm trying to do some kenel debugging (at runtime). For very basic debugging, I've inserted some printk() statements in my customized kernel source. Now I would like to do a full-dump of some data structures (struct sk_buff, ...) in different functions (e.g. netif_rx(), ip_rcv(), __udp4_lib_rcv(), ...), and what kind of locks are required to prevent "overlapping" of dumped data)?
View 1 Replies
View Related
May 21, 2009
Does anyone know how can one improve his debugging skills or how can one narrow down the problem and try to get to the solution ASAP.Or rather how once should approach a problem.I know this is a bit vague question but I want to know how you people approach?
View 3 Replies
View Related
Aug 3, 2010
I've compiled 2.6.35 for my eeepc, but I have noticed that resulting .deb file is 30mb large. After investigating i saw that modules (and maybe kernel) are compiled with debugging symbols enabled.I've checked my lenny router and modules there are without debugging symbols.So stock 2.6.26 from lenny comes without debugging symbols and linux-image .deb file is around 20mb.Stock 2.6.32-5-686 from squeeze comes with debugging symbols enabled - linux-image .deb here is 26mb. (I have used 2.6.32's .config file to build my kernel, then i did make oldconfig.)I guess this is what increase my kernel size, but how to disable it?Or maybe enable stripping of debugging symbols.
View 3 Replies
View Related
Jan 31, 2010
I am having a problem with lockups on a new FC12 box (dual core 3 ghz, 4 gb memory,HDPVR,nvidia 8400gs). This happens reliably when replaying MythTV videos, but also randomly at other times using other apps (I suspect also boot but I can't be sure; it just occasionally stalls part way through the boot display).
Usually but not always this is accompanied by a kernel panic (caps lock + scroll lock lights flash on keyboard).
I did a core dump with kdump and it reports:
Thread 1 (<main task>):
Cannot access memory at address 0xffff880028025b70
I am in the process of running memtest86+ right now, and it's been through several passes without errors. I know it needs to run more, but given the reliability of this problem with MythTV video playback I am wondering if the problem could be in the video card memory.
Does anyone know of a linux (or bootable) tester for video memory? All I am able to find are some things for windoze like this.
Also is there any way to track that address from the core dump back to a physical location?
View 2 Replies
View Related
Mar 22, 2010
I installed Centos 5.4 on my Pentium E5300 new comp, but I need IPX support in my work. It's simple - ipxutils and ncpfs from Fedora Core and new kernel with ipx support. I copied kernel config from /boot folder and activate ipx, ntfs support, and choose processor core 2 duo. New kernel (2.6.26) works OK, but I got one problem - when start it still shows message: "kernel: HUB 1.0:1.0 unable to enumerate USB device on port 1 (or 2, 3)" and stops after logging (text mode)
I got 2 USB devices connected - printer HP D5160 PhotoSmart and Scanner A3 USB Mustek, and I know scanner cause that messages but I don't understand why. Kernel config is the same like that from distro kernel (almost - ipx, ntfs and proc), but distro kernel doesn't do that. So I got 2 questions:
1. Why
2. What to do to stop that (disconnecting devices on boot time is not a solution)
View 5 Replies
View Related
Sep 19, 2009
I am currently using fedora 11 kernel 2.6.29 version, i wanted to write device driver for usb to detect my own device. My project is radio with computer. My fm radio get connected to usb port so i need to write h/w interfacing program.
View 1 Replies
View Related
Nov 10, 2010
The error "USB device 6 (vend/prod 0x603/0xf2) is not claimed by any active driver." is in dmesg every time I connect my Logitech keyboard to my system. I also tried (all with the same error):
- Memory stick
- DVD-burner
- Compaq mouse
View 3 Replies
View Related
Jul 28, 2010
I have installed live cd on usb pendrive. Everything works great. How can I find out which device driver it is using? Where are the device driver files stored? How do you specify the device driver when mounting a device?
View 3 Replies
View Related
Nov 18, 2010
I've looked today on my logs /var/log/message and I find device eth0 entered promiscuous mode I don't remember putting eth0 in promiscuous mode I'm connected to the net thru a router how do i turn that off ?
View 1 Replies
View Related
Nov 24, 2010
With the recent upgrade kernel, my ATI driver can no longer work. After upgrading to the new kernel, upon reboot I would get stuck at the "checking battery status" and can't boot into kubuntu.
I'm running Kubuntu 10.10 64 on intel i5 with radeon hd 4870.
So I thought I messed something up since I was fooling around with conky script the day before. I did a clean install of kubuntu 10.10 64 and reset all my settings and my files. At this point, everything works smoothly and I can reboot multiple times without a problem.
I proceeded to install the Radeon catalyst driver following the documentation, which worked perfectly for me on the previous kernel. After rebooting, I can no longer get pass the "checking battery state" black screen. I had to boot into safe book, uninstall all fglrx and also delete xorg.conf to be able to boot back in normally.
View 5 Replies
View Related
Jul 4, 2010
my problem is on installing nvidia driver on fc12 32bit but, first of all, as i understood the pae kernel requires more than 4gb of ram,i have a 2.2 ghz cpu with 2 gb ram,but when i run command:uname -r it answers: 2.6.31.5-127.PAE [i have fc12 32 bit] when we try to download linux we have a 32bit edition or 64bit edition,do we have an edition which is only for pae? or when we install for example the 32bit edition on a computer with more than 4gb of ram then the kernel automatically will change to be a pae kernel??
View 10 Replies
View Related
Aug 30, 2010
I'm attempting to install the driver for my atheros AR8131 PCI-E Gigabit Ethernet adapter (in my Lenovo laptop) on my newly installed RHEL5 system (it's not currently being recognized).
I tried using: 'make install' but hit an error "Makefile:61: *** Linux kernel source not found."
After this, I tried: 'sudo yum install kernel-devel kernel-headers'
To rectify this, but hit this error "No package kernel-devel available" (and the same for the headers). What should I do?
View 5 Replies
View Related
Aug 31, 2010
I write the network driver. Transmission of packets in user space I do through netlink socket`s. In user space there is a handling of packets and their transmission on other device (however, it isn't important).
Problem in that any time, packets through the driver in system, and is reverse, are transferred normally. But then there comes the moment when the kernel crash. If to look in syslog it seems to me that comes deadlock. Also I think that it is related with netlink socket`s.
I can't find the information on that anywhere how correctly to use netlink socket`s in kernel space. Can at you will any a reason into the account of synchronization of sockets and the driver in kernel space?
I can give the driver code if it is necessary.
View 2 Replies
View Related
Oct 1, 2010
I installed the latest kernel liquorix (2.6.35) but when i want to install the Nvidia driver downloaded on the Nvidia website (256.53), i have an error message because Nvidia doesn't found the kernel source tree.
I install linux-image-2.6.35-6.dmz.2-liquorix-686_2.6.35-16_i386.deb, linux-headers-2.6.35-6.dmz.2-liquorix-686_2.6.35-16_i386.deb and build-essential. I don't understand why the installation doesn't works.
View 1 Replies
View Related
Oct 31, 2010
How I do detect the usb device when I'm on cli mode? This is possible or not?
View 2 Replies
View Related
Aug 17, 2010
I have enabled USB -OTG as Both Host and peripheral. USB - OTG host mode is working fine but USB - Device mode is not working...I'm unable to load g_file_storage.ko,I get below error:
View 2 Replies
View Related
Jul 24, 2010
I have been using Ubuntu since 7.04. It is really an amazing experience. I have some 8.10 machines which I use for my students and i don't want to change it right now to different version. On the other hands I want to install USB Modem (Tata Photon+) on Ubuntu 8.10. I have seen its working fine on Ubuntu 9.04 and even better with Ubuntu 10.04.
How to install drivers in Ubuntu 8.10 for proper support with Tata Photon. right now my usb modem is detected as usb storage. I have also tried the usb-switchmode stuff following some articles available on net. But with no real success.
I want to know the exact difference in 8.10, 9.04 and 10.04 as far as usb modem driver installation is concerned.
Or can I configure Ubuntu 8.10 in such a way that I can use USB Modem (Tata Photon) like we do in Ubuntu 10.04.
View 4 Replies
View Related
Dec 11, 2010
since ever, i face the problem, that i cannot continue using my computer properly after i suspended it to ram and wake it up again.Fedora 14, 64-bit, most recent and stable kernel
mainly KDEMotherboard: Gigabyte P55A-UD4Hard DrivesSAMSUNG HD501LJSAMSUNG SP1213NI can figure out, that everything works fine, but with a severe delay.Having a look at my led, signifying hard drive activity, it flases once a second for approx 10ms. frequency is very constant.so i performed several checks:firstly, hdparm -i, there is no difference before and after sleeping mode:
Code:
[root@bobbl-pc bobbl]# hdparm -i /dev/sda
/dev/sda:
[code]...
View 1 Replies
View Related
May 18, 2010
Our BIOS use AMI,Memory:1GB,CPU:Z510,
then install ubuntu 9.04,GMA500 Driver,but refer Inf is:
The following error was encountered. You may need to update your configuration to solve this;
(EE) psb(0):THE STOLENbASE IS :OX1FC00000
(EE) psb(0):Screenindex is:0;
fbphys is :0x1fc00000;fbsize is:0x003bf000
(EE) Psb(0):Could not find a valid initial configuration for this screen;
(EE) screen(s) found, but none have a usable configuration;
, then I try to modify the Stolen Memory to 8MB,but result no change; I doubt BIOS need do some change ,but don't know how to do,
View 1 Replies
View Related
Aug 5, 2010
I have 4GB of RAM in my machine, and I am using 32Bit Ubuntu Lucid, I was wondering if there were any disadvantages of using the PAE mode version of the kernel, as that would allow me to use the whole of my memory instead of 2.9 GB.
View 8 Replies
View Related
Jan 14, 2011
How to do device driver programming in Ubuntu 10.04?
View 2 Replies
View Related
Jan 10, 2010
I can't go into text mode after latest kernel update. CTRL-ALT-F1 doesn't work. Actually, all CTRL-ALT-F1 to F7 work very strange. For example... When I click CTRL-ALT-F2, it close all my windows and screen flash
View 1 Replies
View Related
Jan 8, 2010
how to detect and install a mic device driver? i only plug and play the mic in xp.
View 1 Replies
View Related