Results 1 to 6 of 6

Thread: Compiling and Debugging Linux Kernel

  1. #1
    Join Date
    Nov 2010
    Posts
    1,614

    Compiling and Debugging Linux Kernel

    The Linux kernel is definitely a solid system. The best advantage of Linux is again and again the same thing, the availability of source code. It is not only the source code alone, but the complete set of development and analysis tools to the Linux kernel .This makes the operating system much more flexible. Now the best part of this is that enables linux developers to building a better product on Linux platform. I want to go for a course for this. This time I am planing to go for a much higher Linux studies. So for that I need some highlights on this platform. What type of version is quiet better that I can give a start. I tried figuring out some basic support on that, but this one is not easy to understand. It is better due to the stable size and security on this operating system.

  2. #2
    Join Date
    Nov 2009
    Posts
    955

    Re: Compiling and Debugging Linux Kernel

    It is right to say that though Linux is flexible but is not immune from errors. Investigation of a kernel problem using the graphical gdb front-ends is offered by ddd. Many such errors result in either stop or crash the kernel. It is often more informative expenditure report for example, the user assumes that a particular system was not logged off correctly while a driver was discharged. An example here would be various / proc entries that have been forgotten in the cancellation of a driver. Such errors in the kernel handles the rule without having to stop the system. Today there are gui based debugger offered which provides you a better compilation of the program. This is best for those who are building up a power tool on Linux.

  3. #3
    Join Date
    May 2009
    Posts
    1,084

    Re: Compiling and Debugging Linux Kernel

    It is a common appearance that the kernel crashed after an error. At best it can be illustrated by the message of oops itself. Oops the kernel itself is a normal function that resides in the file traps.c. The two responsible for the display of functions Oops dump_stack () and show_trace () are functions that are left regular. The actual treatment of an error after a kernel Oops is later directly or in the system, which has reported an Oops. The use of an interactive debugger in the kernel, however, is a challenge. The kernel runs in a separate address space on behalf of all processes in the system.

  4. #4
    Join Date
    Jul 2009
    Posts
    1,118

    Re: Compiling and Debugging Linux Kernel

    I recommend gdb for that. It ican be very useful if you are in the system internals do throw a glance. An efficient use of the debugger at this level requires a certain familiarity with the gdb commands, some knowledge of the assembly code of the underlying platform and the ability to source code and optimized assembly code together. The debugger must be invoked as if the kernel is an application program. In addition to the file name of an uncompressed kernel image, you should specify on the command line, type the name of a core file. In a running kernel is the core file, the kernel core image / proc / kcore. The first argument is the name of the uncompressed kernel zImage or bzImage or not of anything else compressed. The second argument on the command line gdb is the name of the core file.

  5. #5
    Join Date
    Jul 2009
    Posts
    1,179

    Re: Compiling and Debugging Linux Kernel

    The discussion of a debugger in the kernel has been running for years. But now there are better options like KGDB. The KGDB requires two connected computers. On the first run, the kernel will be searched for errors. On the second works, the debugger GDB . For testing purposes, a memory test is included in the kernel. It can begin with the start parameters as memtest option. Major changes are once again done with wireless stack. Thus providing additional be 802.11n capabilities integrated to, fast wireless LAN standard to support the new. On x86 machines is now Attribution Page Table (PAT) support. The processor should cache can be controlled more accurately.

  6. #6
    Join Date
    May 2008
    Posts
    1,020

    Re: Compiling and Debugging Linux Kernel

    Is a kernel only stopped once, the developers are only limited options available to investigate the error. In contrast to applications that run in user space, errors in the kernel immediately on the complete system. However, since the kernel after a crash is still functional, it is understandable that developers have made several thoughts on ways to exploit this fact for further searching. Probably the most popular way to investigate errors in the kernel provides, thereby printk () dar. This led to a second possibility - the Oops messages. Contrary to these reports provide the first impression for a programmer an extreme enrichment they do often include all the information needed to solve a problem.

Similar Threads

  1. Error 2 while compiling kernel in gentoo
    By Virr in forum Operating Systems
    Replies: 5
    Last Post: 30-05-2011, 08:08 PM
  2. Unable to boot after compiling and installing kernel
    By PWallace in forum Operating Systems
    Replies: 4
    Last Post: 09-11-2010, 02:54 PM
  3. ATI Proprietary driver not compiling on Linux kernel
    By Psykiller in forum Monitor & Video Cards
    Replies: 5
    Last Post: 02-06-2010, 11:54 AM
  4. Re-compiling a Linux Kernel
    By Lauren Ambrose in forum Operating Systems
    Replies: 4
    Last Post: 21-04-2010, 10:03 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,007,923.97034 seconds with 17 queries