Re: [android-kernel] Is there a relevant process for applying for account authority to contribute code?

2022-02-16 Thread Greg KH
On Wed, Feb 09, 2022 at 01:05:03AM -0800, lo Ao wrote: > Hi all > > I read the Contributing to the GKI kernel and the these contribution > guidelines > > . > I want to know how to apply the account and appl

Re: [android-kernel] suspend & Resume

2020-09-14 Thread Greg KH
On Mon, Sep 07, 2020 at 11:46:48PM -0700, sudhe...@gmail.com wrote: > HI All Colourful duds , > > I seen previous conversation , I want to write suspend and resume > functions in android kernel driver, would you help any one to write these > functions ...suspend and resume in kernel driver,us

Re: [android-kernel] How to get patches list that Android applied to Linux kernel?

2020-09-14 Thread Greg KH
On Sun, Sep 13, 2020 at 07:30:42PM -0700, Chen Wang wrote: > hello, > I have one question about Android kernel. > I find it is difficult to compare a Android kernel with corresponding Linux > mainline version, due to too many lines of code changes. So I wonder if we > can get the patches list inf

Re: [android-kernel] Using SIGRTMIN in Android N Kernel

2018-01-11 Thread Greg KH
On Thu, Jan 04, 2018 at 05:28:20AM -0800, Deepika Teriar wrote: > Hi, > > I am writing a driver in which I need to handle 6 interrupts from different > GPIO and I need to send the signals to user space application in Android N. > > Can I use the SIGRTMIN+x for all the signals? No, just use the

Re: [android-kernel] Kernel network stack

2011-04-18 Thread Greg KH
On Sun, Apr 17, 2011 at 8:03 PM, TLSmith wrote: > Assistance please. You have asked this many times already, have you ever thought that perhaps it is not available? Or that your request is not one that is realistic? Please do some research on your own first, and realize that what you are asking

Re: [android-kernel] Developing driver for a chip that requires low latency IRQ handling...

2011-04-18 Thread Greg KH
On Sat, Apr 16, 2011 at 12:30 PM, robstoddard wrote: > I am currently working on a few device drivers which require low > latency interrupt handling.  This driver needs to communicate via I2C > with the chip after the chip hits the IRQ line, and needs to complete > its work in less than 10 ms.  I

Re: [android-kernel] Android vs Linux (Network Stack)

2011-03-01 Thread Greg KH
On Tue, Mar 1, 2011 at 6:44 AM, Muhammad Ehtasham-ul-Haq wrote: > i need to know the difference between "Android kernel Network stack" and > "Linux kernel Network Stack". I found that they have changed some files in > the Android kernel related to "Management of TCP Network" but no more detail > i

Re: [android-kernel] Re: binary attributes

2011-02-10 Thread Greg KH
On Thu, Feb 10, 2011 at 6:17 PM, jon.schell wrote: > 1. I've been reading some other support threads that you answer, and > wow, you are really unimaginative and constrained.  Yes, the pattern > can be done from userspace, very slowly.  Too slowly to be useful in > fact.  When someone asks a quest

Re: [android-kernel] Re: binary attributes

2011-02-10 Thread Greg KH
On Thu, Feb 10, 2011 at 11:42 AM, jon.schell wrote: > Yes, I'm sure it can't handle it.  Not a PWM, doing something like: > Turn on for 3 ms, turn off for 5ms, turn on for 1 ms, turn off for 1 > ms, turn on for 2 ms, turn off for 8 ms, etc. for any arbitrary > pattern you want to do. That type of

Re: [android-kernel] Re: binary attributes

2011-02-10 Thread Greg KH
On Thu, Feb 10, 2011 at 10:52 AM, jon.schell wrote: > 1. I'm using an LED driver for testing, it's not relevant to the > issue. Why isn't it relevant? You are using a LED driver, which already has a well-specified interface for interacting with userspace, why are you trying to create a new one?

Re: [android-kernel] binary attributes

2011-02-09 Thread Greg KH
On Wed, Feb 9, 2011 at 5:26 PM, jon.schell wrote: > I'm creating a binary attribute (struct bin_attribute) for a sys/class/ > led driver, Wait, stop right there. Binary sysfs attributes are for sending/receiving binary data that is not intrepreted/manipulated by the kernel at all. And LED devic

Re: [android-kernel] Re: How to hook up Linux Device Driver in Android Framework?

2011-01-31 Thread Greg KH
On Mon, Jan 31, 2011 at 1:44 PM, Aditya wrote: > Can you give me some reference materials on writing drivers for video > capture devices. I am fairly new to writing drivers. All i know is c, C++ > and some very basic file systems hacking on minx from school. Please see the linux-media mailing lis

Re: [android-kernel] Re: creating a Linux device driver

2011-01-28 Thread Greg KH
On Thu, Jan 27, 2011 at 9:42 PM, Chris Stratton wrote: > And there are no acceptable generic methods for arbitrary purposes? Nothing is "arbitrary", it always is some type of device, correct? And yes, there are usual ways to do this, which are described in detail in the documentation that has be

Re: [android-kernel] Re: creating a Linux device driver

2011-01-27 Thread Greg KH
On Thu, Jan 27, 2011 at 9:01 PM, Chris Stratton wrote: > He clearly stated his need, which was to transfer an array of data > into the driver. How to do this all depends on what type of driver it is. That is the important thing as the kernel has standard interfaces to userspace that depend on th

Re: [android-kernel] Re: creating a Linux device driver

2011-01-27 Thread Greg KH
On Thu, Jan 27, 2011 at 5:10 PM, jon.schell wrote: > The data is not static.  Yes, I know there are examples, I would like > to see one of them. What is wrong with all of the examples provided in the book you read, and in the kernel itself? > You can say what file it would be in in the > kernel

Re: [android-kernel] Re: creating a Linux device driver

2011-01-25 Thread Greg KH
On Wed, Jan 26, 2011 at 8:49 AM, jon.schell wrote: > I have read it, mostly.  It doesn't answer my specific question, or to > put it another way, it answers too completely and genericly to be > useful. Well you asked a pretty generic question to answer usefully :) > I just need a specific exampl

Re: [android-kernel] creating a Linux device driver

2011-01-24 Thread Greg KH
On Jan 25, 2011 8:50 AM, "jon.schell" wrote: > > I just want to preface this by saying that I'm not a Linux nor an > Android developer, but I do develop embedded systems and so I do > understand the basic principles involved, I just don't know the > specific details in this case. > Try reading th

Re: [android-kernel] GPL Kernel module vs prprietary driver - export information

2011-01-21 Thread Greg KH
On Fri, Jan 21, 2011 at 12:00 PM, Josenivaldo Benito Junior wrote: > Hello Greg, > Thanks for answering and I will comment below, please continue reading. > On Fri, Jan 21, 2011 at 16:10, Greg KH wrote: >> >> Why are you asking legal questions on a developer mailing list

Re: [android-kernel] Re: Compile of Android Kernel and Android OS

2011-01-21 Thread Greg KH
On Thu, Jan 20, 2011 at 5:38 PM, Virgil wrote: > Is there any place where one can find an up-to-date how-to kernel > compilation? Lacking documentation is an understatement. What? Have you read the documentation provided? What is wrong with it? The kernel comes with TONS of free documentation,

Re: [android-kernel] GPL Kernel module vs prprietary driver - export information

2011-01-21 Thread Greg KH
On Fri, Jan 21, 2011 at 3:35 AM, Josenivaldo Benito Junior wrote: > Hello, > This is Benito from Brazil and I am work on a Android product. > I am facing a patent issue with one driver that is not GPL. Why are you asking legal questions on a developer mailing list? It's like asking medical quest

Re: [android-kernel] syslogd on the android kernel variant?

2010-11-08 Thread Greg KH
On Mon, Nov 8, 2010 at 5:40 AM, Earlence wrote: > Hi, > > I cannot find /etc/syslog.cong > nor /var/log/ > > syslogd does not seem to be configured / built into the kernel. syslogd has nothing to do with the kernel at all. confused, greg k-h -- unsubscribe: android-kernel+unsubscr...@googlegr

Re: [android-kernel] In LKM, filp_open returns permission denied

2010-11-04 Thread Greg KH
On Thu, Nov 4, 2010 at 10:22 AM, Mani557 wrote: > Hi all, > > I developed an LKM and loaded it into android emulator. At first, I > called filp_open("/data/", O_RDONLY, 0) from kernel module init > function (called during insmod). Do not do kernel open/close/reading/etc from within the kernel, it

Re: [android-kernel] parallel port driver of linux x86

2010-10-28 Thread Greg KH
On Mon, Oct 25, 2010 at 11:31 AM, ajay wrote: > hi, > >  I have written a parallel port driver of linux x86 and i am not able > to generate the interrupt.could some one help me with this code please What does this have to do with android kernel development? You should post this on the kernelne

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,

Re: [android-kernel] How to map user space buffers into kernel space

2010-09-02 Thread Greg KH
On Wed, Sep 1, 2010 at 8:29 PM, Rene Gonzalez wrote: > Hi All, > > I want to map an  user space buffer from an application into kernel space... Why? What type of driver is this? > Since this buffer is defined in the app domain I want to keep it and avoid to > mapping kernel buffer to be used by

Re: [android-kernel] Android Linux kernel

2010-08-30 Thread Greg KH
On Sun, Aug 29, 2010 at 1:44 AM, Prathamesh Salunke wrote: > I am a new Android user.And I am making a report for my college on > Linux. > Please tell me how useful was Linux Kernel towards Android development A lot. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://gr

Re: [android-kernel] Re: register_netdev : kernel panic

2010-08-02 Thread Greg KH
On Mon, Aug 2, 2010 at 2:11 PM, Danke Xie wrote: > 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. That's easy, your code is not using a kref correctly :) Is there a pointer to this dri

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

2010-07-27 Thread Greg KH
On Tue, Jul 27, 2010 at 9:13 AM, potassium wrote: > You quoted half a sentence, I didn't say > "Could you confirm the Netfilter support/framework is actually > present, and  that the ability to use it in this way is disabled by > default " > > Instead I said "Could you confirm the Netfilter suppor

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

2010-07-26 Thread Greg KH
On Mon, Jul 26, 2010 at 9:41 AM, potassium wrote: > Thank you > > Could you confirm the Netfilter support/framework is actually present, You can do this yourself quite easily, why ask others to do your work for you? > Is it possible to obtain all the necessary constituent parts (hardware > speci

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

2010-07-22 Thread Greg KH
On Thu, Jul 22, 2010 at 9:28 AM, potassium wrote: > Hi > > I have a requirement to write a component that is capable of > intercepting inbound/outbound TCP/UDP traffic from a device, which/ > what is the best mechanism to accomplish this? A netfilter rule and/or a netfilter kernel module will do

Re: [android-kernel] Android Kernel Vs Linux Kernel.

2010-07-07 Thread Greg KH
> Is there anything that is specific to android in kernel level. (i.e)any > android specific code. Yes. > If so,tell me what are all the changes mandate to bring android kernel? You already found them. > If not,then how android kernel differs from Linux Kernel? You already have all of the diff

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-06-30 Thread Greg KH
On Wed, Jun 30, 2010 at 1:01 AM, jessie828 wrote: > thats exactly what im asking.. how do i start.. i dont even know how > to do this for another kernel... > > help :( Try the kernelnewbies.org site, that's the best place to start out with. good luck, greg k-h -- unsubscribe: android-kernel+u

Re: [android-kernel] Regarding coding standards for GPL license device drivers code

2010-06-30 Thread Greg KH
On Wed, Jun 30, 2010 at 8:49 AM, Raj Kumar wrote: > Hi, > > ok thats great. But kernel code will go under GPL but user space code will > not. Be careful about the "derivative works" part, if your userspace is tied very closely to kernelspace, then both need to have the same license. A lawyer can

Re: [android-kernel] Regarding coding standards for GPL license device drivers code

2010-06-30 Thread Greg KH
On Wed, Jun 30, 2010 at 8:21 AM, Raj Kumar wrote: > Ok. thats great. because i was thinking if we have proprietary driver whose > some parts are under GPL and some parts under proprietary license, Wait right there. You can not have such a thing, that violates the GPL, so it is impossible, sorry.

Re: [android-kernel] Regarding coding standards for GPL license device drivers code

2010-06-30 Thread Greg KH
On Wed, Jun 30, 2010 at 2:39 AM, Raj Kumar wrote: > Hi, > > I have question regarding coding standards for drivers. I know that > kernel code follows the coding standard > defined by Kernelsrc/Documentation/CodingStyle. > > But if we have to release the code (drivers) under GPL license, Does > GPL

Re: [android-kernel] Modified Files in Linux kernel for android

2010-06-25 Thread Greg KH
On Fri, Jun 25, 2010 at 3:49 AM, srimathi wrote: > Hi all, > > > New to android. > > Can any one tell me "what are the files needs to be changed > mandatorily in the linux kernel with respect to android to port to > other platforms??" No, it all depends on your platform itself. First hint wo

Re: [android-kernel] Why does booting time reduce from 2 min to 1 min after just adding a printk(..) invoking?

2010-06-18 Thread Greg KH
On Wed, Jun 16, 2010 at 8:21 AM, Gary wrote: > Hi, all > > Now my device needs 2 minutes to boot up. > But I found that the booting time will be reduced to 1 minute after I > add just a printk(..) invoking as shown below. > Even though the booting time has been reduced by adding one line of > rout

Re: [android-kernel] Android Drivers being dropped from Kernel 2.6.34

2010-06-18 Thread Greg KH
On Thu, Jun 17, 2010 at 10:56 PM, Kiran wrote: > Hi All >    Android Drivers are been dropped from the kernel source tree > 2.6.33 onwards, Is Google maintaining the Android Drivers for the > Latest Released  Kernels. That is what they have been doing all along, as you can see in the kernel git t

Re: [android-kernel] hid_parse_report, what happens next?

2010-06-17 Thread Greg KH
On Wed, Jun 16, 2010 at 10:15 PM, sunil pillai wrote: > Greg, > > Thanks for your valuable tip and let me tell you I'm also trying to > get answers from the MAINTAINERS of HID subsystem. Did you ask on the linux-input mailing list? What did the developers there tell you? > I don't however feel

Re: [android-kernel] hid_parse_report, what happens next?

2010-06-16 Thread Greg KH
On Wed, Jun 16, 2010 at 3:07 AM, Sunil Pillai wrote: > > Hello All, > > Can some one let me know, how does the hid class driver's > hid_parse_report() work? Why not ask on the linux-input mailing list where the developers who wrote and maintain this code live? Asking random kernel questions on

Re: [android-kernel] where the device "/dev/graphic/fb0" or "/dev/fb0" created in the kernel code?

2010-06-14 Thread Greg KH
On Sat, Jun 12, 2010 at 11:21 PM, sureone wrote: > where the device "/dev/graphic/fb0" or "/dev/fb0" created in the > kernel code? No where, the kernel never creates device nodes, that is up to userspace to do. Now the kernel can give lots of hints to userspace as to what device node to create a

Re: [android-kernel] struct ip6_tnl_net? register_netdev(ip6n->fb_tnl_dev) failed?

2010-06-10 Thread Greg KH
On Thu, Jun 10, 2010 at 12:56 AM, kernelcoder2 wrote: > Hi, > > I need to port some code from linux kernel 2.6.18 to kernel 2.6.29. > One of the file where changes are involved is , > where a new structure struct ip6_tnl_net was added into kernel2.6.29 > that didn't exist in 2.6.18 as follows:

Re: [android-kernel] Device Nodes under /proc/bus/usb

2010-06-09 Thread Greg KH
On Tue, Jun 8, 2010 at 8:26 AM, Mani wrote: > Hi : > > I am using the TI ZOOM2 board running the Android OS . I have written > a application ( similar to vold ) , which listens for UEVENTS and then > dump the UEVENT Packet ( to a Log file ) , when the message related to > a particular USB device i

Re: [android-kernel] Re: loadable kernel module...

2010-05-27 Thread Greg KH
On Thu, May 27, 2010 at 1:21 PM, rohan raizada wrote: > Yes I did insmod <.ko> but it gave me Permission denied. Why do you think this happened? Hint, look at the error it gave you, and ponder why that might be... > I am trying to load > the module into the kernel and see the output of it using

Re: [android-kernel] Re: loadable kernel module...

2010-05-27 Thread Greg KH
On Thu, May 27, 2010 at 11:34 AM, rohan raizada wrote: > Hi, > > I am unable to run my LKM on the Google Dev Phone2. The thing that i tried > was that I sent the .ko file to the phone using > > adb push <.ko file> /sdcard/module > > and when i tried executing it it simply said: Permission denied.

Re: [android-kernel] loadable kernel module...

2010-05-25 Thread Greg KH
On Mon, May 24, 2010 at 10:57 PM, rohan raizada wrote: > Hi, > > I have written a small LKM for android. Now when i try to build it I > get the following error: > > make ARCH=arm > CROSS_COMPILE=../../../prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi- > -C /home/roaan/mydroid/common/ker

Re: [android-kernel] I have a question about using queue at kernel

2010-05-24 Thread Greg KH
On Sat, May 22, 2010 at 1:38 AM, flames wrote: > Hey everyone.I have a question about using queue at kernel. What kind of "queue"? > I'm trying to use queue at kernel space.I call it "k-queue" > For example, there are n-kernel threads which is producer, each of > them wants enqueue item to "k-qu

Re: [android-kernel] android-msm-2.6.34-test1/2; sdcard umount issues

2010-05-21 Thread Greg KH
On Fri, May 21, 2010 at 9:57 AM, pershoot wrote: > Hi. > > I rebased to 2.6.34-test1/2 (http://android.git.kernel.org/?p=kernel/ > experimental.git;a=shortlog;h=refs/heads/android-msm-2.6.34-test2 ; > http://android.git.kernel.org/?p=kernel/experimental.git;a=shortlog;h=refs/heads/android-msm-2.6.

Re: [android-kernel] Android and Linux kernel strategy

2010-05-21 Thread Greg KH
On Fri, May 21, 2010 at 1:21 AM, Kjaergaard wrote: > I could see some different scenarios: There are lots of them, but random email threads on random email lists do not really do anyone any good. Why not post code instead? good luck, greg k-h -- unsubscribe: android-kernel+unsubscr...@google

Re: [android-kernel] Parsing HID report using hid class driver

2010-05-18 Thread Greg KH
On Tue, May 18, 2010 at 7:19 AM, Pavan Savoy wrote: > On Tue, May 18, 2010 at 6:35 PM, Greg KH wrote: >> On Mon, May 17, 2010 at 10:58 PM, sunil pillai >> wrote: >>> 1.  So I hope it's clear that userspace is not creating any hid event. >>> We are still tal

Re: [android-kernel] Parsing HID report using hid class driver

2010-05-18 Thread Greg KH
On Mon, May 17, 2010 at 10:58 PM, sunil pillai wrote: > 1.  So I hope it's clear that userspace is not creating any hid event. > We are still talking about USB HID REPORTS received in the userspace > BT stack. > 2. So I hope it makes it obvious now that once my userspace BT stack > parses the BT p

Re: [android-kernel] Parsing HID report using hid class driver

2010-05-17 Thread Greg KH
On Fri, May 14, 2010 at 4:30 AM, Sunil Pillai wrote: > > > > Hi All, > > I've a typical requirement for presenter hid device. That's not "typical" at all. What is causing this requirement? > [Diagram below] > = > >        User Space > >              | >

Re: [android-kernel] Re: Enabling watchdog

2010-05-05 Thread Greg KH
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Tue, May 4, 2010 at 11:51 PM, Alok wrote: > Hi Greg > Thanks for your response. > Android watchdog is monitoring systemserver process and if it itself > gets stuck because of some reasons then syste

Re: [android-kernel] android vs normal OS

2010-05-04 Thread Greg KH
On Tue, May 4, 2010 at 4:18 PM, praba garan wrote: > I started reading the documentation and got a doubt. > What is the diff between developing a mobile app through Android and a > Simple J2ME program?? That has nothing to do with the kernel, why would you ask that on the android-kernel mailing l

Re: [android-kernel] android vs normal OS

2010-05-04 Thread Greg KH
On Tue, May 4, 2010 at 1:49 PM, praba garan wrote: > I am quite new to android... But you failed to answer my other questions, why? > Can any one explain how to install android and how to use it?? Read the documentation. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: htt

Re: [android-kernel] Re: Enabling watchdog

2010-05-04 Thread Greg KH
On Tue, May 4, 2010 at 9:55 AM, Sudeep K N wrote: > >> Why is this a requirement for you to do, if you do not even know >> if it is necessary? > > This is just my understanding, if more some reason the hardware timers > used for system time keeping stops, can't we use the watchdogs to > reset the

Re: [android-kernel] Enabling watchdog

2010-05-03 Thread Greg KH
On Mon, May 3, 2010 at 1:26 AM, Alok wrote: > Hi Group > I have to enable linux kernel watchdog driver on Android eclair. Why is this a requirement for you to do, if you do not even know if it is necessary? > I read that from user space a watchdog daemon has to keep writing on / > dev/watchdog a

Re: [android-kernel] android vs normal OS

2010-05-03 Thread Greg KH
On Sun, May 2, 2010 at 10:35 PM, praba garan wrote: > Hi all >       What are the technical differences between Android and a OS like > Linux. That sounds like a homework project :) > Is there any difference in memory mgmt , process mgmt , loading and > linking?? No. Why do you want to know th

Re: [android-kernel] Improve the Booting time in Android

2010-05-03 Thread Greg KH
On Sun, May 2, 2010 at 9:50 PM, sanjeev sharma wrote: > Hi > > Can we figure it out which service and Process is not required at Boot > time. Sure, do the work to do so. > I know it's very hard to determine but on the basis of these process > and Services we can reduce bootup time for filesystem

Re: [android-kernel] Question about MMAP Size

2010-04-28 Thread Greg KH
On Wed, Apr 28, 2010 at 12:54 AM, white wrote: > I want to know more datail about this. > > As I know, android platform is using binder mechanism, and binder is > using mmap mechanism. > Iliyan Malchev fixed mmap size, 4KB -> 32KB. No, that was not a "size" change. And binder has _nothing_ to do

Re: [android-kernel] Re: Display Kernel Messages

2010-03-24 Thread Greg KH
On Tue, Mar 23, 2010 at 8:38 PM, perumal316 wrote: > Hi, > > I have come up with a kernel module doing monitoring of system calls > and will printk messages. Now I want to show these messages to user > through an application. What's wrong with the strace application? Or the kernel audit subsyste

Re: [android-kernel] Display Kernel Messages

2010-03-23 Thread Greg KH
On Tue, Mar 23, 2010 at 8:21 PM, perumal316 wrote: > Hi All, > > I want to show the kernel messages to user through an application. Why would you want to do that? What are you trying to achieve here? > In Android the kernel messages are stored in "/proc/kmsg" but when I > tried to display that

Re: [android-kernel] USB Data Transfer

2010-03-08 Thread Greg KH
On Mon, Mar 8, 2010 at 10:31 AM, AnthonyB wrote: > Hi, I'm a student working on an undergraduate senior design project, > and I've been reading up on your host patch because we are using the > HTC Sprint Hero in our project.  You seem to know a lot about the USB > so I was wondering if you could h

Re: [android-kernel] how to access kernel custom library

2010-02-18 Thread Greg KH
On Thu, Feb 18, 2010 at 3:53 AM, genxsol wrote: > Hi Experts, > > can anybody direct me to any sample program/documentation to access > any custom library in kernal at the application level. > > custom library can be any library embedded by  phone manufacturer. You don't do this at the kernel lev

Re: [android-kernel] call a kernel library at application level?

2010-02-18 Thread Greg KH
On Thu, Feb 18, 2010 at 6:33 AM, genxsol wrote: > HI Dear, > > is it possible to access a kernel library at application level through > JNI call? What specifically do you mean by "kernel library"? That is not a term that applies to the Linux kernel. thanks, greg k-h -- unsubscribe: android-k

Re: [android-kernel] the removal of android drivers from the staging tree

2010-02-15 Thread Greg KH
On Sat, Feb 13, 2010 at 9:34 AM, markr...@gmail.com wrote: > Hello, > I have read greg kh post about the removal of android from the > Linux kernel: > http://www.kroah.com/log/linux/android-kernel-problems.html First off, if you have questions about something I write, why not ask

Re: [android-kernel] Re: Update kernel from 2.6.27 to 2.6.29 ... help?

2010-01-28 Thread Greg KH
On Thu, Jan 28, 2010 at 12:07 PM, Xan wrote: > Ok, so to work through this, I need to diff the specific vendor > differences, apply them to the new 2.6.29 kernel and work out the > compiler errors? Are there any extra tools or advice that you could > give? =P Nope, that sounds about right. good

Re: [android-kernel] Re: Update kernel from 2.6.27 to 2.6.29 ... help?

2010-01-28 Thread Greg KH
On Thu, Jan 28, 2010 at 1:26 AM, Xan wrote: > Well we can't run eclair or 2.1 on 2.6.27. So I want to update a > little bit =P I just thought it would be easier than it is now. Is > there a way to do it instead of patching? Like just copying over > drivers and telling it to look for them? Nope, s

Re: [android-kernel] Update kernel from 2.6.27 to 2.6.29 ... help?

2010-01-27 Thread Greg KH
On Wed, Jan 27, 2010 at 7:27 AM, Xan wrote: > Hi, I want to update the kernel on my device (Huawei U8220) to 2.6.29. > I have some idea of how to do this already. Why 2.6.29? It's obsolete and no longer supported by anyone. And why do you want to upgrade your kernel? What is it going to give y

Re: [android-kernel] Displaying TextFile

2010-01-20 Thread Greg KH
On Wed, Jan 20, 2010 at 6:37 PM, perumal316 wrote: > Hi, > > Suppose I have a text file in /data folder, is there any way I can > display the textfile to user through an app? Sure there is, but as this is a kernel-specific mailing list, your question makes no sense. Try asking it on a more appro

Re: [android-kernel] Re: Date&Time in LKM

2010-01-18 Thread Greg KH
On Mon, Jan 18, 2010 at 7:44 PM, perumal316 wrote: > I just want to print the time when kernel messages are printed from > the module. The kernel already does this, no need to add anything on your own. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com

Re: [android-kernel] Re: Date&Time in LKM

2010-01-18 Thread Greg KH
On Mon, Jan 18, 2010 at 6:34 PM, Chew Esmero wrote: > you can use the __DATE__ & __TIME__ macro. That's only the date and time the code is built, not the current one. > On Jan 19, 10:23 am, perumal316 wrote: >> Hi, >> >> Currently I am writing a loadable kernel module. I want to printk the >> c

Re: [android-kernel] Re: Kernel driver for National Instruments USB-6251 device

2010-01-15 Thread Greg KH
On Fri, Jan 15, 2010 at 1:18 PM, jm wrote: > Nope. No idea that this will not work. > > Are you saying that the Motorola hardware cannot support the role of a > USB Host Contoller? As I have not seen the data sheet for this specific hardware USB controller, I can not say for sure. But I would be

Re: [android-kernel] Re: Kernel driver for National Instruments USB-6251 device

2010-01-12 Thread Greg KH
On Tue, Jan 12, 2010 at 12:39 PM, jm wrote: > > Yes, there is a USB device (NI-USB-6251), and a Motorola Droid will be > the USB Host Controller. You do realize that this physically will not work, right? Can you plug a USB keyboard into your Droid right now? If not, you have some basic work to

Re: [android-kernel] Kernel driver for National Instruments USB-6251 device

2010-01-12 Thread Greg KH
On Tue, Jan 12, 2010 at 11:04 AM, jm wrote: > Hi, > Has any one done any work towards building a USB driver for any of the > National Instruments multifunction I/O devices (specifically the NI- > USB-6251...) ? Is this a USB device (where you plug it into a USB host), or a USB host controller whe

Re: [android-kernel] Documents regarding drivers/MMC

2010-01-11 Thread Greg KH
On Mon, Jan 11, 2010 at 2:51 AM, gopu wrote: > Hi , > I am new to kernel .Any body have documents related to the MMC/SD card > with SD bus protocol, kernel source flow explanation please share it. What is wrong with reading the source code to determine this? Also, Linux MMC stuff should be asked

Re: [android-kernel] Two touchscreen drivers in sapphire and trout phone

2010-01-08 Thread Greg KH
On Fri, Jan 8, 2010 at 9:07 AM, mibo wrote: > And now the question: When I look at the board configuration file / > android/msm/arch/arm/mach-msm/board-sapphire.c (I think this is for > the HTC Dream phone) I can see there are two touchscreen drivers > active: > > static struct i2c_board_info i2c_

Re: [android-kernel] conf file

2010-01-08 Thread Greg KH
On Thu, Jan 7, 2010 at 11:58 PM, perumal316 wrote: > Hi, > > I am writing a module that will print out the parameters of system > calls. I want to do this for different system calls. No, you really do not want to do that, just use strace instead if you need this information. See this very list y

Re: [android-kernel] Re: printk in Android

2010-01-07 Thread Greg KH
On Thu, Jan 7, 2010 at 7:40 PM, perumal316 wrote: > Actually I want to show to user, but if in the phone if there any way > where these messages can be shown to them without them have to go to > terminal and dmesg? On the android platform, no, there isn't, unless you write an application that mon

Re: [android-kernel] Re: printk in Android

2010-01-07 Thread Greg KH
On Thu, Jan 7, 2010 at 7:25 PM, perumal316 wrote: > > Is it possible to write to file in kernel programming? Yes, but again, you do not want to do that. Go read the kernelnewbies.org site for why. http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad I suggest reading up on that site f

Re: [android-kernel] Re: printk in Android

2010-01-07 Thread Greg KH
On Thu, Jan 7, 2010 at 6:23 PM, perumal316 wrote: > > I am writing a kernel module which prints out a message each time a > system call is being made. I want to show these messages to user. No, you really don't want to do ever do that. Remember, the user made the system call in the first place,

Re: [android-kernel] Re: printk in Android

2010-01-07 Thread Greg KH
On Wed, Jan 6, 2010 at 9:13 PM, perumal316 wrote: > Hi All, > > Thanks for the input. But I am currently writing a module for Android. > In module programming there is only printk but is it possible to show > the kernel messages to the users? Meaning the user who will be using > the Android phone

Re: [android-kernel] Re: netfilter kernel module questions

2009-12-18 Thread Greg KH
On Thu, Dec 17, 2009 at 11:03 PM, biAji wrote: > > > On Dec 17, 6:43 pm, Dan Danciu wrote: >> Hi, >> >> From what I know lsmod command requires root access. No it does not. >> Is there a programmatic way to find out? And if yes, could it be >> available on not rooted phones? Yes there is, 'cat

Re: [android-kernel] Does 2.6.32 support G43(GMA X4500) chipset ?

2009-12-15 Thread Greg KH
On Tue, Dec 15, 2009 at 2:12 AM, journeyer wrote: > Hi, list > > I am now working with Android-x86 project. > I tested android-x86 iso image on general x86 systems. Among them, one > which has G43 as its chipset fails to bootup all the wat upto the > graphics UI. Console was able to use. > > I use

Re: [android-kernel] How to change kernel compression

2009-12-15 Thread Greg KH
On Mon, Dec 14, 2009 at 9:07 PM, SMAUG wrote: > I would like to change the compression method used in the kernel > section of a boot image. > Currently the kernel is compressed with gzip -9 and the ramdisk with > zlib -6. > I would like to have both compressed with zlib. Why? What problem are yo

Re: [android-kernel] Compiling Android Kernel For X86

2009-12-15 Thread Greg KH
On Tue, Dec 15, 2009 at 5:35 AM, Santosh Kadam wrote: > Hi there - > > I have downloaded the androind kernel from the following repository > > repo init -u git://android.git.kernel.org/platform/manifest.git > > .. > I executed make menuconfig and created a standard configuratin file. > > N

Re: [android-kernel] request queue pointer null in add_disk

2009-12-09 Thread Greg KH
On Wed, Dec 9, 2009 at 10:19 AM, poseidon wrote: > I am trying to develop a block driver for my device with kernel > version 2.6.28. What type of block driver? Is this some new type of hardware that Linux doesn't currently support? > I initialise my request queue with blk_init_queue() and initi

Re: [android-kernel] Scheduling question

2009-12-03 Thread Greg KH
On Thu, Dec 3, 2009 at 6:26 AM, haris wrote: > Hello. > > I was just asked by my professor "Which scheduling algorithm is used > in the Android OS"? > > We were having a discussion about RMA/DMA vs EDF. > > Can you guys help me out? So you want us to do your homework for you? The answer is that

Re: [android-kernel] how about real time request in android kernel?

2009-11-30 Thread Greg KH
On Tue, Nov 24, 2009 at 7:57 AM, Shuduo Sang wrote: > Hi, > > Does anyone know how android kernel enable PREMPT_RT or not for real time > task? Did you look at the android kernel source code? > Is the RT patch integrated into android kernel? No it is not. > How the android kernel guarantee rea

Re: [android-kernel] Android kernel 2.6.32 for review

2009-11-24 Thread Greg KH
On Tue, Nov 24, 2009 at 12:59 AM, Chih-Wei wrote: > There are still some issues, but basically it works, > at least on Android-x86 1.6. We hope Google android kernel team > can review this work to see if we did something wrong. > We will push it into the mainline kernel finally. If it goes smoothl

Re: [android-kernel] Re: How to Build a Library and Link to the Android Kernel

2009-11-23 Thread Greg KH
On Mon, Nov 23, 2009 at 10:38 AM, James SDC wrote: > Hi Greg, > > The problem I am trying to solve, is to use the share memory in my > library. Since Android NDK does not support IPCs, I am thinking to > call from Kernel instead. No, don't do that, it is not the correct implementation. > If I bu

Re: [android-kernel] installing line discipline from kernel

2009-11-23 Thread Greg KH
On Mon, Nov 23, 2009 at 12:04 AM, pavan savoy wrote: > Hi, > > Is it possible to install a line discipline somehow from the kernel > space it-self ? What do you mean "install"? Load a module? Or something else? > Why such an requirement you may ask - For every line discipline that > needs to w

Re: [android-kernel] How to Build a Library and Link to the Android Kernel

2009-11-23 Thread Greg KH
On Sun, Nov 22, 2009 at 11:52 PM, Mihai Campean wrote: > Hi Greg, > >  If this is so, how would one go about in making a network driver for > Android and expose it's api to the superior layers? Like you would do so for any other network driver, the kernel has a very capable API for this already.

Re: [android-kernel] How to Build a Library and Link to the Android Kernel

2009-11-22 Thread Greg KH
On Wed, Nov 11, 2009 at 12:19 PM, James SDC wrote: > Hi, > > I want to build a Linux library and link the library (not source code) > to the Android kernel. If you do that, then the library must be released under the same license of the kernel, GPLv2. And the kernel will become part of the kerne

[android-kernel] Re: Real time kernel support in Android

2009-10-20 Thread Greg KH
On Mon, Oct 19, 2009 at 10:54 PM, ranjith vk wrote: > >> >> No, not at all.  A real-time system is slower performance than a non-realtime >> one.  Please read the documentation for what a real-time kernel means >> for details on this. >> >> Running the rt kernels will just slow down your android

[android-kernel] Re: Real time kernel support in Android

2009-10-20 Thread Greg KH
On Mon, Oct 19, 2009 at 11:48 PM, vamsi android wrote: > See Greg, as stated in previous emails, if music application wont get > scheduling time which is stuck up with non pre-emptable task then we can see > music is not running cont. The way the kernel works, I do not think you will ever see th

[android-kernel] Re: Real time kernel support in Android

2009-10-19 Thread Greg KH
On Mon, Oct 19, 2009 at 9:40 PM, vamsi android wrote: > This really helped to zero down my thinking between real time and > performance. > > As I did not use this G1 phone, I am not sure of Android phones reliability. > May be once who used G1 phone/tested G1 phones can answer these questions > b

[android-kernel] Re: Real time kernel support in Android

2009-10-15 Thread Greg KH
On Wed, Oct 14, 2009 at 10:17 PM, vamsi android wrote: >> > Hi, >> > >> > Regarding Realtime patches, I was successfully able to patch it on >> > normal >> > linux kernel, but was not successful when I integrate it with Android >> > kernel. I was able to patch and compile it, but am facing while

[android-kernel] Re: Real time kernel support in Android

2009-10-13 Thread Greg KH
On Tue, Oct 13, 2009 at 12:42 AM, vamsi android wrote: > Hi, > > Regarding Realtime patches, I was successfully able to patch it on normal > linux kernel, but was not successful when I integrate it with Android > kernel. I was able to patch and compile it, but am facing while loading the > androi

[android-kernel] Re: Real time kernel support in Android

2009-10-08 Thread Greg KH
On Thu, Oct 8, 2009 at 2:50 AM, vamsi android wrote: > Hi Team, > > I am not able to get any leads regarding real time support in Android. It is no different from real time support in any Linux system, have you looked into the real time patchset for the Linux kernel? It should apply to the Andr

  1   2   >