How to compile an older kernel?

2011-10-15 Thread Parmenides
Hi, I am using lfs which runs kernel 2.6.34, gcc 4.1.2 and ld 2.17. For some purposes, I want to compile the 2.6.11 kernel source. After doing some configuration, I did make which issues many warnings or error messages. For some of them: ... ... ... In file included from include/asm/mpspec.h:

Re: Heap memory is not re-claiming.

2011-10-15 Thread Srivatsa Bhat
On Fri, Oct 14, 2011 at 10:28 AM, rohan puri wrote: > > *Reference to an article by Mulayadi Santosa :- > > http://linuxdevcenter.com/pub/a/linux/2006/11/30/linux-out-of-memory.html > * > Rohan, thanks a lot for sharing this link. Mulyadi, the article is just superb, very well-written and extrem

Re: Query on Rx Frame processing

2011-10-15 Thread michi1
Hi! On 19:45 Sat 15 Oct , amit mehta wrote: ... > Now in step 4 above, driver passes this packet to the > network layer by calling netif_receive_skb() which may return > NET_RX_DROP (packet was dropped), but most > (I checked some of the network driver code) of the network > drivers do not do thi

Re: Linux System Calls vs writing device drivers

2011-10-15 Thread Srivatsa Bhat
On Sat, Oct 15, 2011 at 7:56 PM, Ashok Sharma wrote: > Hello, > > I am interested in writing Linux device drivers (DD) and have knowledge of > OS concepts, Linux OS design and System Calls. What is the path to writing > DD and please give some references/links. > > Take a look at this: http://lwn

Re: Problem with a UDP server implements

2011-10-15 Thread Bernd Petrovitsch
On Sam, 2011-10-15 at 01:51 +0800, jiangtao.jit wrote: > Hi: > > I'm writing a UDP server and meet a problem > the UDP server program is run on a box with single card but has multi ip: > likeeth010.0.0.1 > eth0:1 10.0.0.2 > eth0:2 11.0.0.1 > > I bind

Query on Rx Frame processing

2011-10-15 Thread amit mehta
I'm trying to understand Linux Network subsystem and after reading some documents, my broad level understanding for Rx Path is as follows: 1: Card receives the packet. 2: Assume everything is fine, the card DMAs the frame for the driver to process it further. 3: Driver allocate an skb buffer, adju

Linux System Calls vs writing device drivers

2011-10-15 Thread Ashok Sharma
Hello,   I am interested in writing Linux device drivers (DD) and have knowledge of OS concepts, Linux OS design and System Calls. What is the path to writing DD and please give some references/links.      Thank you and regards Ashok___ Kernelnewbies ma

Re: Problem with a UDP server implements

2011-10-15 Thread tao jiang
michi: Thanks for your help. Much appreciated. 2011/10/15 : > Hi! > > On 16:29 Sat 15 Oct     , tao jiang wrote: >> michi: >> >> 1. >> Is that to create two sockets >> and one bind to 10.0.0.1 the other bind to 10.0.0.2 >> then use epoll wait these two sockets ? > > Yes, exactly. > >> 2. >> Is

Re: Problem with a UDP server implements

2011-10-15 Thread michi1
Hi! On 16:29 Sat 15 Oct , tao jiang wrote: > michi: > > 1. > Is that to create two sockets > and one bind to 10.0.0.1 the other bind to 10.0.0.2 > then use epoll wait these two sockets ? Yes, exactly. > 2. > Is there any way to find out the turple like TCP > then the UDP server can reply wi

Re: Getting 'bad file number' error writing to device driver

2011-10-15 Thread Daniel Baluta
On Sat, Oct 15, 2011 at 2:42 AM, Philip Anil-QBW348 wrote: > I am calling the driver from an Android program (OMAP4/Blaze). It calls a > c++ program via JNI which then calls the device driver. > Someone suggested it might be a permissions problem - the program is running > in user mode. > > on Bla

Re: Problem with a UDP server implements

2011-10-15 Thread tao jiang
michi: 1. Is that to create two sockets and one bind to 10.0.0.1 the other bind to 10.0.0.2 then use epoll wait these two sockets ? 2. Is there any way to find out the turple like TCP then the UDP server can reply with exactly the ip it recieved the client's request ? Thanks. 2011/10/15 : >