Re: [android-kernel] TTY ldisc work item is hanging

2010-10-22 Thread Greg KH
On Thu, Oct 21, 2010 at 6:11 PM, Shibu Baby wrote: > Hi All, > > From my virtual tty device, I am pushing data to the TTY layer as > follows > > static int vs_rx_data(u8 *buf, int size, struct dev_info *dev) > { What kernel version are you using? Care to post your whole tty driver? And also,

[android-kernel] TTY ldisc work item is hanging

2010-10-22 Thread Shibu Baby
Hi All, >From my virtual tty device, I am pushing data to the TTY layer as follows static int vs_rx_data(u8 *buf, int size, struct dev_info *dev) { int ret_val = 0; LOG_INFO("In vs_rx_data \n"); if(dev->vs_dev.tty == NULL) { LOG_ERR("tty is null!!\n"); return 0;

[android-kernel] Re: developing a driver on beagle board

2010-10-22 Thread Chris Stratton
Find one of the many online guides to writing a simple linux device driver. -or- Find a driver that has similar structure to one you are interested in working on and copy and rename it, adapting to fulfill your function instead of the original. Typically this will involve a few .c and perhaps .h

Re: [android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-22 Thread Hamilton Vera
Hi there, so... to enable netfilter cd make menuconfig [*] Networking support ---> Networking options ---> [*] Network packet filtering framework (Netfilter) ---> And mark what you need and save the configuration Finally compile it with make. I

[android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-22 Thread Antonio Conforti
ok. In my kernel source there are folder you have told me. Now what I have to do? I remember to you that I have downloaded my kernel in the follow mode: git clone git://android.git.kernel.org/kernel/common.git kernel-common cd kernel-common git checkout origin/android-goldfish-2.6.29 then I have

Re: [android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-22 Thread Hamilton Vera
First you have to focus on netfilter (kernel) then you focus on compiling iptables. Netfilter is standard in mainline kernel, please check it again, look for something like; ./include/net/netfilter ./include/linux/netfilter ./net/ipv4/netfilter ./net/bridge/netfilter ./net/netfilter ./net/decnet

[android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-22 Thread Antonio Conforti
This is the output: anto...@debian:~/iptables/jni$ ls Android.mkextensions ip6tables.8.in ip6tables-save. 8iptables.c iptables-save.8 iptables.xslt NOTICE CleanSpec.mk includeip6tables.c ip6tables- save.ciptables-multi.cipt