[android-kernel] Re: Will netfilter support be re-introduced into the kernel?

2010-08-19 Thread Danke Xie
Is it because the kernel doesn't have the module support option turned on? In this case, insmod probably won't work because the kernel is not ready to link new modules. I am not sure if that is because some module management data is not initialized, or simply because some loader is disabled. Disabl

[android-kernel] Re: Can I use the Linux usbserial driver and ADB at the same time?

2010-08-18 Thread Danke Xie
113 > [52874.178674] usb 5-7.2: unregistering device > [52874.178676] usb 5-7.2: usb_disable_device nuking all URBs > > > > On Thu, Jul 15, 2010 at 11:29 AM, Danke Xie wrote: > > I was trying to connect to the serial port on the Android device from > > the host PC. Wh

[android-kernel] Re: Loading Modules into Android phones

2010-08-11 Thread Danke Xie
phones or in emulator. How do load modules > into those locked phones (like those bought from telcos)? > > Regards, > Perumal > > On Aug 12, 12:18 pm, Danke Xie wrote: > > > > > In my opinion, you should be able to recompile the kernel with module > > sup

[android-kernel] Re: Loading Modules into Android phones

2010-08-11 Thread Danke Xie
In my opinion, you should be able to recompile the kernel with module support enabled, and then you will be able to load a module into android. There doesn't seem to be a reason why the kernel cannot support modules, though it's likely that some existing drivers might not work as modules themselves

[android-kernel] Re: register_netdev : kernel panic

2010-08-02 Thread Danke Xie
It's probably not an issue of the kernel itself but due to parameters in kernel calls. Check the line lib/kref.c:43 and see why you get the warning. On Jul 28, 11:26 pm, Dhanraj Rajput wrote: > Hello, > > I am trying to integrate RNDIS driver available in Kernel 2.6.29 with > our USB device. i

[android-kernel] Re: PXA27x USB Gadget

2010-08-02 Thread Danke Xie
Hi Dark Knight, It seems to be likely that the warnings you get from the USB driver (pxa27x_udc.c) is related to the issues in adb shell, because it seems there is some transfer error. From the log, it looks like you hit a WARN_ON condition -- e.g., some list is unexpectedly empty. I can't find th

[android-kernel] Re: Debugging boot problem

2010-07-29 Thread Danke Xie
This is quite amazing -- very few know this way of using the D+/D- pins for debugging. Does the ttyMSM0 device really drive the D+/D- pins? It seems to be mux'ed with the usb driver? If this indeed works, the serial cable discussed here may be usable too: http://www.instructables.com/id/Android-G1-

[android-kernel] Re: Android Frame Buffer Driver mechanism

2010-07-28 Thread Danke Xie
Where > did the Android Dev team move this RFBServer to ? > > Thanks > > > > On Wed, Jul 28, 2010 at 2:10 AM, Danke Xie wrote: > > Hi Tung, > > > In case you haven't seen the document, here is some documentation > > about Android Displa

[android-kernel] Re: Debugging boot problem

2010-07-28 Thread Danke Xie
Hi Jie, There are indeed some kernel CONFIG options to enable console support for a serial tty device. For example, there is one for the serial port for sure. A serial device usually means it can be used as a tty terminal, but to be used as a "console", there is additional work on the driver. So y

[android-kernel] Re: Mechanism for intercepting TCP/UDP traffic?

2010-07-27 Thread Danke Xie
Hi Doug, Greg KH is actually very helpful here. He is the top poster of all time, and certainly potassium was indeed "lazy" in getting everyone to find out basic configuration questions. There are too many branches even for experts to know all. I think he did his best... http://en.wikipedia.org/

[android-kernel] Re: Android Frame Buffer Driver mechanism

2010-07-27 Thread Danke Xie
Hi Tung, In case you haven't seen the document, here is some documentation about Android Display Driver and other porting issues: http://www.kandroid.org/android_pdk/display_drivers.html Danke On Jul 23, 2:13 am, tungsys wrote: > Hi all, > > I want to understand the Android Frame Buffer driver

[android-kernel] Re: Can I use the Linux usbserial driver and ADB at the same time?

2010-07-27 Thread Danke Xie
tions/questions, please let me know. Thanks, Danke On Jul 18, 12:05 pm, Mike Lockwood wrote: > I don't know - I haven't tried.  But there is some information here > that might be helpful:http://bootloader.wikidot.com/android:kgdb > > Mike > > > > > > On S

[android-kernel] How to simulate some kernel workload?

2010-07-25 Thread Danke Xie
I am writing a small test tool to find out how quickly some kernel code can wake up to some events. So far, I have tested it under some userspace workload, such as running a few high-priority threads. I am interested in adding some more kernel workload, to see if the code still runs with good laten

[android-kernel] Re: Howto pass pointer to char parameter to kernel via copy_to_user()

2010-07-20 Thread Danke Xie
Hi Dwi, I couldn't really figure out what is being done in the code. But I think I noticed a reason why the call might fail (though not 100% sure). You allocated one byte with kmalloc, which is sizeof(char), but you would be copying 4 bytes into the area, that is sizeof(tmp). I think that's why yo

[android-kernel] Re: Can I use the Linux usbserial driver and ADB at the same time?

2010-07-18 Thread Danke Xie
Hi Mike, Thanks for the suggestion. f_acm solved the problem I had. Now I got a serial port to work with adb at the same time. I am trying to use the serial port for KGDB, actually. I guess it's still ok to use ACM to do so? Thanks Danke On Jul 17, 10:59 am, Mike Lockwood wrote: > On Sat, Jul 1

[android-kernel] Re: Android kernel developer advocacy/guidance?

2010-07-18 Thread Danke Xie
uery/configure the > sensor. > > regards, > nature lover > > > > On Wed, Jul 14, 2010 at 9:43 AM, Danke Xie wrote: > > Hello, > > > How is the sensor connected to the platform? > > > You can check out kernel/arch/arm/ drivers, and see how > > ot

[android-kernel] Can I use the Linux usbserial driver and ADB at the same time?

2010-07-15 Thread Danke Xie
I was trying to connect to the serial port on the Android device from the host PC. What I was doing was loading the "usbserial" driver: modprobe usbserial product= vendor= It seems it does recognize all serial functions in the USB and created several ttyUSB ports/devices. However, it seems (at le

[android-kernel] Re: adding a new package to the android filesystem

2010-07-15 Thread Danke Xie
Hope this helps http://android.git.kernel.org/?p=platform/build.git;a=blob_plain;f=core/build-system.html On Jul 8, 9:44 pm, ajay wrote: > HI, > > I am trying to add a .apk file to the filesystem before building the > file system.could someone help me with the makefile(.mk) that is to be > writt

[android-kernel] Re: Android kernel developer advocacy/guidance?

2010-07-15 Thread Danke Xie
Hello, How is the sensor connected to the platform? You can check out kernel/arch/arm/ drivers, and see how other sensors (e.g., camera) are registered to the SoC board. Thanks, Danke On Jul 13, 5:02 pm, nature lover wrote: > Hello, > > Are there kernel developer advocates at Google who can at

[android-kernel] Re: How to dump boot message without adb

2010-07-15 Thread Danke Xie
To Jie, You are right that when Android boots up, you will see the logo screen, instead of the Linux console output. I guess this is what you mean by the "tty". What Vishnu said is you won't get the kernel messages on the LCD, but you can get it from a host PC to which you have connected the Andro