Re: [android-kernel] Re: What's goldfish kernel?

2017-03-14 Thread Glenn Kasten
In section ""Selecting a kernel" choose a row based on column 1 "Device". Then look at column 3 "Source location" and take the second component of the filename. For example, if the filename is "kernel/foobar", then take the "foobar". Next go to section "Downloading sources". Select the right git

[android-kernel] Re: Can CPU cores have different CPU features in a SMP system?

2016-08-01 Thread Glenn Kasten
I've heard that the greatest risk is on a big.LITTLE system where the two clusters have different microarchitectures (e.g. A-53 and A-57) and implement the same instruction set. The performance characteristics of the clusters may vary in a more complex way than just being uniformly faster by a cons

[android-kernel] Re: Android Watch device

2015-07-16 Thread Glenn Kasten
This group is about kernel; the right group is actually here: https://groups.google.com/forum/#!forum/android-compatibility (registration required; first request to join, then after approval post your question) On Thursday, July 16, 2015 at 2:33:04 PM UTC-7, Subhasish Ghosh wrote: > > Hi, >

[android-kernel] Re: android kernel source

2014-11-04 Thread Glenn Kasten
That site only has kernel trees for AOSP-supported devices, and your device is not one of those. In general, each SoC vendor maintains their own kernel tree for their particular SoC. So you could try to find out which SoC is in your device, then search on the web for a kernel tree that matches. O

[android-kernel] Re: Futex Local Permission Escalation Vulnerability

2014-06-17 Thread Glenn Kasten
Please consider android-security-discuss https://groups.google.com/forum/#!forum/android-security-discuss On Tuesday, June 17, 2014 1:39:29 AM UTC-7, David Billa wrote: > > Recently it was reported that a bug in the futex system call will lead to > a local permission escalation vulnerability in l

[android-kernel] Re: Andoid audio HAL understanding

2014-06-17 Thread Glenn Kasten
oop sorry I just "codec" in your question, so in addition to audio HAL, also look at this: http://source.android.com/devices/media.html On Tuesday, June 17, 2014 10:21:56 AM UTC-7, Glenn Kasten wrote: > > please see > http://source.android.com/devices/audio.html > htt

[android-kernel] Re: Andoid audio HAL understanding

2014-06-17 Thread Glenn Kasten
please see http://source.android.com/devices/audio.html http://source.android.com/devices/audio_implement.html On Friday, June 13, 2014 2:49:47 AM UTC-7, Sunil S wrote: > > Hi, > I need to integrate a custom audio codec for kitkat. I need to change HAL > layer for the same purpose. > Are there an

[android-kernel] Re: get_user and put_user missing in syscalls list

2014-06-03 Thread Glenn Kasten
It's a macro, not a system call. On Sunday, June 1, 2014 10:39:43 PM UTC-7, Dipanjan Das wrote: > > Here's an exhaustive list > of the syscalls in > Linux. I wonder why get_user() and put_user() syscalls are missing over > there. Can anyone

[android-kernel] Re: Contributing driver to Android kernel

2014-05-20 Thread Glenn Kasten
See the thread at https://groups.google.com/forum/#!topic/android-kernel/NiyA_CPdg9k On Tuesday, May 20, 2014 4:07:06 AM UTC-7, Fariya Fatima wrote: > > > Hi, > > My company's wireless driver is already a part of the existing Linux > kernel. I would like to know the procedure for submission to A

[android-kernel] Re: Driver submission

2014-05-16 Thread Glenn Kasten
There is not a single Linux kernel git repository used by all Android devices; generally each SoC vendor maintains their own kernel repository, and kernels for specific devices are usually derived from those. See http://source.android.com/source/building-kernels.html section "Downloading sources"

[android-kernel] Re: How Can I Debug Android Emulator

2014-02-06 Thread Glenn Kasten
Off-topic for android-kernel; primary thread at https://groups.google.com/forum/#!topic/android-platform/0B2SMT064-Q On Wednesday, February 5, 2014 6:24:57 PM UTC-8, necroman...@gmail.com wrote: > > Can any one help me know that too > > Pra > > On Wednesday, January 6, 2010 8:36:30 PM UTC+5:30,

[android-kernel] Re: Porting ffmpeg in android

2014-01-29 Thread Glenn Kasten
There have been previous discussions of ffmpeg here: http://groups.google.com/group/android-ndk/browse_frm/thread/6d68c96d04657713 http://groups.google.com/group/android-ndk/browse_frm/thread/d3237dbd2c446665 http://groups.google.com/group/android-ndk/browse_thread/thread/2d93dbee95de4f1e http://gr

[android-kernel] Re: floating point exceptions handling ARM

2014-01-17 Thread Glenn Kasten
I don't know, but you may find knowledgeable people at android-ndk group ... there are some subscribers there who are familiar with ARM floating-point in general, and on Android in particular. I have seen some interesting f.p. discussions recently on that group. (however, they are more app orien

[android-kernel] Re: Control Groups

2013-10-22 Thread Glenn Kasten
cross-post with a reply at https://groups.google.com/forum/#!topic/android-building/otwtzLeiqEo On Tuesday, October 22, 2013 5:42:14 AM UTC-7, Martín Pérez wrote: > > Dear All, > > I am willing to use control group to limit some resources to applications > like network bandwith, and I was will

[android-kernel] Re: how to set capabilities for services

2013-09-29 Thread Glenn Kasten
init appears to have a capability option which I assume was intended to allow this, but it doesn't look like it was ever implemented. In a private communication with another developer, that person expressed reluctance to allow this feature for fear of it being used inappropriately. However if y

[android-kernel] Re: cpu.shares calculation

2013-07-18 Thread Glenn Kasten
cpu.shares for each cgroup is configured in system/core/rootdir/init.rc The cpu.shares mechanism is described at section"7. GROUP SCHEDULER EXTENSIONS TO CFS" of https://www.kernel.org/doc/Documentation/scheduler/sched-design-CFS.txt On Tuesday, July 16, 2013 2:07:53 AM UTC-7, Boyan Vladinov wr

[android-kernel] Re: simplest way to rebuild kernel for a device

2013-04-17 Thread Glenn Kasten
For kernels, see http://source.android.com/source/building-kernels.html For user mode, see http://source.android.com/source/initializing.html then the links at left for remaining steps. You'll want to also join and review posts on the android-building group: https://groups.google.com/forum/

[android-kernel] Re: Why kernel versions for different devices?

2013-03-20 Thread Glenn Kasten
First see http://source.android.com/source/building-kernels.html especially section "Downloading sources". Although android.googlesource.com/kernel/ hosts a git server with kernel source repositories for a variety of devices, each of those repositories has generally evolved independently. Usually

[android-kernel] Re: Understanding AOSP Directory Tree

2013-03-13 Thread Glenn Kasten
Kernel sources are separate. See http://source.android.com/source/building-kernels.html On Wednesday, March 13, 2013 4:00:40 PM UTC-7, Murilo Adriano Vasconcelos wrote: > > Hi, > > I've downloaded and built the Android successfully following the > instructions on AOSP's site. > Now I want to s

[android-kernel] Re: ashmem - mmap deadlock with mmap_sem and ashmem_mutex

2013-02-08 Thread Glenn Kasten
You mentioned that B3 is valid exception ... so at B1 was a bad pointer passed to ASHMEM_SET_NAME? (for example the name parameter of __ashmem_create_region() was bad) Also can you supply a (link to) short test code that demonstrates the problem, so it can be verified on a more recent kernel ve

[android-kernel] Re: RE-IMPLMENTING DEADLOCK DETECTION AND AVOIDANCE MODULE IN ANDROID PHONES

2013-02-04 Thread Glenn Kasten
This is off-topic for kernel. To learn how to build, see Getting Started section of http://source.android.com/source/ On Sunday, February 3, 2013 4:07:00 PM UTC-8, mesumay...@gmail.com wrote: > > I am implementing DEADLOCK IMMUNITY MODULE(DIMMUNIX) by modifying DALVIK > virtual machine.Can you

Re: [android-kernel] android kernal vs linux kernal

2012-12-11 Thread Glenn Kasten
See also the summary at http://elinux.org/Android_Kernel_Features On Tuesday, December 11, 2012 5:46:52 PM UTC-8, NEO SUN wrote: > > Android has its own drivers, for example, binder, pmem, etc. > But as you know, kernel has merged these feature into the mainline. Maybe > is linux 3.4 version? > b

[android-kernel] Re: Zygote preloading resources..

2012-10-16 Thread Glenn Kasten
This is off-topic, as it's not related to Linux kernel for Android. Can you please re-post on another list such as android-platform? Thanks! On Monday, October 15, 2012 4:20:06 AM UTC-7, Sunny wrote: > > > Hi all, > > I was try to modify number of preloaded classes in zygote. So i changed > prelo

[android-kernel] Re: Kernel porting ERRORs Failed setting process group of NNN to 0/1; add_tid_to_cgroup failed

2012-10-11 Thread Glenn Kasten
check, and returns an error. (I put a printk here to > confirm this, and confirm the difference in euid and uid) > > Is system_server supposed to be running as user "system", and is it > supposed to be trying to change the cgroup of process owned by another user? > > Thanks

[android-kernel] Re: Kernel porting ERRORs Failed setting process group of NNN to 0/1; add_tid_to_cgroup failed

2012-10-05 Thread Glenn Kasten
stem system 0 2000-01-01 00:23 tasks > > Yet I still get: > > W/SchedPolicy( 189): add_tid_to_cgroup failed to write '435' (Permission > denied); background=0 > > etc. > > Any ideas please? > > John > > > > On Monday, 13 August 201

[android-kernel] Re: CPU idle in ICS kernel 3.0.8

2012-10-01 Thread Glenn Kasten
I'm not familiar with panda, but I've used this in the kernel configuration file for another device: CONFIG_CPU_IDLE=n But watch out because it will use more power of course. On Monday, October 1, 2012 7:59:40 AM UTC-7, Sagar Shinde wrote: > > Hi, > > We were trying to figure out the network t

[android-kernel] Re: [want to ask] Android system call log interpretation

2012-09-25 Thread Glenn Kasten
For that particular line, it looks like an ARM-specific cache flush: bionic/libc/include/sys/linux-syscalls.h:#define __NR_ARM_cacheflush (__NR_SYSCALL_BASE + 983042) On Monday, September 24, 2012 6:55:08 AM UTC-7, syahaz wrote: > > Hi, > > > Dear all, > > > I would like to seek yo

[android-kernel] Re: Cgroups and Priority

2012-09-19 Thread Glenn Kasten
This is one of those cases where it might be easier to read the code than to try to explain what the code is trying to do (or to understand my poor explanation). Starting from bottom up, I'd take a look at these files: system/core/rootdir/init.rc system/core/include/cutils/sched_policy.h sy

Re: [android-kernel] Re: Android ICS kernel scheduler algorithm

2012-08-27 Thread Glenn Kasten
default one, it's CFS? > > Jack Harvard > > > On Fri, Aug 24, 2012 at 5:29 AM, Glenn Kasten > > > wrote: > > Android OS mostly does not dictate which exact kernel version to use, as > > long as the kernel has the necessary Android-specific kernel ex

[android-kernel] Re: Android ICS kernel scheduler algorithm

2012-08-23 Thread Glenn Kasten
Android OS mostly does not dictate which exact kernel version to use, as long as the kernel has the necessary Android-specific kernel extensions such as those for binder driver etc. Android OS uses the generic primitives of the Linux kernel scheduler and builds on them at user level. That incl

Re: [android-kernel] Exploring Android HAL

2012-08-15 Thread Glenn Kasten
Also see hardware/libhardware/include/hardware/*.h for the HAL APIs, and device/oem-name/code-name/... for some HAL implementations (at least for audio HAL they are usually there, I don't know about where other HALs are put). On Monday, August 13, 2012 10:17:25 PM UTC-7, Durga wrote: > > you can

[android-kernel] Re: Kernel porting ERRORs Failed setting process group of NNN to 0/1; add_tid_to_cgroup failed

2012-08-13 Thread Glenn Kasten
Sometimes this is caused by incorrect init.rc. Make sure your init.rc has all of the latest changes from system/core/rootdir/init.rc especially if you have forked it. You mentioned a "lot of people" have seen this .. were these on other external postings or bug reports? if so can you please su

Re: [android-kernel] creating new processes insternals

2012-07-19 Thread Glenn Kasten
in IPCThreadState::executeCommand() case BR_SPAWN_LOOPER: the binder driver sends a command up to user level, suggesting that it create another thread see frameworks/native(or base)/libs/binder/IPCThreadState.cpp On Wednesday, July 18, 2012 9:02:31 AM UTC-7, failuch wrote: > > Hello Dianne & all

Re: [android-kernel] Meausre CPU usage after renice

2012-06-27 Thread Glenn Kasten
See also "man clock_gettime" for CLOCK_PROCESS_CPUTIME_ID or CLOCK_THREAD_CPUTIME_ID, which would need to be called by the process or thread itself. On Wednesday, June 27, 2012 1:32:16 AM UTC-7, kanishka wrote: > > I looked in to the /proc//stat and it gives some use full information > about th

[android-kernel] Re: renice processes

2012-06-06 Thread Glenn Kasten
See setpriority(2). The calling process will need CAP_SYS_NICE capability; see capabilities(7). On Thursday, May 31, 2012 6:30:43 PM UTC-7, DK wrote: > > Hi, > > I want to renice the value of a process depending on a sensor > value(GPS), with out issuing the renice cmd. How can this be achieved

[android-kernel] Re: About Kernel Verison (will update)?

2012-04-26 Thread Glenn Kasten
Yes, new lead devices often start with a relatively recent stable kernel, and older lead devices often stay with the older kernel that they were first released with and patched as needed. There are exceptions; this is not a guaranteed rule. On Wednesday, April 25, 2012 8:16:49 PM UTC-7, dennis

[android-kernel] Re: How CFS work in Android? Difference from Linux

2012-03-19 Thread Glenn Kasten
it an > approximated average? > Help please!!! :( > > > On Mar 19, 4:21 pm, Glenn Kasten wrote: > > Threads voluntarily assign themselves a nice priority within the > permitted > > range, and activity manager assigns threads of an app process to an > > appropriate cpu

[android-kernel] Re: How CFS work in Android? Difference from Linux

2012-03-19 Thread Glenn Kasten
Threads voluntarily assign themselves a nice priority within the permitted range, and activity manager assigns threads of an app process to an appropriate cpuctl cgroup. On Friday, March 16, 2012 6:38:57 AM UTC-7, Deborah wrote: > > I am trying to get a better understanding on ANDROID CFS. I ha

[android-kernel] Re: arm kernel header version

2012-03-15 Thread Glenn Kasten
I'll assume you mean the headers in bionic/libc/kernel which are derived from external/kernel-headers. These headers are updated on an "as needed" basis only. The process is: When there is a need, copy in only the necessary updated headers from kernel to external/kernel-headers/original. Run t