Re: debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32)

2011-06-27 Thread Prabhu nath
Hi Mulyadi/Spiro, Can you please help me in partially enabling/disabling optimizations, because I was consistently hitting at the below problem when building the kernel after disabling the optimization ERROR: "intel_gmbus_is_forced_bit" [drivers/gpu/drm/i915/i915.ko] undefined! ERROR:

Re: Basic HighMeM Question

2011-06-27 Thread piyush moghe
Thanks Prabhu. So does this means that this ZONE_NORMAL limit of 896MB is because of 3:1 memory division? If it is do then does this mean that if this ratio is changed then ZONE_NORMAL limit will also be changed? Regards, Piyush On Mon, Jun 27, 2011 at 4:45 PM, Prabhu nath wrote: > > On Mon,

Re: debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32)

2011-06-27 Thread Mulyadi Santosa
Hi Spiro On Tue, Jun 28, 2011 at 01:40, Spiro Trikaliotis wrote: > > On the other hand: With optimisations disabled, the kernel behaves > differently than it would with optimisations. That's why many people > prefer to keep them switched on, and only disable them partially if > really, really nee

Re: KGDB command line options not working for kernel 2.6.32

2011-06-27 Thread Spiro Trikaliotis
Hello Shaji, * On Fri, Jun 24, 2011 at 04:58:04AM -0700 Shaji Yusuf wrote: > I root caused the issue by undoing my modifications and debugging again. The > reason why kgdbwait did not kick in was that my point of debug was much > before > kgdb module loading. I think I remember "kgdb early de

Re: debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32)

2011-06-27 Thread Spiro Trikaliotis
Hello, * On Mon, Jun 27, 2011 at 09:51:53PM +0700 Mulyadi Santosa wrote: > >I have one question in this context. Should we disable optimization when > >building the kernel when we wish to enable kgdb or should we leave it intact. > > Whenever possible, yes...disable optimization -O option and

Re: kernel compiling problems

2011-06-27 Thread Greg KH
On Tue, Jun 28, 2011 at 12:41:46AM +0700, Mulyadi Santosa wrote: > On Tue, Jun 28, 2011 at 00:34, Prashant Shah wrote: > > Hi, > > > > Sometimes I get errors when compiling the latest staging tree - > > recently it happened on the device drivers > mtd module due to > > duplicate module_init functi

Re: kernel compiling problems

2011-06-27 Thread Mulyadi Santosa
On Tue, Jun 28, 2011 at 00:34, Prashant Shah wrote: > Hi, > > Sometimes I get errors when compiling the latest staging tree - > recently it happened on the device drivers > mtd module due to > duplicate module_init functions and the build breaks. Do I need to > report them or its handled by some a

Re: File transfer to mobile phone using Bluetooth

2011-06-27 Thread Vladimir Murzin
2011/6/27 पारस : > Hi, > I am working on Ubuntu-10.4 and I want to transfer 'hello.txt' file form my > computer to mobile phone (Nokia 7210). > I run following command > > $ hcitool scan > 00:25:48:11:5D:2C Nokia > > $ sdptool browse 00:25:48:11:5D:2C > Browsing 00:25:48:11:5D:2C ... > Service Name

kernel compiling problems

2011-06-27 Thread Prashant Shah
Hi, Sometimes I get errors when compiling the latest staging tree - recently it happened on the device drivers > mtd module due to duplicate module_init functions and the build breaks. Do I need to report them or its handled by some auto build system that takes care of it. Also I get errors on CO

Re: Problem in compiling kernel

2011-06-27 Thread Daniel Baluta
On Mon, Jun 27, 2011 at 7:21 PM, Ponkumaran Annadurai wrote: > Hello, > > I encountered the following error while compiling the kernel version > linux-2.6.39.1. So I am giving here what I got on my screen. > > root@rocker:/usr/src/linux-2.6.39.1# make >   CHK include/linux/version.h >   CHK   

Re: Problem in compiling kernel

2011-06-27 Thread Mulyadi Santosa
On Mon, Jun 27, 2011 at 23:21, Ponkumaran Annadurai wrote: > Hello, > > I encountered the following error while compiling the kernel version > linux-2.6.39.1. So I am giving here what I got on my screen. > > root@rocker:/usr/src/linux-2.6.39.1# make >   CHK include/linux/version.h >   CHK

Re: process stack

2011-06-27 Thread Ramesh.P
On Sun, Jun 26, 2011 at 9:00 PM, Asutosh Das wrote: > > On 27 June 2011 09:04, Venkateswarlu P wrote: >> >> >> Each process is having a stack . >> >> In C ,for local variables allocation  this stack  is used (for some extra >> usage also). >> >> what about static and global data allocation ? > >

Re: Kernel log mechanism: How to log messages in a different file

2011-06-27 Thread Ramesh.P
Hi, Regarding dmesg. I believe it will still show up in it. It can be controlled by /proc/sys/kernel/printk settings. As per man 5 proc: /proc/sys/kernel/printk The four values in this file are console_loglevel, default_mes- sage_loglevel, minimum_console_l

Problem in compiling kernel

2011-06-27 Thread Ponkumaran Annadurai
Hello, I encountered the following error while compiling the kernel version linux-2.6.39.1. So I am giving here what I got on my screen. root@rocker:/usr/src/linux-2.6.39.1# make CHK include/linux/version.h CHK include/generated/utsrelease.h CC kernel/bounds.s GEN include

debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32)

2011-06-27 Thread Mulyadi Santosa
>I have one question in this context. Should we disable optimization when >>building the kernel when we wish to enable kgdb or should we leave it intact. Whenever possible, yes...disable optimization -O option and -g in gcc don't play nicely together according to my experience. The DWARF info

File transfer to mobile phone using Bluetooth

2011-06-27 Thread पारस
Hi, I am working on Ubuntu-10.4 and I want to transfer 'hello.txt' file form my computer to mobile phone (Nokia 7210). I run following command $ hcitool scan 00:25:48:11:5D:2C Nokia $ sdptool browse 00:25:48:11:5D:2C Browsing 00:25:48:11:5D:2C ... Service Name: OBEX Object Push Service RecHandle:

Re: Basic HighMeM Question

2011-06-27 Thread Prabhu nath
On Mon, Jun 27, 2011 at 3:58 PM, Paraneetharan Chandrasekaran < paraneethar...@gmail.com> wrote: > > > On 27 June 2011 14:58, Prabhu nath wrote: > >> Please see inline. >> >> On Mon, Jun 27, 2011 at 2:42 PM, piyush moghe wrote: >> >>> I have very basic some question's related to HighMem Memory M

Re: KGDB command line options not working for kernel 2.6.32

2011-06-27 Thread Prabhu nath
I have one question in this context. Should we disable optimization when building the kernel when we wish to enable kgdb or should we leave it intact. Thanks, Prabhunath On Fri, Jun 24, 2011 at 5:28 PM, Shaji Yusuf wrote: > Sprio, thanks for the reply! > I root caused the issue by undoing my mo

Re: Basic HighMeM Question

2011-06-27 Thread Prabhu nath
Please see inline. On Mon, Jun 27, 2011 at 2:42 PM, piyush moghe wrote: > I have very basic some question's related to HighMem Memory Mapping: > > 1) Why can't we directly map memory in highmemory? > This question is incorrect ? Typically on a intel architecture, the physical address spa

Re: power on self test (POST) config option in kernel config

2011-06-27 Thread Vladimir Murzin
On Mon, Jun 27, 2011 at 9:57 AM, sri wrote: > Hi, > > One of my devices runs with Centos 5.3 kernel (kernel-2.6.18-128.el5) and > that box stops responding occasionally. > When did hard reboot, it comes to normal execution. I would like to see > which device failure caused the box to stop rebootin

Basic HighMeM Question

2011-06-27 Thread piyush moghe
I have very basic some question's related to HighMem Memory Mapping: 1) Why can't we directly map memory in highmemory? 2) As documents at many places why is the limit of 896MB for ZONE_NORMAL? Regards, Piyush ___ Kernelnewbies mailing list Kernelnewb

block size check in __getblk_slow

2011-06-27 Thread piyush moghe
Hi All, I am new to linux kernel code and interested in filesystems and block I/O. While going through the block read code ( in __bread function ) I found that when we try to read the block ( __getblk ) we first check for the block buffer page in page cache ( using __find_get_block function ) and