Re: Linux on Bochs

2008-12-26 Thread sahlot arvind
Thanks for your reply. I was trying to do all that on FC9 but unfortunately my system crashed and I have installed Ubuntu now. I am new in dealing with things like setting up toolchain etc. I got gcc-4.3.2 installed when I installed Ubuntu. I am trying to build gcc-3.3.3 so that I can use that and

why would someone reinvent the kernel space read/write routines?

2008-12-26 Thread Robert P. J. Day
recently perusing someone's module code and ran across the following definitions for reading/writing either 8, 16 or 32 bits: unsigned char read8(void* address) { return *((unsigned char*) address); } and so on for read16 and read32, as well as the converse for writing. i was a b

Re: Unknown symbols...

2008-12-26 Thread niamathullah sharief
when i use "modprobe" i am getting this errorshar...@sharief-desktop:~$ modprobe ehci-hcd FATAL: Module ehci_hcd not found. --- On Fri, 26/12/08, shark huang wrote: From: shark huang Subject: Re: Unknown symbols... To: alrif_1...@yahoo.co.in Cc: "Kernelnewbies" Date: Friday, 26 December, 200

Re: Unknown symbols...

2008-12-26 Thread niamathullah sharief
yes Thanks for your replynw inserted the usbcore module...after that i didnt any message in "dmesg"...even though am getting same errorwhen i use "modprobe" am getting the below error  : shar...@sharief-desktop:~$ modprobe ehci-hcd FATAL: Module ehci_hcd not found. --- On Fri, 26/12/08

Re: filter drivers in Linux

2008-12-26 Thread Greg KH
On Fri, Dec 26, 2008 at 04:01:02PM +0530, Srinivas G. wrote: > Actually my requirement is a bit different. I wanted to develop my > custom driver in USB stack, which wanted to modify the data transmitted > and received by storage class driver. > > Here is the place of the driver I am planning to i

keyboard input

2008-12-26 Thread Elias Kopsiaftis
How does linux handle keyboard input? I dont mean how the interrupt works, I mean where does it store the keystrokes? Is there some global buffer that it just puts them in until someone reads from it? I did some I/O programming in school, and thats how we did it, but we used the UART and never touc

Re: Problem with Modules

2008-12-26 Thread pradeep singh
On Fri, Dec 26, 2008 at 2:22 PM, niamathullah sharief wrote: > ..please help me what to do...Actually i disabled the entire USB support > when i compiled the module...now i have to do install manually..Noe there is > no USB directory itself...what to do for that.Kindly help me..i am > getting

Re: Driver for TV card

2008-12-26 Thread Samiullah Khawaja
Thanks, It is very helpful. On Fri, Dec 26, 2008 at 5:34 PM, Thomas Petazzoni < thomas.petazz...@free-electrons.com> wrote: > Le Thu, 25 Dec 2008 19:35:05 +0500, > "Samiullah Khawaja" a écrit : > > > I have a TV tuner card with a remote. > > I want to write a driver for this remote, so t

Re: Howto acquire shared interrupt line?

2008-12-26 Thread Denis Borisevich
2008/12/26 Thomas Petazzoni : > Le Fri, 26 Dec 2008 15:44:28 +0300, > "Denis Borisevich" a écrit : > >> When I call request_irq() with IRQF_SHARED as an argument I get >> -EINVAL. Any ideas? > > In request_irq(): > >if ((irqflags & IRQF_SHARED) && !dev_id) >return -EINVAL;

Re: Unknown symbols...

2008-12-26 Thread shark huang
Hi: On Fri, Dec 26, 2008 at 5:56 PM, niamathullah sharief < alrif_1...@yahoo.co.in> wrote: > Hello...when i try to insert "ehci-hcd" with insmod i am getting this error > > To use modprobe is better. > r...@sharief-desktop:/home/sharief/Desktop/drivers/host# insmod > ehci-hcd.ko > insmod: error

Re: Howto acquire shared interrupt line?

2008-12-26 Thread Thomas Petazzoni
Le Fri, 26 Dec 2008 15:44:28 +0300, "Denis Borisevich" a écrit : > When I call request_irq() with IRQF_SHARED as an argument I get > -EINVAL. Any ideas? In request_irq(): if ((irqflags & IRQF_SHARED) && !dev_id) return -EINVAL; Sincerly, Thomas -- Thomas Petazzoni, Fr

Re: Howto acquire shared interrupt line?

2008-12-26 Thread Denis Borisevich
2008/12/26 Thomas Petazzoni : > Le Fri, 26 Dec 2008 15:05:28 +0300, > "Denis Borisevich" a écrit : > >> In my driver init function I try to register interrupt handler with >> request_irq(), but always get -EBUSY. This interrupt is shared with >> ahci driver. I use kernel version 2.6.24.7. Is there

Re: Driver for TV card

2008-12-26 Thread Thomas Petazzoni
Le Thu, 25 Dec 2008 19:35:05 +0500, "Samiullah Khawaja" a écrit : > I have a TV tuner card with a remote. > I want to write a driver for this remote, so that i can use this > remote do various things on linux, like playing music, starting > some programs, etc. Is there any one who ca

Re: Unknown symbols...

2008-12-26 Thread Thomas Petazzoni
Le Fri, 26 Dec 2008 15:26:44 +0530 (IST), niamathullah sharief a écrit : > Hello...when i try to insert "ehci-hcd" with insmod i am getting this > errorr...@sharief-desktop:/home/sharief/Desktop/drivers/host# insmod > ehci-hcd.ko insmod: error inserting 'ehci-hcd.ko': -1 Unknown symbol > in modul

Re: Howto acquire shared interrupt line?

2008-12-26 Thread Thomas Petazzoni
Le Fri, 26 Dec 2008 15:05:28 +0300, "Denis Borisevich" a écrit : > In my driver init function I try to register interrupt handler with > request_irq(), but always get -EBUSY. This interrupt is shared with > ahci driver. I use kernel version 2.6.24.7. Is there any other way to > register the inter

Re: Linux on Bochs

2008-12-26 Thread Thomas Petazzoni
Le Fri, 26 Dec 2008 05:45:17 -0500, "sahlot arvind" a écrit : > I am trying to use bochs for learning linux kernel. But I am unable > to build bochs from its source code. You should probably try to use Qemu , it has a much larger user and developer base than Bochs, and

Howto acquire shared interrupt line?

2008-12-26 Thread Denis Borisevich
Hi everyone! In my driver init function I try to register interrupt handler with request_irq(), but always get -EBUSY. This interrupt is shared with ahci driver. I use kernel version 2.6.24.7. Is there any other way to register the interrupt handler? Or maybe I'm doing something wrong? Thanks in a

Re: Linux on Bochs

2008-12-26 Thread pragnesh radadia
On Fri, Dec 26, 2008 at 4:15 PM, sahlot arvind wrote: > Hi Everyone, > > I am trying to use bochs for learning linux kernel. But I am unable to build > bochs from its source code. > I am getting a compile time error. I am trying to build bochs-2.1.1 with > gcc-4.3.2. what is the error? > I have tr

Unknown symbols...

2008-12-26 Thread niamathullah sharief
Hello...when i try to insert "ehci-hcd" with insmod i am getting this errorr...@sharief-desktop:/home/sharief/Desktop/drivers/host# insmod ehci-hcd.ko insmod: error inserting 'ehci-hcd.ko': -1 Unknown symbol in moduleoutput of  "dmesg" is :[ 196.416023] ehci_hcd: Unknown symbol usb_hcd_pci_suspe

RE: filter drivers in Linux

2008-12-26 Thread Srinivas G.
> On 18:32 Wed 24 Dec , Srinivas G. wrote: >> Is there any concept of filter driver in case of Linux like in windows >> OS. In windows we can write a filter driver to enhance the behavior of >> existing driver and this filter driver can be attached to main driver >> either above or below. B

Linux on Bochs

2008-12-26 Thread sahlot arvind
Hi Everyone, I am trying to use bochs for learning linux kernel. But I am unable to build bochs from its source code. I am getting a compile time error. I am trying to build bochs-2.1.1 with gcc-4.3.2. I have tried with gcc-3.4.2 and gcc-3.4.0 as well. The error which comes while using gcc-4.3.2 g

Re: Problem with Modules

2008-12-26 Thread niamathullah sharief
...please help me what to do...Actually i disabled the entire USB support when i compiled the module...now i have to do install manually..Noe there is no USB directory itself...what to do for thatKindly help me..i am getting the   same error.. --- On Wed, 24/12/08, pradeep singh wrote: