Re: Requesting shared IRQ?

2009-02-18 Thread Rizvan S
On Wed, Feb 18, 2009 at 12:17 AM, Matthias Kaehlcke matth...@kaehlcke.netwrote: Hi Ole, El Tue, Feb 17, 2009 at 05:51:35PM +0100 Ole Loots ha dit: I want to handle an Interrupt on an ARM processor... (at91). The Interrupt is already handled by the module at91_timer (compiled into

New in kernal programming

2009-02-18 Thread abhish agarwal
Hi All, I am new in kernel programming. from theory point of view i have gone through bash 2-3 times. But where to start and what tools do i need for that i dont have much idea.I was thinking to implement one scheduling algorithm from starting point of view but i dint get much information on

Re: debugging kernel hang (can't type anything)

2009-02-18 Thread Sukanto Ghosh
Hi Peter, Accidentally I came upon this article: http://stackframe.blogspot.com/2007/04/debugging-linux-kernels-with.html With the help of it I could get a stacktrace when the kernel hung. The problem was a stupid one: I was holding a spin_lock and then I called some function that again tries

Re: New in kernal programming

2009-02-18 Thread Anuz Pratap Singh Tomar
thinking to implement one scheduling algorithm i dint get much information on net you didn't look hard. bash 2-3 times that IMHO wont help in implementing scheduling algorithm On Wed, Feb 18, 2009 at 2:54 PM, abhish agarwal abhish_...@yahoo.co.inwrote: Hi All, I am new in kernel programming.

block device driver request structure --- doubt

2009-02-18 Thread nidhi mittal
hi all i was practising writing block device driver from linux device driver 3rd edition but was confused as it gives two implementation to transfer data from device 1.without using bios 2.using bios in ist implementation cut short version of book code is - while ((req =

Re: New in kernal programming

2009-02-18 Thread Henrik Austad
On Wednesday 18 February 2009 10:24:24 abhish agarwal wrote: Hi All, Hi! I am new in kernel programming. from theory point of view i have gone through bash 2-3 times. I'm not sure if bash is the most relevant experience though.. C and bash are a bit different. But where to start and what

Re: debugging kernel hang (can't type anything)

2009-02-18 Thread Peter Teoh
On Wed, Feb 18, 2009 at 3:58 AM, Sukanto Ghosh sukanto.cse.i...@gmail.comwrote: Hi Peter, Accidentally I came upon this article: http://stackframe.blogspot.com/2007/04/debugging-linux-kernels-with.html With the help of it I could get a stacktrace when the kernel hung. The problem was a

Re: New in kernal programming

2009-02-18 Thread Henrik Austad
Shaz, Now I'm being picky, if you're insulted, sue me :- I guess the attached book can help a lot but its not the ultimate guide ;) Please don't do that. If the list has 100 subscribers, you've just sent out 120MB of data that poor nl.linux.org has to move. It's better to put it somewhere

Re: New in kernal programming

2009-02-18 Thread Rohit Sharma
Hi Abhish, If you want to do kernel programming, just get a feel of linux first. Become familiar with commands. Read some nice books like BLP, UTLK and Linux Kernel Development. After you are done with the books you will have a good idea of kernel. Don't forget to learn kernel module programming.

Re: sector size in block device drivers

2009-02-18 Thread Greg Freemyer
On Wed, Feb 18, 2009 at 1:06 AM, nidhi mittal nidhimitta...@gmail.com wrote: i m sorry but can someone give a direct clarification i m unable to get my answer ... its going in different directions ...but not able to get me through my doubt ... i m sorry may be my understanding is lacking

Re: New in kernal programming

2009-02-18 Thread Shaz
On Wed, Feb 18, 2009 at 8:00 PM, Henrik Austad hen...@austad.us wrote: Shaz, Now I'm being picky, if you're insulted, sue me :- I guess the attached book can help a lot but its not the ultimate guide ;) Please don't do that. If the list has 100 subscribers, you've just sent out 120MB of

Re: New in kernal programming

2009-02-18 Thread Manish Katiyar
On Wed, Feb 18, 2009 at 8:49 PM, Shaz shazal...@gmail.com wrote: On Wed, Feb 18, 2009 at 8:00 PM, Henrik Austad hen...@austad.us wrote: Shaz, Now I'm being picky, if you're insulted, sue me :- I guess the attached book can help a lot but its not the ultimate guide ;) Please don't do

Re: kgdb do not stop in my module ( does not see functions from mymodule.ko)

2009-02-18 Thread Mulyadi Santosa
On Wed, Feb 18, 2009 at 1:36 AM, Lev Olshvang l...@vboxcomm.com wrote: Hello List, I am trying to debug my module using kgdb After some retires I made a working host -target serial connection I use Ubuntu 7.10 as host, and Kernel 2.6.26 on target. The target indeed stops in boot waits for

Re: New in kernal programming

2009-02-18 Thread Srdjan Todorovic
Hi, 2009/2/18 Henrik Austad hen...@austad.us: I guess the attached book can help a lot but its not the ultimate guide ;) Please don't do that. If the list has 100 subscribers, you've just sent out 120MB of data that poor nl.linux.org has to move. It's better to put it somewhere and add a

Re: Recovering Partition using linux

2009-02-18 Thread Mulyadi Santosa
On Tue, Feb 17, 2009 at 11:42 PM, rishi agrawal postri...@gmail.com wrote: Hello Everyone, I had a 60 Gb partition of type NTFS. I accidently deleted it. I think it's OOT, please don't do it next time. However, try to google for testdisk program (don't get me wrong, that's real program

Re: kgdb do not stop in my module ( does not see functions from mymodule.ko)

2009-02-18 Thread Lev Olshvang
Mulyadi Santosa wrote: On Wed, Feb 18, 2009 at 1:36 AM, Lev Olshvang l...@vboxcomm.com wrote: Hello List, I am trying to debug my module using kgdb After some retires I made a working host -target serial connection I use Ubuntu 7.10 as host, and Kernel 2.6.26 on target. The

Re: debugging kernel hang (can't type anything)

2009-02-18 Thread Sukanto Ghosh
But now I am getting a BUG: spinlock recursion on CPU#0 error. What does this error mean ? yes, it actually means that the previous lock is still not released yet, and now u are calling a function to acquire the spinlock again..and somehow, before actually acquiring the spinlock, a

Re: New in kernal programming

2009-02-18 Thread Henrik Austad
On Wednesday 18 February 2009 16:43 Manish Katiyar wrote: On Wed, Feb 18, 2009 at 8:49 PM, Shaz shazal...@gmail.com wrote: On Wed, Feb 18, 2009 at 8:00 PM, Henrik Austad hen...@austad.us wrote: Shaz, Now I'm being picky, if you're insulted, sue me :- I guess the attached book can

Re: debugging kernel hang (can't type anything)

2009-02-18 Thread Sukanto Ghosh
Hi, I am running into a peculiar problem here. I am getting stack-traces from two sources, i) spin_lock BUG_ON cpu recursion, and ii) remote gdb running on my host and connected to the guest kernel (the one I am debugging). spin_lock BUG_ON stack-trace says: BUG: spinlock recursion on CPU#0,

writing integers to the char device driver

2009-02-18 Thread Troy, Willis
Howdy, I am fairly new to device drivers and this list, but I'm sure someone in here can help me. First, some background. I am working on device drivers for a FPGA that is currently running kernel 2.6.28, because it is an FPGA I can add custom hardware. The custom hardware I currently have

Re: writing integers to the char device driver

2009-02-18 Thread Belisko Marek
Hi, On Wed, Feb 18, 2009 at 8:29 PM, Troy, Willis willis_t...@baylor.edu wrote: Howdy, I am fairly new to device drivers and this list, but I'm sure someone in here can help me. First, some background. I am working on device drivers for a FPGA that is currently running kernel 2.6.28,

Re: debugging kernel hang (can't type anything)

2009-02-18 Thread Peter Teoh
On Thu, Feb 19, 2009 at 3:19 AM, Sukanto Ghosh sukanto.cse.i...@gmail.comwrote: Hi, I am running into a peculiar problem here. I am getting stack-traces from two sources, i) spin_lock BUG_ON cpu recursion, and ii) remote gdb running on my host and connected to the guest kernel (the one I

Re: Recovering Partition using linux

2009-02-18 Thread rishi agrawal
I changed the parition type back to hpfs/ntfs (07) using the cfdisk utility but even after that it is not working I tried mounting it with -t ntfs but it prints error ntfs signature is missing even changing the FS type using testdisk did not work. There is an option to print files. When I used

Re: Recovering Partition using linux

2009-02-18 Thread rishi agrawal
Sorry for the previous mails I tried a NTFS recovery tool named as 1st NTFS Recovery 3.3.1.0( evaluation Version). It is very good. It took out the whole directory structure correctly. The only problem is that in order to access the files I need to pay for it and I dont want to do that. As

Re: Recovering Partition using linux

2009-02-18 Thread rishi agrawal
On Wed, Feb 18, 2009 at 4:44 PM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: On Tue, Feb 17, 2009 at 11:42 PM, rishi agrawal postri...@gmail.com wrote: Hello Everyone, I had a 60 Gb partition of type NTFS. I accidently deleted it. I think it's OOT, please don't do it next time.

RE: writing integers to the char device driver

2009-02-18 Thread Troy, Willis
Hi, apparently I didn't present the my problem clear enough. Fortunately we figured it out. I wanted to be able to write u32 data to a character device from a C program, but couldn't figure out if i was doing something wrong in my device driver or my C code. Apparently to do this I just have

Re: writing integers to the char device driver

2009-02-18 Thread Michael Blizek
Hi! On 13:29 Wed 18 Feb , Troy, Willis wrote: Howdy, I am fairly new to device drivers and this list, but I'm sure someone in here can help me. First, some background. I am working on device drivers for a FPGA that is currently running kernel 2.6.28, because it is an FPGA I can

Re: Recovering Partition using linux

2009-02-18 Thread Pranav Peshwe
On Thu, Feb 19, 2009 at 10:25 AM, rishi agrawal postri...@gmail.com wrote: Sorry for the previous mails I tried a NTFS recovery tool named as 1st NTFS Recovery 3.3.1.0( evaluation Version). It is very good. It took out the whole directory structure correctly. The only problem is that